From b5c4592f7f99f3732e1cea75ea80e985371bf60e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 6 Jul 2023 10:10:59 -0400 Subject: [PATCH 1/2] docs: add generated code snippets (#418) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: enable snippet generation for python-compute (#825) Source-Link: https://github.com/googleapis/googleapis/commit/8b152e0252e5223b4a4fb7594203cce62815e2e9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1a801941ed6ac94a4d495242d391f0ce99ebfbe6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWE4MDE5NDFlZDZhYzk0YTRkNDk1MjQyZDM5MWYwY2U5OWViZmJlNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to v1.11.1 PiperOrigin-RevId: 545769621 Source-Link: https://github.com/googleapis/googleapis/commit/cc2f031396e0cda5dd89f191493fe9eddff47233 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1a46ae7652ef98a86c2bc232b6da0412e9f30bdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWE0NmFlNzY1MmVmOThhODZjMmJjMjMyYjZkYTA0MTJlOWYzMGJkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../services/accelerator_types/client.py | 83 + .../compute_v1/services/addresses/client.py | 305 + .../compute_v1/services/autoscalers/client.py | 301 + .../services/backend_buckets/client.py | 432 + .../services/backend_services/client.py | 594 + .../compute_v1/services/disk_types/client.py | 83 + .../cloud/compute_v1/services/disks/client.py | 833 + .../services/external_vpn_gateways/client.py | 241 + .../services/firewall_policies/client.py | 729 + .../compute_v1/services/firewalls/client.py | 268 + .../services/forwarding_rules/client.py | 361 + .../services/global_addresses/client.py | 268 + .../global_forwarding_rules/client.py | 322 + .../global_network_endpoint_groups/client.py | 296 + .../services/global_operations/client.py | 135 + .../global_organization_operations/client.py | 78 + .../client.py | 214 + .../services/health_checks/client.py | 295 + .../services/image_family_views/client.py | 28 + .../compute_v1/services/images/client.py | 430 + .../instance_group_managers/client.py | 954 + .../services/instance_groups/client.py | 390 + .../services/instance_templates/client.py | 268 + .../compute_v1/services/instances/client.py | 2225 + .../interconnect_attachments/client.py | 305 + .../services/interconnect_locations/client.py | 54 + .../interconnect_remote_locations/client.py | 54 + .../services/interconnects/client.py | 295 + .../services/license_codes/client.py | 54 + .../compute_v1/services/licenses/client.py | 241 + .../services/machine_images/client.py | 241 + .../services/machine_types/client.py | 83 + .../services/network_attachments/client.py | 277 + .../network_edge_security_services/client.py | 221 + .../network_endpoint_groups/client.py | 362 + .../network_firewall_policies/client.py | 673 + .../compute_v1/services/networks/client.py | 485 + .../compute_v1/services/node_groups/client.py | 588 + .../services/node_templates/client.py | 277 + .../compute_v1/services/node_types/client.py | 83 + .../services/packet_mirrorings/client.py | 277 + .../compute_v1/services/projects/client.py | 574 + .../public_advertised_prefixes/client.py | 214 + .../public_delegated_prefixes/client.py | 249 + .../services/region_autoscalers/client.py | 274 + .../region_backend_services/client.py | 362 + .../services/region_commitments/client.py | 193 + .../services/region_disk_types/client.py | 56 + .../services/region_disks/client.py | 806 + .../region_health_check_services/client.py | 222 + .../services/region_health_checks/client.py | 278 + .../region_instance_group_managers/client.py | 927 + .../services/region_instance_groups/client.py | 141 + .../region_instance_templates/client.py | 166 + .../services/region_instances/client.py | 54 + .../region_network_endpoint_groups/client.py | 166 + .../client.py | 726 + .../region_notification_endpoints/client.py | 166 + .../services/region_operations/client.py | 112 + .../region_security_policies/client.py | 222 + .../region_ssl_certificates/client.py | 166 + .../services/region_ssl_policies/client.py | 249 + .../region_target_http_proxies/client.py | 222 + .../region_target_https_proxies/client.py | 334 + .../region_target_tcp_proxies/client.py | 166 + .../services/region_url_maps/client.py | 306 + .../compute_v1/services/regions/client.py | 54 + .../services/reservations/client.py | 389 + .../services/resource_policies/client.py | 277 + .../compute_v1/services/routers/client.py | 390 + .../compute_v1/services/routes/client.py | 160 + .../services/security_policies/client.py | 510 + .../services/service_attachments/client.py | 333 + .../compute_v1/services/snapshots/client.py | 295 + .../services/ssl_certificates/client.py | 187 + .../services/ssl_policies/client.py | 267 + .../compute_v1/services/subnetworks/client.py | 472 + .../services/target_grpc_proxies/client.py | 214 + .../services/target_http_proxies/client.py | 295 + .../services/target_https_proxies/client.py | 511 + .../services/target_instances/client.py | 193 + .../services/target_pools/client.py | 501 + .../services/target_ssl_proxies/client.py | 430 + .../services/target_tcp_proxies/client.py | 295 + .../services/target_vpn_gateways/client.py | 249 + .../compute_v1/services/url_maps/client.py | 376 + .../services/vpn_gateways/client.py | 305 + .../compute_v1/services/vpn_tunnels/client.py | 249 + .../services/zone_operations/client.py | 112 + .../cloud/compute_v1/services/zones/client.py | 54 + ..._accelerator_types_aggregated_list_sync.py | 53 + ...v1_generated_accelerator_types_get_sync.py | 54 + ...1_generated_accelerator_types_list_sync.py | 54 + ...enerated_addresses_aggregated_list_sync.py | 53 + ...pute_v1_generated_addresses_delete_sync.py | 54 + ...compute_v1_generated_addresses_get_sync.py | 54 + ...pute_v1_generated_addresses_insert_sync.py | 53 + ...ompute_v1_generated_addresses_list_sync.py | 54 + ...ompute_v1_generated_addresses_move_sync.py | 54 + ..._v1_generated_addresses_set_labels_sync.py | 54 + ...erated_autoscalers_aggregated_list_sync.py | 53 + ...te_v1_generated_autoscalers_delete_sync.py | 54 + ...mpute_v1_generated_autoscalers_get_sync.py | 54 + ...te_v1_generated_autoscalers_insert_sync.py | 53 + ...pute_v1_generated_autoscalers_list_sync.py | 54 + ...ute_v1_generated_autoscalers_patch_sync.py | 53 + ...te_v1_generated_autoscalers_update_sync.py | 53 + ...backend_buckets_add_signed_url_key_sync.py | 53 + ...kend_buckets_delete_signed_url_key_sync.py | 54 + ...1_generated_backend_buckets_delete_sync.py | 53 + ...e_v1_generated_backend_buckets_get_sync.py | 53 + ...1_generated_backend_buckets_insert_sync.py | 52 + ..._v1_generated_backend_buckets_list_sync.py | 53 + ...v1_generated_backend_buckets_patch_sync.py | 53 + ...d_buckets_set_edge_security_policy_sync.py | 53 + ...1_generated_backend_buckets_update_sync.py | 53 + ...ackend_services_add_signed_url_key_sync.py | 53 + ...d_backend_services_aggregated_list_sync.py | 53 + ...end_services_delete_signed_url_key_sync.py | 54 + ..._generated_backend_services_delete_sync.py | 53 + ...erated_backend_services_get_health_sync.py | 53 + ...ed_backend_services_get_iam_policy_sync.py | 53 + ..._v1_generated_backend_services_get_sync.py | 53 + ..._generated_backend_services_insert_sync.py | 52 + ...v1_generated_backend_services_list_sync.py | 53 + ...1_generated_backend_services_patch_sync.py | 53 + ..._services_set_edge_security_policy_sync.py | 53 + ...ed_backend_services_set_iam_policy_sync.py | 53 + ...ckend_services_set_security_policy_sync.py | 53 + ..._generated_backend_services_update_sync.py | 53 + ...nerated_disk_types_aggregated_list_sync.py | 53 + ...ompute_v1_generated_disk_types_get_sync.py | 54 + ...mpute_v1_generated_disk_types_list_sync.py | 54 + ...erated_disks_add_resource_policies_sync.py | 54 + ...v1_generated_disks_aggregated_list_sync.py | 53 + ...ute_v1_generated_disks_bulk_insert_sync.py | 53 + ...v1_generated_disks_create_snapshot_sync.py | 54 + .../compute_v1_generated_disks_delete_sync.py | 54 + ..._v1_generated_disks_get_iam_policy_sync.py | 54 + .../compute_v1_generated_disks_get_sync.py | 54 + .../compute_v1_generated_disks_insert_sync.py | 53 + .../compute_v1_generated_disks_list_sync.py | 54 + ...ted_disks_remove_resource_policies_sync.py | 54 + .../compute_v1_generated_disks_resize_sync.py | 54 + ..._v1_generated_disks_set_iam_policy_sync.py | 54 + ...pute_v1_generated_disks_set_labels_sync.py | 54 + ...ated_disks_start_async_replication_sync.py | 54 + ...rated_disks_stop_async_replication_sync.py | 54 + ...disks_stop_group_async_replication_sync.py | 53 + ...nerated_disks_test_iam_permissions_sync.py | 54 + .../compute_v1_generated_disks_update_sync.py | 54 + ...rated_external_vpn_gateways_delete_sync.py | 53 + ...enerated_external_vpn_gateways_get_sync.py | 53 + ...rated_external_vpn_gateways_insert_sync.py | 52 + ...nerated_external_vpn_gateways_list_sync.py | 53 + ...d_external_vpn_gateways_set_labels_sync.py | 53 + ..._vpn_gateways_test_iam_permissions_sync.py | 53 + ..._firewall_policies_add_association_sync.py | 52 + ...nerated_firewall_policies_add_rule_sync.py | 52 + ...ated_firewall_policies_clone_rules_sync.py | 52 + ...generated_firewall_policies_delete_sync.py | 52 + ..._firewall_policies_get_association_sync.py | 52 + ...d_firewall_policies_get_iam_policy_sync.py | 52 + ...nerated_firewall_policies_get_rule_sync.py | 52 + ...v1_generated_firewall_policies_get_sync.py | 52 + ...generated_firewall_policies_insert_sync.py | 52 + ...irewall_policies_list_associations_sync.py | 51 + ...1_generated_firewall_policies_list_sync.py | 52 + ...1_generated_firewall_policies_move_sync.py | 53 + ...rated_firewall_policies_patch_rule_sync.py | 52 + ..._generated_firewall_policies_patch_sync.py | 52 + ...rewall_policies_remove_association_sync.py | 52 + ...ated_firewall_policies_remove_rule_sync.py | 52 + ...d_firewall_policies_set_iam_policy_sync.py | 52 + ...wall_policies_test_iam_permissions_sync.py | 52 + ...pute_v1_generated_firewalls_delete_sync.py | 53 + ...compute_v1_generated_firewalls_get_sync.py | 53 + ...pute_v1_generated_firewalls_insert_sync.py | 52 + ...ompute_v1_generated_firewalls_list_sync.py | 53 + ...mpute_v1_generated_firewalls_patch_sync.py | 53 + ...pute_v1_generated_firewalls_update_sync.py | 53 + ...d_forwarding_rules_aggregated_list_sync.py | 53 + ..._generated_forwarding_rules_delete_sync.py | 54 + ..._v1_generated_forwarding_rules_get_sync.py | 54 + ..._generated_forwarding_rules_insert_sync.py | 53 + ...v1_generated_forwarding_rules_list_sync.py | 54 + ...1_generated_forwarding_rules_patch_sync.py | 54 + ...erated_forwarding_rules_set_labels_sync.py | 54 + ...erated_forwarding_rules_set_target_sync.py | 54 + ..._generated_global_addresses_delete_sync.py | 53 + ..._v1_generated_global_addresses_get_sync.py | 53 + ..._generated_global_addresses_insert_sync.py | 52 + ...v1_generated_global_addresses_list_sync.py | 53 + ...v1_generated_global_addresses_move_sync.py | 53 + ...erated_global_addresses_set_labels_sync.py | 53 + ...ted_global_forwarding_rules_delete_sync.py | 53 + ...erated_global_forwarding_rules_get_sync.py | 53 + ...ted_global_forwarding_rules_insert_sync.py | 52 + ...rated_global_forwarding_rules_list_sync.py | 53 + ...ated_global_forwarding_rules_patch_sync.py | 53 + ...global_forwarding_rules_set_labels_sync.py | 53 + ...global_forwarding_rules_set_target_sync.py | 53 + ...nt_groups_attach_network_endpoints_sync.py | 53 + ...bal_network_endpoint_groups_delete_sync.py | 53 + ...nt_groups_detach_network_endpoints_sync.py | 53 + ...global_network_endpoint_groups_get_sync.py | 53 + ...bal_network_endpoint_groups_insert_sync.py | 52 + ...oint_groups_list_network_endpoints_sync.py | 54 + ...lobal_network_endpoint_groups_list_sync.py | 53 + ..._global_operations_aggregated_list_sync.py | 53 + ...generated_global_operations_delete_sync.py | 53 + ...v1_generated_global_operations_get_sync.py | 53 + ...1_generated_global_operations_list_sync.py | 53 + ...1_generated_global_operations_wait_sync.py | 53 + ...bal_organization_operations_delete_sync.py | 52 + ...global_organization_operations_get_sync.py | 52 + ...lobal_organization_operations_list_sync.py | 52 + ...l_public_delegated_prefixes_delete_sync.py | 53 + ...obal_public_delegated_prefixes_get_sync.py | 53 + ...l_public_delegated_prefixes_insert_sync.py | 52 + ...bal_public_delegated_prefixes_list_sync.py | 53 + ...al_public_delegated_prefixes_patch_sync.py | 53 + ...ated_health_checks_aggregated_list_sync.py | 53 + ..._v1_generated_health_checks_delete_sync.py | 53 + ...ute_v1_generated_health_checks_get_sync.py | 53 + ..._v1_generated_health_checks_insert_sync.py | 52 + ...te_v1_generated_health_checks_list_sync.py | 53 + ...e_v1_generated_health_checks_patch_sync.py | 53 + ..._v1_generated_health_checks_update_sync.py | 53 + ...1_generated_image_family_views_get_sync.py | 54 + ...compute_v1_generated_images_delete_sync.py | 53 + ...pute_v1_generated_images_deprecate_sync.py | 53 + ...1_generated_images_get_from_family_sync.py | 53 + ...v1_generated_images_get_iam_policy_sync.py | 53 + .../compute_v1_generated_images_get_sync.py | 53 + ...compute_v1_generated_images_insert_sync.py | 52 + .../compute_v1_generated_images_list_sync.py | 53 + .../compute_v1_generated_images_patch_sync.py | 53 + ...v1_generated_images_set_iam_policy_sync.py | 53 + ...ute_v1_generated_images_set_labels_sync.py | 53 + ...erated_images_test_iam_permissions_sync.py | 53 + ...e_group_managers_abandon_instances_sync.py | 54 + ...nce_group_managers_aggregated_list_sync.py | 53 + ...anagers_apply_updates_to_instances_sync.py | 54 + ...ce_group_managers_create_instances_sync.py | 54 + ...ce_group_managers_delete_instances_sync.py | 54 + ...nagers_delete_per_instance_configs_sync.py | 54 + ...ted_instance_group_managers_delete_sync.py | 54 + ...erated_instance_group_managers_get_sync.py | 54 + ...ted_instance_group_managers_insert_sync.py | 53 + ...nstance_group_managers_list_errors_sync.py | 55 + ...up_managers_list_managed_instances_sync.py | 55 + ...managers_list_per_instance_configs_sync.py | 55 + ...rated_instance_group_managers_list_sync.py | 54 + ...anagers_patch_per_instance_configs_sync.py | 54 + ...ated_instance_group_managers_patch_sync.py | 54 + ..._group_managers_recreate_instances_sync.py | 54 + ...ted_instance_group_managers_resize_sync.py | 55 + ...oup_managers_set_instance_template_sync.py | 54 + ...ce_group_managers_set_target_pools_sync.py | 54 + ...nagers_update_per_instance_configs_sync.py | 54 + ...ated_instance_groups_add_instances_sync.py | 54 + ...ed_instance_groups_aggregated_list_sync.py | 53 + ...1_generated_instance_groups_delete_sync.py | 54 + ...e_v1_generated_instance_groups_get_sync.py | 54 + ...1_generated_instance_groups_insert_sync.py | 53 + ...ted_instance_groups_list_instances_sync.py | 55 + ..._v1_generated_instance_groups_list_sync.py | 54 + ...d_instance_groups_remove_instances_sync.py | 54 + ...ed_instance_groups_set_named_ports_sync.py | 54 + ...instance_templates_aggregated_list_sync.py | 53 + ...enerated_instance_templates_delete_sync.py | 53 + ..._instance_templates_get_iam_policy_sync.py | 53 + ...1_generated_instance_templates_get_sync.py | 53 + ...enerated_instance_templates_insert_sync.py | 52 + ..._generated_instance_templates_list_sync.py | 53 + ..._instance_templates_set_iam_policy_sync.py | 53 + ...nce_templates_test_iam_permissions_sync.py | 53 + ...erated_instances_add_access_config_sync.py | 55 + ...ed_instances_add_resource_policies_sync.py | 54 + ...enerated_instances_aggregated_list_sync.py | 53 + ...v1_generated_instances_attach_disk_sync.py | 54 + ...v1_generated_instances_bulk_insert_sync.py | 53 + ...ted_instances_delete_access_config_sync.py | 56 + ...pute_v1_generated_instances_delete_sync.py | 54 + ...v1_generated_instances_detach_disk_sync.py | 55 + ..._instances_get_effective_firewalls_sync.py | 55 + ...ted_instances_get_guest_attributes_sync.py | 54 + ...generated_instances_get_iam_policy_sync.py | 54 + ...generated_instances_get_screenshot_sync.py | 54 + ...d_instances_get_serial_port_output_sync.py | 54 + ...ces_get_shielded_instance_identity_sync.py | 54 + ...compute_v1_generated_instances_get_sync.py | 54 + ...pute_v1_generated_instances_insert_sync.py | 53 + ...generated_instances_list_referrers_sync.py | 55 + ...ompute_v1_generated_instances_list_sync.py | 54 + ...instances_remove_resource_policies_sync.py | 54 + ...mpute_v1_generated_instances_reset_sync.py | 54 + ...pute_v1_generated_instances_resume_sync.py | 54 + ...nstances_send_diagnostic_interrupt_sync.py | 54 + ..._instances_set_deletion_protection_sync.py | 54 + ...ted_instances_set_disk_auto_delete_sync.py | 56 + ...generated_instances_set_iam_policy_sync.py | 54 + ..._v1_generated_instances_set_labels_sync.py | 54 + ...ed_instances_set_machine_resources_sync.py | 54 + ...nerated_instances_set_machine_type_sync.py | 54 + ...1_generated_instances_set_metadata_sync.py | 54 + ...ted_instances_set_min_cpu_platform_sync.py | 54 + ...te_v1_generated_instances_set_name_sync.py | 54 + ...generated_instances_set_scheduling_sync.py | 54 + ...ated_instances_set_service_account_sync.py | 54 + ...shielded_instance_integrity_policy_sync.py | 54 + ...te_v1_generated_instances_set_tags_sync.py | 54 + ...stances_simulate_maintenance_event_sync.py | 54 + ...mpute_v1_generated_instances_start_sync.py | 54 + ...nstances_start_with_encryption_key_sync.py | 54 + ...ompute_v1_generated_instances_stop_sync.py | 54 + ...ute_v1_generated_instances_suspend_sync.py | 54 + ...ted_instances_test_iam_permissions_sync.py | 54 + ...ted_instances_update_access_config_sync.py | 55 + ...ed_instances_update_display_device_sync.py | 54 + ...instances_update_network_interface_sync.py | 55 + ...es_update_shielded_instance_config_sync.py | 54 + ...pute_v1_generated_instances_update_sync.py | 54 + ...onnect_attachments_aggregated_list_sync.py | 53 + ...ed_interconnect_attachments_delete_sync.py | 54 + ...rated_interconnect_attachments_get_sync.py | 54 + ...ed_interconnect_attachments_insert_sync.py | 53 + ...ated_interconnect_attachments_list_sync.py | 54 + ...ted_interconnect_attachments_patch_sync.py | 54 + ...nterconnect_attachments_set_labels_sync.py | 54 + ...nerated_interconnect_locations_get_sync.py | 53 + ...erated_interconnect_locations_list_sync.py | 53 + ..._interconnect_remote_locations_get_sync.py | 53 + ...interconnect_remote_locations_list_sync.py | 53 + ..._v1_generated_interconnects_delete_sync.py | 53 + ...ated_interconnects_get_diagnostics_sync.py | 53 + ...ute_v1_generated_interconnects_get_sync.py | 53 + ..._v1_generated_interconnects_insert_sync.py | 52 + ...te_v1_generated_interconnects_list_sync.py | 53 + ...e_v1_generated_interconnects_patch_sync.py | 53 + ...generated_interconnects_set_labels_sync.py | 53 + ...ute_v1_generated_license_codes_get_sync.py | 53 + ...license_codes_test_iam_permissions_sync.py | 53 + ...mpute_v1_generated_licenses_delete_sync.py | 53 + ..._generated_licenses_get_iam_policy_sync.py | 53 + .../compute_v1_generated_licenses_get_sync.py | 53 + ...mpute_v1_generated_licenses_insert_sync.py | 52 + ...compute_v1_generated_licenses_list_sync.py | 53 + ..._generated_licenses_set_iam_policy_sync.py | 53 + ...ated_licenses_test_iam_permissions_sync.py | 53 + ...v1_generated_machine_images_delete_sync.py | 53 + ...ated_machine_images_get_iam_policy_sync.py | 53 + ...te_v1_generated_machine_images_get_sync.py | 53 + ...v1_generated_machine_images_insert_sync.py | 52 + ...e_v1_generated_machine_images_list_sync.py | 53 + ...ated_machine_images_set_iam_policy_sync.py | 53 + ...achine_images_test_iam_permissions_sync.py | 53 + ...ated_machine_types_aggregated_list_sync.py | 53 + ...ute_v1_generated_machine_types_get_sync.py | 54 + ...te_v1_generated_machine_types_list_sync.py | 54 + ...etwork_attachments_aggregated_list_sync.py | 53 + ...nerated_network_attachments_delete_sync.py | 54 + ...network_attachments_get_iam_policy_sync.py | 54 + ..._generated_network_attachments_get_sync.py | 54 + ...nerated_network_attachments_insert_sync.py | 53 + ...generated_network_attachments_list_sync.py | 54 + ...network_attachments_set_iam_policy_sync.py | 54 + ...k_attachments_test_iam_permissions_sync.py | 54 + ..._security_services_aggregated_list_sync.py | 53 + ...work_edge_security_services_delete_sync.py | 54 + ...network_edge_security_services_get_sync.py | 54 + ...work_edge_security_services_insert_sync.py | 53 + ...twork_edge_security_services_patch_sync.py | 54 + ...rk_endpoint_groups_aggregated_list_sync.py | 53 + ...nt_groups_attach_network_endpoints_sync.py | 54 + ...ted_network_endpoint_groups_delete_sync.py | 54 + ...nt_groups_detach_network_endpoints_sync.py | 54 + ...erated_network_endpoint_groups_get_sync.py | 54 + ...ted_network_endpoint_groups_insert_sync.py | 53 + ...oint_groups_list_network_endpoints_sync.py | 55 + ...rated_network_endpoint_groups_list_sync.py | 54 + ...dpoint_groups_test_iam_permissions_sync.py | 54 + ..._firewall_policies_add_association_sync.py | 53 + ...network_firewall_policies_add_rule_sync.py | 53 + ...work_firewall_policies_clone_rules_sync.py | 53 + ...d_network_firewall_policies_delete_sync.py | 53 + ..._firewall_policies_get_association_sync.py | 53 + ...k_firewall_policies_get_iam_policy_sync.py | 53 + ...network_firewall_policies_get_rule_sync.py | 53 + ...ated_network_firewall_policies_get_sync.py | 53 + ...d_network_firewall_policies_insert_sync.py | 52 + ...ted_network_firewall_policies_list_sync.py | 53 + ...twork_firewall_policies_patch_rule_sync.py | 53 + ...ed_network_firewall_policies_patch_sync.py | 53 + ...rewall_policies_remove_association_sync.py | 53 + ...work_firewall_policies_remove_rule_sync.py | 53 + ...k_firewall_policies_set_iam_policy_sync.py | 53 + ...wall_policies_test_iam_permissions_sync.py | 53 + ..._v1_generated_networks_add_peering_sync.py | 53 + ...mpute_v1_generated_networks_delete_sync.py | 53 + ...d_networks_get_effective_firewalls_sync.py | 53 + .../compute_v1_generated_networks_get_sync.py | 53 + ...mpute_v1_generated_networks_insert_sync.py | 52 + ...rated_networks_list_peering_routes_sync.py | 54 + ...compute_v1_generated_networks_list_sync.py | 53 + ...ompute_v1_generated_networks_patch_sync.py | 53 + ..._generated_networks_remove_peering_sync.py | 53 + ...ted_networks_switch_to_custom_mode_sync.py | 53 + ..._generated_networks_update_peering_sync.py | 53 + ...v1_generated_node_groups_add_nodes_sync.py | 54 + ...erated_node_groups_aggregated_list_sync.py | 53 + ...generated_node_groups_delete_nodes_sync.py | 54 + ...te_v1_generated_node_groups_delete_sync.py | 54 + ...nerated_node_groups_get_iam_policy_sync.py | 54 + ...mpute_v1_generated_node_groups_get_sync.py | 54 + ...te_v1_generated_node_groups_insert_sync.py | 54 + ...1_generated_node_groups_list_nodes_sync.py | 55 + ...pute_v1_generated_node_groups_list_sync.py | 54 + ...ute_v1_generated_node_groups_patch_sync.py | 54 + ...nerated_node_groups_set_iam_policy_sync.py | 54 + ...ated_node_groups_set_node_template_sync.py | 54 + ..._groups_simulate_maintenance_event_sync.py | 54 + ...d_node_groups_test_iam_permissions_sync.py | 54 + ...ted_node_templates_aggregated_list_sync.py | 53 + ...v1_generated_node_templates_delete_sync.py | 54 + ...ated_node_templates_get_iam_policy_sync.py | 54 + ...te_v1_generated_node_templates_get_sync.py | 54 + ...v1_generated_node_templates_insert_sync.py | 53 + ...e_v1_generated_node_templates_list_sync.py | 54 + ...ated_node_templates_set_iam_policy_sync.py | 54 + ...ode_templates_test_iam_permissions_sync.py | 54 + ...nerated_node_types_aggregated_list_sync.py | 53 + ...ompute_v1_generated_node_types_get_sync.py | 54 + ...mpute_v1_generated_node_types_list_sync.py | 54 + ..._packet_mirrorings_aggregated_list_sync.py | 53 + ...generated_packet_mirrorings_delete_sync.py | 54 + ...v1_generated_packet_mirrorings_get_sync.py | 54 + ...generated_packet_mirrorings_insert_sync.py | 53 + ...1_generated_packet_mirrorings_list_sync.py | 54 + ..._generated_packet_mirrorings_patch_sync.py | 54 + ...et_mirrorings_test_iam_permissions_sync.py | 54 + ...enerated_projects_disable_xpn_host_sync.py | 52 + ...ated_projects_disable_xpn_resource_sync.py | 52 + ...generated_projects_enable_xpn_host_sync.py | 52 + ...rated_projects_enable_xpn_resource_sync.py | 52 + .../compute_v1_generated_projects_get_sync.py | 52 + ...v1_generated_projects_get_xpn_host_sync.py | 52 + ...nerated_projects_get_xpn_resources_sync.py | 53 + ..._generated_projects_list_xpn_hosts_sync.py | 53 + ...te_v1_generated_projects_move_disk_sync.py | 52 + ...1_generated_projects_move_instance_sync.py | 52 + ...jects_set_common_instance_metadata_sync.py | 52 + ..._projects_set_default_network_tier_sync.py | 52 + ...d_projects_set_usage_export_bucket_sync.py | 52 + ..._public_advertised_prefixes_delete_sync.py | 53 + ...ted_public_advertised_prefixes_get_sync.py | 53 + ..._public_advertised_prefixes_insert_sync.py | 52 + ...ed_public_advertised_prefixes_list_sync.py | 53 + ...d_public_advertised_prefixes_patch_sync.py | 53 + ...delegated_prefixes_aggregated_list_sync.py | 53 + ...d_public_delegated_prefixes_delete_sync.py | 54 + ...ated_public_delegated_prefixes_get_sync.py | 54 + ...d_public_delegated_prefixes_insert_sync.py | 53 + ...ted_public_delegated_prefixes_list_sync.py | 54 + ...ed_public_delegated_prefixes_patch_sync.py | 54 + ...enerated_region_autoscalers_delete_sync.py | 54 + ...1_generated_region_autoscalers_get_sync.py | 54 + ...enerated_region_autoscalers_insert_sync.py | 53 + ..._generated_region_autoscalers_list_sync.py | 54 + ...generated_region_autoscalers_patch_sync.py | 53 + ...enerated_region_autoscalers_update_sync.py | 53 + ...ted_region_backend_services_delete_sync.py | 54 + ...region_backend_services_get_health_sync.py | 54 + ...on_backend_services_get_iam_policy_sync.py | 54 + ...erated_region_backend_services_get_sync.py | 54 + ...ted_region_backend_services_insert_sync.py | 53 + ...rated_region_backend_services_list_sync.py | 54 + ...ated_region_backend_services_patch_sync.py | 54 + ...on_backend_services_set_iam_policy_sync.py | 54 + ...ted_region_backend_services_update_sync.py | 54 + ...region_commitments_aggregated_list_sync.py | 53 + ...1_generated_region_commitments_get_sync.py | 54 + ...enerated_region_commitments_insert_sync.py | 53 + ..._generated_region_commitments_list_sync.py | 54 + ...enerated_region_commitments_update_sync.py | 54 + ...v1_generated_region_disk_types_get_sync.py | 54 + ...1_generated_region_disk_types_list_sync.py | 54 + ...region_disks_add_resource_policies_sync.py | 54 + ...generated_region_disks_bulk_insert_sync.py | 53 + ...rated_region_disks_create_snapshot_sync.py | 54 + ...e_v1_generated_region_disks_delete_sync.py | 54 + ...erated_region_disks_get_iam_policy_sync.py | 54 + ...pute_v1_generated_region_disks_get_sync.py | 54 + ...e_v1_generated_region_disks_insert_sync.py | 53 + ...ute_v1_generated_region_disks_list_sync.py | 54 + ...ion_disks_remove_resource_policies_sync.py | 54 + ...e_v1_generated_region_disks_resize_sync.py | 54 + ...erated_region_disks_set_iam_policy_sync.py | 54 + ..._generated_region_disks_set_labels_sync.py | 54 + ...gion_disks_start_async_replication_sync.py | 54 + ...egion_disks_stop_async_replication_sync.py | 54 + ...disks_stop_group_async_replication_sync.py | 53 + ..._region_disks_test_iam_permissions_sync.py | 54 + ...e_v1_generated_region_disks_update_sync.py | 54 + ...egion_health_check_services_delete_sync.py | 54 + ...d_region_health_check_services_get_sync.py | 54 + ...egion_health_check_services_insert_sync.py | 53 + ..._region_health_check_services_list_sync.py | 54 + ...region_health_check_services_patch_sync.py | 54 + ...erated_region_health_checks_delete_sync.py | 54 + ...generated_region_health_checks_get_sync.py | 54 + ...erated_region_health_checks_insert_sync.py | 53 + ...enerated_region_health_checks_list_sync.py | 54 + ...nerated_region_health_checks_patch_sync.py | 54 + ...erated_region_health_checks_update_sync.py | 54 + ...e_group_managers_abandon_instances_sync.py | 54 + ...anagers_apply_updates_to_instances_sync.py | 54 + ...ce_group_managers_create_instances_sync.py | 54 + ...ce_group_managers_delete_instances_sync.py | 54 + ...nagers_delete_per_instance_configs_sync.py | 54 + ...ion_instance_group_managers_delete_sync.py | 54 + ...region_instance_group_managers_get_sync.py | 54 + ...ion_instance_group_managers_insert_sync.py | 53 + ...nstance_group_managers_list_errors_sync.py | 55 + ...up_managers_list_managed_instances_sync.py | 55 + ...managers_list_per_instance_configs_sync.py | 55 + ...egion_instance_group_managers_list_sync.py | 54 + ...anagers_patch_per_instance_configs_sync.py | 54 + ...gion_instance_group_managers_patch_sync.py | 54 + ..._group_managers_recreate_instances_sync.py | 54 + ...ion_instance_group_managers_resize_sync.py | 55 + ...oup_managers_set_instance_template_sync.py | 54 + ...ce_group_managers_set_target_pools_sync.py | 54 + ...nagers_update_per_instance_configs_sync.py | 54 + ...nerated_region_instance_groups_get_sync.py | 54 + ...ion_instance_groups_list_instances_sync.py | 55 + ...erated_region_instance_groups_list_sync.py | 54 + ...on_instance_groups_set_named_ports_sync.py | 54 + ...d_region_instance_templates_delete_sync.py | 54 + ...ated_region_instance_templates_get_sync.py | 54 + ...d_region_instance_templates_insert_sync.py | 53 + ...ted_region_instance_templates_list_sync.py | 54 + ...rated_region_instances_bulk_insert_sync.py | 53 + ...ion_network_endpoint_groups_delete_sync.py | 54 + ...region_network_endpoint_groups_get_sync.py | 54 + ...ion_network_endpoint_groups_insert_sync.py | 53 + ...egion_network_endpoint_groups_list_sync.py | 54 + ..._firewall_policies_add_association_sync.py | 54 + ...network_firewall_policies_add_rule_sync.py | 54 + ...work_firewall_policies_clone_rules_sync.py | 54 + ...n_network_firewall_policies_delete_sync.py | 54 + ..._firewall_policies_get_association_sync.py | 54 + ...l_policies_get_effective_firewalls_sync.py | 54 + ...k_firewall_policies_get_iam_policy_sync.py | 54 + ...network_firewall_policies_get_rule_sync.py | 54 + ...gion_network_firewall_policies_get_sync.py | 54 + ...n_network_firewall_policies_insert_sync.py | 53 + ...ion_network_firewall_policies_list_sync.py | 54 + ...twork_firewall_policies_patch_rule_sync.py | 54 + ...on_network_firewall_policies_patch_sync.py | 54 + ...rewall_policies_remove_association_sync.py | 54 + ...work_firewall_policies_remove_rule_sync.py | 54 + ...k_firewall_policies_set_iam_policy_sync.py | 54 + ...wall_policies_test_iam_permissions_sync.py | 54 + ...gion_notification_endpoints_delete_sync.py | 54 + ..._region_notification_endpoints_get_sync.py | 54 + ...gion_notification_endpoints_insert_sync.py | 53 + ...region_notification_endpoints_list_sync.py | 54 + ...generated_region_operations_delete_sync.py | 54 + ...v1_generated_region_operations_get_sync.py | 54 + ...1_generated_region_operations_list_sync.py | 54 + ...1_generated_region_operations_wait_sync.py | 54 + ...ed_region_security_policies_delete_sync.py | 54 + ...rated_region_security_policies_get_sync.py | 54 + ...ed_region_security_policies_insert_sync.py | 53 + ...ated_region_security_policies_list_sync.py | 54 + ...ted_region_security_policies_patch_sync.py | 54 + ...ted_region_ssl_certificates_delete_sync.py | 54 + ...erated_region_ssl_certificates_get_sync.py | 54 + ...ted_region_ssl_certificates_insert_sync.py | 53 + ...rated_region_ssl_certificates_list_sync.py | 54 + ...nerated_region_ssl_policies_delete_sync.py | 54 + ..._generated_region_ssl_policies_get_sync.py | 54 + ...nerated_region_ssl_policies_insert_sync.py | 53 + ...l_policies_list_available_features_sync.py | 53 + ...generated_region_ssl_policies_list_sync.py | 54 + ...enerated_region_ssl_policies_patch_sync.py | 54 + ..._region_target_http_proxies_delete_sync.py | 54 + ...ted_region_target_http_proxies_get_sync.py | 54 + ..._region_target_http_proxies_insert_sync.py | 53 + ...ed_region_target_http_proxies_list_sync.py | 54 + ...on_target_http_proxies_set_url_map_sync.py | 54 + ...region_target_https_proxies_delete_sync.py | 54 + ...ed_region_target_https_proxies_get_sync.py | 54 + ...region_target_https_proxies_insert_sync.py | 53 + ...d_region_target_https_proxies_list_sync.py | 54 + ..._region_target_https_proxies_patch_sync.py | 54 + ...https_proxies_set_ssl_certificates_sync.py | 54 + ...n_target_https_proxies_set_url_map_sync.py | 54 + ...d_region_target_tcp_proxies_delete_sync.py | 54 + ...ated_region_target_tcp_proxies_get_sync.py | 54 + ...d_region_target_tcp_proxies_insert_sync.py | 53 + ...ted_region_target_tcp_proxies_list_sync.py | 54 + ...1_generated_region_url_maps_delete_sync.py | 54 + ...e_v1_generated_region_url_maps_get_sync.py | 54 + ...1_generated_region_url_maps_insert_sync.py | 53 + ..._v1_generated_region_url_maps_list_sync.py | 54 + ...v1_generated_region_url_maps_patch_sync.py | 54 + ...1_generated_region_url_maps_update_sync.py | 54 + ...generated_region_url_maps_validate_sync.py | 54 + .../compute_v1_generated_regions_get_sync.py | 53 + .../compute_v1_generated_regions_list_sync.py | 53 + ...rated_reservations_aggregated_list_sync.py | 53 + ...e_v1_generated_reservations_delete_sync.py | 54 + ...erated_reservations_get_iam_policy_sync.py | 54 + ...pute_v1_generated_reservations_get_sync.py | 54 + ...e_v1_generated_reservations_insert_sync.py | 53 + ...ute_v1_generated_reservations_list_sync.py | 54 + ...e_v1_generated_reservations_resize_sync.py | 54 + ...erated_reservations_set_iam_policy_sync.py | 54 + ..._reservations_test_iam_permissions_sync.py | 54 + ...e_v1_generated_reservations_update_sync.py | 54 + ..._resource_policies_aggregated_list_sync.py | 53 + ...generated_resource_policies_delete_sync.py | 54 + ...d_resource_policies_get_iam_policy_sync.py | 54 + ...v1_generated_resource_policies_get_sync.py | 54 + ...generated_resource_policies_insert_sync.py | 53 + ...1_generated_resource_policies_list_sync.py | 54 + ...d_resource_policies_set_iam_policy_sync.py | 54 + ...urce_policies_test_iam_permissions_sync.py | 54 + ..._generated_routers_aggregated_list_sync.py | 53 + ...ompute_v1_generated_routers_delete_sync.py | 54 + ...rated_routers_get_nat_mapping_info_sync.py | 55 + ...enerated_routers_get_router_status_sync.py | 54 + .../compute_v1_generated_routers_get_sync.py | 54 + ...ompute_v1_generated_routers_insert_sync.py | 53 + .../compute_v1_generated_routers_list_sync.py | 54 + ...compute_v1_generated_routers_patch_sync.py | 54 + ...mpute_v1_generated_routers_preview_sync.py | 54 + ...ompute_v1_generated_routers_update_sync.py | 54 + ...compute_v1_generated_routes_delete_sync.py | 53 + .../compute_v1_generated_routes_get_sync.py | 53 + ...compute_v1_generated_routes_insert_sync.py | 52 + .../compute_v1_generated_routes_list_sync.py | 53 + ...nerated_security_policies_add_rule_sync.py | 53 + ..._security_policies_aggregated_list_sync.py | 53 + ...generated_security_policies_delete_sync.py | 53 + ...nerated_security_policies_get_rule_sync.py | 53 + ...v1_generated_security_policies_get_sync.py | 53 + ...generated_security_policies_insert_sync.py | 52 + ...list_preconfigured_expression_sets_sync.py | 52 + ...1_generated_security_policies_list_sync.py | 53 + ...rated_security_policies_patch_rule_sync.py | 53 + ..._generated_security_policies_patch_sync.py | 53 + ...ated_security_policies_remove_rule_sync.py | 53 + ...rated_security_policies_set_labels_sync.py | 53 + ...ervice_attachments_aggregated_list_sync.py | 53 + ...nerated_service_attachments_delete_sync.py | 54 + ...service_attachments_get_iam_policy_sync.py | 54 + ..._generated_service_attachments_get_sync.py | 54 + ...nerated_service_attachments_insert_sync.py | 53 + ...generated_service_attachments_list_sync.py | 54 + ...enerated_service_attachments_patch_sync.py | 54 + ...service_attachments_set_iam_policy_sync.py | 54 + ...e_attachments_test_iam_permissions_sync.py | 54 + ...pute_v1_generated_snapshots_delete_sync.py | 53 + ...generated_snapshots_get_iam_policy_sync.py | 53 + ...compute_v1_generated_snapshots_get_sync.py | 53 + ...pute_v1_generated_snapshots_insert_sync.py | 52 + ...ompute_v1_generated_snapshots_list_sync.py | 53 + ...generated_snapshots_set_iam_policy_sync.py | 53 + ..._v1_generated_snapshots_set_labels_sync.py | 53 + ...ted_snapshots_test_iam_permissions_sync.py | 53 + ...d_ssl_certificates_aggregated_list_sync.py | 53 + ..._generated_ssl_certificates_delete_sync.py | 53 + ..._v1_generated_ssl_certificates_get_sync.py | 53 + ..._generated_ssl_certificates_insert_sync.py | 52 + ...v1_generated_ssl_certificates_list_sync.py | 53 + ...rated_ssl_policies_aggregated_list_sync.py | 53 + ...e_v1_generated_ssl_policies_delete_sync.py | 53 + ...pute_v1_generated_ssl_policies_get_sync.py | 53 + ...e_v1_generated_ssl_policies_insert_sync.py | 52 + ...l_policies_list_available_features_sync.py | 52 + ...ute_v1_generated_ssl_policies_list_sync.py | 53 + ...te_v1_generated_ssl_policies_patch_sync.py | 53 + ...erated_subnetworks_aggregated_list_sync.py | 53 + ...te_v1_generated_subnetworks_delete_sync.py | 54 + ...d_subnetworks_expand_ip_cidr_range_sync.py | 54 + ...nerated_subnetworks_get_iam_policy_sync.py | 54 + ...mpute_v1_generated_subnetworks_get_sync.py | 54 + ...te_v1_generated_subnetworks_insert_sync.py | 53 + ...pute_v1_generated_subnetworks_list_sync.py | 54 + ..._generated_subnetworks_list_usable_sync.py | 53 + ...ute_v1_generated_subnetworks_patch_sync.py | 54 + ...nerated_subnetworks_set_iam_policy_sync.py | 54 + ...works_set_private_ip_google_access_sync.py | 54 + ...d_subnetworks_test_iam_permissions_sync.py | 54 + ...nerated_target_grpc_proxies_delete_sync.py | 53 + ..._generated_target_grpc_proxies_get_sync.py | 53 + ...nerated_target_grpc_proxies_insert_sync.py | 52 + ...generated_target_grpc_proxies_list_sync.py | 53 + ...enerated_target_grpc_proxies_patch_sync.py | 53 + ...arget_http_proxies_aggregated_list_sync.py | 53 + ...nerated_target_http_proxies_delete_sync.py | 53 + ..._generated_target_http_proxies_get_sync.py | 53 + ...nerated_target_http_proxies_insert_sync.py | 52 + ...generated_target_http_proxies_list_sync.py | 53 + ...enerated_target_http_proxies_patch_sync.py | 53 + ...ed_target_http_proxies_set_url_map_sync.py | 53 + ...rget_https_proxies_aggregated_list_sync.py | 53 + ...erated_target_https_proxies_delete_sync.py | 53 + ...generated_target_https_proxies_get_sync.py | 53 + ...erated_target_https_proxies_insert_sync.py | 52 + ...enerated_target_https_proxies_list_sync.py | 53 + ...nerated_target_https_proxies_patch_sync.py | 53 + ..._https_proxies_set_certificate_map_sync.py | 53 + ...et_https_proxies_set_quic_override_sync.py | 53 + ...https_proxies_set_ssl_certificates_sync.py | 53 + ...arget_https_proxies_set_ssl_policy_sync.py | 53 + ...d_target_https_proxies_set_url_map_sync.py | 53 + ...d_target_instances_aggregated_list_sync.py | 53 + ..._generated_target_instances_delete_sync.py | 54 + ..._v1_generated_target_instances_get_sync.py | 54 + ..._generated_target_instances_insert_sync.py | 53 + ...v1_generated_target_instances_list_sync.py | 54 + ...ated_target_pools_add_health_check_sync.py | 54 + ...enerated_target_pools_add_instance_sync.py | 54 + ...rated_target_pools_aggregated_list_sync.py | 53 + ...e_v1_generated_target_pools_delete_sync.py | 54 + ..._generated_target_pools_get_health_sync.py | 54 + ...pute_v1_generated_target_pools_get_sync.py | 54 + ...e_v1_generated_target_pools_insert_sync.py | 53 + ...ute_v1_generated_target_pools_list_sync.py | 54 + ...d_target_pools_remove_health_check_sync.py | 54 + ...rated_target_pools_remove_instance_sync.py | 54 + ..._generated_target_pools_set_backup_sync.py | 54 + ...enerated_target_ssl_proxies_delete_sync.py | 53 + ...1_generated_target_ssl_proxies_get_sync.py | 53 + ...enerated_target_ssl_proxies_insert_sync.py | 52 + ..._generated_target_ssl_proxies_list_sync.py | 53 + ...et_ssl_proxies_set_backend_service_sync.py | 53 + ...et_ssl_proxies_set_certificate_map_sync.py | 53 + ...arget_ssl_proxies_set_proxy_header_sync.py | 53 + ...t_ssl_proxies_set_ssl_certificates_sync.py | 53 + ..._target_ssl_proxies_set_ssl_policy_sync.py | 53 + ...target_tcp_proxies_aggregated_list_sync.py | 53 + ...enerated_target_tcp_proxies_delete_sync.py | 53 + ...1_generated_target_tcp_proxies_get_sync.py | 53 + ...enerated_target_tcp_proxies_insert_sync.py | 52 + ..._generated_target_tcp_proxies_list_sync.py | 53 + ...et_tcp_proxies_set_backend_service_sync.py | 53 + ...arget_tcp_proxies_set_proxy_header_sync.py | 53 + ...arget_vpn_gateways_aggregated_list_sync.py | 53 + ...nerated_target_vpn_gateways_delete_sync.py | 54 + ..._generated_target_vpn_gateways_get_sync.py | 54 + ...nerated_target_vpn_gateways_insert_sync.py | 53 + ...generated_target_vpn_gateways_list_sync.py | 54 + ...ted_target_vpn_gateways_set_labels_sync.py | 54 + ...generated_url_maps_aggregated_list_sync.py | 53 + ...mpute_v1_generated_url_maps_delete_sync.py | 53 + .../compute_v1_generated_url_maps_get_sync.py | 53 + ...mpute_v1_generated_url_maps_insert_sync.py | 52 + ...enerated_url_maps_invalidate_cache_sync.py | 53 + ...compute_v1_generated_url_maps_list_sync.py | 53 + ...ompute_v1_generated_url_maps_patch_sync.py | 53 + ...mpute_v1_generated_url_maps_update_sync.py | 53 + ...ute_v1_generated_url_maps_validate_sync.py | 53 + ...rated_vpn_gateways_aggregated_list_sync.py | 53 + ...e_v1_generated_vpn_gateways_delete_sync.py | 54 + ..._generated_vpn_gateways_get_status_sync.py | 54 + ...pute_v1_generated_vpn_gateways_get_sync.py | 54 + ...e_v1_generated_vpn_gateways_insert_sync.py | 53 + ...ute_v1_generated_vpn_gateways_list_sync.py | 54 + ..._generated_vpn_gateways_set_labels_sync.py | 54 + ..._vpn_gateways_test_iam_permissions_sync.py | 54 + ...erated_vpn_tunnels_aggregated_list_sync.py | 53 + ...te_v1_generated_vpn_tunnels_delete_sync.py | 54 + ...mpute_v1_generated_vpn_tunnels_get_sync.py | 54 + ...te_v1_generated_vpn_tunnels_insert_sync.py | 53 + ...pute_v1_generated_vpn_tunnels_list_sync.py | 54 + ...1_generated_vpn_tunnels_set_labels_sync.py | 54 + ...1_generated_zone_operations_delete_sync.py | 54 + ...e_v1_generated_zone_operations_get_sync.py | 54 + ..._v1_generated_zone_operations_list_sync.py | 54 + ..._v1_generated_zone_operations_wait_sync.py | 54 + .../compute_v1_generated_zones_get_sync.py | 53 + .../compute_v1_generated_zones_list_sync.py | 53 + ...ppet_metadata_google.cloud.compute.v1.json | 60575 ++++++++++++++++ 789 files changed, 127048 insertions(+) create mode 100644 samples/generated_samples/compute_v1_generated_accelerator_types_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_accelerator_types_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_accelerator_types_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_move_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_addresses_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_autoscalers_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_add_signed_url_key_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_delete_signed_url_key_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_set_edge_security_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_buckets_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_add_signed_url_key_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_delete_signed_url_key_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_get_health_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_set_edge_security_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_set_security_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_backend_services_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disk_types_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disk_types_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disk_types_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_add_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_bulk_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_create_snapshot_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_remove_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_resize_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_start_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_stop_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_stop_group_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_disks_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_add_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_add_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_clone_rules_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_get_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_get_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_list_associations_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_move_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_patch_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_remove_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_remove_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewall_policies_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_firewalls_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_forwarding_rules_set_target_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_move_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_addresses_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_target_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_operations_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_operations_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_operations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_operations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_operations_wait_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_organization_operations_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_organization_operations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_organization_operations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_health_checks_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_image_family_views_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_deprecate_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_get_from_family_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_images_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_abandon_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_create_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_delete_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_list_errors_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_list_managed_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_recreate_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_resize_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_set_instance_template_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_set_target_pools_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_add_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_list_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_remove_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_groups_set_named_ports_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instance_templates_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_add_access_config_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_add_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_attach_disk_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_bulk_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_delete_access_config_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_detach_disk_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_effective_firewalls_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_guest_attributes_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_screenshot_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_serial_port_output_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_shielded_instance_identity_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_list_referrers_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_remove_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_reset_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_resume_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_send_diagnostic_interrupt_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_deletion_protection_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_disk_auto_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_machine_resources_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_machine_type_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_metadata_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_min_cpu_platform_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_name_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_scheduling_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_service_account_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_set_tags_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_simulate_maintenance_event_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_start_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_start_with_encryption_key_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_stop_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_suspend_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_update_access_config_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_update_display_device_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_update_network_interface_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_update_shielded_instance_config_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_instances_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_attachments_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_locations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_locations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_remote_locations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnect_remote_locations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_get_diagnostics_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_interconnects_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_license_codes_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_license_codes_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_licenses_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_images_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_types_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_types_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_machine_types_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_attachments_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_edge_security_services_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_edge_security_services_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_edge_security_services_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_edge_security_services_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_edge_security_services_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_add_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_add_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_clone_rules_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_get_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_get_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_add_peering_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_get_effective_firewalls_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_list_peering_routes_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_remove_peering_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_switch_to_custom_mode_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_networks_update_peering_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_add_nodes_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_delete_nodes_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_list_nodes_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_set_node_template_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_simulate_maintenance_event_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_groups_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_templates_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_types_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_types_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_node_types_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_disable_xpn_host_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_disable_xpn_resource_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_enable_xpn_host_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_enable_xpn_resource_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_get_xpn_host_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_get_xpn_resources_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_list_xpn_hosts_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_move_disk_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_move_instance_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_set_common_instance_metadata_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_set_default_network_tier_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_projects_set_usage_export_bucket_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_advertised_prefixes_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_advertised_prefixes_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_advertised_prefixes_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_advertised_prefixes_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_advertised_prefixes_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_public_delegated_prefixes_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_autoscalers_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_get_health_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_backend_services_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_commitments_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_commitments_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_commitments_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_commitments_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_commitments_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disk_types_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disk_types_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_add_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_bulk_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_create_snapshot_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_remove_resource_policies_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_resize_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_start_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_stop_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_stop_group_async_replication_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_disks_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_check_services_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_check_services_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_check_services_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_check_services_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_check_services_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_health_checks_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_create_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_errors_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_resize_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_groups_list_instances_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_groups_set_named_ports_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_templates_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_templates_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_templates_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instance_templates_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_instances_bulk_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_association_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_notification_endpoints_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_notification_endpoints_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_notification_endpoints_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_notification_endpoints_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_operations_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_operations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_operations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_operations_wait_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_security_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_security_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_security_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_security_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_security_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_certificates_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_certificates_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_certificates_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_certificates_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_list_available_features_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_ssl_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_http_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_http_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_http_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_http_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_http_proxies_set_url_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_url_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_region_url_maps_validate_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_regions_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_regions_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_resize_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_reservations_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_resource_policies_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_get_nat_mapping_info_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_get_router_status_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_preview_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routers_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routes_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routes_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routes_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_routes_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_add_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_get_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_list_preconfigured_expression_sets_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_patch_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_remove_rule_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_security_policies_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_service_attachments_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_snapshots_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_certificates_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_certificates_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_certificates_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_certificates_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_certificates_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_list_available_features_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_ssl_policies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_expand_ip_cidr_range_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_get_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_list_usable_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_set_iam_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_set_private_ip_google_access_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_subnetworks_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_grpc_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_grpc_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_grpc_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_grpc_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_grpc_proxies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_http_proxies_set_url_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_set_certificate_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_set_quic_override_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_certificates_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_https_proxies_set_url_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_instances_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_instances_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_instances_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_instances_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_instances_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_add_health_check_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_add_instance_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_get_health_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_remove_health_check_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_remove_instance_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_pools_set_backup_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_backend_service_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_certificate_map_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_proxy_header_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_certificates_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_policy_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_backend_service_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_proxy_header_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_target_vpn_gateways_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_invalidate_cache_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_patch_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_update_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_url_maps_validate_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_get_status_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_aggregated_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_insert_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_vpn_tunnels_set_labels_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zone_operations_delete_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zone_operations_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zone_operations_list_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zone_operations_wait_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zones_get_sync.py create mode 100644 samples/generated_samples/compute_v1_generated_zones_list_sync.py create mode 100644 samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json diff --git a/google/cloud/compute_v1/services/accelerator_types/client.py b/google/cloud/compute_v1/services/accelerator_types/client.py index da7acdf9d..3d627acab 100644 --- a/google/cloud/compute_v1/services/accelerator_types/client.py +++ b/google/cloud/compute_v1/services/accelerator_types/client.py @@ -435,6 +435,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of accelerator types. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAcceleratorTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListAcceleratorTypesRequest, dict]): The request object. A request message for @@ -522,6 +549,34 @@ def get( ) -> compute.AcceleratorType: r"""Returns the specified accelerator type. + .. 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(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetAcceleratorTypeRequest( + accelerator_type="accelerator_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAcceleratorTypeRequest, dict]): The request object. A request message for @@ -629,6 +684,34 @@ def list( r"""Retrieves a list of accelerator types that are available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListAcceleratorTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAcceleratorTypesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/addresses/client.py b/google/cloud/compute_v1/services/addresses/client.py index 541e29bd2..c517bbe11 100644 --- a/google/cloud/compute_v1/services/addresses/client.py +++ b/google/cloud/compute_v1/services/addresses/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of addresses. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAddressesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListAddressesRequest, dict]): The request object. A request message for @@ -519,6 +546,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified address 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_delete(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAddressRequest, dict]): The request object. A request message for @@ -618,6 +673,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified address 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_delete(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAddressRequest, dict]): The request object. A request message for @@ -742,6 +825,34 @@ def get( ) -> compute.Address: r"""Returns the specified address 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_get(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.GetAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAddressRequest, dict]): The request object. A request message for Addresses.Get. @@ -846,6 +957,33 @@ def insert_unary( r"""Creates an address resource in the specified project by using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertAddressRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertAddressRequest, dict]): The request object. A request message for @@ -943,6 +1081,33 @@ def insert( r"""Creates an address resource in the specified project by using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertAddressRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertAddressRequest, dict]): The request object. A request message for @@ -1064,6 +1229,34 @@ def list( r"""Retrieves a list of addresses contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.ListAddressesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAddressesRequest, dict]): The request object. A request message for Addresses.List. @@ -1166,6 +1359,34 @@ def move_unary( ) -> compute.Operation: r"""Moves the specified address 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_move(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveAddressRequest, dict]): The request object. A request message for Addresses.Move. @@ -1278,6 +1499,34 @@ def move( ) -> extended_operation.ExtendedOperation: r"""Moves the specified address 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_move(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveAddressRequest, dict]): The request object. A request message for Addresses.Move. @@ -1416,6 +1665,34 @@ def set_labels_unary( r"""Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsAddressRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsAddressRequest, dict]): The request object. A request message for @@ -1530,6 +1807,34 @@ def set_labels( r"""Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsAddressRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsAddressRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/autoscalers/client.py b/google/cloud/compute_v1/services/autoscalers/client.py index 6102ea21c..edf305a99 100644 --- a/google/cloud/compute_v1/services/autoscalers/client.py +++ b/google/cloud/compute_v1/services/autoscalers/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of autoscalers. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAutoscalersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListAutoscalersRequest, dict]): The request object. A request message for @@ -519,6 +546,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified autoscaler. + .. 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_delete(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAutoscalerRequest, dict]): The request object. A request message for @@ -616,6 +671,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified autoscaler. + .. 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_delete(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAutoscalerRequest, dict]): The request object. A request message for @@ -738,6 +821,34 @@ def get( ) -> compute.Autoscaler: r"""Returns the specified autoscaler 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_get(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.GetAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAutoscalerRequest, dict]): The request object. A request message for @@ -845,6 +956,33 @@ def insert_unary( r"""Creates an autoscaler in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertAutoscalerRequest, dict]): The request object. A request message for @@ -942,6 +1080,33 @@ def insert( r"""Creates an autoscaler in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertAutoscalerRequest, dict]): The request object. A request message for @@ -1063,6 +1228,34 @@ def list( r"""Retrieves a list of autoscalers contained within the specified zone. + .. 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_list(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.ListAutoscalersRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAutoscalersRequest, dict]): The request object. A request message for @@ -1167,6 +1360,33 @@ def patch_unary( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchAutoscalerRequest, dict]): The request object. A request message for @@ -1266,6 +1486,33 @@ def patch( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchAutoscalerRequest, dict]): The request object. A request message for @@ -1388,6 +1635,33 @@ def update_unary( r"""Updates an autoscaler in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateAutoscalerRequest, dict]): The request object. A request message for @@ -1485,6 +1759,33 @@ def update( r"""Updates an autoscaler in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateAutoscalerRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/backend_buckets/client.py b/google/cloud/compute_v1/services/backend_buckets/client.py index d1e1969d1..1dee819d1 100644 --- a/google/cloud/compute_v1/services/backend_buckets/client.py +++ b/google/cloud/compute_v1/services/backend_buckets/client.py @@ -439,6 +439,33 @@ def add_signed_url_key_unary( r"""Adds a key for validating requests with signed URLs for this backend bucket. + .. 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_add_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for @@ -542,6 +569,33 @@ def add_signed_url_key( r"""Adds a key for validating requests with signed URLs for this backend bucket. + .. 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_add_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for @@ -665,6 +719,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified BackendBucket 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_delete(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteBackendBucketRequest, dict]): The request object. A request message for @@ -755,6 +836,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified BackendBucket 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_delete(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteBackendBucketRequest, dict]): The request object. A request message for @@ -873,6 +981,34 @@ def delete_signed_url_key_unary( r"""Deletes a key for validating requests with signed URLs for this backend bucket. + .. 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_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for @@ -978,6 +1114,34 @@ def delete_signed_url_key( r"""Deletes a key for validating requests with signed URLs for this backend bucket. + .. 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_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendBucketRequest, dict]): The request object. A request message for @@ -1103,6 +1267,33 @@ def get( ) -> compute.BackendBucket: r"""Returns the specified BackendBucket 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_get(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.GetBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetBackendBucketRequest, dict]): The request object. A request message for @@ -1197,6 +1388,32 @@ def insert_unary( r"""Creates a BackendBucket resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendBucketRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertBackendBucketRequest, dict]): The request object. A request message for @@ -1281,6 +1498,32 @@ def insert( r"""Creates a BackendBucket resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendBucketRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertBackendBucketRequest, dict]): The request object. A request message for @@ -1388,6 +1631,33 @@ def list( r"""Retrieves the list of BackendBucket resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.ListBackendBucketsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListBackendBucketsRequest, dict]): The request object. A request message for @@ -1480,6 +1750,33 @@ def patch_unary( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchBackendBucketRequest, dict]): The request object. A request message for @@ -1581,6 +1878,33 @@ def patch( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchBackendBucketRequest, dict]): The request object. A request message for @@ -1708,6 +2032,33 @@ def set_edge_security_policy_unary( r"""Sets the edge security policy for the specified backend bucket. + .. 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_edge_security_policy(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendBucketRequest, dict]): The request object. A request message for @@ -1816,6 +2167,33 @@ def set_edge_security_policy( r"""Sets the edge security policy for the specified backend bucket. + .. 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_edge_security_policy(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendBucketRequest, dict]): The request object. A request message for @@ -1944,6 +2322,33 @@ def update_unary( r"""Updates the specified BackendBucket resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateBackendBucketRequest, dict]): The request object. A request message for @@ -2043,6 +2448,33 @@ def update( r"""Updates the specified BackendBucket resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateBackendBucketRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/backend_services/client.py b/google/cloud/compute_v1/services/backend_services/client.py index 05b5bd2ce..ae8a69053 100644 --- a/google/cloud/compute_v1/services/backend_services/client.py +++ b/google/cloud/compute_v1/services/backend_services/client.py @@ -439,6 +439,33 @@ def add_signed_url_key_unary( r"""Adds a key for validating requests with signed URLs for this backend service. + .. 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_add_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for @@ -542,6 +569,33 @@ def add_signed_url_key( r"""Adds a key for validating requests with signed URLs for this backend service. + .. 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_add_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for @@ -667,6 +721,33 @@ def aggregated_list( r"""Retrieves the list of all BackendService resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListBackendServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListBackendServicesRequest, dict]): The request object. A request message for @@ -757,6 +838,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified BackendService 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_delete(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteBackendServiceRequest, dict]): The request object. A request message for @@ -847,6 +955,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified BackendService 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_delete(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteBackendServiceRequest, dict]): The request object. A request message for @@ -965,6 +1100,34 @@ def delete_signed_url_key_unary( r"""Deletes a key for validating requests with signed URLs for this backend service. + .. 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_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for @@ -1070,6 +1233,34 @@ def delete_signed_url_key( r"""Deletes a key for validating requests with signed URLs for this backend service. + .. 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_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendServiceRequest, dict]): The request object. A request message for @@ -1195,6 +1386,33 @@ def get( ) -> compute.BackendService: r"""Returns the specified BackendService 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_get(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetBackendServiceRequest, dict]): The request object. A request message for @@ -1303,6 +1521,33 @@ def get_health( BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } + .. 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_health(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetHealthBackendServiceRequest, dict]): The request object. A request message for @@ -1405,6 +1650,33 @@ def get_iam_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.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyBackendServiceRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -1535,6 +1807,32 @@ def insert_unary( project using the data included in the request. For more information, see Backend services overview . + .. 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_insert(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendServiceRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertBackendServiceRequest, dict]): The request object. A request message for @@ -1620,6 +1918,32 @@ def insert( project using the data included in the request. For more information, see Backend services overview . + .. 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_insert(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendServiceRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertBackendServiceRequest, dict]): The request object. A request message for @@ -1727,6 +2051,33 @@ def list( r"""Retrieves the list of BackendService resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListBackendServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListBackendServicesRequest, dict]): The request object. A request message for @@ -1820,6 +2171,33 @@ def patch_unary( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchBackendServiceRequest, dict]): The request object. A request message for @@ -1922,6 +2300,33 @@ def patch( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchBackendServiceRequest, dict]): The request object. A request message for @@ -2049,6 +2454,33 @@ def set_edge_security_policy_unary( r"""Sets the edge security policy for the specified backend service. + .. 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_edge_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -2158,6 +2590,33 @@ def set_edge_security_policy( r"""Sets the edge security policy for the specified backend service. + .. 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_edge_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -2291,6 +2750,33 @@ def set_iam_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.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyBackendServiceRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -2437,6 +2923,33 @@ def set_security_policy_unary( specified backend service. For more information, see Google Cloud Armor Overview + .. 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_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -2546,6 +3059,33 @@ def set_security_policy( specified backend service. For more information, see Google Cloud Armor Overview + .. 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_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_security_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSecurityPolicyBackendServiceRequest, dict]): The request object. A request message for @@ -2675,6 +3215,33 @@ def update_unary( the data included in the request. For more information, see Backend services overview. + .. 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_update(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateBackendServiceRequest, dict]): The request object. A request message for @@ -2775,6 +3342,33 @@ def update( the data included in the request. For more information, see Backend services overview. + .. 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_update(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateBackendServiceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/disk_types/client.py b/google/cloud/compute_v1/services/disk_types/client.py index 70befc08b..e3144e910 100644 --- a/google/cloud/compute_v1/services/disk_types/client.py +++ b/google/cloud/compute_v1/services/disk_types/client.py @@ -429,6 +429,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of disk types. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListDiskTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListDiskTypesRequest, dict]): The request object. A request message for @@ -516,6 +543,34 @@ def get( ) -> compute.DiskType: r"""Returns the specified disk type. + .. 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(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetDiskTypeRequest( + disk_type="disk_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetDiskTypeRequest, dict]): The request object. A request message for DiskTypes.Get. @@ -623,6 +678,34 @@ def list( r"""Retrieves a list of disk types available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListDiskTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListDiskTypesRequest, dict]): The request object. A request message for DiskTypes.List. diff --git a/google/cloud/compute_v1/services/disks/client.py b/google/cloud/compute_v1/services/disks/client.py index 41bc311b0..d49478acf 100644 --- a/google/cloud/compute_v1/services/disks/client.py +++ b/google/cloud/compute_v1/services/disks/client.py @@ -439,6 +439,34 @@ def add_resource_policies_unary( only add one policy which will be applied to this disk for scheduling snapshot creation. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest, dict]): The request object. A request message for @@ -554,6 +582,34 @@ def add_resource_policies( only add one policy which will be applied to this disk for scheduling snapshot creation. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest, dict]): The request object. A request message for @@ -687,6 +743,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of persistent disks. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListDisksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListDisksRequest, dict]): The request object. A request message for @@ -776,6 +859,33 @@ def bulk_insert_unary( ) -> compute.Operation: r"""Bulk create a set of disks. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertDiskRequest, dict]): The request object. A request message for @@ -878,6 +988,33 @@ def bulk_insert( ) -> extended_operation.ExtendedOperation: r"""Bulk create a set of disks. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertDiskRequest, dict]): The request object. A request message for @@ -1008,6 +1145,34 @@ def create_snapshot_unary( features, such as creating snapshots in a project different from the source disk project. + .. 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_create_snapshot(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotDiskRequest, dict]): The request object. A request message for @@ -1121,6 +1286,34 @@ def create_snapshot( features, such as creating snapshots in a project different from the source disk project. + .. 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_create_snapshot(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotDiskRequest, dict]): The request object. A request message for @@ -1258,6 +1451,34 @@ def delete_unary( previously made from the disk. You must separately delete snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteDiskRequest, dict]): The request object. A request message for Disks.Delete. @@ -1362,6 +1583,34 @@ def delete( previously made from the disk. You must separately delete snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteDiskRequest, dict]): The request object. A request message for Disks.Delete. @@ -1487,6 +1736,34 @@ def get( ) -> compute.Disk: r"""Returns the specified persistent disk. + .. 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(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.GetDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetDiskRequest, dict]): The request object. A request message for Disks.Get. See @@ -1598,6 +1875,34 @@ def get_iam_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.DisksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyDiskRequest( + 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.GetIamPolicyDiskRequest, dict]): The request object. A request message for @@ -1743,6 +2048,33 @@ def insert_unary( is larger than the default size by specifying the sizeGb property. + .. 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_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertDiskRequest, dict]): The request object. A request message for Disks.Insert. @@ -1846,6 +2178,33 @@ def insert( is larger than the default size by specifying the sizeGb property. + .. 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_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertDiskRequest, dict]): The request object. A request message for Disks.Insert. @@ -1968,6 +2327,34 @@ def list( r"""Retrieves a list of persistent disks contained within the specified zone. + .. 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_list(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.ListDisksRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListDisksRequest, dict]): The request object. A request message for Disks.List. See @@ -2074,6 +2461,34 @@ def remove_resource_policies_unary( ) -> compute.Operation: r"""Removes resource policies from a disk. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest, dict]): The request object. A request message for @@ -2189,6 +2604,34 @@ def remove_resource_policies( ) -> extended_operation.ExtendedOperation: r"""Removes resource policies from a disk. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest, dict]): The request object. A request message for @@ -2326,6 +2769,34 @@ def resize_unary( r"""Resizes the specified persistent disk. You can only increase the size of the disk. + .. 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_resize(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeDiskRequest, dict]): The request object. A request message for Disks.Resize. @@ -2433,6 +2904,34 @@ def resize( r"""Resizes the specified persistent disk. You can only increase the size of the disk. + .. 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_resize(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeDiskRequest, dict]): The request object. A request message for Disks.Resize. @@ -2565,6 +3064,34 @@ def set_iam_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.DisksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyDiskRequest( + 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.SetIamPolicyDiskRequest, dict]): The request object. A request message for @@ -2717,6 +3244,34 @@ def set_labels_unary( r"""Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsDiskRequest, dict]): The request object. A request message for @@ -2831,6 +3386,34 @@ def set_labels( r"""Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsDiskRequest, dict]): The request object. A request message for @@ -2972,6 +3555,34 @@ def start_async_replication_unary( r"""Starts asynchronous replication. Must be invoked on the primary disk. + .. 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_start_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3086,6 +3697,34 @@ def start_async_replication( r"""Starts asynchronous replication. Must be invoked on the primary disk. + .. 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_start_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3222,6 +3861,34 @@ def stop_async_replication_unary( r"""Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + .. 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_stop_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3322,6 +3989,34 @@ def stop_async_replication( r"""Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + .. 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_stop_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3452,6 +4147,33 @@ def stop_group_async_replication_unary( group of disks. Can be invoked either in the primary or secondary scope. + .. 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_stop_group_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopGroupAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3564,6 +4286,33 @@ def stop_group_async_replication( group of disks. Can be invoked either in the primary or secondary scope. + .. 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_stop_group_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopGroupAsyncReplicationDiskRequest, dict]): The request object. A request message for @@ -3699,6 +4448,34 @@ def test_iam_permissions( 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.DisksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsDiskRequest( + 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.TestIamPermissionsDiskRequest, dict]): The request object. A request message for @@ -3813,6 +4590,34 @@ def update_unary( included as part of update-mask. Only the following fields can be modified: user_license. + .. 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_update(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateDiskRequest, dict]): The request object. A request message for Disks.Update. @@ -3922,6 +4727,34 @@ def update( included as part of update-mask. Only the following fields can be modified: user_license. + .. 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_update(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateDiskRequest, dict]): The request object. A request message for Disks.Update. diff --git a/google/cloud/compute_v1/services/external_vpn_gateways/client.py b/google/cloud/compute_v1/services/external_vpn_gateways/client.py index b200f2d03..4e05acf38 100644 --- a/google/cloud/compute_v1/services/external_vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/external_vpn_gateways/client.py @@ -435,6 +435,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified externalVpnGateway. + .. 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_delete(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteExternalVpnGatewayRequest( + external_vpn_gateway="external_vpn_gateway_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified externalVpnGateway. + .. 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_delete(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteExternalVpnGatewayRequest( + external_vpn_gateway="external_vpn_gateway_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -641,6 +695,33 @@ def get( of available externalVpnGateways by making a list() request. + .. 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(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetExternalVpnGatewayRequest( + external_vpn_gateway="external_vpn_gateway_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -744,6 +825,32 @@ def insert_unary( r"""Creates a ExternalVpnGateway in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertExternalVpnGatewayRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -828,6 +935,32 @@ def insert( r"""Creates a ExternalVpnGateway in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertExternalVpnGatewayRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -935,6 +1068,33 @@ def list( r"""Retrieves the list of ExternalVpnGateway available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListExternalVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListExternalVpnGatewaysRequest, dict]): The request object. A request message for @@ -1030,6 +1190,33 @@ def set_labels_unary( more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsExternalVpnGatewayRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -1138,6 +1325,33 @@ def set_labels( more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsExternalVpnGatewayRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest, dict]): The request object. A request message for @@ -1269,6 +1483,33 @@ def test_iam_permissions( 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.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsExternalVpnGatewayRequest( + 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.TestIamPermissionsExternalVpnGatewayRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/firewall_policies/client.py b/google/cloud/compute_v1/services/firewall_policies/client.py index af34f584f..00804e590 100644 --- a/google/cloud/compute_v1/services/firewall_policies/client.py +++ b/google/cloud/compute_v1/services/firewall_policies/client.py @@ -440,6 +440,32 @@ def add_association_unary( r"""Inserts an association for the specified firewall 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_add_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest, dict]): The request object. A request message for @@ -536,6 +562,32 @@ def add_association( r"""Inserts an association for the specified firewall 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_add_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest, dict]): The request object. A request message for @@ -650,6 +702,32 @@ def add_rule_unary( ) -> compute.Operation: r"""Inserts a rule into a firewall 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_add_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -737,6 +815,32 @@ def add_rule( ) -> extended_operation.ExtendedOperation: r"""Inserts a rule into a firewall 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_add_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -846,6 +950,32 @@ def clone_rules_unary( ) -> compute.Operation: r"""Copies rules to the specified firewall 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_clone_rules(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest, dict]): The request object. A request message for @@ -925,6 +1055,32 @@ def clone_rules( ) -> extended_operation.ExtendedOperation: r"""Copies rules to the specified firewall 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_clone_rules(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest, dict]): The request object. A request message for @@ -1027,6 +1183,32 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallPolicyRequest, dict]): The request object. A request message for @@ -1106,6 +1288,32 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallPolicyRequest, dict]): The request object. A request message for @@ -1208,6 +1416,32 @@ def get( ) -> compute.FirewallPolicy: r"""Returns the specified firewall 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_get(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetFirewallPolicyRequest, dict]): The request object. A request message for @@ -1287,6 +1521,32 @@ def get_association( ) -> compute.FirewallPolicyAssociation: r"""Gets an association with the specified name. + .. 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_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAssociationFirewallPolicyRequest, dict]): The request object. A request message for @@ -1367,6 +1627,32 @@ def get_iam_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.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyFirewallPolicyRequest( + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyFirewallPolicyRequest, dict]): The request object. A request message for @@ -1482,6 +1768,32 @@ def get_rule( ) -> compute.FirewallPolicyRule: r"""Gets a rule of the specified priority. + .. 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_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -1565,6 +1877,32 @@ def insert_unary( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallPolicyRequest( + parent_id="parent_id_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertFirewallPolicyRequest, dict]): The request object. A request message for @@ -1647,6 +1985,32 @@ def insert( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallPolicyRequest( + parent_id="parent_id_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertFirewallPolicyRequest, dict]): The request object. A request message for @@ -1751,6 +2115,32 @@ def list( r"""Lists all the policies that have been configured for the specified folder or organization. + .. 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_list(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListFirewallPoliciesRequest( + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListFirewallPoliciesRequest, dict]): The request object. A request message for @@ -1814,6 +2204,31 @@ def list_associations( r"""Lists associations of a specified target, i.e., organization or folder. + .. 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_list_associations(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAssociationsFirewallPolicyRequest( + ) + + # Make the request + response = client.list_associations(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAssociationsFirewallPolicyRequest, dict]): The request object. A request message for @@ -1864,6 +2279,33 @@ def move_unary( ) -> compute.Operation: r"""Moves the specified firewall 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_move(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.MoveFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + parent_id="parent_id_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveFirewallPolicyRequest, dict]): The request object. A request message for @@ -1955,6 +2397,33 @@ def move( ) -> extended_operation.ExtendedOperation: r"""Moves the specified firewall 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_move(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.MoveFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + parent_id="parent_id_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveFirewallPolicyRequest, dict]): The request object. A request message for @@ -2071,6 +2540,32 @@ def patch_unary( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchFirewallPolicyRequest, dict]): The request object. A request message for @@ -2159,6 +2654,32 @@ def patch( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchFirewallPolicyRequest, dict]): The request object. A request message for @@ -2269,6 +2790,32 @@ def patch_rule_unary( ) -> compute.Operation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -2356,6 +2903,32 @@ def patch_rule( ) -> extended_operation.ExtendedOperation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -2468,6 +3041,32 @@ def remove_association_unary( r"""Removes an association for the specified firewall 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_remove_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest, dict]): The request object. A request message for @@ -2550,6 +3149,32 @@ def remove_association( r"""Removes an association for the specified firewall 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_remove_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest, dict]): The request object. A request message for @@ -2652,6 +3277,32 @@ def remove_rule_unary( ) -> compute.Operation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -2731,6 +3382,32 @@ def remove_rule( ) -> extended_operation.ExtendedOperation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest, dict]): The request object. A request message for @@ -2839,6 +3516,32 @@ def set_iam_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.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyFirewallPolicyRequest( + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyFirewallPolicyRequest, dict]): The request object. A request message for @@ -2971,6 +3674,32 @@ def test_iam_permissions( 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.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsFirewallPolicyRequest( + 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.TestIamPermissionsFirewallPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/firewalls/client.py b/google/cloud/compute_v1/services/firewalls/client.py index 93e273f35..77612c27e 100644 --- a/google/cloud/compute_v1/services/firewalls/client.py +++ b/google/cloud/compute_v1/services/firewalls/client.py @@ -433,6 +433,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified firewall. + .. 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_delete(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallRequest, dict]): The request object. A request message for @@ -521,6 +548,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified firewall. + .. 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_delete(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteFirewallRequest, dict]): The request object. A request message for @@ -633,6 +687,33 @@ def get( ) -> compute.Firewall: r"""Returns the specified firewall. + .. 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(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.GetFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetFirewallRequest, dict]): The request object. A request message for Firewalls.Get. @@ -724,6 +805,32 @@ def insert_unary( r"""Creates a firewall rule in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertFirewallRequest, dict]): The request object. A request message for @@ -808,6 +915,32 @@ def insert( r"""Creates a firewall rule in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertFirewallRequest, dict]): The request object. A request message for @@ -915,6 +1048,33 @@ def list( r"""Retrieves the list of firewall rules available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.ListFirewallsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListFirewallsRequest, dict]): The request object. A request message for Firewalls.List. @@ -1005,6 +1165,33 @@ def patch_unary( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchFirewallRequest, dict]): The request object. A request message for @@ -1104,6 +1291,33 @@ def patch( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchFirewallRequest, dict]): The request object. A request message for @@ -1228,6 +1442,33 @@ def update_unary( specified. To update individual fields, please use PATCH instead. + .. 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_update(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateFirewallRequest, dict]): The request object. A request message for @@ -1328,6 +1569,33 @@ def update( specified. To update individual fields, please use PATCH instead. + .. 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_update(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateFirewallRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/forwarding_rules/client.py b/google/cloud/compute_v1/services/forwarding_rules/client.py index 833976dd3..73eaad52c 100644 --- a/google/cloud/compute_v1/services/forwarding_rules/client.py +++ b/google/cloud/compute_v1/services/forwarding_rules/client.py @@ -436,6 +436,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of forwarding rules. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListForwardingRulesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListForwardingRulesRequest, dict]): The request object. A request message for @@ -523,6 +550,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified ForwardingRule 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_delete(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteForwardingRuleRequest, dict]): The request object. A request message for @@ -624,6 +679,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified ForwardingRule 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_delete(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteForwardingRuleRequest, dict]): The request object. A request message for @@ -750,6 +833,34 @@ def get( ) -> compute.ForwardingRule: r"""Returns the specified ForwardingRule 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_get(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.GetForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetForwardingRuleRequest, dict]): The request object. A request message for @@ -863,6 +974,33 @@ def insert_unary( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertForwardingRuleRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertForwardingRuleRequest, dict]): The request object. A request message for @@ -963,6 +1101,33 @@ def insert( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertForwardingRuleRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertForwardingRuleRequest, dict]): The request object. A request message for @@ -1086,6 +1251,34 @@ def list( r"""Retrieves a list of ForwardingRule resources available to the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.ListForwardingRulesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListForwardingRulesRequest, dict]): The request object. A request message for @@ -1193,6 +1386,34 @@ def patch_unary( JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + .. 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_patch(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchForwardingRuleRequest, dict]): The request object. A request message for @@ -1307,6 +1528,34 @@ def patch( JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + .. 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_patch(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchForwardingRuleRequest, dict]): The request object. A request message for @@ -1447,6 +1696,34 @@ def set_labels_unary( more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsForwardingRuleRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest, dict]): The request object. A request message for @@ -1562,6 +1839,34 @@ def set_labels( more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsForwardingRuleRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest, dict]): The request object. A request message for @@ -1699,6 +2004,34 @@ def set_target_unary( r"""Changes target URL for forwarding rule. The new target should be of the same type as the old target. + .. 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_target(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetForwardingRuleRequest, dict]): The request object. A request message for @@ -1811,6 +2144,34 @@ def set_target( r"""Changes target URL for forwarding rule. The new target should be of the same type as the old target. + .. 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_target(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetForwardingRuleRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_addresses/client.py b/google/cloud/compute_v1/services/global_addresses/client.py index dd5d459b0..078dd246c 100644 --- a/google/cloud/compute_v1/services/global_addresses/client.py +++ b/google/cloud/compute_v1/services/global_addresses/client.py @@ -435,6 +435,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified address 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_delete(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalAddressRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified address 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_delete(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalAddressRequest, dict]): The request object. A request message for @@ -639,6 +693,33 @@ def get( ) -> compute.Address: r"""Returns the specified address 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_get(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalAddressRequest, dict]): The request object. A request message for @@ -735,6 +816,32 @@ def insert_unary( r"""Creates an address resource in the specified project by using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalAddressRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalAddressRequest, dict]): The request object. A request message for @@ -819,6 +926,32 @@ def insert( r"""Creates an address resource in the specified project by using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalAddressRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalAddressRequest, dict]): The request object. A request message for @@ -925,6 +1058,33 @@ def list( ) -> pagers.ListPager: r"""Retrieves a list of global addresses. + .. 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_list(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalAddressesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalAddressesRequest, dict]): The request object. A request message for @@ -1016,6 +1176,33 @@ def move_unary( r"""Moves the specified address resource from one project to another project. + .. 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_move(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveGlobalAddressRequest, dict]): The request object. A request message for @@ -1121,6 +1308,33 @@ def move( r"""Moves the specified address resource from one project to another project. + .. 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_move(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveGlobalAddressRequest, dict]): The request object. A request message for @@ -1250,6 +1464,33 @@ def set_labels_unary( r"""Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalAddressRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest, dict]): The request object. A request message for @@ -1355,6 +1596,33 @@ def set_labels( r"""Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalAddressRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_forwarding_rules/client.py b/google/cloud/compute_v1/services/global_forwarding_rules/client.py index f04706863..fc822e6db 100644 --- a/google/cloud/compute_v1/services/global_forwarding_rules/client.py +++ b/google/cloud/compute_v1/services/global_forwarding_rules/client.py @@ -437,6 +437,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified GlobalForwardingRule 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_delete(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -529,6 +556,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified GlobalForwardingRule 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_delete(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -645,6 +699,33 @@ def get( Gets a list of available forwarding rules by making a list() request. + .. 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(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -749,6 +830,32 @@ def insert_unary( specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalForwardingRuleRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -836,6 +943,32 @@ def insert( specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalForwardingRuleRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -943,6 +1076,33 @@ def list( r"""Retrieves a list of GlobalForwardingRule resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalForwardingRulesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalForwardingRulesRequest, dict]): The request object. A request message for @@ -1035,6 +1195,33 @@ def patch_unary( JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + .. 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_patch(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -1136,6 +1323,33 @@ def patch( JSON merge patch format and processing rules. Currently, you can only patch the network_tier field. + .. 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_patch(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -1264,6 +1478,33 @@ def set_labels_unary( more about labels, read the Labeling resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalForwardingRuleRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -1372,6 +1613,33 @@ def set_labels( more about labels, read the Labeling resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalForwardingRuleRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -1502,6 +1770,33 @@ def set_target_unary( resource. The new target should be of the same type as the old target. + .. 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_target(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest, dict]): The request object. A request message for @@ -1606,6 +1901,33 @@ def set_target( resource. The new target should be of the same type as the old target. + .. 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_target(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py index 0b9035101..386d7099d 100644 --- a/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py @@ -443,6 +443,33 @@ def attach_network_endpoints_unary( r"""Attach a network endpoint to the specified network endpoint group. + .. 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_attach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -563,6 +590,33 @@ def attach_network_endpoints( r"""Attach a network endpoint to the specified network endpoint group. + .. 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_attach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -705,6 +759,33 @@ def delete_unary( that the NEG cannot be deleted if there are backend services referencing it. + .. 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_delete(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -800,6 +881,33 @@ def delete( that the NEG cannot be deleted if there are backend services referencing it. + .. 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_delete(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -921,6 +1029,33 @@ def detach_network_endpoints_unary( r"""Detach the network endpoint from the specified network endpoint group. + .. 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_detach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1041,6 +1176,33 @@ def detach_network_endpoints( r"""Detach the network endpoint from the specified network endpoint group. + .. 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_detach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1181,6 +1343,33 @@ def get( ) -> compute.NetworkEndpointGroup: r"""Returns the specified network endpoint group. + .. 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(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1284,6 +1473,32 @@ def insert_unary( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalNetworkEndpointGroupRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1373,6 +1588,32 @@ def insert( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalNetworkEndpointGroupRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1484,6 +1725,33 @@ def list( r"""Retrieves the list of network endpoint groups that are located in the specified project. + .. 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_list(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalNetworkEndpointGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalNetworkEndpointGroupsRequest, dict]): The request object. A request message for @@ -1573,6 +1841,34 @@ def list_network_endpoints( r"""Lists the network endpoints in the specified network endpoint group. + .. 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_list_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + page_result = client.list_network_endpoints(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_operations/client.py b/google/cloud/compute_v1/services/global_operations/client.py index 8f9b69f97..8f29fefe3 100644 --- a/google/cloud/compute_v1/services/global_operations/client.py +++ b/google/cloud/compute_v1/services/global_operations/client.py @@ -433,6 +433,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of all operations. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListGlobalOperationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListGlobalOperationsRequest, dict]): The request object. A request message for @@ -519,6 +546,33 @@ def delete( ) -> compute.DeleteGlobalOperationResponse: r"""Deletes the specified Operations 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_delete(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalOperationRequest, dict]): The request object. A request message for @@ -610,6 +664,33 @@ def get( ) -> compute.Operation: r"""Retrieves the specified Operations 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_get(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalOperationRequest, dict]): The request object. A request message for @@ -713,6 +794,33 @@ def list( r"""Retrieves a list of Operation resources contained within the specified project. + .. 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_list(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalOperationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalOperationsRequest, dict]): The request object. A request message for @@ -813,6 +921,33 @@ def wait( method returns. Be prepared to retry if the operation is not ``DONE``. + .. 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_wait(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.WaitGlobalOperationRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_organization_operations/client.py b/google/cloud/compute_v1/services/global_organization_operations/client.py index 37645f9af..4bbda1645 100644 --- a/google/cloud/compute_v1/services/global_organization_operations/client.py +++ b/google/cloud/compute_v1/services/global_organization_operations/client.py @@ -435,6 +435,32 @@ def delete( ) -> compute.DeleteGlobalOrganizationOperationResponse: r"""Deletes the specified Operations 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_delete(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalOrganizationOperationRequest( + operation="operation_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationRequest, dict]): The request object. A request message for @@ -518,6 +544,32 @@ def get( r"""Retrieves the specified Operations resource. Gets a list of operations by making a ``list()`` request. + .. 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(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalOrganizationOperationRequest( + operation="operation_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalOrganizationOperationRequest, dict]): The request object. A request message for @@ -612,6 +664,32 @@ def list( r"""Retrieves a list of Operation resources contained within the specified organization. + .. 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_list(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalOrganizationOperationsRequest( + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalOrganizationOperationsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py b/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py index 216adc554..57de500f8 100644 --- a/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py +++ b/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py @@ -439,6 +439,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified global PublicDelegatedPrefix. + .. 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_delete(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -531,6 +558,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified global PublicDelegatedPrefix. + .. 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_delete(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -648,6 +702,33 @@ def get( r"""Returns the specified global PublicDelegatedPrefix 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_get(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -751,6 +832,32 @@ def insert_unary( specified project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalPublicDelegatedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -842,6 +949,32 @@ def insert( specified project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalPublicDelegatedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -953,6 +1086,33 @@ def list( r"""Lists the global PublicDelegatedPrefixes for a project. + .. 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_list(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalPublicDelegatedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListGlobalPublicDelegatedPrefixesRequest, dict]): The request object. A request message for @@ -1047,6 +1207,33 @@ def patch_unary( method supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -1156,6 +1343,33 @@ def patch( method supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/health_checks/client.py b/google/cloud/compute_v1/services/health_checks/client.py index de77671da..b9799dda6 100644 --- a/google/cloud/compute_v1/services/health_checks/client.py +++ b/google/cloud/compute_v1/services/health_checks/client.py @@ -435,6 +435,33 @@ def aggregated_list( r"""Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListHealthChecksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListHealthChecksRequest, dict]): The request object. A request message for @@ -523,6 +550,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified HealthCheck 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_delete(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteHealthCheckRequest, dict]): The request object. A request message for @@ -613,6 +667,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified HealthCheck 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_delete(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteHealthCheckRequest, dict]): The request object. A request message for @@ -727,6 +808,33 @@ def get( ) -> compute.HealthCheck: r"""Returns the specified HealthCheck 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_get(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetHealthCheckRequest, dict]): The request object. A request message for @@ -835,6 +943,32 @@ def insert_unary( r"""Creates a HealthCheck resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertHealthCheckRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertHealthCheckRequest, dict]): The request object. A request message for @@ -919,6 +1053,32 @@ def insert( r"""Creates a HealthCheck resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertHealthCheckRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertHealthCheckRequest, dict]): The request object. A request message for @@ -1026,6 +1186,33 @@ def list( r"""Retrieves the list of HealthCheck resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.ListHealthChecksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListHealthChecksRequest, dict]): The request object. A request message for @@ -1118,6 +1305,33 @@ def patch_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchHealthCheckRequest, dict]): The request object. A request message for @@ -1219,6 +1433,33 @@ def patch( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchHealthCheckRequest, dict]): The request object. A request message for @@ -1342,6 +1583,33 @@ def update_unary( r"""Updates a HealthCheck resource in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateHealthCheckRequest, dict]): The request object. A request message for @@ -1441,6 +1709,33 @@ def update( r"""Updates a HealthCheck resource in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateHealthCheckRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/image_family_views/client.py b/google/cloud/compute_v1/services/image_family_views/client.py index 54e3ff193..a054126a1 100644 --- a/google/cloud/compute_v1/services/image_family_views/client.py +++ b/google/cloud/compute_v1/services/image_family_views/client.py @@ -434,6 +434,34 @@ def get( family, is not deprecated and is rolled out in the specified zone. + .. 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(): + # Create a client + client = compute_v1.ImageFamilyViewsClient() + + # Initialize request argument(s) + request = compute_v1.GetImageFamilyViewRequest( + family="family_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetImageFamilyViewRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/images/client.py b/google/cloud/compute_v1/services/images/client.py index a95505eb5..a248829b1 100644 --- a/google/cloud/compute_v1/services/images/client.py +++ b/google/cloud/compute_v1/services/images/client.py @@ -433,6 +433,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified image. + .. 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_delete(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteImageRequest, dict]): The request object. A request message for Images.Delete. @@ -520,6 +547,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified image. + .. 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_delete(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteImageRequest, dict]): The request object. A request message for Images.Delete. @@ -634,6 +688,33 @@ def deprecate_unary( request body is given, clears the deprecation status instead. + .. 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_deprecate(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeprecateImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.deprecate(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeprecateImageRequest, dict]): The request object. A request message for @@ -732,6 +813,33 @@ def deprecate( request body is given, clears the deprecation status instead. + .. 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_deprecate(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeprecateImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.deprecate(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeprecateImageRequest, dict]): The request object. A request message for @@ -851,6 +959,33 @@ def get( ) -> compute.Image: r"""Returns the specified image. + .. 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(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetImageRequest, dict]): The request object. A request message for Images.Get. See @@ -942,6 +1077,33 @@ def get_from_family( family and is not deprecated. For more information on image families, see Public image families documentation. + .. 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_from_family(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetFromFamilyImageRequest( + family="family_value", + project="project_value", + ) + + # Make the request + response = client.get_from_family(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetFromFamilyImageRequest, dict]): The request object. A request message for @@ -1039,6 +1201,33 @@ def get_iam_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.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyImageRequest, dict]): The request object. A request message for @@ -1168,6 +1357,32 @@ def insert_unary( r"""Creates an image in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertImageRequest, dict]): The request object. A request message for Images.Insert. @@ -1251,6 +1466,32 @@ def insert( r"""Creates an image in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertImageRequest, dict]): The request object. A request message for Images.Insert. @@ -1363,6 +1604,33 @@ def list( to make a request to the respective image project, such as debian-cloud or windows-cloud. + .. 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_list(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.ListImagesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListImagesRequest, dict]): The request object. A request message for Images.List. @@ -1452,6 +1720,33 @@ def patch_unary( the request. Only the following fields can be modified: family, description, deprecation status. + .. 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_patch(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.PatchImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchImageRequest, dict]): The request object. A request message for Images.Patch. @@ -1549,6 +1844,33 @@ def patch( the request. Only the following fields can be modified: family, description, deprecation status. + .. 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_patch(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.PatchImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchImageRequest, dict]): The request object. A request message for Images.Patch. @@ -1671,6 +1993,33 @@ def set_iam_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.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyImageRequest, dict]): The request object. A request message for @@ -1814,6 +2163,33 @@ def set_labels_unary( r"""Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsImageRequest, dict]): The request object. A request message for @@ -1919,6 +2295,33 @@ def set_labels( r"""Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsImageRequest, dict]): The request object. A request message for @@ -2048,6 +2451,33 @@ def test_iam_permissions( 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.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsImageRequest( + 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.TestIamPermissionsImageRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/instance_group_managers/client.py b/google/cloud/compute_v1/services/instance_group_managers/client.py index a6ef0d0ae..1476be25a 100644 --- a/google/cloud/compute_v1/services/instance_group_managers/client.py +++ b/google/cloud/compute_v1/services/instance_group_managers/client.py @@ -456,6 +456,34 @@ def abandon_instances_unary( or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_abandon_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest, dict]): The request object. Messages @@ -594,6 +622,34 @@ def abandon_instances( or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_abandon_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest, dict]): The request object. Messages @@ -738,6 +794,33 @@ def aggregated_list( r"""Retrieves the list of managed instance groups and groups them by zone. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceGroupManagersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -832,6 +915,34 @@ def apply_updates_to_instances_unary( instance group. This method can be used to apply new overrides and/or new versions. + .. 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_apply_updates_to_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -963,6 +1074,34 @@ def apply_updates_to_instances( instance group. This method can be used to apply new overrides and/or new versions. + .. 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_apply_updates_to_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1124,6 +1263,34 @@ def create_instances_unary( creating or actions with the listmanagedinstances method. + .. 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_create_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1254,6 +1421,34 @@ def create_instances( creating or actions with the listmanagedinstances method. + .. 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_create_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1402,6 +1597,34 @@ def delete_unary( group must not belong to a backend service. Read Deleting an instance group for more information. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1508,6 +1731,34 @@ def delete( group must not belong to a backend service. Read Deleting an instance group for more information. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1653,6 +1904,34 @@ def delete_instances_unary( You can specify a maximum of 1000 instances with this method per request. + .. 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_delete_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1789,6 +2068,34 @@ def delete_instances( You can specify a maximum of 1000 instances with this method per request. + .. 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_delete_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1937,6 +2244,34 @@ def delete_per_instance_configs_unary( r"""Deletes selected per-instance configurations for the managed instance group. + .. 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_delete_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2070,6 +2405,34 @@ def delete_per_instance_configs( r"""Deletes selected per-instance configurations for the managed instance group. + .. 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_delete_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2223,6 +2586,34 @@ def get( r"""Returns all of the details about the specified managed instance group. + .. 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(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2343,6 +2734,33 @@ def insert_unary( per group. Please contact Cloud Support if you need an increase in this limit. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupManagerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2455,6 +2873,33 @@ def insert( per group. Please contact Cloud Support if you need an increase in this limit. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupManagerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2580,6 +3025,34 @@ def list( r"""Retrieves a list of managed instance groups that are contained within the specified project and zone. + .. 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_list(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceGroupManagersRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2686,6 +3159,35 @@ def list_errors( given managed instance group. The filter and orderBy query parameters are not supported. + .. 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_list_errors(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListErrorsInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_errors(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListErrorsInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2811,6 +3313,35 @@ def list_managed_instances( only if the group's ``listManagedInstancesResults`` field is set to ``PAGINATED``. + .. 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_list_managed_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListManagedInstancesInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_managed_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListManagedInstancesInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2928,6 +3459,35 @@ def list_per_instance_configs( for the managed instance group. The orderBy query parameter is not supported. + .. 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_list_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListPerInstanceConfigsInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_per_instance_configs(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPerInstanceConfigsInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -3060,6 +3620,34 @@ def patch_unary( learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + .. 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_patch(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3186,6 +3774,34 @@ def patch( learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + .. 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_patch(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3331,6 +3947,34 @@ def patch_per_instance_configs_unary( serves as a key used to distinguish whether to perform insert or patch. + .. 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_patch_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3466,6 +4110,34 @@ def patch_per_instance_configs( serves as a key used to distinguish whether to perform insert or patch. + .. 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_patch_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3636,6 +4308,34 @@ def recreate_instances_unary( You can specify a maximum of 1000 instances with this method per request. + .. 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_recreate_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3773,6 +4473,34 @@ def recreate_instances( You can specify a maximum of 1000 instances with this method per request. + .. 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_recreate_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3939,6 +4667,35 @@ def resize_unary( duration has elapsed before the VM instance is removed or deleted. + .. 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_resize(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + size=443, + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4075,6 +4832,35 @@ def resize( duration has elapsed before the VM instance is removed or deleted. + .. 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_resize(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + size=443, + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4223,6 +5009,34 @@ def set_instance_template_unary( recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + .. 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_instance_template(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4354,6 +5168,34 @@ def set_instance_template( recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. + .. 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_instance_template(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4513,6 +5355,34 @@ def set_target_pools_unary( take some time to apply to all of the instances in the group depending on the size of the group. + .. 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_target_pools(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4642,6 +5512,34 @@ def set_target_pools( take some time to apply to all of the instances in the group depending on the size of the group. + .. 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_target_pools(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4792,6 +5690,34 @@ def update_per_instance_configs_unary( serves as a key used to distinguish whether to perform insert or patch. + .. 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_update_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4927,6 +5853,34 @@ def update_per_instance_configs( serves as a key used to distinguish whether to perform insert or patch. + .. 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_update_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/instance_groups/client.py b/google/cloud/compute_v1/services/instance_groups/client.py index 51704bdbc..87d97c74f 100644 --- a/google/cloud/compute_v1/services/instance_groups/client.py +++ b/google/cloud/compute_v1/services/instance_groups/client.py @@ -442,6 +442,34 @@ def add_instances_unary( be in the same network/subnetwork. Read Adding instances for more information. + .. 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_add_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest, dict]): The request object. A request message for @@ -565,6 +593,34 @@ def add_instances( be in the same network/subnetwork. Read Adding instances for more information. + .. 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_add_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest, dict]): The request object. A request message for @@ -708,6 +764,33 @@ def aggregated_list( r"""Retrieves the list of instance groups and sorts them by zone. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceGroupsRequest, dict]): The request object. A request message for @@ -798,6 +881,34 @@ def delete_unary( must not belong to a backend service. Read Deleting an instance group for more information. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupRequest, dict]): The request object. A request message for @@ -902,6 +1013,34 @@ def delete( must not belong to a backend service. Read Deleting an instance group for more information. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceGroupRequest, dict]): The request object. A request message for @@ -1032,6 +1171,34 @@ def get( instanceGroupManagers or regionInstanceGroupManagers methods instead. + .. 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(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInstanceGroupRequest, dict]): The request object. A request message for @@ -1144,6 +1311,33 @@ def insert_unary( r"""Creates an instance group in the specified project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupRequest, dict]): The request object. A request message for @@ -1243,6 +1437,33 @@ def insert( r"""Creates an instance group in the specified project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceGroupRequest, dict]): The request object. A request message for @@ -1368,6 +1589,34 @@ def list( instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead. + .. 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_list(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstanceGroupsRequest, dict]): The request object. A request message for @@ -1478,6 +1727,35 @@ def list_instances( supported, but only for expressions that use ``eq`` (equal) or ``ne`` (not equal) operators. + .. 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_list_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesInstanceGroupsRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstancesInstanceGroupsRequest, dict]): The request object. A request message for @@ -1616,6 +1894,34 @@ def remove_instances_unary( the connection draining duration before the VM instance is removed or deleted. + .. 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_remove_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest, dict]): The request object. A request message for @@ -1743,6 +2049,34 @@ def remove_instances( the connection draining duration before the VM instance is removed or deleted. + .. 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_remove_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest, dict]): The request object. A request message for @@ -1891,6 +2225,34 @@ def set_named_ports_unary( r"""Sets the named ports for the specified instance group. + .. 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_named_ports(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest, dict]): The request object. A request message for @@ -2014,6 +2376,34 @@ def set_named_ports( r"""Sets the named ports for the specified instance group. + .. 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_named_ports(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/instance_templates/client.py b/google/cloud/compute_v1/services/instance_templates/client.py index 321024701..a3899d8d0 100644 --- a/google/cloud/compute_v1/services/instance_templates/client.py +++ b/google/cloud/compute_v1/services/instance_templates/client.py @@ -438,6 +438,33 @@ def aggregated_list( resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest, dict]): The request object. A request message for @@ -531,6 +558,33 @@ def delete_unary( is not possible to delete templates that are already in use by a managed instance group. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceTemplateRequest, dict]): The request object. A request message for @@ -624,6 +678,33 @@ def delete( is not possible to delete templates that are already in use by a managed instance group. + .. 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_delete(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceTemplateRequest, dict]): The request object. A request message for @@ -738,6 +819,33 @@ def get( ) -> compute.InstanceTemplate: r"""Returns the specified instance template. + .. 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(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInstanceTemplateRequest, dict]): The request object. A request message for @@ -832,6 +940,33 @@ def get_iam_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.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyInstanceTemplateRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyInstanceTemplateRequest, dict]): The request object. A request message for @@ -965,6 +1100,32 @@ def insert_unary( same network or, if applicable, the same subnetwork as the original template. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceTemplateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceTemplateRequest, dict]): The request object. A request message for @@ -1053,6 +1214,32 @@ def insert( same network or, if applicable, the same subnetwork as the original template. + .. 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_insert(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceTemplateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceTemplateRequest, dict]): The request object. A request message for @@ -1160,6 +1347,33 @@ def list( r"""Retrieves a list of instance templates that are contained within the specified project. + .. 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_list(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstanceTemplatesRequest, dict]): The request object. A request message for @@ -1253,6 +1467,33 @@ def set_iam_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.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyInstanceTemplateRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyInstanceTemplateRequest, dict]): The request object. A request message for @@ -1398,6 +1639,33 @@ def test_iam_permissions( 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.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsInstanceTemplateRequest( + 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.TestIamPermissionsInstanceTemplateRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/instances/client.py b/google/cloud/compute_v1/services/instances/client.py index ddaf0889a..139816948 100644 --- a/google/cloud/compute_v1/services/instances/client.py +++ b/google/cloud/compute_v1/services/instances/client.py @@ -437,6 +437,35 @@ def add_access_config_unary( r"""Adds an access config to an instance's network interface. + .. 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_add_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -557,6 +586,35 @@ def add_access_config( r"""Adds an access config to an instance's network interface. + .. 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_add_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -706,6 +764,34 @@ def add_resource_policies_unary( can only add one policy right now which will be applied to this instance for scheduling live migrations. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest, dict]): The request object. A request message for @@ -823,6 +909,34 @@ def add_resource_policies( can only add one policy right now which will be applied to this instance for scheduling live migrations. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest, dict]): The request object. A request message for @@ -960,6 +1074,33 @@ def aggregated_list( specified on a project that has a very large number of instances. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstancesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListInstancesRequest, dict]): The request object. A request message for @@ -1052,6 +1193,34 @@ def attach_disk_unary( same time. For more information, read Adding a persistent disk to your instance. + .. 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_attach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AttachDiskInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachDiskInstanceRequest, dict]): The request object. A request message for @@ -1163,6 +1332,34 @@ def attach_disk( same time. For more information, read Adding a persistent disk to your instance. + .. 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_attach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AttachDiskInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachDiskInstanceRequest, dict]): The request object. A request message for @@ -1298,6 +1495,33 @@ def bulk_insert_unary( number of instances to create. For more information, see About bulk creation of VMs. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertInstanceRequest, dict]): The request object. A request message for @@ -1404,6 +1628,33 @@ def bulk_insert( number of instances to create. For more information, see About bulk creation of VMs. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertInstanceRequest, dict]): The request object. A request message for @@ -1532,6 +1783,34 @@ def delete_unary( r"""Deletes the specified Instance resource. For more information, see Deleting an instance. + .. 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_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceRequest, dict]): The request object. A request message for @@ -1634,6 +1913,34 @@ def delete( r"""Deletes the specified Instance resource. For more information, see Deleting an instance. + .. 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_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstanceRequest, dict]): The request object. A request message for @@ -1765,6 +2072,36 @@ def delete_access_config_unary( r"""Deletes an access config from an instance's network interface. + .. 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_delete_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAccessConfigInstanceRequest( + access_config="access_config_value", + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -1887,6 +2224,36 @@ def delete_access_config( r"""Deletes an access config from an instance's network interface. + .. 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_delete_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAccessConfigInstanceRequest( + access_config="access_config_value", + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -2030,6 +2397,35 @@ def detach_disk_unary( ) -> compute.Operation: r"""Detaches a disk from an instance. + .. 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_detach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DetachDiskInstanceRequest( + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachDiskInstanceRequest, dict]): The request object. A request message for @@ -2141,6 +2537,35 @@ def detach_disk( ) -> extended_operation.ExtendedOperation: r"""Detaches a disk from an instance. + .. 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_detach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DetachDiskInstanceRequest( + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachDiskInstanceRequest, dict]): The request object. A request message for @@ -2276,6 +2701,34 @@ def get( ) -> compute.Instance: r"""Returns the specified Instance 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_get(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInstanceRequest, dict]): The request object. A request message for Instances.Get. @@ -2383,6 +2836,35 @@ def get_effective_firewalls( r"""Returns effective firewalls applied to an interface of the instance. + .. 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_effective_firewalls(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsInstanceRequest, dict]): The request object. A request message for @@ -2493,6 +2975,34 @@ def get_guest_attributes( ) -> compute.GuestAttributes: r"""Returns the specified guest attributes entry. + .. 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_guest_attributes(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetGuestAttributesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_guest_attributes(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetGuestAttributesInstanceRequest, dict]): The request object. A request message for @@ -2593,6 +3103,34 @@ def get_iam_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.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyInstanceRequest( + 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.GetIamPolicyInstanceRequest, dict]): The request object. A request message for @@ -2732,6 +3270,34 @@ def get_screenshot( ) -> compute.Screenshot: r"""Returns the screenshot from the specified instance. + .. 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_screenshot(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetScreenshotInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_screenshot(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetScreenshotInstanceRequest, dict]): The request object. A request message for @@ -2834,6 +3400,34 @@ def get_serial_port_output( r"""Returns the last 1 MB of serial port output from the specified instance. + .. 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_serial_port_output(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetSerialPortOutputInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_serial_port_output(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSerialPortOutputInstanceRequest, dict]): The request object. A request message for @@ -2935,6 +3529,34 @@ def get_shielded_instance_identity( ) -> compute.ShieldedInstanceIdentity: r"""Returns the Shielded Instance Identity of an instance + .. 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_shielded_instance_identity(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetShieldedInstanceIdentityInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_shielded_instance_identity(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetShieldedInstanceIdentityInstanceRequest, dict]): The request object. A request message for @@ -3037,6 +3659,33 @@ def insert_unary( r"""Creates an instance resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceRequest, dict]): The request object. A request message for @@ -3136,6 +3785,33 @@ def insert( r"""Creates an instance resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInstanceRequest, dict]): The request object. A request message for @@ -3259,6 +3935,34 @@ def list( r"""Retrieves the list of instances contained within the specified zone. + .. 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_list(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstancesRequest, dict]): The request object. A request message for Instances.List. @@ -3365,6 +4069,35 @@ def list_referrers( For more information, read Viewing referrers to VM instances. + .. 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_list_referrers(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListReferrersInstancesRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_referrers(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListReferrersInstancesRequest, dict]): The request object. A request message for @@ -3485,6 +4218,34 @@ def remove_resource_policies_unary( ) -> compute.Operation: r"""Removes resource policies from an instance. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest, dict]): The request object. A request message for @@ -3605,6 +4366,34 @@ def remove_resource_policies( ) -> extended_operation.ExtendedOperation: r"""Removes resource policies from an instance. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest, dict]): The request object. A request message for @@ -3747,6 +4536,34 @@ def reset_unary( reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance. + .. 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_reset(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResetInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.reset(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResetInstanceRequest, dict]): The request object. A request message for @@ -3850,6 +4667,34 @@ def reset( reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance. + .. 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_reset(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResetInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.reset(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResetInstanceRequest, dict]): The request object. A request message for @@ -3977,6 +4822,34 @@ def resume_unary( r"""Resumes an instance that was suspended using the instances().suspend method. + .. 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_resume(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResumeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resume(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResumeInstanceRequest, dict]): The request object. A request message for @@ -4079,6 +4952,34 @@ def resume( r"""Resumes an instance that was suspended using the instances().suspend method. + .. 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_resume(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResumeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resume(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResumeInstanceRequest, dict]): The request object. A request message for @@ -4207,6 +5108,34 @@ def send_diagnostic_interrupt( ) -> compute.SendDiagnosticInterruptInstanceResponse: r"""Sends diagnostic interrupt to the instance. + .. 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_send_diagnostic_interrupt(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SendDiagnosticInterruptInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.send_diagnostic_interrupt(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceRequest, dict]): The request object. A request message for @@ -4313,6 +5242,34 @@ def set_deletion_protection_unary( ) -> compute.Operation: r"""Sets deletion protection on the instance. + .. 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_deletion_protection(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDeletionProtectionInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_deletion_protection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest, dict]): The request object. A request message for @@ -4416,6 +5373,34 @@ def set_deletion_protection( ) -> extended_operation.ExtendedOperation: r"""Sets deletion protection on the instance. + .. 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_deletion_protection(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDeletionProtectionInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_deletion_protection(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest, dict]): The request object. A request message for @@ -4545,6 +5530,36 @@ def set_disk_auto_delete_unary( r"""Sets the auto-delete flag for a disk attached to an instance. + .. 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_disk_auto_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDiskAutoDeleteInstanceRequest( + auto_delete=True, + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_disk_auto_delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest, dict]): The request object. A request message for @@ -4667,6 +5682,36 @@ def set_disk_auto_delete( r"""Sets the auto-delete flag for a disk attached to an instance. + .. 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_disk_auto_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDiskAutoDeleteInstanceRequest( + auto_delete=True, + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_disk_auto_delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest, dict]): The request object. A request message for @@ -4813,6 +5858,34 @@ def set_iam_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.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyInstanceRequest( + 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.SetIamPolicyInstanceRequest, dict]): The request object. A request message for @@ -4967,6 +6040,34 @@ def set_labels_unary( r"""Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInstanceRequest, dict]): The request object. A request message for @@ -5083,6 +6184,34 @@ def set_labels( r"""Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInstanceRequest, dict]): The request object. A request message for @@ -5226,6 +6355,34 @@ def set_machine_resources_unary( r"""Changes the number and/or type of accelerator for a stopped instance to the values specified in the request. + .. 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_machine_resources(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineResourcesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_resources(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest, dict]): The request object. A request message for @@ -5344,6 +6501,34 @@ def set_machine_resources( r"""Changes the number and/or type of accelerator for a stopped instance to the values specified in the request. + .. 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_machine_resources(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineResourcesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_resources(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest, dict]): The request object. A request message for @@ -5485,6 +6670,34 @@ def set_machine_type_unary( r"""Changes the machine type for a stopped instance to the machine type specified in the request. + .. 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_machine_type(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineTypeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_type(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMachineTypeInstanceRequest, dict]): The request object. A request message for @@ -5601,6 +6814,34 @@ def set_machine_type( r"""Changes the machine type for a stopped instance to the machine type specified in the request. + .. 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_machine_type(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineTypeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_type(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMachineTypeInstanceRequest, dict]): The request object. A request message for @@ -5740,6 +6981,34 @@ def set_metadata_unary( r"""Sets metadata for the specified instance to the data included in the request. + .. 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_metadata(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMetadataInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_metadata(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMetadataInstanceRequest, dict]): The request object. A request message for @@ -5850,6 +7119,34 @@ def set_metadata( r"""Sets metadata for the specified instance to the data included in the request. + .. 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_metadata(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMetadataInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_metadata(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMetadataInstanceRequest, dict]): The request object. A request message for @@ -5989,6 +7286,34 @@ def set_min_cpu_platform_unary( instance. For more information, read Specifying a Minimum CPU Platform. + .. 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_min_cpu_platform(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMinCpuPlatformInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_min_cpu_platform(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest, dict]): The request object. A request message for @@ -6107,6 +7432,34 @@ def set_min_cpu_platform( instance. For more information, read Specifying a Minimum CPU Platform. + .. 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_min_cpu_platform(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMinCpuPlatformInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_min_cpu_platform(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest, dict]): The request object. A request message for @@ -6247,6 +7600,34 @@ def set_name_unary( ) -> compute.Operation: r"""Sets name of an instance. + .. 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_name(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetNameInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_name(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): The request object. A request message for @@ -6360,6 +7741,34 @@ def set_name( ) -> extended_operation.ExtendedOperation: r"""Sets name of an instance. + .. 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_name(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetNameInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_name(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNameInstanceRequest, dict]): The request object. A request message for @@ -6501,6 +7910,34 @@ def set_scheduling_unary( information about setting scheduling options for a VM, see Set VM host maintenance 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_scheduling(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetSchedulingInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_scheduling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSchedulingInstanceRequest, dict]): The request object. A request message for @@ -6613,6 +8050,34 @@ def set_scheduling( information about setting scheduling options for a VM, see Set VM host maintenance 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_scheduling(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetSchedulingInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_scheduling(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSchedulingInstanceRequest, dict]): The request object. A request message for @@ -6749,6 +8214,34 @@ def set_service_account_unary( information, read Changing the service account and access scopes for an instance. + .. 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_service_account(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetServiceAccountInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_service_account(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetServiceAccountInstanceRequest, dict]): The request object. A request message for @@ -6866,6 +8359,34 @@ def set_service_account( information, read Changing the service account and access scopes for an instance. + .. 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_service_account(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetServiceAccountInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_service_account(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetServiceAccountInstanceRequest, dict]): The request object. A request message for @@ -7011,6 +8532,34 @@ def set_shielded_instance_integrity_policy_unary( instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_shielded_instance_integrity_policy(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetShieldedInstanceIntegrityPolicyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_shielded_instance_integrity_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest, dict]): The request object. A request message for @@ -7135,6 +8684,34 @@ def set_shielded_instance_integrity_policy( instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_shielded_instance_integrity_policy(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetShieldedInstanceIntegrityPolicyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_shielded_instance_integrity_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest, dict]): The request object. A request message for @@ -7278,6 +8855,34 @@ def set_tags_unary( r"""Sets network tags for the specified instance to the data included in the request. + .. 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_tags(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetTagsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_tags(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTagsInstanceRequest, dict]): The request object. A request message for @@ -7388,6 +8993,34 @@ def set_tags( r"""Sets network tags for the specified instance to the data included in the request. + .. 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_tags(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetTagsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_tags(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTagsInstanceRequest, dict]): The request object. A request message for @@ -7524,6 +9157,34 @@ def simulate_maintenance_event_unary( r"""Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. + .. 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_simulate_maintenance_event(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest, dict]): The request object. A request message for @@ -7630,6 +9291,34 @@ def simulate_maintenance_event( r"""Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. + .. 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_simulate_maintenance_event(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest, dict]): The request object. A request message for @@ -7760,6 +9449,34 @@ def start_unary( instances().stop method. For more information, see Restart an instance. + .. 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_start(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartInstanceRequest, dict]): The request object. A request message for @@ -7863,6 +9580,34 @@ def start( instances().stop method. For more information, see Restart an instance. + .. 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_start(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartInstanceRequest, dict]): The request object. A request message for @@ -7996,6 +9741,34 @@ def start_with_encryption_key_unary( instances().stop method. For more information, see Restart an instance. + .. 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_start_with_encryption_key(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartWithEncryptionKeyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_with_encryption_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest, dict]): The request object. A request message for @@ -8122,6 +9895,34 @@ def start_with_encryption_key( instances().stop method. For more information, see Restart an instance. + .. 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_start_with_encryption_key(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartWithEncryptionKeyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_with_encryption_key(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest, dict]): The request object. A request message for @@ -8272,6 +10073,34 @@ def stop_unary( will continue to be charged until they are deleted. For more information, see Stopping an instance. + .. 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_stop(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StopInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopInstanceRequest, dict]): The request object. A request message for Instances.Stop. @@ -8378,6 +10207,34 @@ def stop( will continue to be charged until they are deleted. For more information, see Stopping an instance. + .. 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_stop(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StopInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopInstanceRequest, dict]): The request object. A request message for Instances.Stop. @@ -8511,6 +10368,34 @@ def suspend_unary( to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + .. 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_suspend(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SuspendInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.suspend(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SuspendInstanceRequest, dict]): The request object. A request message for @@ -8620,6 +10505,34 @@ def suspend( to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + .. 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_suspend(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SuspendInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.suspend(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SuspendInstanceRequest, dict]): The request object. A request message for @@ -8752,6 +10665,34 @@ def test_iam_permissions( 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.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsInstanceRequest( + 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.TestIamPermissionsInstanceRequest, dict]): The request object. A request message for @@ -8866,6 +10807,34 @@ def update_unary( set of instance properties. See Updating a running instance for a list of updatable instance properties. + .. 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_update(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateInstanceRequest, dict]): The request object. A request message for @@ -8978,6 +10947,34 @@ def update( set of instance properties. See Updating a running instance for a list of updatable instance properties. + .. 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_update(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateInstanceRequest, dict]): The request object. A request message for @@ -9118,6 +11115,35 @@ def update_access_config_unary( the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -9242,6 +11268,35 @@ def update_access_config( the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_access_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest, dict]): The request object. A request message for @@ -9390,6 +11445,34 @@ def update_display_device_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_display_device(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDisplayDeviceInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_display_device(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest, dict]): The request object. A request message for @@ -9504,6 +11587,34 @@ def update_display_device( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_display_device(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDisplayDeviceInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_display_device(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest, dict]): The request object. A request message for @@ -9647,6 +11758,35 @@ def update_network_interface_unary( instructions on migrating an interface. This method follows PATCH semantics. + .. 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_update_network_interface(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateNetworkInterfaceInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_network_interface(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest, dict]): The request object. A request message for @@ -9774,6 +11914,35 @@ def update_network_interface( instructions on migrating an interface. This method follows PATCH semantics. + .. 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_update_network_interface(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateNetworkInterfaceInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_network_interface(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest, dict]): The request object. A request message for @@ -9924,6 +12093,34 @@ def update_shielded_instance_config_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_shielded_instance_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateShieldedInstanceConfigInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_shielded_instance_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest, dict]): The request object. A request message for @@ -10046,6 +12243,34 @@ def update_shielded_instance_config( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_update_shielded_instance_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateShieldedInstanceConfigInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_shielded_instance_config(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/interconnect_attachments/client.py b/google/cloud/compute_v1/services/interconnect_attachments/client.py index 340ac3c2a..a32e2e901 100644 --- a/google/cloud/compute_v1/services/interconnect_attachments/client.py +++ b/google/cloud/compute_v1/services/interconnect_attachments/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves an aggregated list of interconnect attachments. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInterconnectAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListInterconnectAttachmentsRequest, dict]): The request object. A request message for @@ -528,6 +555,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified interconnect attachment. + .. 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_delete(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -629,6 +684,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified interconnect attachment. + .. 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_delete(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -753,6 +836,34 @@ def get( ) -> compute.InterconnectAttachment: r"""Returns the specified interconnect attachment. + .. 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(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -863,6 +974,33 @@ def insert_unary( r"""Creates an InterconnectAttachment in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -966,6 +1104,33 @@ def insert( r"""Creates an InterconnectAttachment in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -1091,6 +1256,34 @@ def list( r"""Retrieves the list of interconnect attachments contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInterconnectAttachmentsRequest, dict]): The request object. A request message for @@ -1200,6 +1393,34 @@ def patch_unary( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -1320,6 +1541,34 @@ def patch( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -1464,6 +1713,34 @@ def set_labels_unary( learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest, dict]): The request object. A request message for @@ -1581,6 +1858,34 @@ def set_labels( learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/interconnect_locations/client.py b/google/cloud/compute_v1/services/interconnect_locations/client.py index dc9ca6a58..b9b565547 100644 --- a/google/cloud/compute_v1/services/interconnect_locations/client.py +++ b/google/cloud/compute_v1/services/interconnect_locations/client.py @@ -434,6 +434,33 @@ def get( location. Gets a list of available interconnect locations by making a list() request. + .. 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(): + # Create a client + client = compute_v1.InterconnectLocationsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectLocationRequest( + interconnect_location="interconnect_location_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInterconnectLocationRequest, dict]): The request object. A request message for @@ -529,6 +556,33 @@ def list( r"""Retrieves the list of interconnect locations available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.InterconnectLocationsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectLocationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInterconnectLocationsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/interconnect_remote_locations/client.py b/google/cloud/compute_v1/services/interconnect_remote_locations/client.py index 592b16fd5..a385dd052 100644 --- a/google/cloud/compute_v1/services/interconnect_remote_locations/client.py +++ b/google/cloud/compute_v1/services/interconnect_remote_locations/client.py @@ -438,6 +438,33 @@ def get( remote location. Gets a list of available interconnect remote locations by making a list() request. + .. 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(): + # Create a client + client = compute_v1.InterconnectRemoteLocationsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectRemoteLocationRequest( + interconnect_remote_location="interconnect_remote_location_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInterconnectRemoteLocationRequest, dict]): The request object. A request message for @@ -536,6 +563,33 @@ def list( r"""Retrieves the list of interconnect remote locations available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.InterconnectRemoteLocationsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectRemoteLocationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInterconnectRemoteLocationsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/interconnects/client.py b/google/cloud/compute_v1/services/interconnects/client.py index 21e464b29..30a31cc64 100644 --- a/google/cloud/compute_v1/services/interconnects/client.py +++ b/google/cloud/compute_v1/services/interconnects/client.py @@ -433,6 +433,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified Interconnect. + .. 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_delete(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectRequest, dict]): The request object. A request message for @@ -521,6 +548,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified Interconnect. + .. 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_delete(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInterconnectRequest, dict]): The request object. A request message for @@ -634,6 +688,33 @@ def get( r"""Returns the specified Interconnect. Get a list of available Interconnects by making a list() request. + .. 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(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetInterconnectRequest, dict]): The request object. A request message for @@ -729,6 +810,33 @@ def get_diagnostics( r"""Returns the interconnectDiagnostics for the specified Interconnect. + .. 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_diagnostics(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.GetDiagnosticsInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.get_diagnostics(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetDiagnosticsInterconnectRequest, dict]): The request object. A request message for @@ -820,6 +928,32 @@ def insert_unary( r"""Creates an Interconnect in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectRequest, dict]): The request object. A request message for @@ -904,6 +1038,32 @@ def insert( r"""Creates an Interconnect in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertInterconnectRequest, dict]): The request object. A request message for @@ -1011,6 +1171,33 @@ def list( r"""Retrieves the list of Interconnects available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInterconnectsRequest, dict]): The request object. A request message for @@ -1103,6 +1290,33 @@ def patch_unary( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectRequest, dict]): The request object. A request message for @@ -1202,6 +1416,33 @@ def patch( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchInterconnectRequest, dict]): The request object. A request message for @@ -1325,6 +1566,33 @@ def set_labels_unary( r"""Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectRequest, dict]): The request object. A request message for @@ -1430,6 +1698,33 @@ def set_labels( r"""Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsInterconnectRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/license_codes/client.py b/google/cloud/compute_v1/services/license_codes/client.py index 609a448cc..76e17df97 100644 --- a/google/cloud/compute_v1/services/license_codes/client.py +++ b/google/cloud/compute_v1/services/license_codes/client.py @@ -432,6 +432,33 @@ def get( Code. *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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(): + # Create a client + client = compute_v1.LicenseCodesClient() + + # Initialize request argument(s) + request = compute_v1.GetLicenseCodeRequest( + license_code="license_code_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetLicenseCodeRequest, dict]): The request object. A request message for @@ -532,6 +559,33 @@ def test_iam_permissions( *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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.LicenseCodesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsLicenseCodeRequest( + 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.TestIamPermissionsLicenseCodeRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/licenses/client.py b/google/cloud/compute_v1/services/licenses/client.py index 2c0424b56..1b88f4db1 100644 --- a/google/cloud/compute_v1/services/licenses/client.py +++ b/google/cloud/compute_v1/services/licenses/client.py @@ -435,6 +435,33 @@ def delete_unary( intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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_delete(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteLicenseRequest( + license_="license__value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteLicenseRequest, dict]): The request object. A request message for @@ -527,6 +554,33 @@ def delete( intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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_delete(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteLicenseRequest( + license_="license__value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteLicenseRequest, dict]): The request object. A request message for @@ -643,6 +697,33 @@ def get( is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.GetLicenseRequest( + license_="license__value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetLicenseRequest, dict]): The request object. A request message for Licenses.Get. @@ -738,6 +819,33 @@ def get_iam_policy( intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyLicenseRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyLicenseRequest, dict]): The request object. A request message for @@ -868,6 +976,32 @@ def insert_unary( This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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_insert(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.InsertLicenseRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertLicenseRequest, dict]): The request object. A request message for @@ -953,6 +1087,32 @@ def insert( This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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_insert(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.InsertLicenseRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertLicenseRequest, dict]): The request object. A request message for @@ -1067,6 +1227,33 @@ def list( by third-party partners who are creating Cloud Marketplace images. + .. 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_list(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.ListLicensesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListLicensesRequest, dict]): The request object. A request message for Licenses.List. @@ -1158,6 +1345,33 @@ def set_iam_policy( intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyLicenseRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyLicenseRequest, dict]): The request object. A request message for @@ -1302,6 +1516,33 @@ def test_iam_permissions( *Caution* This resource is intended for use only by third-party partners who are creating Cloud Marketplace images. + .. 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.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsLicenseRequest( + 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.TestIamPermissionsLicenseRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/machine_images/client.py b/google/cloud/compute_v1/services/machine_images/client.py index 147ad0406..e179cc95f 100644 --- a/google/cloud/compute_v1/services/machine_images/client.py +++ b/google/cloud/compute_v1/services/machine_images/client.py @@ -434,6 +434,33 @@ def delete_unary( r"""Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + .. 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_delete(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteMachineImageRequest( + machine_image="machine_image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteMachineImageRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete( r"""Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + .. 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_delete(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteMachineImageRequest( + machine_image="machine_image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteMachineImageRequest, dict]): The request object. A request message for @@ -639,6 +693,33 @@ def get( ) -> compute.MachineImage: r"""Returns the specified machine image. + .. 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(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetMachineImageRequest( + machine_image="machine_image_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetMachineImageRequest, dict]): The request object. A request message for @@ -734,6 +815,33 @@ def get_iam_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.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyMachineImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyMachineImageRequest, dict]): The request object. A request message for @@ -867,6 +975,32 @@ def insert_unary( network or, if applicable, the same subnetwork as the original instance. + .. 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_insert(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertMachineImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertMachineImageRequest, dict]): The request object. A request message for @@ -955,6 +1089,32 @@ def insert( network or, if applicable, the same subnetwork as the original instance. + .. 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_insert(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertMachineImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertMachineImageRequest, dict]): The request object. A request message for @@ -1062,6 +1222,33 @@ def list( r"""Retrieves a list of machine images that are contained within the specified project. + .. 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_list(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.ListMachineImagesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListMachineImagesRequest, dict]): The request object. A request message for @@ -1153,6 +1340,33 @@ def set_iam_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.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyMachineImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyMachineImageRequest, dict]): The request object. A request message for @@ -1298,6 +1512,33 @@ def test_iam_permissions( 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.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsMachineImageRequest( + 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.TestIamPermissionsMachineImageRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/machine_types/client.py b/google/cloud/compute_v1/services/machine_types/client.py index 3f85cebd8..2f4c0c523 100644 --- a/google/cloud/compute_v1/services/machine_types/client.py +++ b/google/cloud/compute_v1/services/machine_types/client.py @@ -431,6 +431,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of machine types. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListMachineTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListMachineTypesRequest, dict]): The request object. A request message for @@ -518,6 +545,34 @@ def get( ) -> compute.MachineType: r"""Returns the specified machine type. + .. 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(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetMachineTypeRequest( + machine_type="machine_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetMachineTypeRequest, dict]): The request object. A request message for @@ -620,6 +675,34 @@ def list( r"""Retrieves a list of machine types available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListMachineTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListMachineTypesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/network_attachments/client.py b/google/cloud/compute_v1/services/network_attachments/client.py index bdeebb6f0..7f06c9ec3 100644 --- a/google/cloud/compute_v1/services/network_attachments/client.py +++ b/google/cloud/compute_v1/services/network_attachments/client.py @@ -438,6 +438,33 @@ def aggregated_list( resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkAttachmentsRequest, dict]): The request object. A request message for @@ -528,6 +555,34 @@ def delete_unary( r"""Deletes the specified NetworkAttachment in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkAttachmentRequest( + network_attachment="network_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest, dict]): The request object. A request message for @@ -628,6 +683,34 @@ def delete( r"""Deletes the specified NetworkAttachment in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkAttachmentRequest( + network_attachment="network_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest, dict]): The request object. A request message for @@ -753,6 +836,34 @@ def get( r"""Returns the specified NetworkAttachment resource in the given scope. + .. 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(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkAttachmentRequest( + network_attachment="network_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNetworkAttachmentRequest, dict]): The request object. A request message for @@ -855,6 +966,34 @@ def get_iam_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.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNetworkAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNetworkAttachmentRequest, dict]): The request object. A request message for @@ -996,6 +1135,33 @@ def insert_unary( in the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkAttachmentRequest, dict]): The request object. A request message for @@ -1094,6 +1260,33 @@ def insert( in the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkAttachmentRequest, dict]): The request object. A request message for @@ -1215,6 +1408,34 @@ def list( r"""Lists the NetworkAttachments for a project in the given scope. + .. 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_list(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworkAttachmentsRequest, dict]): The request object. A request message for @@ -1320,6 +1541,34 @@ def set_iam_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.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNetworkAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNetworkAttachmentRequest, dict]): The request object. A request message for @@ -1476,6 +1725,34 @@ def test_iam_permissions( 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.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkAttachmentRequest( + project="project_value", + region="region_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.TestIamPermissionsNetworkAttachmentRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/network_edge_security_services/client.py b/google/cloud/compute_v1/services/network_edge_security_services/client.py index f34b4a8b2..77fa99c3b 100644 --- a/google/cloud/compute_v1/services/network_edge_security_services/client.py +++ b/google/cloud/compute_v1/services/network_edge_security_services/client.py @@ -439,6 +439,33 @@ def aggregated_list( r"""Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkEdgeSecurityServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkEdgeSecurityServicesRequest, dict]): The request object. A request message for @@ -532,6 +559,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified service. + .. 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_delete(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -638,6 +693,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified service. + .. 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_delete(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -769,6 +852,34 @@ def get( ) -> compute.NetworkEdgeSecurityService: r"""Gets a specified NetworkEdgeSecurityService. + .. 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(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -878,6 +989,33 @@ def insert_unary( r"""Creates a new service in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEdgeSecurityServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -985,6 +1123,33 @@ def insert( r"""Creates a new service in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEdgeSecurityServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -1118,6 +1283,34 @@ def patch_unary( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for @@ -1244,6 +1437,34 @@ def patch( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/network_endpoint_groups/client.py b/google/cloud/compute_v1/services/network_endpoint_groups/client.py index 21e5ffe6c..e36cba278 100644 --- a/google/cloud/compute_v1/services/network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/network_endpoint_groups/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves the list of network endpoint groups and sorts them by zone. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkEndpointGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNetworkEndpointGroupsRequest, dict]): The request object. A request message for @@ -530,6 +557,34 @@ def attach_network_endpoints_unary( r"""Attach a list of network endpoints to the specified network endpoint group. + .. 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_attach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -658,6 +713,34 @@ def attach_network_endpoints( r"""Attach a list of network endpoints to the specified network endpoint group. + .. 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_attach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -811,6 +894,34 @@ def delete_unary( Note that the NEG cannot be deleted if there are backend services referencing it. + .. 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_delete(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -920,6 +1031,34 @@ def delete( Note that the NEG cannot be deleted if there are backend services referencing it. + .. 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_delete(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1054,6 +1193,34 @@ def detach_network_endpoints_unary( r"""Detach a list of network endpoints from the specified network endpoint group. + .. 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_detach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1182,6 +1349,34 @@ def detach_network_endpoints( r"""Detach a list of network endpoints from the specified network endpoint group. + .. 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_detach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1329,6 +1524,34 @@ def get( ) -> compute.NetworkEndpointGroup: r"""Returns the specified network endpoint group. + .. 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(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1444,6 +1667,33 @@ def insert_unary( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEndpointGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1549,6 +1799,33 @@ def insert( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEndpointGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1675,6 +1952,34 @@ def list( r"""Retrieves the list of network endpoint groups that are located in the specified project and zone. + .. 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_list(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointGroupsRequest, dict]): The request object. A request message for @@ -1783,6 +2088,35 @@ def list_network_endpoints( r"""Lists the network endpoints in the specified network endpoint group. + .. 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_list_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointsNetworkEndpointGroupsRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_network_endpoints(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworkEndpointsNetworkEndpointGroupsRequest, dict]): The request object. A request message for @@ -1921,6 +2255,34 @@ def test_iam_permissions( 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.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkEndpointGroupRequest( + 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.TestIamPermissionsNetworkEndpointGroupRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/network_firewall_policies/client.py b/google/cloud/compute_v1/services/network_firewall_policies/client.py index 126d84a42..a7fcaf432 100644 --- a/google/cloud/compute_v1/services/network_firewall_policies/client.py +++ b/google/cloud/compute_v1/services/network_firewall_policies/client.py @@ -441,6 +441,33 @@ def add_association_unary( r"""Inserts an association for the specified firewall 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_add_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -548,6 +575,33 @@ def add_association( r"""Inserts an association for the specified firewall 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_add_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -676,6 +730,33 @@ def add_rule_unary( ) -> compute.Operation: r"""Inserts a rule into a firewall 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_add_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -778,6 +859,33 @@ def add_rule( ) -> extended_operation.ExtendedOperation: r"""Inserts a rule into a firewall 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_add_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -903,6 +1011,33 @@ def clone_rules_unary( ) -> compute.Operation: r"""Copies rules to the specified firewall 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_clone_rules(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -995,6 +1130,33 @@ def clone_rules( ) -> extended_operation.ExtendedOperation: r"""Copies rules to the specified firewall 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_clone_rules(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1111,6 +1273,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1203,6 +1392,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1317,6 +1533,33 @@ def get( ) -> compute.FirewallPolicy: r"""Returns the specified network firewall 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_get(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1407,6 +1650,33 @@ def get_association( ) -> compute.FirewallPolicyAssociation: r"""Gets an association with the specified name. + .. 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_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1498,6 +1768,33 @@ def get_iam_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.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNetworkFirewallPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1628,6 +1925,33 @@ def get_rule( ) -> compute.FirewallPolicyRule: r"""Gets a rule of the specified priority. + .. 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_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1723,6 +2047,32 @@ def insert_unary( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkFirewallPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1809,6 +2159,32 @@ def insert( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkFirewallPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1918,6 +2294,33 @@ def list( r"""Lists all the policies that have been configured for the specified project. + .. 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_list(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkFirewallPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworkFirewallPoliciesRequest, dict]): The request object. A request message for @@ -2008,6 +2411,33 @@ def patch_unary( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2109,6 +2539,33 @@ def patch( r"""Patches the specified policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2233,6 +2690,33 @@ def patch_rule_unary( ) -> compute.Operation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2335,6 +2819,33 @@ def patch_rule( ) -> extended_operation.ExtendedOperation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2461,6 +2972,33 @@ def remove_association_unary( r"""Removes an association for the specified firewall 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_remove_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2556,6 +3094,33 @@ def remove_association( r"""Removes an association for the specified firewall 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_remove_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2674,6 +3239,33 @@ def remove_rule_unary( ) -> compute.Operation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2766,6 +3358,33 @@ def remove_rule( ) -> extended_operation.ExtendedOperation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2886,6 +3505,33 @@ def set_iam_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.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNetworkFirewallPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -3031,6 +3677,33 @@ def test_iam_permissions( 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.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkFirewallPolicyRequest( + 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.TestIamPermissionsNetworkFirewallPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/networks/client.py b/google/cloud/compute_v1/services/networks/client.py index a3bab882c..188fb63b1 100644 --- a/google/cloud/compute_v1/services/networks/client.py +++ b/google/cloud/compute_v1/services/networks/client.py @@ -436,6 +436,33 @@ def add_peering_unary( ) -> compute.Operation: r"""Adds a peering to the specified network. + .. 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_add_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.AddPeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.add_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddPeeringNetworkRequest, dict]): The request object. A request message for @@ -540,6 +567,33 @@ def add_peering( ) -> extended_operation.ExtendedOperation: r"""Adds a peering to the specified network. + .. 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_add_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.AddPeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.add_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddPeeringNetworkRequest, dict]): The request object. A request message for @@ -665,6 +719,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified network. + .. 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_delete(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkRequest, dict]): The request object. A request message for @@ -753,6 +834,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified network. + .. 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_delete(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNetworkRequest, dict]): The request object. A request message for @@ -865,6 +973,33 @@ def get( ) -> compute.Network: r"""Returns the specified network. + .. 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(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNetworkRequest, dict]): The request object. A request message for Networks.Get. @@ -957,6 +1092,33 @@ def get_effective_firewalls( ) -> compute.NetworksGetEffectiveFirewallsResponse: r"""Returns the effective firewalls on a given network. + .. 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_effective_firewalls(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsNetworkRequest, dict]): The request object. A request message for @@ -1044,6 +1206,32 @@ def insert_unary( r"""Creates a network in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkRequest, dict]): The request object. A request message for @@ -1128,6 +1316,32 @@ def insert( r"""Creates a network in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNetworkRequest, dict]): The request object. A request message for @@ -1235,6 +1449,33 @@ def list( r"""Retrieves the list of networks available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNetworksRequest, dict]): The request object. A request message for Networks.List. @@ -1322,6 +1563,34 @@ def list_peering_routes( r"""Lists the peering routes exchanged over peering connection. + .. 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_list_peering_routes(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListPeeringRoutesNetworksRequest( + network="network_value", + project="project_value", + ) + + # Make the request + page_result = client.list_peering_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPeeringRoutesNetworksRequest, dict]): The request object. A request message for @@ -1423,6 +1692,33 @@ def patch_unary( in the request. Only the following fields can be modified: routingConfig.routingMode. + .. 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_patch(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkRequest, dict]): The request object. A request message for Networks.Patch. @@ -1520,6 +1816,33 @@ def patch( in the request. Only the following fields can be modified: routingConfig.routingMode. + .. 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_patch(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNetworkRequest, dict]): The request object. A request message for Networks.Patch. @@ -1641,6 +1964,33 @@ def remove_peering_unary( ) -> compute.Operation: r"""Removes a peering from the specified network. + .. 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_remove_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.RemovePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.remove_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemovePeeringNetworkRequest, dict]): The request object. A request message for @@ -1745,6 +2095,33 @@ def remove_peering( ) -> extended_operation.ExtendedOperation: r"""Removes a peering from the specified network. + .. 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_remove_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.RemovePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.remove_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemovePeeringNetworkRequest, dict]): The request object. A request message for @@ -1871,6 +2248,33 @@ def switch_to_custom_mode_unary( r"""Switches the network mode from auto subnet mode to custom subnet mode. + .. 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_switch_to_custom_mode(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.SwitchToCustomModeNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.switch_to_custom_mode(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest, dict]): The request object. A request message for @@ -1960,6 +2364,33 @@ def switch_to_custom_mode( r"""Switches the network mode from auto subnet mode to custom subnet mode. + .. 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_switch_to_custom_mode(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.SwitchToCustomModeNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.switch_to_custom_mode(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest, dict]): The request object. A request message for @@ -2078,6 +2509,33 @@ def update_peering_unary( NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + .. 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_update_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.update_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePeeringNetworkRequest, dict]): The request object. A request message for @@ -2185,6 +2643,33 @@ def update_peering( NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + .. 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_update_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.update_peering(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePeeringNetworkRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/node_groups/client.py b/google/cloud/compute_v1/services/node_groups/client.py index a899933e9..4f5bba899 100644 --- a/google/cloud/compute_v1/services/node_groups/client.py +++ b/google/cloud/compute_v1/services/node_groups/client.py @@ -437,6 +437,34 @@ def add_nodes_unary( ) -> compute.Operation: r"""Adds specified number of nodes to the node group. + .. 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_add_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_nodes(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddNodesNodeGroupRequest, dict]): The request object. A request message for @@ -550,6 +578,34 @@ def add_nodes( ) -> extended_operation.ExtendedOperation: r"""Adds specified number of nodes to the node group. + .. 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_add_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_nodes(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddNodesNodeGroupRequest, dict]): The request object. A request message for @@ -685,6 +741,33 @@ def aggregated_list( use nodeGroups.listNodes for more details about each group. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeGroupsRequest, dict]): The request object. A request message for @@ -772,6 +855,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified NodeGroup 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_delete(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodeGroupRequest, dict]): The request object. A request message for @@ -873,6 +984,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified NodeGroup 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_delete(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodeGroupRequest, dict]): The request object. A request message for @@ -1002,6 +1141,34 @@ def delete_nodes_unary( ) -> compute.Operation: r"""Deletes specified nodes from the node group. + .. 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_delete_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_nodes(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest, dict]): The request object. A request message for @@ -1117,6 +1284,34 @@ def delete_nodes( ) -> extended_operation.ExtendedOperation: r"""Deletes specified nodes from the node group. + .. 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_delete_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_nodes(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest, dict]): The request object. A request message for @@ -1257,6 +1452,34 @@ def get( the "nodes" field should not be used. Use nodeGroups.listNodes instead. + .. 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(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNodeGroupRequest, dict]): The request object. A request message for NodeGroups.Get. @@ -1365,6 +1588,34 @@ def get_iam_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.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNodeGroupRequest( + 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.GetIamPolicyNodeGroupRequest, dict]): The request object. A request message for @@ -1506,6 +1757,34 @@ def insert_unary( r"""Creates a NodeGroup resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeGroupRequest( + initial_node_count=1911, + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNodeGroupRequest, dict]): The request object. A request message for @@ -1617,6 +1896,34 @@ def insert( r"""Creates a NodeGroup resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeGroupRequest( + initial_node_count=1911, + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNodeGroupRequest, dict]): The request object. A request message for @@ -1752,6 +2059,34 @@ def list( specified project. Note: use nodeGroups.listNodes for more details about each group. + .. 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_list(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNodeGroupsRequest, dict]): The request object. A request message for @@ -1854,6 +2189,35 @@ def list_nodes( ) -> pagers.ListNodesPager: r"""Lists nodes in the node group. + .. 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_list_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNodesNodeGroupsRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_nodes(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNodesNodeGroupsRequest, dict]): The request object. A request message for @@ -1966,6 +2330,34 @@ def patch_unary( ) -> compute.Operation: r"""Updates the specified node group. + .. 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_patch(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.PatchNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNodeGroupRequest, dict]): The request object. A request message for @@ -2075,6 +2467,34 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Updates the specified node group. + .. 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_patch(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.PatchNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchNodeGroupRequest, dict]): The request object. A request message for @@ -2210,6 +2630,34 @@ def set_iam_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.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNodeGroupRequest( + 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.SetIamPolicyNodeGroupRequest, dict]): The request object. A request message for @@ -2363,6 +2811,34 @@ def set_node_template_unary( ) -> compute.Operation: r"""Updates the node template of the node group. + .. 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_node_template(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNodeTemplateNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_node_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest, dict]): The request object. A request message for @@ -2478,6 +2954,34 @@ def set_node_template( ) -> extended_operation.ExtendedOperation: r"""Updates the node template of the node group. + .. 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_node_template(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNodeTemplateNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_node_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest, dict]): The request object. A request message for @@ -2621,6 +3125,34 @@ def simulate_maintenance_event_unary( r"""Simulates maintenance event on specified nodes from the node group. + .. 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_simulate_maintenance_event(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): The request object. A request message for @@ -2747,6 +3279,34 @@ def simulate_maintenance_event( r"""Simulates maintenance event on specified nodes from the node group. + .. 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_simulate_maintenance_event(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest, dict]): The request object. A request message for @@ -2898,6 +3458,34 @@ def test_iam_permissions( 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.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNodeGroupRequest( + 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.TestIamPermissionsNodeGroupRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/node_templates/client.py b/google/cloud/compute_v1/services/node_templates/client.py index d1d05fd13..7c4a390b8 100644 --- a/google/cloud/compute_v1/services/node_templates/client.py +++ b/google/cloud/compute_v1/services/node_templates/client.py @@ -434,6 +434,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of node templates. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeTemplatesRequest, dict]): The request object. A request message for @@ -521,6 +548,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified NodeTemplate 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_delete(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeTemplateRequest( + node_template="node_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodeTemplateRequest, dict]): The request object. A request message for @@ -622,6 +677,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified NodeTemplate 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_delete(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeTemplateRequest( + node_template="node_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteNodeTemplateRequest, dict]): The request object. A request message for @@ -748,6 +831,34 @@ def get( ) -> compute.NodeTemplate: r"""Returns the specified node template. + .. 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(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeTemplateRequest( + node_template="node_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNodeTemplateRequest, dict]): The request object. A request message for @@ -851,6 +962,34 @@ def get_iam_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.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNodeTemplateRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyNodeTemplateRequest, dict]): The request object. A request message for @@ -991,6 +1130,33 @@ def insert_unary( r"""Creates a NodeTemplate resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNodeTemplateRequest, dict]): The request object. A request message for @@ -1090,6 +1256,33 @@ def insert( r"""Creates a NodeTemplate resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertNodeTemplateRequest, dict]): The request object. A request message for @@ -1213,6 +1406,34 @@ def list( r"""Retrieves a list of node templates available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeTemplatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNodeTemplatesRequest, dict]): The request object. A request message for @@ -1319,6 +1540,34 @@ def set_iam_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.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNodeTemplateRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyNodeTemplateRequest, dict]): The request object. A request message for @@ -1475,6 +1724,34 @@ def test_iam_permissions( 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.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNodeTemplateRequest( + project="project_value", + region="region_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.TestIamPermissionsNodeTemplateRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/node_types/client.py b/google/cloud/compute_v1/services/node_types/client.py index 65fbb49b9..f98b006ec 100644 --- a/google/cloud/compute_v1/services/node_types/client.py +++ b/google/cloud/compute_v1/services/node_types/client.py @@ -429,6 +429,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of node types. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListNodeTypesRequest, dict]): The request object. A request message for @@ -516,6 +543,34 @@ def get( ) -> compute.NodeType: r"""Returns the specified node type. + .. 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(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeTypeRequest( + node_type="node_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNodeTypeRequest, dict]): The request object. A request message for NodeTypes.Get. @@ -622,6 +677,34 @@ def list( r"""Retrieves a list of node types available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListNodeTypesRequest, dict]): The request object. A request message for NodeTypes.List. diff --git a/google/cloud/compute_v1/services/packet_mirrorings/client.py b/google/cloud/compute_v1/services/packet_mirrorings/client.py index 95fd0ccef..1aed5d29d 100644 --- a/google/cloud/compute_v1/services/packet_mirrorings/client.py +++ b/google/cloud/compute_v1/services/packet_mirrorings/client.py @@ -436,6 +436,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of packetMirrorings. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListPacketMirroringsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListPacketMirroringsRequest, dict]): The request object. A request message for @@ -524,6 +551,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified PacketMirroring 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_delete(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.DeletePacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePacketMirroringRequest, dict]): The request object. A request message for @@ -623,6 +678,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified PacketMirroring 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_delete(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.DeletePacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePacketMirroringRequest, dict]): The request object. A request message for @@ -747,6 +830,34 @@ def get( ) -> compute.PacketMirroring: r"""Returns the specified PacketMirroring 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_get(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.GetPacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetPacketMirroringRequest, dict]): The request object. A request message for @@ -856,6 +967,33 @@ def insert_unary( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.InsertPacketMirroringRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPacketMirroringRequest, dict]): The request object. A request message for @@ -954,6 +1092,33 @@ def insert( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.InsertPacketMirroringRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPacketMirroringRequest, dict]): The request object. A request message for @@ -1075,6 +1240,34 @@ def list( r"""Retrieves a list of PacketMirroring resources available to the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.ListPacketMirroringsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPacketMirroringsRequest, dict]): The request object. A request message for @@ -1180,6 +1373,34 @@ def patch_unary( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.PatchPacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPacketMirroringRequest, dict]): The request object. A request message for @@ -1292,6 +1513,34 @@ def patch( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.PatchPacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPacketMirroringRequest, dict]): The request object. A request message for @@ -1431,6 +1680,34 @@ def test_iam_permissions( 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.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsPacketMirroringRequest( + project="project_value", + region="region_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.TestIamPermissionsPacketMirroringRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/projects/client.py b/google/cloud/compute_v1/services/projects/client.py index 824a59da3..6cf3b4a78 100644 --- a/google/cloud/compute_v1/services/projects/client.py +++ b/google/cloud/compute_v1/services/projects/client.py @@ -432,6 +432,32 @@ def disable_xpn_host_unary( ) -> compute.Operation: r"""Disable this project as a shared VPC host project. + .. 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_disable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_host(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DisableXpnHostProjectRequest, dict]): The request object. A request message for @@ -507,6 +533,32 @@ def disable_xpn_host( ) -> extended_operation.ExtendedOperation: r"""Disable this project as a shared VPC host project. + .. 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_disable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_host(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DisableXpnHostProjectRequest, dict]): The request object. A request message for @@ -610,6 +662,32 @@ def disable_xpn_resource_unary( r"""Disable a service resource (also known as service project) associated with this host project. + .. 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_disable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_resource(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DisableXpnResourceProjectRequest, dict]): The request object. A request message for @@ -700,6 +778,32 @@ def disable_xpn_resource( r"""Disable a service resource (also known as service project) associated with this host project. + .. 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_disable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_resource(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DisableXpnResourceProjectRequest, dict]): The request object. A request message for @@ -810,6 +914,32 @@ def enable_xpn_host_unary( ) -> compute.Operation: r"""Enable this project as a shared VPC host project. + .. 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_enable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_host(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.EnableXpnHostProjectRequest, dict]): The request object. A request message for @@ -885,6 +1015,32 @@ def enable_xpn_host( ) -> extended_operation.ExtendedOperation: r"""Enable this project as a shared VPC host project. + .. 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_enable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_host(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.EnableXpnHostProjectRequest, dict]): The request object. A request message for @@ -989,6 +1145,32 @@ def enable_xpn_resource_unary( host project, so that subnets in the host project can be used by instances in the service project. + .. 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_enable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_resource(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.EnableXpnResourceProjectRequest, dict]): The request object. A request message for @@ -1080,6 +1262,32 @@ def enable_xpn_resource( host project, so that subnets in the host project can be used by instances in the service project. + .. 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_enable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_resource(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.EnableXpnResourceProjectRequest, dict]): The request object. A request message for @@ -1198,6 +1406,32 @@ def get( ``selfLink`` fields, add the query parameter ``?fields=id,selfLink`` to your request. + .. 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(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetProjectRequest( + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetProjectRequest, dict]): The request object. A request message for Projects.Get. @@ -1276,6 +1510,32 @@ def get_xpn_host( r"""Gets the shared VPC host project that this project links to. May be empty if no link 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_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.get_xpn_host(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetXpnHostProjectRequest, dict]): The request object. A request message for @@ -1355,6 +1615,33 @@ def get_xpn_resources( r"""Gets service resources (a.k.a service project) associated with this host project. + .. 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_xpn_resources(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetXpnResourcesProjectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.get_xpn_resources(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetXpnResourcesProjectsRequest, dict]): The request object. A request message for @@ -1444,6 +1731,33 @@ def list_xpn_hosts( r"""Lists all shared VPC host projects visible to the user in an organization. + .. 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_list_xpn_hosts(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.ListXpnHostsProjectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list_xpn_hosts(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListXpnHostsProjectsRequest, dict]): The request object. A request message for @@ -1539,6 +1853,32 @@ def move_disk_unary( ) -> compute.Operation: r"""Moves a persistent disk from one zone to another. + .. 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_move_disk(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveDiskProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveDiskProjectRequest, dict]): The request object. A request message for @@ -1622,6 +1962,32 @@ def move_disk( ) -> extended_operation.ExtendedOperation: r"""Moves a persistent disk from one zone to another. + .. 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_move_disk(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveDiskProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_disk(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveDiskProjectRequest, dict]): The request object. A request message for @@ -1733,6 +2099,32 @@ def move_instance_unary( see the `known issue `__. + .. 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_move_instance(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveInstanceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveInstanceProjectRequest, dict]): The request object. A request message for @@ -1820,6 +2212,32 @@ def move_instance( see the `known issue `__. + .. 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_move_instance(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveInstanceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.MoveInstanceProjectRequest, dict]): The request object. A request message for @@ -1931,6 +2349,32 @@ def set_common_instance_metadata_unary( specified project using the data included in the request. + .. 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_common_instance_metadata(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetCommonInstanceMetadataProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_common_instance_metadata(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest, dict]): The request object. A request message for @@ -2020,6 +2464,32 @@ def set_common_instance_metadata( specified project using the data included in the request. + .. 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_common_instance_metadata(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetCommonInstanceMetadataProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_common_instance_metadata(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest, dict]): The request object. A request message for @@ -2136,6 +2606,32 @@ def set_default_network_tier_unary( address/forwardingRule/instance is created without specifying the network tier field. + .. 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_default_network_tier(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetDefaultNetworkTierProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_default_network_tier(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest, dict]): The request object. A request message for @@ -2230,6 +2726,32 @@ def set_default_network_tier( address/forwardingRule/instance is created without specifying the network tier field. + .. 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_default_network_tier(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetDefaultNetworkTierProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_default_network_tier(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest, dict]): The request object. A request message for @@ -2346,6 +2868,32 @@ def set_usage_export_bucket_unary( an empty request body using this method, the usage export feature will be disabled. + .. 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_usage_export_bucket(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetUsageExportBucketProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_usage_export_bucket(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest, dict]): The request object. A request message for @@ -2434,6 +2982,32 @@ def set_usage_export_bucket( an empty request body using this method, the usage export feature will be disabled. + .. 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_usage_export_bucket(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetUsageExportBucketProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_usage_export_bucket(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/public_advertised_prefixes/client.py b/google/cloud/compute_v1/services/public_advertised_prefixes/client.py index 1022c2b6f..d6ada380e 100644 --- a/google/cloud/compute_v1/services/public_advertised_prefixes/client.py +++ b/google/cloud/compute_v1/services/public_advertised_prefixes/client.py @@ -437,6 +437,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified PublicAdvertisedPrefix + .. 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_delete(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -529,6 +556,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified PublicAdvertisedPrefix + .. 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_delete(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -646,6 +700,33 @@ def get( r"""Returns the specified PublicAdvertisedPrefix 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_get(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetPublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -746,6 +827,32 @@ def insert_unary( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicAdvertisedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -837,6 +944,32 @@ def insert( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicAdvertisedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -947,6 +1080,33 @@ def list( ) -> pagers.ListPager: r"""Lists the PublicAdvertisedPrefixes for a project. + .. 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_list(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListPublicAdvertisedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPublicAdvertisedPrefixesRequest, dict]): The request object. A request message for @@ -1041,6 +1201,33 @@ def patch_unary( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for @@ -1150,6 +1337,33 @@ def patch( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/public_delegated_prefixes/client.py b/google/cloud/compute_v1/services/public_delegated_prefixes/client.py index 805e0f226..8fbe62475 100644 --- a/google/cloud/compute_v1/services/public_delegated_prefixes/client.py +++ b/google/cloud/compute_v1/services/public_delegated_prefixes/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListPublicDelegatedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListPublicDelegatedPrefixesRequest, dict]): The request object. A request message for @@ -531,6 +558,34 @@ def delete_unary( r"""Deletes the specified PublicDelegatedPrefix in the given region. + .. 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_delete(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -633,6 +688,34 @@ def delete( r"""Deletes the specified PublicDelegatedPrefix in the given region. + .. 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_delete(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -758,6 +841,34 @@ def get( r"""Returns the specified PublicDelegatedPrefix resource in the given region. + .. 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(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -870,6 +981,33 @@ def insert_unary( project in the given region using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicDelegatedPrefixeRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -974,6 +1112,33 @@ def insert( project in the given region using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicDelegatedPrefixeRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -1099,6 +1264,34 @@ def list( r"""Lists the PublicDelegatedPrefixes for a project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListPublicDelegatedPrefixesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPublicDelegatedPrefixesRequest, dict]): The request object. A request message for @@ -1206,6 +1399,34 @@ def patch_unary( supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest, dict]): The request object. A request message for @@ -1324,6 +1545,34 @@ def patch( supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_autoscalers/client.py b/google/cloud/compute_v1/services/region_autoscalers/client.py index eca7d26a7..0c30ef513 100644 --- a/google/cloud/compute_v1/services/region_autoscalers/client.py +++ b/google/cloud/compute_v1/services/region_autoscalers/client.py @@ -436,6 +436,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified autoscaler. + .. 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_delete(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest, dict]): The request object. A request message for @@ -535,6 +563,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified autoscaler. + .. 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_delete(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest, dict]): The request object. A request message for @@ -659,6 +715,34 @@ def get( ) -> compute.Autoscaler: r"""Returns the specified autoscaler. + .. 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(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionAutoscalerRequest, dict]): The request object. A request message for @@ -768,6 +852,33 @@ def insert_unary( r"""Creates an autoscaler in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionAutoscalerRequest, dict]): The request object. A request message for @@ -867,6 +978,33 @@ def insert( r"""Creates an autoscaler in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionAutoscalerRequest, dict]): The request object. A request message for @@ -990,6 +1128,34 @@ def list( r"""Retrieves a list of autoscalers contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionAutoscalersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionAutoscalersRequest, dict]): The request object. A request message for @@ -1095,6 +1261,33 @@ def patch_unary( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionAutoscalerRequest, dict]): The request object. A request message for @@ -1196,6 +1389,33 @@ def patch( PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionAutoscalerRequest, dict]): The request object. A request message for @@ -1320,6 +1540,33 @@ def update_unary( r"""Updates an autoscaler in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest, dict]): The request object. A request message for @@ -1419,6 +1666,33 @@ def update( r"""Updates an autoscaler in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_backend_services/client.py b/google/cloud/compute_v1/services/region_backend_services/client.py index 5da6f6697..3740cb648 100644 --- a/google/cloud/compute_v1/services/region_backend_services/client.py +++ b/google/cloud/compute_v1/services/region_backend_services/client.py @@ -439,6 +439,34 @@ def delete_unary( r"""Deletes the specified regional BackendService 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_delete(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest, dict]): The request object. A request message for @@ -543,6 +571,34 @@ def delete( r"""Deletes the specified regional BackendService 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_delete(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest, dict]): The request object. A request message for @@ -670,6 +726,34 @@ def get( r"""Returns the specified regional BackendService 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_get(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionBackendServiceRequest, dict]): The request object. A request message for @@ -790,6 +874,34 @@ def get_health( r"""Gets the most recent health check results for this regional BackendService. + .. 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_health(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetHealthRegionBackendServiceRequest, dict]): The request object. A request message for @@ -903,6 +1015,34 @@ def get_iam_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.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionBackendServiceRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1047,6 +1187,33 @@ def insert_unary( request. For more information, see Backend services overview. + .. 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_insert(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionBackendServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1150,6 +1317,33 @@ def insert( request. For more information, see Backend services overview. + .. 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_insert(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionBackendServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1274,6 +1468,34 @@ def list( resources available to the specified project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionBackendServicesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionBackendServicesRequest, dict]): The request object. A request message for @@ -1382,6 +1604,34 @@ def patch_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1497,6 +1747,34 @@ def patch( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1638,6 +1916,34 @@ def set_iam_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.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionBackendServiceRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1793,6 +2099,34 @@ def update_unary( resource with the data included in the request. For more information, see Backend services overview . + .. 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_update(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest, dict]): The request object. A request message for @@ -1908,6 +2242,34 @@ def update( resource with the data included in the request. For more information, see Backend services overview . + .. 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_update(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_commitments/client.py b/google/cloud/compute_v1/services/region_commitments/client.py index 8e152de2e..6ff8595b6 100644 --- a/google/cloud/compute_v1/services/region_commitments/client.py +++ b/google/cloud/compute_v1/services/region_commitments/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves an aggregated list of commitments by region. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListRegionCommitmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListRegionCommitmentsRequest, dict]): The request object. A request message for @@ -524,6 +551,34 @@ def get( ) -> compute.Commitment: r"""Returns the specified commitment 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_get(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionCommitmentRequest( + commitment="commitment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionCommitmentRequest, dict]): The request object. A request message for @@ -629,6 +684,33 @@ def insert_unary( r"""Creates a commitment in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionCommitmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionCommitmentRequest, dict]): The request object. A request message for @@ -726,6 +808,33 @@ def insert( r"""Creates a commitment in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionCommitmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionCommitmentRequest, dict]): The request object. A request message for @@ -847,6 +956,34 @@ def list( r"""Retrieves a list of commitments contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionCommitmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionCommitmentsRequest, dict]): The request object. A request message for @@ -952,6 +1089,34 @@ def update_unary( part of update-mask. Only the following fields can be modified: auto_renew. + .. 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_update(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionCommitmentRequest( + commitment="commitment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionCommitmentRequest, dict]): The request object. A request message for @@ -1062,6 +1227,34 @@ def update( part of update-mask. Only the following fields can be modified: auto_renew. + .. 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_update(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionCommitmentRequest( + commitment="commitment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionCommitmentRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_disk_types/client.py b/google/cloud/compute_v1/services/region_disk_types/client.py index 55472880b..c4aadc060 100644 --- a/google/cloud/compute_v1/services/region_disk_types/client.py +++ b/google/cloud/compute_v1/services/region_disk_types/client.py @@ -433,6 +433,34 @@ def get( ) -> compute.DiskType: r"""Returns the specified regional disk type. + .. 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(): + # Create a client + client = compute_v1.RegionDiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionDiskTypeRequest( + disk_type="disk_type_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionDiskTypeRequest, dict]): The request object. A request message for @@ -541,6 +569,34 @@ def list( r"""Retrieves a list of regional disk types available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.RegionDiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionDiskTypesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionDiskTypesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_disks/client.py b/google/cloud/compute_v1/services/region_disks/client.py index 9b3560d46..7f3b1a338 100644 --- a/google/cloud/compute_v1/services/region_disks/client.py +++ b/google/cloud/compute_v1/services/region_disks/client.py @@ -441,6 +441,34 @@ def add_resource_policies_unary( You can only add one policy which will be applied to this disk for scheduling snapshot creation. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for @@ -558,6 +586,34 @@ def add_resource_policies( You can only add one policy which will be applied to this disk for scheduling snapshot creation. + .. 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_add_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for @@ -695,6 +751,33 @@ def bulk_insert_unary( ) -> compute.Operation: r"""Bulk create a set of disks. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionDiskRequest, dict]): The request object. A request message for @@ -799,6 +882,33 @@ def bulk_insert( ) -> extended_operation.ExtendedOperation: r"""Bulk create a set of disks. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionDiskRequest, dict]): The request object. A request message for @@ -931,6 +1041,34 @@ def create_snapshot_unary( features, such as creating snapshots in a project different from the source disk project. + .. 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_create_snapshot(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest, dict]): The request object. A request message for @@ -1042,6 +1180,34 @@ def create_snapshot( features, such as creating snapshots in a project different from the source disk project. + .. 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_create_snapshot(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest, dict]): The request object. A request message for @@ -1177,6 +1343,34 @@ def delete_unary( a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionDiskRequest, dict]): The request object. A request message for @@ -1280,6 +1474,34 @@ def delete( a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionDiskRequest, dict]): The request object. A request message for @@ -1404,6 +1626,34 @@ def get( ) -> compute.Disk: r"""Returns a specified regional persistent disk. + .. 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(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionDiskRequest, dict]): The request object. A request message for @@ -1514,6 +1764,34 @@ def get_iam_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.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionDiskRequest, dict]): The request object. A request message for @@ -1654,6 +1932,33 @@ def insert_unary( r"""Creates a persistent regional disk in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionDiskRequest, dict]): The request object. A request message for @@ -1751,6 +2056,33 @@ def insert( r"""Creates a persistent regional disk in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionDiskRequest, dict]): The request object. A request message for @@ -1872,6 +2204,34 @@ def list( r"""Retrieves the list of persistent disks contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionDisksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionDisksRequest, dict]): The request object. A request message for @@ -1977,6 +2337,34 @@ def remove_resource_policies_unary( ) -> compute.Operation: r"""Removes resource policies from a regional disk. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for @@ -2097,6 +2485,34 @@ def remove_resource_policies( ) -> extended_operation.ExtendedOperation: r"""Removes resource policies from a regional disk. + .. 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_remove_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest, dict]): The request object. A request message for @@ -2240,6 +2656,34 @@ def resize_unary( ) -> compute.Operation: r"""Resizes the specified regional persistent disk. + .. 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_resize(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeRegionDiskRequest, dict]): The request object. A request message for @@ -2351,6 +2795,34 @@ def resize( ) -> extended_operation.ExtendedOperation: r"""Resizes the specified regional persistent disk. + .. 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_resize(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeRegionDiskRequest, dict]): The request object. A request message for @@ -2488,6 +2960,34 @@ def set_iam_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.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionDiskRequest, dict]): The request object. A request message for @@ -2641,6 +3141,34 @@ def set_labels_unary( ) -> compute.Operation: r"""Sets the labels on the target regional disk. + .. 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_labels(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsRegionDiskRequest, dict]): The request object. A request message for @@ -2754,6 +3282,34 @@ def set_labels( ) -> extended_operation.ExtendedOperation: r"""Sets the labels on the target regional disk. + .. 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_labels(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsRegionDiskRequest, dict]): The request object. A request message for @@ -2895,6 +3451,34 @@ def start_async_replication_unary( r"""Starts asynchronous replication. Must be invoked on the primary disk. + .. 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_start_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3016,6 +3600,34 @@ def start_async_replication( r"""Starts asynchronous replication. Must be invoked on the primary disk. + .. 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_start_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StartAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3159,6 +3771,34 @@ def stop_async_replication_unary( r"""Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + .. 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_stop_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3261,6 +3901,34 @@ def stop_async_replication( r"""Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. + .. 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_stop_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3391,6 +4059,33 @@ def stop_group_async_replication_unary( group of disks. Can be invoked either in the primary or secondary scope. + .. 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_stop_group_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopGroupAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3503,6 +4198,33 @@ def stop_group_async_replication( group of disks. Can be invoked either in the primary or secondary scope. + .. 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_stop_group_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.StopGroupAsyncReplicationRegionDiskRequest, dict]): The request object. A request message for @@ -3640,6 +4362,34 @@ def test_iam_permissions( 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.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsRegionDiskRequest( + project="project_value", + region="region_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.TestIamPermissionsRegionDiskRequest, dict]): The request object. A request message for @@ -3754,6 +4504,34 @@ def update_unary( update-mask. Only the following fields can be modified: user_license. + .. 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_update(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): The request object. A request message for @@ -3864,6 +4642,34 @@ def update( update-mask. Only the following fields can be modified: user_license. + .. 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_update(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionDiskRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_health_check_services/client.py b/google/cloud/compute_v1/services/region_health_check_services/client.py index cb5b031ca..d057b0a27 100644 --- a/google/cloud/compute_v1/services/region_health_check_services/client.py +++ b/google/cloud/compute_v1/services/region_health_check_services/client.py @@ -438,6 +438,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified regional HealthCheckService. + .. 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_delete(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -542,6 +570,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified regional HealthCheckService. + .. 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_delete(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -672,6 +728,34 @@ def get( r"""Returns the specified regional HealthCheckService 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_get(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -778,6 +862,33 @@ def insert_unary( specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -880,6 +991,33 @@ def insert( specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -1006,6 +1144,34 @@ def list( been configured for the specified project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionHealthCheckServicesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionHealthCheckServicesRequest, dict]): The request object. A request message for @@ -1113,6 +1279,34 @@ def patch_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest, dict]): The request object. A request message for @@ -1230,6 +1424,34 @@ def patch( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_health_checks/client.py b/google/cloud/compute_v1/services/region_health_checks/client.py index d32c896b5..06dcbf5c7 100644 --- a/google/cloud/compute_v1/services/region_health_checks/client.py +++ b/google/cloud/compute_v1/services/region_health_checks/client.py @@ -436,6 +436,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified HealthCheck 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_delete(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest, dict]): The request object. A request message for @@ -537,6 +565,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified HealthCheck 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_delete(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest, dict]): The request object. A request message for @@ -663,6 +719,34 @@ def get( ) -> compute.HealthCheck: r"""Returns the specified HealthCheck 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_get(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionHealthCheckRequest, dict]): The request object. A request message for @@ -782,6 +866,33 @@ def insert_unary( r"""Creates a HealthCheck resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckRequest, dict]): The request object. A request message for @@ -881,6 +992,33 @@ def insert( r"""Creates a HealthCheck resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionHealthCheckRequest, dict]): The request object. A request message for @@ -1004,6 +1142,34 @@ def list( r"""Retrieves the list of HealthCheck resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionHealthChecksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionHealthChecksRequest, dict]): The request object. A request message for @@ -1111,6 +1277,34 @@ def patch_unary( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckRequest, dict]): The request object. A request message for @@ -1225,6 +1419,34 @@ def patch( method supports PATCH semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionHealthCheckRequest, dict]): The request object. A request message for @@ -1362,6 +1584,34 @@ def update_unary( r"""Updates a HealthCheck resource in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest, dict]): The request object. A request message for @@ -1474,6 +1724,34 @@ def update( r"""Updates a HealthCheck resource in the specified project using the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_instance_group_managers/client.py b/google/cloud/compute_v1/services/region_instance_group_managers/client.py index 418f6d5fc..8f48a3658 100644 --- a/google/cloud/compute_v1/services/region_instance_group_managers/client.py +++ b/google/cloud/compute_v1/services/region_instance_group_managers/client.py @@ -458,6 +458,34 @@ def abandon_instances_unary( VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_abandon_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -598,6 +626,34 @@ def abandon_instances( VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_abandon_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -751,6 +807,34 @@ def apply_updates_to_instances_unary( r"""Apply updates to selected instances the managed instance group. + .. 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_apply_updates_to_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -885,6 +969,34 @@ def apply_updates_to_instances( r"""Apply updates to selected instances the managed instance group. + .. 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_apply_updates_to_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1048,6 +1160,34 @@ def create_instances_unary( the status of the creating or actions with the listmanagedinstances method. + .. 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_create_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1183,6 +1323,34 @@ def create_instances( the status of the creating or actions with the listmanagedinstances method. + .. 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_create_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1334,6 +1502,34 @@ def delete_unary( r"""Deletes the specified managed instance group and all of the instances in that group. + .. 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_delete(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1438,6 +1634,34 @@ def delete( r"""Deletes the specified managed instance group and all of the instances in that group. + .. 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_delete(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1583,6 +1807,34 @@ def delete_instances_unary( removed or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_delete_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1722,6 +1974,34 @@ def delete_instances( removed or deleted. You can specify a maximum of 1000 instances with this method per request. + .. 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_delete_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -1875,6 +2155,34 @@ def delete_per_instance_configs_unary( r"""Deletes selected per-instance configurations for the managed instance group. + .. 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_delete_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2009,6 +2317,34 @@ def delete_per_instance_configs( r"""Deletes selected per-instance configurations for the managed instance group. + .. 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_delete_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2163,6 +2499,34 @@ def get( r"""Returns all of the details about the specified managed instance group. + .. 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(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2282,6 +2646,33 @@ def insert_unary( regional managed instance group can contain up to 2000 instances. + .. 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_insert(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceGroupManagerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2393,6 +2784,33 @@ def insert( regional managed instance group can contain up to 2000 instances. + .. 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_insert(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceGroupManagerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -2520,6 +2938,34 @@ def list( r"""Retrieves the list of managed instance groups that are contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceGroupManagersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2627,6 +3073,35 @@ def list_errors( given regional managed instance group. The filter and orderBy query parameters are not supported. + .. 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_list_errors(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListErrorsRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_errors(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListErrorsRegionInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2750,6 +3225,35 @@ def list_managed_instances( only if the group's ``listManagedInstancesResults`` field is set to ``PAGINATED``. + .. 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_list_managed_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListManagedInstancesRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_managed_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListManagedInstancesRegionInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -2871,6 +3375,35 @@ def list_per_instance_configs( for the managed instance group. The orderBy query parameter is not supported. + .. 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_list_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_per_instance_configs(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPerInstanceConfigsRegionInstanceGroupManagersRequest, dict]): The request object. A request message for @@ -3004,6 +3537,34 @@ def patch_unary( learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + .. 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_patch(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3132,6 +3693,34 @@ def patch( learn how to apply an updated configuration to the VMs in a MIG, see Updating instances in a MIG. + .. 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_patch(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3279,6 +3868,34 @@ def patch_per_instance_configs_unary( serves as a key used to distinguish whether to perform insert or patch. + .. 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_patch_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3415,6 +4032,34 @@ def patch_per_instance_configs( serves as a key used to distinguish whether to perform insert or patch. + .. 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_patch_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3584,6 +4229,34 @@ def recreate_instances_unary( You can specify a maximum of 1000 instances with this method per request. + .. 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_recreate_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3721,6 +4394,34 @@ def recreate_instances( You can specify a maximum of 1000 instances with this method per request. + .. 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_recreate_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -3880,6 +4581,35 @@ def resize_unary( duration has elapsed before the VM instance is removed or deleted. + .. 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_resize(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + size=443, + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4003,6 +4733,35 @@ def resize( duration has elapsed before the VM instance is removed or deleted. + .. 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_resize(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + size=443, + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4143,6 +4902,34 @@ def set_instance_template_unary( instances or recreating instances in this group. Existing instances are not affected. + .. 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_instance_template(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4271,6 +5058,34 @@ def set_instance_template( instances or recreating instances in this group. Existing instances are not affected. + .. 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_instance_template(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4424,6 +5239,34 @@ def set_target_pools_unary( in this group are assigned. Existing instances in the group are not affected. + .. 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_target_pools(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4551,6 +5394,34 @@ def set_target_pools( in this group are assigned. Existing instances in the group are not affected. + .. 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_target_pools(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4706,6 +5577,34 @@ def update_per_instance_configs_unary( serves as a key used to distinguish whether to perform insert or patch. + .. 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_update_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for @@ -4842,6 +5741,34 @@ def update_per_instance_configs( serves as a key used to distinguish whether to perform insert or patch. + .. 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_update_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_instance_groups/client.py b/google/cloud/compute_v1/services/region_instance_groups/client.py index ff375fbe8..4c788d2ac 100644 --- a/google/cloud/compute_v1/services/region_instance_groups/client.py +++ b/google/cloud/compute_v1/services/region_instance_groups/client.py @@ -436,6 +436,34 @@ def get( ) -> compute.InstanceGroup: r"""Returns the specified instance group 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_get(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceGroupRequest, dict]): The request object. A request message for @@ -549,6 +577,34 @@ def list( r"""Retrieves the list of instance group resources contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceGroupsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceGroupsRequest, dict]): The request object. A request message for @@ -661,6 +717,35 @@ def list_instances( all instances or only the instances that are running. The orderBy query parameter is not supported. + .. 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_list_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesRegionInstanceGroupsRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListInstancesRegionInstanceGroupsRequest, dict]): The request object. A request message for @@ -794,6 +879,34 @@ def set_named_ports_unary( r"""Sets the named ports for the specified regional instance group. + .. 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_named_ports(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsRegionInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest, dict]): The request object. A request message for @@ -917,6 +1030,34 @@ def set_named_ports( r"""Sets the named ports for the specified regional instance group. + .. 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_named_ports(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsRegionInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_instance_templates/client.py b/google/cloud/compute_v1/services/region_instance_templates/client.py index fc7b12457..fd236578b 100644 --- a/google/cloud/compute_v1/services/region_instance_templates/client.py +++ b/google/cloud/compute_v1/services/region_instance_templates/client.py @@ -439,6 +439,34 @@ def delete_unary( r"""Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + .. 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_delete(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): The request object. A request message for @@ -543,6 +571,34 @@ def delete( r"""Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. + .. 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_delete(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest, dict]): The request object. A request message for @@ -669,6 +725,34 @@ def get( ) -> compute.InstanceTemplate: r"""Returns the specified instance template. + .. 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(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest, dict]): The request object. A request message for @@ -775,6 +859,33 @@ def insert_unary( and region using the global instance template whose URL is included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): The request object. A request message for @@ -877,6 +988,33 @@ def insert( and region using the global instance template whose URL is included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest, dict]): The request object. A request message for @@ -1002,6 +1140,34 @@ def list( r"""Retrieves a list of instance templates that are contained within the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceTemplatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_instances/client.py b/google/cloud/compute_v1/services/region_instances/client.py index 71d7911ec..7e59ab004 100644 --- a/google/cloud/compute_v1/services/region_instances/client.py +++ b/google/cloud/compute_v1/services/region_instances/client.py @@ -438,6 +438,33 @@ def bulk_insert_unary( r"""Creates multiple instances in a given region. Count specifies the number of instances to create. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.RegionInstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionInstanceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest, dict]): The request object. A request message for @@ -543,6 +570,33 @@ def bulk_insert( r"""Creates multiple instances in a given region. Count specifies the number of instances to create. + .. 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_bulk_insert(): + # Create a client + client = compute_v1.RegionInstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionInstanceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py index b6c1187fd..2b4dbbee5 100644 --- a/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py +++ b/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py @@ -442,6 +442,34 @@ def delete_unary( that the NEG cannot be deleted if it is configured as a backend of a backend service. + .. 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_delete(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -549,6 +577,34 @@ def delete( that the NEG cannot be deleted if it is configured as a backend of a backend service. + .. 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_delete(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -679,6 +735,34 @@ def get( ) -> compute.NetworkEndpointGroup: r"""Returns the specified network endpoint group. + .. 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(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -794,6 +878,33 @@ def insert_unary( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkEndpointGroupRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -899,6 +1010,33 @@ def insert( project using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkEndpointGroupRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest, dict]): The request object. A request message for @@ -1028,6 +1166,34 @@ def list( groups available to the specified project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNetworkEndpointGroupsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionNetworkEndpointGroupsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_network_firewall_policies/client.py b/google/cloud/compute_v1/services/region_network_firewall_policies/client.py index 06b778c03..fb867a126 100644 --- a/google/cloud/compute_v1/services/region_network_firewall_policies/client.py +++ b/google/cloud/compute_v1/services/region_network_firewall_policies/client.py @@ -444,6 +444,34 @@ def add_association_unary( r"""Inserts an association for the specified network firewall 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_add_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -564,6 +592,34 @@ def add_association( r"""Inserts an association for the specified network firewall 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_add_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -706,6 +762,34 @@ def add_rule_unary( ) -> compute.Operation: r"""Inserts a rule into a network firewall 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_add_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -819,6 +903,34 @@ def add_rule( ) -> extended_operation.ExtendedOperation: r"""Inserts a rule into a network firewall 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_add_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -957,6 +1069,34 @@ def clone_rules_unary( r"""Copies rules to the specified network firewall 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_clone_rules(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1063,6 +1203,34 @@ def clone_rules( r"""Copies rules to the specified network firewall 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_clone_rules(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1193,6 +1361,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified network firewall 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_delete(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1296,6 +1492,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified network firewall 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_delete(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1424,6 +1648,34 @@ def get( ) -> compute.FirewallPolicy: r"""Returns the specified network firewall 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_get(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1525,6 +1777,34 @@ def get_association( ) -> compute.FirewallPolicyAssociation: r"""Gets an association with the specified name. + .. 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_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1628,6 +1908,34 @@ def get_effective_firewalls( ) -> compute.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse: r"""Returns the effective firewalls on a given network. + .. 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_effective_firewalls(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest( + network="network_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1731,6 +2039,34 @@ def get_iam_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.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1874,6 +2210,34 @@ def get_rule( ) -> compute.FirewallPolicyRule: r"""Gets a rule of the specified priority. + .. 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_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -1980,6 +2344,33 @@ def insert_unary( r"""Creates a new network firewall policy in the specified project and region. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2081,6 +2472,33 @@ def insert( r"""Creates a new network firewall policy in the specified project and region. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2207,6 +2625,34 @@ def list( been configured for the specified project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNetworkFirewallPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionNetworkFirewallPoliciesRequest, dict]): The request object. A request message for @@ -2311,6 +2757,34 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified network firewall 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_patch(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2424,6 +2898,34 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified network firewall 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_patch(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2562,6 +3064,34 @@ def patch_rule_unary( ) -> compute.Operation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2675,6 +3205,34 @@ def patch_rule( ) -> extended_operation.ExtendedOperation: r"""Patches a rule of the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2813,6 +3371,34 @@ def remove_association_unary( r"""Removes an association for the specified network firewall 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_remove_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -2921,6 +3507,34 @@ def remove_association( r"""Removes an association for the specified network firewall 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_remove_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -3053,6 +3667,34 @@ def remove_rule_unary( ) -> compute.Operation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -3158,6 +3800,34 @@ def remove_rule( ) -> extended_operation.ExtendedOperation: r"""Deletes a rule of the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -3292,6 +3962,34 @@ def set_iam_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.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for @@ -3450,6 +4148,34 @@ def test_iam_permissions( 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.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_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.TestIamPermissionsRegionNetworkFirewallPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_notification_endpoints/client.py b/google/cloud/compute_v1/services/region_notification_endpoints/client.py index e6709ef5f..5492cf2af 100644 --- a/google/cloud/compute_v1/services/region_notification_endpoints/client.py +++ b/google/cloud/compute_v1/services/region_notification_endpoints/client.py @@ -441,6 +441,34 @@ def delete_unary( r"""Deletes the specified NotificationEndpoint in the given region + .. 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_delete(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNotificationEndpointRequest( + notification_endpoint="notification_endpoint_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest, dict]): The request object. A request message for @@ -545,6 +573,34 @@ def delete( r"""Deletes the specified NotificationEndpoint in the given region + .. 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_delete(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNotificationEndpointRequest( + notification_endpoint="notification_endpoint_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest, dict]): The request object. A request message for @@ -674,6 +730,34 @@ def get( r"""Returns the specified NotificationEndpoint resource in the given region. + .. 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(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNotificationEndpointRequest( + notification_endpoint="notification_endpoint_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionNotificationEndpointRequest, dict]): The request object. A request message for @@ -784,6 +868,33 @@ def insert_unary( project in the given region using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNotificationEndpointRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest, dict]): The request object. A request message for @@ -886,6 +997,33 @@ def insert( project in the given region using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNotificationEndpointRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest, dict]): The request object. A request message for @@ -1011,6 +1149,34 @@ def list( r"""Lists the NotificationEndpoints for a project in the given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNotificationEndpointsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionNotificationEndpointsRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_operations/client.py b/google/cloud/compute_v1/services/region_operations/client.py index e39b11674..dec8b6327 100644 --- a/google/cloud/compute_v1/services/region_operations/client.py +++ b/google/cloud/compute_v1/services/region_operations/client.py @@ -434,6 +434,34 @@ def delete( r"""Deletes the specified region-specific Operations 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_delete(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionOperationRequest, dict]): The request object. A request message for @@ -535,6 +563,34 @@ def get( r"""Retrieves the specified region-specific Operations 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_get(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionOperationRequest, dict]): The request object. A request message for @@ -647,6 +703,34 @@ def list( r"""Retrieves a list of Operation resources contained within the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionOperationsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionOperationsRequest, dict]): The request object. A request message for @@ -760,6 +844,34 @@ def wait( method returns. Be prepared to retry if the operation is not ``DONE``. + .. 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_wait(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.WaitRegionOperationRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_security_policies/client.py b/google/cloud/compute_v1/services/region_security_policies/client.py index 678bc8647..a988a64ef 100644 --- a/google/cloud/compute_v1/services/region_security_policies/client.py +++ b/google/cloud/compute_v1/services/region_security_policies/client.py @@ -438,6 +438,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -541,6 +569,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -668,6 +724,34 @@ def get( r"""List all of the ordered rules present in a single specified 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_get(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -774,6 +858,33 @@ def insert_unary( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -875,6 +986,33 @@ def insert( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -1000,6 +1138,34 @@ def list( r"""List all the policies that have been configured for the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSecurityPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionSecurityPoliciesRequest, dict]): The request object. A request message for @@ -1107,6 +1273,34 @@ def patch_unary( Please use the per rule methods like addRule, patchRule, and removeRule instead. + .. 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_patch(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest, dict]): The request object. A request message for @@ -1223,6 +1417,34 @@ def patch( Please use the per rule methods like addRule, patchRule, and removeRule instead. + .. 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_patch(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_ssl_certificates/client.py b/google/cloud/compute_v1/services/region_ssl_certificates/client.py index 7edb5f9aa..5905fa43f 100644 --- a/google/cloud/compute_v1/services/region_ssl_certificates/client.py +++ b/google/cloud/compute_v1/services/region_ssl_certificates/client.py @@ -439,6 +439,34 @@ def delete_unary( r"""Deletes the specified SslCertificate resource in the region. + .. 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_delete(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslCertificateRequest( + project="project_value", + region="region_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest, dict]): The request object. A request message for @@ -543,6 +571,34 @@ def delete( r"""Deletes the specified SslCertificate resource in the region. + .. 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_delete(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslCertificateRequest( + project="project_value", + region="region_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest, dict]): The request object. A request message for @@ -671,6 +727,34 @@ def get( specified region. Get a list of available SSL certificates by making a list() request. + .. 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(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSslCertificateRequest( + project="project_value", + region="region_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionSslCertificateRequest, dict]): The request object. A request message for @@ -790,6 +874,33 @@ def insert_unary( project and region using the data included in the request + .. 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_insert(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslCertificateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslCertificateRequest, dict]): The request object. A request message for @@ -892,6 +1003,33 @@ def insert( project and region using the data included in the request + .. 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_insert(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslCertificateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslCertificateRequest, dict]): The request object. A request message for @@ -1016,6 +1154,34 @@ def list( available to the specified project in the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSslCertificatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionSslCertificatesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_ssl_policies/client.py b/google/cloud/compute_v1/services/region_ssl_policies/client.py index 15cde23ea..576299c4a 100644 --- a/google/cloud/compute_v1/services/region_ssl_policies/client.py +++ b/google/cloud/compute_v1/services/region_ssl_policies/client.py @@ -438,6 +438,34 @@ def delete_unary( resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + .. 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_delete(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest, dict]): The request object. A request message for @@ -542,6 +570,34 @@ def delete( resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + .. 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_delete(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest, dict]): The request object. A request message for @@ -670,6 +726,34 @@ def get( r"""Lists all of the ordered rules present in a single specified 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_get(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionSslPolicyRequest, dict]): The request object. A request message for @@ -777,6 +861,33 @@ def insert_unary( r"""Creates a new policy in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslPolicyRequest, dict]): The request object. A request message for @@ -876,6 +987,33 @@ def insert( r"""Creates a new policy in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionSslPolicyRequest, dict]): The request object. A request message for @@ -999,6 +1137,34 @@ def list( r"""Lists all the SSL policies that have been configured for the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSslPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionSslPoliciesRequest, dict]): The request object. A request message for @@ -1102,6 +1268,33 @@ def list_available_features( r"""Lists all features that can be specified in the SSL policy when using custom profile. + .. 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_list_available_features(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAvailableFeaturesRegionSslPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.list_available_features(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAvailableFeaturesRegionSslPoliciesRequest, dict]): The request object. A request message for @@ -1195,6 +1388,34 @@ def patch_unary( r"""Patches the specified SSL policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionSslPolicyRequest, dict]): The request object. A request message for @@ -1306,6 +1527,34 @@ def patch( r"""Patches the specified SSL policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionSslPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_target_http_proxies/client.py b/google/cloud/compute_v1/services/region_target_http_proxies/client.py index dbc94177c..3c9cd9340 100644 --- a/google/cloud/compute_v1/services/region_target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_http_proxies/client.py @@ -438,6 +438,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetHttpProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -541,6 +569,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetHttpProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -668,6 +724,34 @@ def get( r"""Returns the specified TargetHttpProxy resource in the specified region. + .. 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(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -784,6 +868,33 @@ def insert_unary( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -886,6 +997,33 @@ def insert( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1012,6 +1150,34 @@ def list( available to the specified project in the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetHttpProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetHttpProxiesRequest, dict]): The request object. A request message for @@ -1117,6 +1283,34 @@ def set_url_map_unary( ) -> compute.Operation: r"""Changes the URL map for TargetHttpProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1230,6 +1424,34 @@ def set_url_map( ) -> extended_operation.ExtendedOperation: r"""Changes the URL map for TargetHttpProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_target_https_proxies/client.py b/google/cloud/compute_v1/services/region_target_https_proxies/client.py index 3248ff446..19515787d 100644 --- a/google/cloud/compute_v1/services/region_target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_https_proxies/client.py @@ -438,6 +438,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetHttpsProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -541,6 +569,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetHttpsProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -668,6 +724,34 @@ def get( r"""Returns the specified TargetHttpsProxy resource in the specified region. + .. 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(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -783,6 +867,33 @@ def insert_unary( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -885,6 +996,33 @@ def insert( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1011,6 +1149,34 @@ def list( available to the specified project in the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetHttpsProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetHttpsProxiesRequest, dict]): The request object. A request message for @@ -1120,6 +1286,34 @@ def patch_unary( method supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1234,6 +1428,34 @@ def patch( method supports PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1372,6 +1594,34 @@ def set_ssl_certificates_unary( ) -> compute.Operation: r"""Replaces SslCertificates for TargetHttpsProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1499,6 +1749,34 @@ def set_ssl_certificates( ) -> extended_operation.ExtendedOperation: r"""Replaces SslCertificates for TargetHttpsProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1649,6 +1927,34 @@ def set_url_map_unary( ) -> compute.Operation: r"""Changes the URL map for TargetHttpsProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1762,6 +2068,34 @@ def set_url_map( ) -> extended_operation.ExtendedOperation: r"""Changes the URL map for TargetHttpsProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py b/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py index 9223beacb..491f7dfa2 100644 --- a/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py +++ b/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py @@ -438,6 +438,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetTcpProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest, dict]): The request object. A request message for @@ -541,6 +569,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetTcpProxy 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_delete(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest, dict]): The request object. A request message for @@ -667,6 +723,34 @@ def get( ) -> compute.TargetTcpProxy: r"""Returns the specified TargetTcpProxy 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_get(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionTargetTcpProxyRequest, dict]): The request object. A request message for @@ -778,6 +862,33 @@ def insert_unary( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest, dict]): The request object. A request message for @@ -880,6 +991,33 @@ def insert( project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest, dict]): The request object. A request message for @@ -1005,6 +1143,34 @@ def list( r"""Retrieves a list of TargetTcpProxy resources available to the specified project in a given region. + .. 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_list(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetTcpProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionTargetTcpProxiesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/region_url_maps/client.py b/google/cloud/compute_v1/services/region_url_maps/client.py index 8bacc226f..33b99de05 100644 --- a/google/cloud/compute_v1/services/region_url_maps/client.py +++ b/google/cloud/compute_v1/services/region_url_maps/client.py @@ -434,6 +434,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified UrlMap 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_delete(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionUrlMapRequest, dict]): The request object. A request message for @@ -535,6 +563,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified UrlMap 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_delete(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRegionUrlMapRequest, dict]): The request object. A request message for @@ -661,6 +717,34 @@ def get( ) -> compute.UrlMap: r"""Returns the specified UrlMap 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_get(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionUrlMapRequest, dict]): The request object. A request message for @@ -782,6 +866,33 @@ def insert_unary( r"""Creates a UrlMap resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionUrlMapRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionUrlMapRequest, dict]): The request object. A request message for @@ -881,6 +992,33 @@ def insert( r"""Creates a UrlMap resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionUrlMapRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRegionUrlMapRequest, dict]): The request object. A request message for @@ -1004,6 +1142,34 @@ def list( r"""Retrieves the list of UrlMap resources available to the specified project in the specified region. + .. 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_list(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionUrlMapsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionUrlMapsRequest, dict]): The request object. A request message for @@ -1110,6 +1276,34 @@ def patch_unary( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionUrlMapRequest, dict]): The request object. A request message for @@ -1220,6 +1414,34 @@ def patch( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRegionUrlMapRequest, dict]): The request object. A request message for @@ -1353,6 +1575,34 @@ def update_unary( r"""Updates the specified UrlMap resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionUrlMapRequest, dict]): The request object. A request message for @@ -1463,6 +1713,34 @@ def update( r"""Updates the specified UrlMap resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRegionUrlMapRequest, dict]): The request object. A request message for @@ -1601,6 +1879,34 @@ def validate( the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + .. 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_validate(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ValidateRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.validate(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ValidateRegionUrlMapRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/regions/client.py b/google/cloud/compute_v1/services/regions/client.py index 4a135a8e6..2ec9b6d10 100644 --- a/google/cloud/compute_v1/services/regions/client.py +++ b/google/cloud/compute_v1/services/regions/client.py @@ -438,6 +438,33 @@ def get( ``selfLink`` fields, add the query parameter ``?fields=id,selfLink`` to your request. + .. 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(): + # Create a client + client = compute_v1.RegionsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRegionRequest, dict]): The request object. A request message for Regions.Get. @@ -536,6 +563,33 @@ def list( only include the ``id`` and ``selfLink`` fields, add the query parameter ``?fields=id,selfLink`` to your request. + .. 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_list(): + # Create a client + client = compute_v1.RegionsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRegionsRequest, dict]): The request object. A request message for Regions.List. diff --git a/google/cloud/compute_v1/services/reservations/client.py b/google/cloud/compute_v1/services/reservations/client.py index 250143134..8277820ed 100644 --- a/google/cloud/compute_v1/services/reservations/client.py +++ b/google/cloud/compute_v1/services/reservations/client.py @@ -434,6 +434,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of reservations. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListReservationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListReservationsRequest, dict]): The request object. A request message for @@ -522,6 +549,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified reservation. + .. 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_delete(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteReservationRequest, dict]): The request object. A request message for @@ -619,6 +674,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified reservation. + .. 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_delete(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteReservationRequest, dict]): The request object. A request message for @@ -742,6 +825,34 @@ def get( r"""Retrieves information about the specified reservation. + .. 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(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.GetReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetReservationRequest, dict]): The request object. A request message for @@ -844,6 +955,34 @@ def get_iam_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.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyReservationRequest( + 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.GetIamPolicyReservationRequest, dict]): The request object. A request message for @@ -984,6 +1123,33 @@ def insert_unary( r"""Creates a new reservation. For more information, read Reserving zonal resources. + .. 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_insert(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.InsertReservationRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertReservationRequest, dict]): The request object. A request message for @@ -1081,6 +1247,33 @@ def insert( r"""Creates a new reservation. For more information, read Reserving zonal resources. + .. 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_insert(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.InsertReservationRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertReservationRequest, dict]): The request object. A request message for @@ -1202,6 +1395,34 @@ def list( r"""A list of all the reservations that have been configured for the specified project in specified zone. + .. 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_list(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.ListReservationsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListReservationsRequest, dict]): The request object. A request message for @@ -1306,6 +1527,34 @@ def resize_unary( reservations only). For more information, read Modifying reservations. + .. 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_resize(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.ResizeReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeReservationRequest, dict]): The request object. A request message for @@ -1419,6 +1668,34 @@ def resize( reservations only). For more information, read Modifying reservations. + .. 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_resize(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.ResizeReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ResizeReservationRequest, dict]): The request object. A request message for @@ -1554,6 +1831,34 @@ def set_iam_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.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyReservationRequest( + 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.SetIamPolicyReservationRequest, dict]): The request object. A request message for @@ -1710,6 +2015,34 @@ def test_iam_permissions( 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.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsReservationRequest( + 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.TestIamPermissionsReservationRequest, dict]): The request object. A request message for @@ -1821,6 +2154,34 @@ def update_unary( ) -> compute.Operation: r"""Update share settings of the reservation. + .. 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_update(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateReservationRequest, dict]): The request object. A request message for @@ -1926,6 +2287,34 @@ def update( ) -> extended_operation.ExtendedOperation: r"""Update share settings of the reservation. + .. 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_update(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateReservationRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/resource_policies/client.py b/google/cloud/compute_v1/services/resource_policies/client.py index c40e3e70c..f703b2cc7 100644 --- a/google/cloud/compute_v1/services/resource_policies/client.py +++ b/google/cloud/compute_v1/services/resource_policies/client.py @@ -436,6 +436,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of resource policies. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListResourcePoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListResourcePoliciesRequest, dict]): The request object. A request message for @@ -524,6 +551,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified resource 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_delete(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteResourcePolicyRequest( + project="project_value", + region="region_value", + resource_policy="resource_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteResourcePolicyRequest, dict]): The request object. A request message for @@ -623,6 +678,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified resource 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_delete(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteResourcePolicyRequest( + project="project_value", + region="region_value", + resource_policy="resource_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteResourcePolicyRequest, dict]): The request object. A request message for @@ -748,6 +831,34 @@ def get( r"""Retrieves all information of the specified resource 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_get(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetResourcePolicyRequest( + project="project_value", + region="region_value", + resource_policy="resource_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetResourcePolicyRequest, dict]): The request object. A request message for @@ -854,6 +965,34 @@ def get_iam_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.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyResourcePolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyResourcePolicyRequest, dict]): The request object. A request message for @@ -993,6 +1132,33 @@ def insert_unary( ) -> compute.Operation: r"""Creates a new resource 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_insert(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertResourcePolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertResourcePolicyRequest, dict]): The request object. A request message for @@ -1089,6 +1255,33 @@ def insert( ) -> extended_operation.ExtendedOperation: r"""Creates a new resource 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_insert(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertResourcePolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertResourcePolicyRequest, dict]): The request object. A request message for @@ -1211,6 +1404,34 @@ def list( configured for the specified project in specified region. + .. 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_list(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListResourcePoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListResourcePoliciesRequest, dict]): The request object. A request message for @@ -1316,6 +1537,34 @@ def set_iam_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.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyResourcePolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyResourcePolicyRequest, dict]): The request object. A request message for @@ -1472,6 +1721,34 @@ def test_iam_permissions( 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.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsResourcePolicyRequest( + project="project_value", + region="region_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.TestIamPermissionsResourcePolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/routers/client.py b/google/cloud/compute_v1/services/routers/client.py index e5882f00a..51c5aa9da 100644 --- a/google/cloud/compute_v1/services/routers/client.py +++ b/google/cloud/compute_v1/services/routers/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of routers. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListRoutersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListRoutersRequest, dict]): The request object. A request message for @@ -520,6 +547,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified Router 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_delete(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRouterRequest, dict]): The request object. A request message for Routers.Delete. @@ -618,6 +673,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified Router 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_delete(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRouterRequest, dict]): The request object. A request message for Routers.Delete. @@ -741,6 +824,34 @@ def get( ) -> compute.Router: r"""Returns the specified Router 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_get(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRouterRequest, dict]): The request object. A request message for Routers.Get. @@ -841,6 +952,35 @@ def get_nat_mapping_info( r"""Retrieves runtime Nat mapping information of VM endpoints. + .. 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_nat_mapping_info(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetNatMappingInfoRoutersRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + page_result = client.get_nat_mapping_info(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetNatMappingInfoRoutersRequest, dict]): The request object. A request message for @@ -954,6 +1094,34 @@ def get_router_status( r"""Retrieves runtime information of the specified router. + .. 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_router_status(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetRouterStatusRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.get_router_status(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRouterStatusRouterRequest, dict]): The request object. A request message for @@ -1050,6 +1218,33 @@ def insert_unary( r"""Creates a Router resource in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouterRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRouterRequest, dict]): The request object. A request message for Routers.Insert. @@ -1146,6 +1341,33 @@ def insert( r"""Creates a Router resource in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouterRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRouterRequest, dict]): The request object. A request message for Routers.Insert. @@ -1266,6 +1488,34 @@ def list( r"""Retrieves a list of Router resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.ListRoutersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRoutersRequest, dict]): The request object. A request message for Routers.List. @@ -1369,6 +1619,34 @@ def patch_unary( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRouterRequest, dict]): The request object. A request message for Routers.Patch. @@ -1476,6 +1754,34 @@ def patch( semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRouterRequest, dict]): The request object. A request message for Routers.Patch. @@ -1607,6 +1913,34 @@ def preview( and update operations. Calling this method does NOT create or update the router. + .. 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_preview(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.PreviewRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.preview(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PreviewRouterRequest, dict]): The request object. A request message for @@ -1715,6 +2049,34 @@ def update_unary( by the representation enclosed in the request message payload. + .. 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_update(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRouterRequest, dict]): The request object. A request message for Routers.Update. @@ -1826,6 +2188,34 @@ def update( by the representation enclosed in the request message payload. + .. 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_update(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateRouterRequest, dict]): The request object. A request message for Routers.Update. diff --git a/google/cloud/compute_v1/services/routes/client.py b/google/cloud/compute_v1/services/routes/client.py index 22d314363..3cc7696ea 100644 --- a/google/cloud/compute_v1/services/routes/client.py +++ b/google/cloud/compute_v1/services/routes/client.py @@ -433,6 +433,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified Route 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_delete(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouteRequest( + project="project_value", + route="route_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRouteRequest, dict]): The request object. A request message for Routes.Delete. @@ -520,6 +547,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified Route 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_delete(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouteRequest( + project="project_value", + route="route_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteRouteRequest, dict]): The request object. A request message for Routes.Delete. @@ -631,6 +685,33 @@ def get( ) -> compute.Route: r"""Returns the specified Route 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_get(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.GetRouteRequest( + project="project_value", + route="route_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRouteRequest, dict]): The request object. A request message for Routes.Get. See @@ -723,6 +804,32 @@ def insert_unary( r"""Creates a Route resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouteRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRouteRequest, dict]): The request object. A request message for Routes.Insert. @@ -806,6 +913,32 @@ def insert( r"""Creates a Route resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouteRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertRouteRequest, dict]): The request object. A request message for Routes.Insert. @@ -912,6 +1045,33 @@ def list( r"""Retrieves the list of Route resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.ListRoutesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListRoutesRequest, dict]): The request object. A request message for Routes.List. diff --git a/google/cloud/compute_v1/services/security_policies/client.py b/google/cloud/compute_v1/services/security_policies/client.py index d961902fe..d6d6f7f5b 100644 --- a/google/cloud/compute_v1/services/security_policies/client.py +++ b/google/cloud/compute_v1/services/security_policies/client.py @@ -436,6 +436,33 @@ def add_rule_unary( ) -> compute.Operation: r"""Inserts a rule into a security 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_add_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -536,6 +563,33 @@ def add_rule( ) -> extended_operation.ExtendedOperation: r"""Inserts a rule into a security 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_add_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -661,6 +715,33 @@ def aggregated_list( r"""Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListSecurityPoliciesRequest, dict]): The request object. A request message for @@ -749,6 +830,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSecurityPolicyRequest, dict]): The request object. A request message for @@ -839,6 +947,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified 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_delete(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSecurityPolicyRequest, dict]): The request object. A request message for @@ -954,6 +1089,33 @@ def get( r"""List all of the ordered rules present in a single specified 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_get(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSecurityPolicyRequest, dict]): The request object. A request message for @@ -1046,6 +1208,33 @@ def get_rule( ) -> compute.SecurityPolicyRule: r"""Gets a rule at the specified priority. + .. 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_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -1139,6 +1328,32 @@ def insert_unary( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSecurityPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSecurityPolicyRequest, dict]): The request object. A request message for @@ -1223,6 +1438,32 @@ def insert( r"""Creates a new policy in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSecurityPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSecurityPolicyRequest, dict]): The request object. A request message for @@ -1330,6 +1571,33 @@ def list( r"""List all the policies that have been configured for the specified project. + .. 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_list(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListSecurityPoliciesRequest, dict]): The request object. A request message for @@ -1418,6 +1686,32 @@ def list_preconfigured_expression_sets( r"""Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + .. 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_list_preconfigured_expression_sets(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListPreconfiguredExpressionSetsSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + response = client.list_preconfigured_expression_sets(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListPreconfiguredExpressionSetsSecurityPoliciesRequest, dict]): The request object. A request message for @@ -1504,6 +1798,33 @@ def patch_unary( Please use the per rule methods like addRule, patchRule, and removeRule instead. + .. 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_patch(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSecurityPolicyRequest, dict]): The request object. A request message for @@ -1607,6 +1928,33 @@ def patch( Please use the per rule methods like addRule, patchRule, and removeRule instead. + .. 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_patch(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSecurityPolicyRequest, dict]): The request object. A request message for @@ -1729,6 +2077,33 @@ def patch_rule_unary( ) -> compute.Operation: r"""Patches a rule at the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -1829,6 +2204,33 @@ def patch_rule( ) -> extended_operation.ExtendedOperation: r"""Patches a rule at the specified priority. + .. 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_patch_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -1952,6 +2354,33 @@ def remove_rule_unary( ) -> compute.Operation: r"""Deletes a rule at the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -2042,6 +2471,33 @@ def remove_rule( ) -> extended_operation.ExtendedOperation: r"""Deletes a rule at the specified priority. + .. 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_remove_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveRuleSecurityPolicyRequest, dict]): The request object. A request message for @@ -2160,6 +2616,33 @@ def set_labels_unary( r"""Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSecurityPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsSecurityPolicyRequest, dict]): The request object. A request message for @@ -2265,6 +2748,33 @@ def set_labels( r"""Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSecurityPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsSecurityPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/service_attachments/client.py b/google/cloud/compute_v1/services/service_attachments/client.py index fd3da9d66..35e15a646 100644 --- a/google/cloud/compute_v1/services/service_attachments/client.py +++ b/google/cloud/compute_v1/services/service_attachments/client.py @@ -438,6 +438,33 @@ def aggregated_list( resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListServiceAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListServiceAttachmentsRequest, dict]): The request object. A request message for @@ -530,6 +557,34 @@ def delete_unary( r"""Deletes the specified ServiceAttachment in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteServiceAttachmentRequest, dict]): The request object. A request message for @@ -630,6 +685,34 @@ def delete( r"""Deletes the specified ServiceAttachment in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteServiceAttachmentRequest, dict]): The request object. A request message for @@ -755,6 +838,34 @@ def get( r"""Returns the specified ServiceAttachment resource in the given scope. + .. 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(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetServiceAttachmentRequest, dict]): The request object. A request message for @@ -863,6 +974,34 @@ def get_iam_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.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyServiceAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicyServiceAttachmentRequest, dict]): The request object. A request message for @@ -1004,6 +1143,33 @@ def insert_unary( in the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertServiceAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertServiceAttachmentRequest, dict]): The request object. A request message for @@ -1102,6 +1268,33 @@ def insert( in the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertServiceAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertServiceAttachmentRequest, dict]): The request object. A request message for @@ -1223,6 +1416,34 @@ def list( r"""Lists the ServiceAttachments for a project in the given scope. + .. 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_list(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListServiceAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListServiceAttachmentsRequest, dict]): The request object. A request message for @@ -1326,6 +1547,34 @@ def patch_unary( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchServiceAttachmentRequest, dict]): The request object. A request message for @@ -1442,6 +1691,34 @@ def patch( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchServiceAttachmentRequest, dict]): The request object. A request message for @@ -1585,6 +1862,34 @@ def set_iam_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.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyServiceAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicyServiceAttachmentRequest, dict]): The request object. A request message for @@ -1741,6 +2046,34 @@ def test_iam_permissions( 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.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsServiceAttachmentRequest( + project="project_value", + region="region_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.TestIamPermissionsServiceAttachmentRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/snapshots/client.py b/google/cloud/compute_v1/services/snapshots/client.py index 9248f3661..91903b4eb 100644 --- a/google/cloud/compute_v1/services/snapshots/client.py +++ b/google/cloud/compute_v1/services/snapshots/client.py @@ -439,6 +439,33 @@ def delete_unary( corresponding snapshot. For more information, see Deleting snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSnapshotRequest( + project="project_value", + snapshot="snapshot_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSnapshotRequest, dict]): The request object. A request message for @@ -535,6 +562,33 @@ def delete( corresponding snapshot. For more information, see Deleting snapshots. + .. 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_delete(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSnapshotRequest( + project="project_value", + snapshot="snapshot_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSnapshotRequest, dict]): The request object. A request message for @@ -649,6 +703,33 @@ def get( ) -> compute.Snapshot: r"""Returns the specified Snapshot 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_get(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.GetSnapshotRequest( + project="project_value", + snapshot="snapshot_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSnapshotRequest, dict]): The request object. A request message for Snapshots.Get. @@ -742,6 +823,33 @@ def get_iam_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.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicySnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicySnapshotRequest, dict]): The request object. A request message for @@ -875,6 +983,32 @@ def insert_unary( features, such as creating snapshots in a project different from the source disk project. + .. 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_insert(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.InsertSnapshotRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSnapshotRequest, dict]): The request object. A request message for @@ -963,6 +1097,32 @@ def insert( features, such as creating snapshots in a project different from the source disk project. + .. 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_insert(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.InsertSnapshotRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSnapshotRequest, dict]): The request object. A request message for @@ -1070,6 +1230,33 @@ def list( r"""Retrieves the list of Snapshot resources contained within the specified project. + .. 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_list(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.ListSnapshotsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListSnapshotsRequest, dict]): The request object. A request message for Snapshots.List. @@ -1161,6 +1348,33 @@ def set_iam_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.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicySnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicySnapshotRequest, dict]): The request object. A request message for @@ -1304,6 +1518,33 @@ def set_labels_unary( r"""Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsSnapshotRequest, dict]): The request object. A request message for @@ -1409,6 +1650,33 @@ def set_labels( r"""Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsSnapshotRequest, dict]): The request object. A request message for @@ -1540,6 +1808,33 @@ def test_iam_permissions( 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.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsSnapshotRequest( + 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.TestIamPermissionsSnapshotRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/ssl_certificates/client.py b/google/cloud/compute_v1/services/ssl_certificates/client.py index 8bc10d0a0..e647e7b23 100644 --- a/google/cloud/compute_v1/services/ssl_certificates/client.py +++ b/google/cloud/compute_v1/services/ssl_certificates/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSslCertificatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListSslCertificatesRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified SslCertificate 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_delete(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslCertificateRequest( + project="project_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSslCertificateRequest, dict]): The request object. A request message for @@ -615,6 +669,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified SslCertificate 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_delete(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslCertificateRequest( + project="project_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSslCertificateRequest, dict]): The request object. A request message for @@ -729,6 +810,33 @@ def get( ) -> compute.SslCertificate: r"""Returns the specified SslCertificate 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_get(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.GetSslCertificateRequest( + project="project_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSslCertificateRequest, dict]): The request object. A request message for @@ -834,6 +942,32 @@ def insert_unary( r"""Creates a SslCertificate resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslCertificateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSslCertificateRequest, dict]): The request object. A request message for @@ -918,6 +1052,32 @@ def insert( r"""Creates a SslCertificate resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslCertificateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSslCertificateRequest, dict]): The request object. A request message for @@ -1025,6 +1185,33 @@ def list( r"""Retrieves the list of SslCertificate resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.ListSslCertificatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListSslCertificatesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/ssl_policies/client.py b/google/cloud/compute_v1/services/ssl_policies/client.py index bda9410dc..056f13cc0 100644 --- a/google/cloud/compute_v1/services/ssl_policies/client.py +++ b/google/cloud/compute_v1/services/ssl_policies/client.py @@ -433,6 +433,33 @@ def aggregated_list( r"""Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSslPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListSslPoliciesRequest, dict]): The request object. A request message for @@ -523,6 +550,33 @@ def delete_unary( resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + .. 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_delete(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSslPolicyRequest, dict]): The request object. A request message for @@ -616,6 +670,33 @@ def delete( resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources. + .. 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_delete(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSslPolicyRequest, dict]): The request object. A request message for @@ -732,6 +813,33 @@ def get( r"""Lists all of the ordered rules present in a single specified 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_get(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSslPolicyRequest, dict]): The request object. A request message for @@ -827,6 +935,32 @@ def insert_unary( ) -> compute.Operation: r"""Returns the specified SSL policy 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_insert(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): The request object. A request message for @@ -910,6 +1044,32 @@ def insert( ) -> extended_operation.ExtendedOperation: r"""Returns the specified SSL policy 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_insert(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSslPolicyRequest, dict]): The request object. A request message for @@ -1017,6 +1177,33 @@ def list( r"""Lists all the SSL policies that have been configured for the specified project. + .. 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_list(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListSslPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListSslPoliciesRequest, dict]): The request object. A request message for @@ -1105,6 +1292,32 @@ def list_available_features( r"""Lists all features that can be specified in the SSL policy when using custom profile. + .. 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_list_available_features(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAvailableFeaturesSslPoliciesRequest( + project="project_value", + ) + + # Make the request + response = client.list_available_features(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListAvailableFeaturesSslPoliciesRequest, dict]): The request object. A request message for @@ -1181,6 +1394,33 @@ def patch_unary( r"""Patches the specified SSL policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSslPolicyRequest, dict]): The request object. A request message for @@ -1281,6 +1521,33 @@ def patch( r"""Patches the specified SSL policy with the data included in the request. + .. 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_patch(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSslPolicyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/subnetworks/client.py b/google/cloud/compute_v1/services/subnetworks/client.py index fc9addc90..10a076b43 100644 --- a/google/cloud/compute_v1/services/subnetworks/client.py +++ b/google/cloud/compute_v1/services/subnetworks/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of subnetworks. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSubnetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListSubnetworksRequest, dict]): The request object. A request message for @@ -519,6 +546,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified subnetwork. + .. 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_delete(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSubnetworkRequest, dict]): The request object. A request message for @@ -620,6 +675,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified subnetwork. + .. 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_delete(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteSubnetworkRequest, dict]): The request object. A request message for @@ -752,6 +835,34 @@ def expand_ip_cidr_range_unary( r"""Expands the IP CIDR range of the subnetwork to a specified value. + .. 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_expand_ip_cidr_range(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ExpandIpCidrRangeSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.expand_ip_cidr_range(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ExpandIpCidrRangeSubnetworkRequest, dict]): The request object. A request message for @@ -875,6 +986,34 @@ def expand_ip_cidr_range( r"""Expands the IP CIDR range of the subnetwork to a specified value. + .. 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_expand_ip_cidr_range(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ExpandIpCidrRangeSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.expand_ip_cidr_range(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ExpandIpCidrRangeSubnetworkRequest, dict]): The request object. A request message for @@ -1017,6 +1156,34 @@ def get( ) -> compute.Subnetwork: r"""Returns the specified subnetwork. + .. 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(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetSubnetworkRequest, dict]): The request object. A request message for @@ -1124,6 +1291,34 @@ def get_iam_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.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicySubnetworkRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetIamPolicySubnetworkRequest, dict]): The request object. A request message for @@ -1264,6 +1459,33 @@ def insert_unary( r"""Creates a subnetwork in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertSubnetworkRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSubnetworkRequest, dict]): The request object. A request message for @@ -1363,6 +1585,33 @@ def insert( r"""Creates a subnetwork in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertSubnetworkRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertSubnetworkRequest, dict]): The request object. A request message for @@ -1486,6 +1735,34 @@ def list( r"""Retrieves a list of subnetworks available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListSubnetworksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListSubnetworksRequest, dict]): The request object. A request message for @@ -1588,6 +1865,33 @@ def list_usable( r"""Retrieves an aggregated list of all usable subnetworks in the project. + .. 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_list_usable(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListUsableSubnetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list_usable(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListUsableSubnetworksRequest, dict]): The request object. A request message for @@ -1680,6 +1984,34 @@ def patch_unary( descriptions. You must specify the current fingerprint of the subnetwork resource being patched. + .. 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_patch(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSubnetworkRequest, dict]): The request object. A request message for @@ -1793,6 +2125,34 @@ def patch( descriptions. You must specify the current fingerprint of the subnetwork resource being patched. + .. 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_patch(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchSubnetworkRequest, dict]): The request object. A request message for @@ -1930,6 +2290,34 @@ def set_iam_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.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicySubnetworkRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetIamPolicySubnetworkRequest, dict]): The request object. A request message for @@ -2087,6 +2475,34 @@ def set_private_ip_google_access_unary( services without assigning external IP addresses through Private Google Access. + .. 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_private_ip_google_access(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.SetPrivateIpGoogleAccessSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.set_private_ip_google_access(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetPrivateIpGoogleAccessSubnetworkRequest, dict]): The request object. A request message for @@ -2211,6 +2627,34 @@ def set_private_ip_google_access( services without assigning external IP addresses through Private Google Access. + .. 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_private_ip_google_access(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.SetPrivateIpGoogleAccessSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.set_private_ip_google_access(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetPrivateIpGoogleAccessSubnetworkRequest, dict]): The request object. A request message for @@ -2359,6 +2803,34 @@ def test_iam_permissions( 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.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsSubnetworkRequest( + project="project_value", + region="region_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.TestIamPermissionsSubnetworkRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_grpc_proxies/client.py b/google/cloud/compute_v1/services/target_grpc_proxies/client.py index 0861947ca..f2d102a2b 100644 --- a/google/cloud/compute_v1/services/target_grpc_proxies/client.py +++ b/google/cloud/compute_v1/services/target_grpc_proxies/client.py @@ -436,6 +436,33 @@ def delete_unary( r"""Deletes the specified TargetGrpcProxy in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -527,6 +554,33 @@ def delete( r"""Deletes the specified TargetGrpcProxy in the given scope + .. 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_delete(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -642,6 +696,33 @@ def get( r"""Returns the specified TargetGrpcProxy resource in the given scope. + .. 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(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -739,6 +820,32 @@ def insert_unary( the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetGrpcProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -824,6 +931,32 @@ def insert( the given scope using the parameters that are included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetGrpcProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -931,6 +1064,33 @@ def list( r"""Lists the TargetGrpcProxies for a project in the given scope. + .. 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_list(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetGrpcProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetGrpcProxiesRequest, dict]): The request object. A request message for @@ -1021,6 +1181,33 @@ def patch_unary( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetGrpcProxyRequest, dict]): The request object. A request message for @@ -1124,6 +1311,33 @@ def patch( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetGrpcProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_http_proxies/client.py b/google/cloud/compute_v1/services/target_http_proxies/client.py index a3ea8f5fa..8a753edb4 100644 --- a/google/cloud/compute_v1/services/target_http_proxies/client.py +++ b/google/cloud/compute_v1/services/target_http_proxies/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetHttpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetHttpProxiesRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetHttpProxy 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_delete(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpProxyRequest, dict]): The request object. A request message for @@ -615,6 +669,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetHttpProxy 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_delete(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpProxyRequest, dict]): The request object. A request message for @@ -729,6 +810,33 @@ def get( ) -> compute.TargetHttpProxy: r"""Returns the specified TargetHttpProxy 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_get(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpProxyRequest, dict]): The request object. A request message for @@ -831,6 +939,32 @@ def insert_unary( r"""Creates a TargetHttpProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpProxyRequest, dict]): The request object. A request message for @@ -915,6 +1049,32 @@ def insert( r"""Creates a TargetHttpProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1022,6 +1182,33 @@ def list( r"""Retrieves the list of TargetHttpProxy resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetHttpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetHttpProxiesRequest, dict]): The request object. A request message for @@ -1113,6 +1300,33 @@ def patch_unary( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1216,6 +1430,33 @@ def patch( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1340,6 +1581,33 @@ def set_url_map_unary( ) -> compute.Operation: r"""Changes the URL map for TargetHttpProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpProxyRequest, dict]): The request object. A request message for @@ -1440,6 +1708,33 @@ def set_url_map( ) -> extended_operation.ExtendedOperation: r"""Changes the URL map for TargetHttpProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_https_proxies/client.py b/google/cloud/compute_v1/services/target_https_proxies/client.py index 7116bcbb6..830bbfc30 100644 --- a/google/cloud/compute_v1/services/target_https_proxies/client.py +++ b/google/cloud/compute_v1/services/target_https_proxies/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetHttpsProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetHttpsProxiesRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetHttpsProxy 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_delete(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -615,6 +669,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetHttpsProxy 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_delete(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -729,6 +810,33 @@ def get( ) -> compute.TargetHttpsProxy: r"""Returns the specified TargetHttpsProxy 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_get(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -830,6 +938,32 @@ def insert_unary( r"""Creates a TargetHttpsProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpsProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -914,6 +1048,32 @@ def insert( r"""Creates a TargetHttpsProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpsProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1021,6 +1181,33 @@ def list( r"""Retrieves the list of TargetHttpsProxy resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetHttpsProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetHttpsProxiesRequest, dict]): The request object. A request message for @@ -1113,6 +1300,33 @@ def patch_unary( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1216,6 +1430,33 @@ def patch( PATCH semantics and uses JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1344,6 +1585,33 @@ def set_certificate_map_unary( ) -> compute.Operation: r"""Changes the Certificate Map for TargetHttpsProxy. + .. 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_certificate_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1456,6 +1724,33 @@ def set_certificate_map( ) -> extended_operation.ExtendedOperation: r"""Changes the Certificate Map for TargetHttpsProxy. + .. 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_certificate_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1592,6 +1887,33 @@ def set_quic_override_unary( ) -> compute.Operation: r"""Sets the QUIC override policy for TargetHttpsProxy. + .. 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_quic_override(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetQuicOverrideTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_quic_override(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetQuicOverrideTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1703,6 +2025,33 @@ def set_quic_override( ) -> extended_operation.ExtendedOperation: r"""Sets the QUIC override policy for TargetHttpsProxy. + .. 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_quic_override(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetQuicOverrideTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_quic_override(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetQuicOverrideTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1838,6 +2187,33 @@ def set_ssl_certificates_unary( ) -> compute.Operation: r"""Replaces SslCertificates for TargetHttpsProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -1948,6 +2324,33 @@ def set_ssl_certificates( ) -> extended_operation.ExtendedOperation: r"""Replaces SslCertificates for TargetHttpsProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -2084,6 +2487,33 @@ def set_ssl_policy_unary( the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. + .. 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_ssl_policy(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -2192,6 +2622,33 @@ def set_ssl_policy( the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends. + .. 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_ssl_policy(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -2318,6 +2775,33 @@ def set_url_map_unary( ) -> compute.Operation: r"""Changes the URL map for TargetHttpsProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpsProxyRequest, dict]): The request object. A request message for @@ -2418,6 +2902,33 @@ def set_url_map( ) -> extended_operation.ExtendedOperation: r"""Changes the URL map for TargetHttpsProxy. + .. 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_url_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetUrlMapTargetHttpsProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_instances/client.py b/google/cloud/compute_v1/services/target_instances/client.py index 335e556ab..f17c4433e 100644 --- a/google/cloud/compute_v1/services/target_instances/client.py +++ b/google/cloud/compute_v1/services/target_instances/client.py @@ -436,6 +436,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of target instances. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetInstancesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetInstancesRequest, dict]): The request object. A request message for @@ -523,6 +550,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetInstance 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_delete(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetInstanceRequest( + project="project_value", + target_instance="target_instance_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetInstanceRequest, dict]): The request object. A request message for @@ -624,6 +679,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetInstance 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_delete(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetInstanceRequest( + project="project_value", + target_instance="target_instance_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetInstanceRequest, dict]): The request object. A request message for @@ -750,6 +833,34 @@ def get( ) -> compute.TargetInstance: r"""Returns the specified TargetInstance 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_get(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetInstanceRequest( + project="project_value", + target_instance="target_instance_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetInstanceRequest, dict]): The request object. A request message for @@ -858,6 +969,33 @@ def insert_unary( r"""Creates a TargetInstance resource in the specified project and zone using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetInstanceRequest, dict]): The request object. A request message for @@ -957,6 +1095,33 @@ def insert( r"""Creates a TargetInstance resource in the specified project and zone using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetInstanceRequest, dict]): The request object. A request message for @@ -1080,6 +1245,34 @@ def list( r"""Retrieves a list of TargetInstance resources available to the specified project and zone. + .. 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_list(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetInstancesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetInstancesRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_pools/client.py b/google/cloud/compute_v1/services/target_pools/client.py index b0a15f430..93345bcf9 100644 --- a/google/cloud/compute_v1/services/target_pools/client.py +++ b/google/cloud/compute_v1/services/target_pools/client.py @@ -437,6 +437,34 @@ def add_health_check_unary( ) -> compute.Operation: r"""Adds health check URLs to a target pool. + .. 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_add_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_health_check(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddHealthCheckTargetPoolRequest, dict]): The request object. A request message for @@ -557,6 +585,34 @@ def add_health_check( ) -> extended_operation.ExtendedOperation: r"""Adds health check URLs to a target pool. + .. 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_add_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_health_check(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddHealthCheckTargetPoolRequest, dict]): The request object. A request message for @@ -702,6 +758,34 @@ def add_instance_unary( ) -> compute.Operation: r"""Adds an instance to a target pool. + .. 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_add_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddInstanceTargetPoolRequest, dict]): The request object. A request message for @@ -817,6 +901,34 @@ def add_instance( ) -> extended_operation.ExtendedOperation: r"""Adds an instance to a target pool. + .. 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_add_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.AddInstanceTargetPoolRequest, dict]): The request object. A request message for @@ -952,6 +1064,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of target pools. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetPoolsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetPoolsRequest, dict]): The request object. A request message for @@ -1039,6 +1178,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified target pool. + .. 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_delete(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetPoolRequest, dict]): The request object. A request message for @@ -1140,6 +1307,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified target pool. + .. 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_delete(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetPoolRequest, dict]): The request object. A request message for @@ -1266,6 +1461,34 @@ def get( ) -> compute.TargetPool: r"""Returns the specified target pool. + .. 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(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetPoolRequest, dict]): The request object. A request message for @@ -1376,6 +1599,34 @@ def get_health( for the instance that is referenced by the given target pool. + .. 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_health(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetHealthTargetPoolRequest, dict]): The request object. A request message for @@ -1485,6 +1736,33 @@ def insert_unary( r"""Creates a target pool in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetPoolRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetPoolRequest, dict]): The request object. A request message for @@ -1584,6 +1862,33 @@ def insert( r"""Creates a target pool in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetPoolRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetPoolRequest, dict]): The request object. A request message for @@ -1707,6 +2012,34 @@ def list( r"""Retrieves a list of target pools available to the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetPoolsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetPoolsRequest, dict]): The request object. A request message for @@ -1815,6 +2148,34 @@ def remove_health_check_unary( ) -> compute.Operation: r"""Removes health check URL from a target pool. + .. 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_remove_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_health_check(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveHealthCheckTargetPoolRequest, dict]): The request object. A request message for @@ -1935,6 +2296,34 @@ def remove_health_check( ) -> extended_operation.ExtendedOperation: r"""Removes health check URL from a target pool. + .. 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_remove_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_health_check(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveHealthCheckTargetPoolRequest, dict]): The request object. A request message for @@ -2078,6 +2467,34 @@ def remove_instance_unary( ) -> compute.Operation: r"""Removes instance URL from a target pool. + .. 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_remove_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveInstanceTargetPoolRequest, dict]): The request object. A request message for @@ -2198,6 +2615,34 @@ def remove_instance( ) -> extended_operation.ExtendedOperation: r"""Removes instance URL from a target pool. + .. 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_remove_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_instance(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.RemoveInstanceTargetPoolRequest, dict]): The request object. A request message for @@ -2341,6 +2786,34 @@ def set_backup_unary( ) -> compute.Operation: r"""Changes a backup target pool's configurations. + .. 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_backup(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.SetBackupTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.set_backup(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackupTargetPoolRequest, dict]): The request object. A request message for @@ -2452,6 +2925,34 @@ def set_backup( ) -> extended_operation.ExtendedOperation: r"""Changes a backup target pool's configurations. + .. 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_backup(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.SetBackupTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.set_backup(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackupTargetPoolRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_ssl_proxies/client.py b/google/cloud/compute_v1/services/target_ssl_proxies/client.py index b95bc8905..3640f9222 100644 --- a/google/cloud/compute_v1/services/target_ssl_proxies/client.py +++ b/google/cloud/compute_v1/services/target_ssl_proxies/client.py @@ -435,6 +435,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetSslProxy 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_delete(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetSslProxyRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetSslProxy 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_delete(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetSslProxyRequest, dict]): The request object. A request message for @@ -639,6 +693,33 @@ def get( ) -> compute.TargetSslProxy: r"""Returns the specified TargetSslProxy 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_get(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetSslProxyRequest, dict]): The request object. A request message for @@ -736,6 +817,32 @@ def insert_unary( r"""Creates a TargetSslProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetSslProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetSslProxyRequest, dict]): The request object. A request message for @@ -820,6 +927,32 @@ def insert( r"""Creates a TargetSslProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetSslProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetSslProxyRequest, dict]): The request object. A request message for @@ -927,6 +1060,33 @@ def list( r"""Retrieves the list of TargetSslProxy resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetSslProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetSslProxiesRequest, dict]): The request object. A request message for @@ -1020,6 +1180,33 @@ def set_backend_service_unary( ) -> compute.Operation: r"""Changes the BackendService for TargetSslProxy. + .. 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_backend_service(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetSslProxyRequest, dict]): The request object. A request message for @@ -1131,6 +1318,33 @@ def set_backend_service( ) -> extended_operation.ExtendedOperation: r"""Changes the BackendService for TargetSslProxy. + .. 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_backend_service(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetSslProxyRequest, dict]): The request object. A request message for @@ -1266,6 +1480,33 @@ def set_certificate_map_unary( ) -> compute.Operation: r"""Changes the Certificate Map for TargetSslProxy. + .. 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_certificate_map(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetSslProxyRequest, dict]): The request object. A request message for @@ -1378,6 +1619,33 @@ def set_certificate_map( ) -> extended_operation.ExtendedOperation: r"""Changes the Certificate Map for TargetSslProxy. + .. 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_certificate_map(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetCertificateMapTargetSslProxyRequest, dict]): The request object. A request message for @@ -1514,6 +1782,33 @@ def set_proxy_header_unary( ) -> compute.Operation: r"""Changes the ProxyHeaderType for TargetSslProxy. + .. 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_proxy_header(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetSslProxyRequest, dict]): The request object. A request message for @@ -1624,6 +1919,33 @@ def set_proxy_header( ) -> extended_operation.ExtendedOperation: r"""Changes the ProxyHeaderType for TargetSslProxy. + .. 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_proxy_header(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetSslProxyRequest, dict]): The request object. A request message for @@ -1758,6 +2080,33 @@ def set_ssl_certificates_unary( ) -> compute.Operation: r"""Changes SslCertificates for TargetSslProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetSslProxyRequest, dict]): The request object. A request message for @@ -1869,6 +2218,33 @@ def set_ssl_certificates( ) -> extended_operation.ExtendedOperation: r"""Changes SslCertificates for TargetSslProxy. + .. 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_ssl_certificates(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslCertificatesTargetSslProxyRequest, dict]): The request object. A request message for @@ -2006,6 +2382,33 @@ def set_ssl_policy_unary( the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. + .. 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_ssl_policy(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetSslProxyRequest, dict]): The request object. A request message for @@ -2114,6 +2517,33 @@ def set_ssl_policy( the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. + .. 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_ssl_policy(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetSslPolicyTargetSslProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_tcp_proxies/client.py b/google/cloud/compute_v1/services/target_tcp_proxies/client.py index 2d32cff8f..015bcb008 100644 --- a/google/cloud/compute_v1/services/target_tcp_proxies/client.py +++ b/google/cloud/compute_v1/services/target_tcp_proxies/client.py @@ -437,6 +437,33 @@ def aggregated_list( r"""Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetTcpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetTcpProxiesRequest, dict]): The request object. A request message for @@ -525,6 +552,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified TargetTcpProxy 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_delete(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetTcpProxyRequest, dict]): The request object. A request message for @@ -615,6 +669,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified TargetTcpProxy 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_delete(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetTcpProxyRequest, dict]): The request object. A request message for @@ -729,6 +810,33 @@ def get( ) -> compute.TargetTcpProxy: r"""Returns the specified TargetTcpProxy 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_get(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetTcpProxyRequest, dict]): The request object. A request message for @@ -826,6 +934,32 @@ def insert_unary( r"""Creates a TargetTcpProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetTcpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetTcpProxyRequest, dict]): The request object. A request message for @@ -910,6 +1044,32 @@ def insert( r"""Creates a TargetTcpProxy resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetTcpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetTcpProxyRequest, dict]): The request object. A request message for @@ -1017,6 +1177,33 @@ def list( r"""Retrieves the list of TargetTcpProxy resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetTcpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetTcpProxiesRequest, dict]): The request object. A request message for @@ -1110,6 +1297,33 @@ def set_backend_service_unary( ) -> compute.Operation: r"""Changes the BackendService for TargetTcpProxy. + .. 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_backend_service(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetTcpProxyRequest, dict]): The request object. A request message for @@ -1221,6 +1435,33 @@ def set_backend_service( ) -> extended_operation.ExtendedOperation: r"""Changes the BackendService for TargetTcpProxy. + .. 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_backend_service(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetBackendServiceTargetTcpProxyRequest, dict]): The request object. A request message for @@ -1356,6 +1597,33 @@ def set_proxy_header_unary( ) -> compute.Operation: r"""Changes the ProxyHeaderType for TargetTcpProxy. + .. 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_proxy_header(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetTcpProxyRequest, dict]): The request object. A request message for @@ -1466,6 +1734,33 @@ def set_proxy_header( ) -> extended_operation.ExtendedOperation: r"""Changes the ProxyHeaderType for TargetTcpProxy. + .. 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_proxy_header(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetProxyHeaderTargetTcpProxyRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/target_vpn_gateways/client.py b/google/cloud/compute_v1/services/target_vpn_gateways/client.py index 102c393be..333ade04e 100644 --- a/google/cloud/compute_v1/services/target_vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/target_vpn_gateways/client.py @@ -436,6 +436,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of target VPN gateways. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListTargetVpnGatewaysRequest, dict]): The request object. A request message for @@ -523,6 +550,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified target VPN gateway. + .. 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_delete(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetVpnGatewayRequest( + project="project_value", + region="region_value", + target_vpn_gateway="target_vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -622,6 +677,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified target VPN gateway. + .. 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_delete(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetVpnGatewayRequest( + project="project_value", + region="region_value", + target_vpn_gateway="target_vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -746,6 +829,34 @@ def get( ) -> compute.TargetVpnGateway: r"""Returns the specified target VPN gateway. + .. 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(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetVpnGatewayRequest( + project="project_value", + region="region_value", + target_vpn_gateway="target_vpn_gateway_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -849,6 +960,33 @@ def insert_unary( r"""Creates a target VPN gateway in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -946,6 +1084,33 @@ def insert( r"""Creates a target VPN gateway in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -1067,6 +1232,34 @@ def list( r"""Retrieves a list of target VPN gateways available to the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetVpnGatewaysRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListTargetVpnGatewaysRequest, dict]): The request object. A request message for @@ -1172,6 +1365,34 @@ def set_labels_unary( r"""Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsTargetVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsTargetVpnGatewayRequest, dict]): The request object. A request message for @@ -1286,6 +1507,34 @@ def set_labels( r"""Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsTargetVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsTargetVpnGatewayRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/url_maps/client.py b/google/cloud/compute_v1/services/url_maps/client.py index a396aac90..24498f0de 100644 --- a/google/cloud/compute_v1/services/url_maps/client.py +++ b/google/cloud/compute_v1/services/url_maps/client.py @@ -433,6 +433,33 @@ def aggregated_list( r"""Retrieves the list of all UrlMap resources, regional and global, available to the specified project. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListUrlMapsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListUrlMapsRequest, dict]): The request object. A request message for @@ -521,6 +548,33 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified UrlMap 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_delete(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteUrlMapRequest, dict]): The request object. A request message for UrlMaps.Delete. @@ -610,6 +664,33 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified UrlMap 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_delete(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteUrlMapRequest, dict]): The request object. A request message for UrlMaps.Delete. @@ -723,6 +804,33 @@ def get( ) -> compute.UrlMap: r"""Returns the specified UrlMap 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_get(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.GetUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetUrlMapRequest, dict]): The request object. A request message for UrlMaps.Get. @@ -832,6 +940,32 @@ def insert_unary( r"""Creates a UrlMap resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertUrlMapRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertUrlMapRequest, dict]): The request object. A request message for UrlMaps.Insert. @@ -915,6 +1049,32 @@ def insert( r"""Creates a UrlMap resource in the specified project using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertUrlMapRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertUrlMapRequest, dict]): The request object. A request message for UrlMaps.Insert. @@ -1027,6 +1187,33 @@ def invalidate_cache_unary( information, see `Invalidating cached content `__. + .. 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_invalidate_cache(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InvalidateCacheUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.invalidate_cache(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InvalidateCacheUrlMapRequest, dict]): The request object. A request message for @@ -1132,6 +1319,33 @@ def invalidate_cache( information, see `Invalidating cached content `__. + .. 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_invalidate_cache(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InvalidateCacheUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.invalidate_cache(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InvalidateCacheUrlMapRequest, dict]): The request object. A request message for @@ -1255,6 +1469,33 @@ def list( r"""Retrieves the list of UrlMap resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ListUrlMapsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListUrlMapsRequest, dict]): The request object. A request message for UrlMaps.List. @@ -1345,6 +1586,33 @@ def patch_unary( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchUrlMapRequest, dict]): The request object. A request message for UrlMaps.Patch. @@ -1443,6 +1711,33 @@ def patch( semantics and uses the JSON merge patch format and processing rules. + .. 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_patch(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.PatchUrlMapRequest, dict]): The request object. A request message for UrlMaps.Patch. @@ -1563,6 +1858,33 @@ def update_unary( r"""Updates the specified UrlMap resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateUrlMapRequest, dict]): The request object. A request message for UrlMaps.Update. @@ -1661,6 +1983,33 @@ def update( r"""Updates the specified UrlMap resource with the data included in the request. + .. 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_update(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.UpdateUrlMapRequest, dict]): The request object. A request message for UrlMaps.Update. @@ -1786,6 +2135,33 @@ def validate( the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. + .. 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_validate(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ValidateUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.validate(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.ValidateUrlMapRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/vpn_gateways/client.py b/google/cloud/compute_v1/services/vpn_gateways/client.py index 1763bb47c..25db53863 100644 --- a/google/cloud/compute_v1/services/vpn_gateways/client.py +++ b/google/cloud/compute_v1/services/vpn_gateways/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of VPN gateways. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListVpnGatewaysRequest, dict]): The request object. A request message for @@ -519,6 +546,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified VPN gateway. + .. 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_delete(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteVpnGatewayRequest, dict]): The request object. A request message for @@ -616,6 +671,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified VPN gateway. + .. 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_delete(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteVpnGatewayRequest, dict]): The request object. A request message for @@ -738,6 +821,34 @@ def get( ) -> compute.VpnGateway: r"""Returns the specified VPN gateway. + .. 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(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetVpnGatewayRequest, dict]): The request object. A request message for @@ -842,6 +953,34 @@ def get_status( ) -> compute.VpnGatewaysGetStatusResponse: r"""Returns the status for the specified VPN gateway. + .. 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_status(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetStatusVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.get_status(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetStatusVpnGatewayRequest, dict]): The request object. A request message for @@ -938,6 +1077,33 @@ def insert_unary( r"""Creates a VPN gateway in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertVpnGatewayRequest, dict]): The request object. A request message for @@ -1035,6 +1201,33 @@ def insert( r"""Creates a VPN gateway in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertVpnGatewayRequest, dict]): The request object. A request message for @@ -1156,6 +1349,34 @@ def list( r"""Retrieves a list of VPN gateways available to the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListVpnGatewaysRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListVpnGatewaysRequest, dict]): The request object. A request message for @@ -1261,6 +1482,34 @@ def set_labels_unary( r"""Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnGatewayRequest, dict]): The request object. A request message for @@ -1375,6 +1624,34 @@ def set_labels( r"""Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnGatewayRequest, dict]): The request object. A request message for @@ -1516,6 +1793,34 @@ def test_iam_permissions( 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.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsVpnGatewayRequest( + project="project_value", + region="region_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.TestIamPermissionsVpnGatewayRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/vpn_tunnels/client.py b/google/cloud/compute_v1/services/vpn_tunnels/client.py index 06042f28e..40254e62d 100644 --- a/google/cloud/compute_v1/services/vpn_tunnels/client.py +++ b/google/cloud/compute_v1/services/vpn_tunnels/client.py @@ -432,6 +432,33 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of VPN tunnels. + .. 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_aggregated_list(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListVpnTunnelsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.AggregatedListVpnTunnelsRequest, dict]): The request object. A request message for @@ -519,6 +546,34 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified VpnTunnel 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_delete(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnTunnelRequest( + project="project_value", + region="region_value", + vpn_tunnel="vpn_tunnel_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteVpnTunnelRequest, dict]): The request object. A request message for @@ -618,6 +673,34 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified VpnTunnel 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_delete(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnTunnelRequest( + project="project_value", + region="region_value", + vpn_tunnel="vpn_tunnel_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteVpnTunnelRequest, dict]): The request object. A request message for @@ -742,6 +825,34 @@ def get( ) -> compute.VpnTunnel: r"""Returns the specified VpnTunnel 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_get(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.GetVpnTunnelRequest( + project="project_value", + region="region_value", + vpn_tunnel="vpn_tunnel_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetVpnTunnelRequest, dict]): The request object. A request message for VpnTunnels.Get. @@ -842,6 +953,33 @@ def insert_unary( r"""Creates a VpnTunnel resource in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnTunnelRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertVpnTunnelRequest, dict]): The request object. A request message for @@ -939,6 +1077,33 @@ def insert( r"""Creates a VpnTunnel resource in the specified project and region using the data included in the request. + .. 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_insert(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnTunnelRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.InsertVpnTunnelRequest, dict]): The request object. A request message for @@ -1060,6 +1225,34 @@ def list( r"""Retrieves a list of VpnTunnel resources contained in the specified project and region. + .. 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_list(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.ListVpnTunnelsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListVpnTunnelsRequest, dict]): The request object. A request message for @@ -1165,6 +1358,34 @@ def set_labels_unary( r"""Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnTunnelRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest, dict]): The request object. A request message for @@ -1279,6 +1500,34 @@ def set_labels( r"""Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling Resources documentation. + .. 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_labels(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnTunnelRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/zone_operations/client.py b/google/cloud/compute_v1/services/zone_operations/client.py index 2bd182b96..6bcf034c8 100644 --- a/google/cloud/compute_v1/services/zone_operations/client.py +++ b/google/cloud/compute_v1/services/zone_operations/client.py @@ -434,6 +434,34 @@ def delete( r"""Deletes the specified zone-specific Operations 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_delete(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.DeleteZoneOperationRequest, dict]): The request object. A request message for @@ -535,6 +563,34 @@ def get( r"""Retrieves the specified zone-specific Operations 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_get(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetZoneOperationRequest, dict]): The request object. A request message for @@ -647,6 +703,34 @@ def list( r"""Retrieves a list of Operation resources contained within the specified zone. + .. 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_list(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListZoneOperationsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListZoneOperationsRequest, dict]): The request object. A request message for @@ -759,6 +843,34 @@ def wait( actually done when the method returns. Be prepared to retry if the operation is not ``DONE``. + .. 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_wait(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.WaitZoneOperationRequest, dict]): The request object. A request message for diff --git a/google/cloud/compute_v1/services/zones/client.py b/google/cloud/compute_v1/services/zones/client.py index 6041f976a..257d8208c 100644 --- a/google/cloud/compute_v1/services/zones/client.py +++ b/google/cloud/compute_v1/services/zones/client.py @@ -430,6 +430,33 @@ def get( ) -> compute.Zone: r"""Returns the specified Zone 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_get(): + # Create a client + client = compute_v1.ZonesClient() + + # Initialize request argument(s) + request = compute_v1.GetZoneRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.compute_v1.types.GetZoneRequest, dict]): The request object. A request message for Zones.Get. See @@ -521,6 +548,33 @@ def list( r"""Retrieves the list of Zone resources available to the specified project. + .. 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_list(): + # Create a client + client = compute_v1.ZonesClient() + + # Initialize request argument(s) + request = compute_v1.ListZonesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.compute_v1.types.ListZonesRequest, dict]): The request object. A request message for Zones.List. See diff --git a/samples/generated_samples/compute_v1_generated_accelerator_types_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_accelerator_types_aggregated_list_sync.py new file mode 100644 index 000000000..1dfbc086c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_accelerator_types_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_AcceleratorTypes_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAcceleratorTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_AcceleratorTypes_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_accelerator_types_get_sync.py b/samples/generated_samples/compute_v1_generated_accelerator_types_get_sync.py new file mode 100644 index 000000000..1c9fb96e1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_accelerator_types_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_AcceleratorTypes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetAcceleratorTypeRequest( + accelerator_type="accelerator_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_AcceleratorTypes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_accelerator_types_list_sync.py b/samples/generated_samples/compute_v1_generated_accelerator_types_list_sync.py new file mode 100644 index 000000000..73c461e98 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_accelerator_types_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_AcceleratorTypes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.AcceleratorTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListAcceleratorTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_AcceleratorTypes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_addresses_aggregated_list_sync.py new file mode 100644 index 000000000..1dafd0917 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAddressesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Addresses_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_delete_sync.py b/samples/generated_samples/compute_v1_generated_addresses_delete_sync.py new file mode 100644 index 000000000..863216457 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Addresses_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_get_sync.py b/samples/generated_samples/compute_v1_generated_addresses_get_sync.py new file mode 100644 index 000000000..09eb2a3a6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.GetAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Addresses_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_insert_sync.py b/samples/generated_samples/compute_v1_generated_addresses_insert_sync.py new file mode 100644 index 000000000..9e38b419a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertAddressRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Addresses_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_list_sync.py b/samples/generated_samples/compute_v1_generated_addresses_list_sync.py new file mode 100644 index 000000000..e495f8c9f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.ListAddressesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Addresses_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_move_sync.py b/samples/generated_samples/compute_v1_generated_addresses_move_sync.py new file mode 100644 index 000000000..affeedc8f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_move_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Move +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_Move_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_move(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveAddressRequest( + address="address_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Addresses_Move_sync] diff --git a/samples/generated_samples/compute_v1_generated_addresses_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_addresses_set_labels_sync.py new file mode 100644 index 000000000..e2d73dac9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_addresses_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Addresses_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.AddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsAddressRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Addresses_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_aggregated_list_sync.py new file mode 100644 index 000000000..38ca968b2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListAutoscalersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Autoscalers_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_delete_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_delete_sync.py new file mode 100644 index 000000000..435ce66ef --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Autoscalers_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_get_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_get_sync.py new file mode 100644 index 000000000..1c38d206d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.GetAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Autoscalers_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_insert_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_insert_sync.py new file mode 100644 index 000000000..bf39f7733 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Autoscalers_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_list_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_list_sync.py new file mode 100644 index 000000000..c766c4f85 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.ListAutoscalersRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Autoscalers_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_patch_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_patch_sync.py new file mode 100644 index 000000000..b0a8831f6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Autoscalers_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_autoscalers_update_sync.py b/samples/generated_samples/compute_v1_generated_autoscalers_update_sync.py new file mode 100644 index 000000000..0e8e717b4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_autoscalers_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Autoscalers_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.AutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAutoscalerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Autoscalers_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_add_signed_url_key_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_add_signed_url_key_sync.py new file mode 100644 index 000000000..25a11ef02 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_add_signed_url_key_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddSignedUrlKey +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_AddSignedUrlKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_AddSignedUrlKey_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_delete_signed_url_key_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_delete_signed_url_key_sync.py new file mode 100644 index 000000000..a0869f59f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_delete_signed_url_key_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteSignedUrlKey +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendBucketRequest( + backend_bucket="backend_bucket_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_delete_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_delete_sync.py new file mode 100644 index 000000000..d41abe35f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_get_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_get_sync.py new file mode 100644 index 000000000..399a9f3ee --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.GetBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_insert_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_insert_sync.py new file mode 100644 index 000000000..ea539d653 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendBucketRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_list_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_list_sync.py new file mode 100644 index 000000000..8fa1e918a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.ListBackendBucketsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_BackendBuckets_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_patch_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_patch_sync.py new file mode 100644 index 000000000..abeb3fb58 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_set_edge_security_policy_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_set_edge_security_policy_sync.py new file mode 100644 index 000000000..fcf45e032 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_set_edge_security_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetEdgeSecurityPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_edge_security_policy(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_buckets_update_sync.py b/samples/generated_samples/compute_v1_generated_backend_buckets_update_sync.py new file mode 100644 index 000000000..6ddaa50f9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_buckets_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendBuckets_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.BackendBucketsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendBucketRequest( + backend_bucket="backend_bucket_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendBuckets_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_add_signed_url_key_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_add_signed_url_key_sync.py new file mode 100644 index 000000000..6e9dc5934 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_add_signed_url_key_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddSignedUrlKey +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_AddSignedUrlKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.AddSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.add_signed_url_key(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_AddSignedUrlKey_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_aggregated_list_sync.py new file mode 100644 index 000000000..de16849e1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListBackendServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_BackendServices_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_delete_signed_url_key_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_delete_signed_url_key_sync.py new file mode 100644 index 000000000..386088e79 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_delete_signed_url_key_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteSignedUrlKey +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_DeleteSignedUrlKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_signed_url_key(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSignedUrlKeyBackendServiceRequest( + backend_service="backend_service_value", + key_name="key_name_value", + project="project_value", + ) + + # Make the request + response = client.delete_signed_url_key(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_DeleteSignedUrlKey_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_delete_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_delete_sync.py new file mode 100644 index 000000000..9398a924c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_get_health_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_get_health_sync.py new file mode 100644 index 000000000..55bf05864 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_get_health_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetHealth +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_GetHealth_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_health(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_GetHealth_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_get_iam_policy_sync.py new file mode 100644 index 000000000..4fd93f066 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyBackendServiceRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_get_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_get_sync.py new file mode 100644 index 000000000..1893f9e2f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_insert_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_insert_sync.py new file mode 100644 index 000000000..8a7d218d2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertBackendServiceRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_list_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_list_sync.py new file mode 100644 index 000000000..84bea282d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListBackendServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_BackendServices_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_patch_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_patch_sync.py new file mode 100644 index 000000000..f485fcce4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_set_edge_security_policy_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_set_edge_security_policy_sync.py new file mode 100644 index 000000000..60a871fdb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_set_edge_security_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetEdgeSecurityPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_edge_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetEdgeSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_edge_security_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_set_iam_policy_sync.py new file mode 100644 index 000000000..933c0cb9b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyBackendServiceRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_set_security_policy_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_set_security_policy_sync.py new file mode 100644 index 000000000..c39996cbc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_set_security_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSecurityPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_SetSecurityPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_security_policy(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetSecurityPolicyBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.set_security_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_SetSecurityPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_backend_services_update_sync.py b/samples/generated_samples/compute_v1_generated_backend_services_update_sync.py new file mode 100644 index 000000000..89feaaebb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_backend_services_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_BackendServices_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.BackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_BackendServices_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_disk_types_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_disk_types_aggregated_list_sync.py new file mode 100644 index 000000000..914c4c6f8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disk_types_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_DiskTypes_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListDiskTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_DiskTypes_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_disk_types_get_sync.py b/samples/generated_samples/compute_v1_generated_disk_types_get_sync.py new file mode 100644 index 000000000..c201c7087 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disk_types_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_DiskTypes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetDiskTypeRequest( + disk_type="disk_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_DiskTypes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_disk_types_list_sync.py b/samples/generated_samples/compute_v1_generated_disk_types_list_sync.py new file mode 100644 index 000000000..cccaf4e83 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disk_types_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_DiskTypes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.DiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListDiskTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_DiskTypes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_add_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_disks_add_resource_policies_sync.py new file mode 100644 index 000000000..7d33b917e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_add_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_AddResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_AddResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_disks_aggregated_list_sync.py new file mode 100644 index 000000000..1373fa9fb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListDisksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Disks_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_bulk_insert_sync.py b/samples/generated_samples/compute_v1_generated_disks_bulk_insert_sync.py new file mode 100644 index 000000000..cb44800ed --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_bulk_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for BulkInsert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_BulkInsert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_bulk_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_BulkInsert_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_create_snapshot_sync.py b/samples/generated_samples/compute_v1_generated_disks_create_snapshot_sync.py new file mode 100644 index 000000000..a1b50cb29 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_create_snapshot_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateSnapshot +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_CreateSnapshot_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_create_snapshot(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_CreateSnapshot_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_delete_sync.py b/samples/generated_samples/compute_v1_generated_disks_delete_sync.py new file mode 100644 index 000000000..5011179bd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_disks_get_iam_policy_sync.py new file mode 100644 index 000000000..29222144c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_get_sync.py b/samples/generated_samples/compute_v1_generated_disks_get_sync.py new file mode 100644 index 000000000..6b32e2822 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.GetDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_insert_sync.py b/samples/generated_samples/compute_v1_generated_disks_insert_sync.py new file mode 100644 index 000000000..386ebe8ac --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_list_sync.py b/samples/generated_samples/compute_v1_generated_disks_list_sync.py new file mode 100644 index 000000000..b31b2deba --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.ListDisksRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Disks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_remove_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_disks_remove_resource_policies_sync.py new file mode 100644 index 000000000..994a12dfb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_remove_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_RemoveResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_resource_policies(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_RemoveResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_resize_sync.py b/samples/generated_samples/compute_v1_generated_disks_resize_sync.py new file mode 100644 index 000000000..3fc1facb2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_resize_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resize +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_Resize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resize(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_Resize_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_disks_set_iam_policy_sync.py new file mode 100644 index 000000000..a4535e0d8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_disks_set_labels_sync.py new file mode 100644 index 000000000..b53825481 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_start_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_disks_start_async_replication_sync.py new file mode 100644 index 000000000..c83c44219 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_start_async_replication_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StartAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_StartAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_start_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_StartAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_stop_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_disks_stop_async_replication_sync.py new file mode 100644 index 000000000..20e719230 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_stop_async_replication_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StopAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_StopAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_stop_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_StopAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_stop_group_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_disks_stop_group_async_replication_sync.py new file mode 100644 index 000000000..748111a22 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_stop_group_async_replication_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StopGroupAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_StopGroupAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_stop_group_async_replication(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationDiskRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_StopGroupAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_disks_test_iam_permissions_sync.py new file mode 100644 index 000000000..5a97b51a8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsDiskRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_disks_update_sync.py b/samples/generated_samples/compute_v1_generated_disks_update_sync.py new file mode 100644 index 000000000..7b18f3a69 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_disks_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Disks_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.DisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDiskRequest( + disk="disk_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Disks_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_delete_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_delete_sync.py new file mode 100644 index 000000000..0b2b351c8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteExternalVpnGatewayRequest( + external_vpn_gateway="external_vpn_gateway_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_get_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_get_sync.py new file mode 100644 index 000000000..737224647 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetExternalVpnGatewayRequest( + external_vpn_gateway="external_vpn_gateway_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_insert_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_insert_sync.py new file mode 100644 index 000000000..e285900d4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertExternalVpnGatewayRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_list_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_list_sync.py new file mode 100644 index 000000000..6929a944d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListExternalVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_set_labels_sync.py new file mode 100644 index 000000000..cac7126eb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsExternalVpnGatewayRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py new file mode 100644 index 000000000..1ae71472f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ExternalVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsExternalVpnGatewayRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_add_association_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_add_association_sync.py new file mode 100644 index 000000000..f345009c8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_add_association_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_AddAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_AddAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_add_rule_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_add_rule_sync.py new file mode 100644 index 000000000..1bd808bc2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_add_rule_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_AddRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_AddRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_clone_rules_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_clone_rules_sync.py new file mode 100644 index 000000000..0919ffca8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_clone_rules_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CloneRules +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_CloneRules_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_clone_rules(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_CloneRules_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_delete_sync.py new file mode 100644 index 000000000..f8edc0604 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_delete_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_get_association_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_get_association_sync.py new file mode 100644 index 000000000..f0ffe2007 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_get_association_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_GetAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_GetAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_get_iam_policy_sync.py new file mode 100644 index 000000000..d95e3ace5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_get_iam_policy_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyFirewallPolicyRequest( + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_get_rule_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_get_rule_sync.py new file mode 100644 index 000000000..11823cbbb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_get_rule_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_GetRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_GetRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_get_sync.py new file mode 100644 index 000000000..039d61b97 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_get_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_insert_sync.py new file mode 100644 index 000000000..6efd1ec26 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallPolicyRequest( + parent_id="parent_id_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_list_associations_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_list_associations_sync.py new file mode 100644 index 000000000..92c64e86d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_list_associations_sync.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAssociations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_ListAssociations_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_associations(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAssociationsFirewallPolicyRequest( + ) + + # Make the request + response = client.list_associations(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_ListAssociations_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_list_sync.py new file mode 100644 index 000000000..c46425845 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_list_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListFirewallPoliciesRequest( + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_FirewallPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_move_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_move_sync.py new file mode 100644 index 000000000..0f535b080 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_move_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Move +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_Move_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_move(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.MoveFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + parent_id="parent_id_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_Move_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_patch_rule_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_patch_rule_sync.py new file mode 100644 index 000000000..890f47a24 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_patch_rule_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_PatchRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_PatchRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_patch_sync.py new file mode 100644 index 000000000..e2c76bc02 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_patch_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_remove_association_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_remove_association_sync.py new file mode 100644 index 000000000..f3dd6ce1a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_remove_association_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_RemoveAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_association(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_RemoveAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_remove_rule_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_remove_rule_sync.py new file mode 100644 index 000000000..95476682d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_remove_rule_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_RemoveRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_rule(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_RemoveRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_set_iam_policy_sync.py new file mode 100644 index 000000000..e925098ee --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_set_iam_policy_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyFirewallPolicyRequest( + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewall_policies_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_firewall_policies_test_iam_permissions_sync.py new file mode 100644 index 000000000..215706e72 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewall_policies_test_iam_permissions_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_FirewallPolicies_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.FirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsFirewallPolicyRequest( + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_FirewallPolicies_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_delete_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_delete_sync.py new file mode 100644 index 000000000..5caccf394 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Firewalls_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_get_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_get_sync.py new file mode 100644 index 000000000..a688ee525 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.GetFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Firewalls_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_insert_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_insert_sync.py new file mode 100644 index 000000000..f818e96ef --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.InsertFirewallRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Firewalls_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_list_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_list_sync.py new file mode 100644 index 000000000..e4be75e0b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.ListFirewallsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Firewalls_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_patch_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_patch_sync.py new file mode 100644 index 000000000..b61e4056b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.PatchFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Firewalls_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_firewalls_update_sync.py b/samples/generated_samples/compute_v1_generated_firewalls_update_sync.py new file mode 100644 index 000000000..ca88f5c58 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_firewalls_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Firewalls_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateFirewallRequest( + firewall="firewall_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Firewalls_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_aggregated_list_sync.py new file mode 100644 index 000000000..1bbd3dd2c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListForwardingRulesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ForwardingRules_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_delete_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_delete_sync.py new file mode 100644 index 000000000..317bf9b82 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_get_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_get_sync.py new file mode 100644 index 000000000..7c10f9109 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.GetForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_insert_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_insert_sync.py new file mode 100644 index 000000000..6e2226b20 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertForwardingRuleRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_list_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_list_sync.py new file mode 100644 index 000000000..505f0bce3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.ListForwardingRulesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ForwardingRules_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_patch_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_patch_sync.py new file mode 100644 index 000000000..a9f6615d2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_set_labels_sync.py new file mode 100644 index 000000000..1e84db522 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsForwardingRuleRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_forwarding_rules_set_target_sync.py b/samples/generated_samples/compute_v1_generated_forwarding_rules_set_target_sync.py new file mode 100644 index 000000000..bfa8df7c7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_forwarding_rules_set_target_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetTarget +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ForwardingRules_SetTarget_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_target(): + # Create a client + client = compute_v1.ForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ForwardingRules_SetTarget_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_delete_sync.py new file mode 100644 index 000000000..f1f738354 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalAddresses_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_get_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_get_sync.py new file mode 100644 index 000000000..c72cc2b7a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalAddresses_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_insert_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_insert_sync.py new file mode 100644 index 000000000..b5b3f97a0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalAddressRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalAddresses_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_list_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_list_sync.py new file mode 100644 index 000000000..3a348a2af --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalAddressesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalAddresses_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_move_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_move_sync.py new file mode 100644 index 000000000..89040864e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_move_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Move +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_Move_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_move(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.MoveGlobalAddressRequest( + address="address_value", + project="project_value", + ) + + # Make the request + response = client.move(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalAddresses_Move_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_addresses_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_global_addresses_set_labels_sync.py new file mode 100644 index 000000000..543bddad5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_addresses_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalAddresses_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.GlobalAddressesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalAddressRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalAddresses_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_delete_sync.py new file mode 100644 index 000000000..3100c445c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_get_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_get_sync.py new file mode 100644 index 000000000..ce2c4d931 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_insert_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_insert_sync.py new file mode 100644 index 000000000..9836ce706 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalForwardingRuleRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_list_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_list_sync.py new file mode 100644 index 000000000..ca43df1ea --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalForwardingRulesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_patch_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_patch_sync.py new file mode 100644 index 000000000..2b4600c28 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_labels_sync.py new file mode 100644 index 000000000..fec1feab0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsGlobalForwardingRuleRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_target_sync.py b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_target_sync.py new file mode 100644 index 000000000..7a6a1fde1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_forwarding_rules_set_target_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetTarget +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalForwardingRules_SetTarget_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_target(): + # Create a client + client = compute_v1.GlobalForwardingRulesClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetGlobalForwardingRuleRequest( + forwarding_rule="forwarding_rule_value", + project="project_value", + ) + + # Make the request + response = client.set_target(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalForwardingRules_SetTarget_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py new file mode 100644 index 000000000..3472c5c18 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AttachNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_attach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_delete_sync.py new file mode 100644 index 000000000..8d7307ad0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py new file mode 100644 index 000000000..582427897 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DetachNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_detach_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_get_sync.py new file mode 100644 index 000000000..9fc864be6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_insert_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_insert_sync.py new file mode 100644 index 000000000..a7acabb34 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalNetworkEndpointGroupRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py new file mode 100644 index 000000000..4e661e021 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_network_endpoints(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + ) + + # Make the request + page_result = client.list_network_endpoints(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_sync.py new file mode 100644 index 000000000..cc7fd4def --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_network_endpoint_groups_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalNetworkEndpointGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalNetworkEndpointGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalNetworkEndpointGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_operations_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_global_operations_aggregated_list_sync.py new file mode 100644 index 000000000..1238ee52a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_operations_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOperations_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListGlobalOperationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalOperations_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_operations_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_operations_delete_sync.py new file mode 100644 index 000000000..9fbf845aa --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_operations_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOperations_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalOperations_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_operations_get_sync.py b/samples/generated_samples/compute_v1_generated_global_operations_get_sync.py new file mode 100644 index 000000000..7668b10c1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_operations_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOperations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalOperations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_operations_list_sync.py b/samples/generated_samples/compute_v1_generated_global_operations_list_sync.py new file mode 100644 index 000000000..51af58402 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_operations_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOperations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalOperationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalOperations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_operations_wait_sync.py b/samples/generated_samples/compute_v1_generated_global_operations_wait_sync.py new file mode 100644 index 000000000..c28d4131f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_operations_wait_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Wait +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOperations_Wait_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_wait(): + # Create a client + client = compute_v1.GlobalOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitGlobalOperationRequest( + operation="operation_value", + project="project_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalOperations_Wait_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_organization_operations_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_organization_operations_delete_sync.py new file mode 100644 index 000000000..1ba59ade8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_organization_operations_delete_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOrganizationOperations_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalOrganizationOperationRequest( + operation="operation_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalOrganizationOperations_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_organization_operations_get_sync.py b/samples/generated_samples/compute_v1_generated_global_organization_operations_get_sync.py new file mode 100644 index 000000000..e00f7d887 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_organization_operations_get_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOrganizationOperations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalOrganizationOperationRequest( + operation="operation_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalOrganizationOperations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_organization_operations_list_sync.py b/samples/generated_samples/compute_v1_generated_global_organization_operations_list_sync.py new file mode 100644 index 000000000..d3482d986 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_organization_operations_list_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalOrganizationOperations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalOrganizationOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalOrganizationOperationsRequest( + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalOrganizationOperations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_delete_sync.py b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_delete_sync.py new file mode 100644 index 000000000..90e916a68 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_get_sync.py b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_get_sync.py new file mode 100644 index 000000000..36771de78 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_insert_sync.py b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_insert_sync.py new file mode 100644 index 000000000..a582ae16d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertGlobalPublicDelegatedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_list_sync.py b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_list_sync.py new file mode 100644 index 000000000..ccaa87d12 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListGlobalPublicDelegatedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_patch_sync.py b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_patch_sync.py new file mode 100644 index 000000000..754235864 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_global_public_delegated_prefixes_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.GlobalPublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchGlobalPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_aggregated_list_sync.py new file mode 100644 index 000000000..7de1d6417 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListHealthChecksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_HealthChecks_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_delete_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_delete_sync.py new file mode 100644 index 000000000..b4f97125c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_HealthChecks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_get_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_get_sync.py new file mode 100644 index 000000000..6c7d103a1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_HealthChecks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_insert_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_insert_sync.py new file mode 100644 index 000000000..e0f63c362 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertHealthCheckRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_HealthChecks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_list_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_list_sync.py new file mode 100644 index 000000000..d5f378e9c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.ListHealthChecksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_HealthChecks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_patch_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_patch_sync.py new file mode 100644 index 000000000..7fa2e8ac2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_HealthChecks_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_health_checks_update_sync.py b/samples/generated_samples/compute_v1_generated_health_checks_update_sync.py new file mode 100644 index 000000000..d58d40c42 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_health_checks_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_HealthChecks_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.HealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateHealthCheckRequest( + health_check="health_check_value", + project="project_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_HealthChecks_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_image_family_views_get_sync.py b/samples/generated_samples/compute_v1_generated_image_family_views_get_sync.py new file mode 100644 index 000000000..5b57f6e98 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_image_family_views_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ImageFamilyViews_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ImageFamilyViewsClient() + + # Initialize request argument(s) + request = compute_v1.GetImageFamilyViewRequest( + family="family_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ImageFamilyViews_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_delete_sync.py b/samples/generated_samples/compute_v1_generated_images_delete_sync.py new file mode 100644 index 000000000..a8b3e0573 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_deprecate_sync.py b/samples/generated_samples/compute_v1_generated_images_deprecate_sync.py new file mode 100644 index 000000000..d8602f6ef --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_deprecate_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Deprecate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_Deprecate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_deprecate(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeprecateImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.deprecate(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_Deprecate_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_get_from_family_sync.py b/samples/generated_samples/compute_v1_generated_images_get_from_family_sync.py new file mode 100644 index 000000000..06b3c90b4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_get_from_family_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetFromFamily +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_GetFromFamily_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_from_family(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetFromFamilyImageRequest( + family="family_value", + project="project_value", + ) + + # Make the request + response = client.get_from_family(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_GetFromFamily_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_images_get_iam_policy_sync.py new file mode 100644 index 000000000..3bdc2f781 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_get_sync.py b/samples/generated_samples/compute_v1_generated_images_get_sync.py new file mode 100644 index 000000000..963f4abcb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_insert_sync.py b/samples/generated_samples/compute_v1_generated_images_insert_sync.py new file mode 100644 index 000000000..f092d99ac --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_list_sync.py b/samples/generated_samples/compute_v1_generated_images_list_sync.py new file mode 100644 index 000000000..c1e1cecf3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.ListImagesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Images_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_patch_sync.py b/samples/generated_samples/compute_v1_generated_images_patch_sync.py new file mode 100644 index 000000000..e03a4696b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.PatchImageRequest( + image="image_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_images_set_iam_policy_sync.py new file mode 100644 index 000000000..76bc64d60 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_images_set_labels_sync.py new file mode 100644 index 000000000..a090f254c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_images_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_images_test_iam_permissions_sync.py new file mode 100644 index 000000000..1ea7eb81a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_images_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Images_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ImagesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Images_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_abandon_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_abandon_instances_sync.py new file mode 100644 index 000000000..ff04c47ae --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_abandon_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AbandonInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_abandon_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_aggregated_list_sync.py new file mode 100644 index 000000000..4ef67987f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceGroupManagersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py new file mode 100644 index 000000000..d8ed4a994 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ApplyUpdatesToInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_apply_updates_to_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_create_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_create_instances_sync.py new file mode 100644 index 000000000..decbd6075 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_create_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_CreateInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_create_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_CreateInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_instances_sync.py new file mode 100644 index 000000000..dbcd67fee --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py new file mode 100644 index 000000000..43ee8bd6e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeletePerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_sync.py new file mode 100644 index 000000000..065674472 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_get_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_get_sync.py new file mode 100644 index 000000000..b02ffde5c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_insert_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_insert_sync.py new file mode 100644 index 000000000..4cb86796f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupManagerRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_list_errors_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_errors_sync.py new file mode 100644 index 000000000..a13e7133b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_errors_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListErrors +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_ListErrors_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_errors(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListErrorsInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_errors(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_ListErrors_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_list_managed_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_managed_instances_sync.py new file mode 100644 index 000000000..ed20a90ec --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_managed_instances_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListManagedInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_managed_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListManagedInstancesInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_managed_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py new file mode 100644 index 000000000..c1b65ce4a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListPerInstanceConfigsInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_per_instance_configs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_sync.py new file mode 100644 index 000000000..4f2be2a27 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceGroupManagersRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py new file mode 100644 index 000000000..ed1878ad5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchPerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_sync.py new file mode 100644 index 000000000..c1b8a9dd0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_recreate_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_recreate_instances_sync.py new file mode 100644 index 000000000..7ce598d35 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_recreate_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RecreateInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_recreate_instances(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_resize_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_resize_sync.py new file mode 100644 index 000000000..e576f7d74 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_resize_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resize +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_Resize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resize(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + size=443, + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_Resize_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_set_instance_template_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_set_instance_template_sync.py new file mode 100644 index 000000000..f70ca651b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_set_instance_template_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetInstanceTemplate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_instance_template(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_set_target_pools_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_set_target_pools_sync.py new file mode 100644 index 000000000..c01dc0ae1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_set_target_pools_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetTargetPools +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_target_pools(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py new file mode 100644 index 000000000..c6e133ca2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdatePerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_per_instance_configs(): + # Create a client + client = compute_v1.InstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_add_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_add_instances_sync.py new file mode 100644 index 000000000..3e7aa72f9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_add_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_AddInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_AddInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_aggregated_list_sync.py new file mode 100644 index 000000000..5c7e39cd7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroups_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_delete_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_delete_sync.py new file mode 100644 index 000000000..8d490870f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_get_sync.py new file mode 100644 index 000000000..278631455 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_insert_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_insert_sync.py new file mode 100644 index 000000000..a9f3de9f9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_list_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_list_instances_sync.py new file mode 100644 index 000000000..c031b3253 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_list_instances_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_ListInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesInstanceGroupsRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroups_ListInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_list_sync.py new file mode 100644 index 000000000..d96a9ae01 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_remove_instances_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_remove_instances_sync.py new file mode 100644 index 000000000..61804138c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_remove_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_RemoveInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_instances(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstancesInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_RemoveInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_groups_set_named_ports_sync.py b/samples/generated_samples/compute_v1_generated_instance_groups_set_named_ports_sync.py new file mode 100644 index 000000000..26e2ef788 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_groups_set_named_ports_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetNamedPorts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceGroups_SetNamedPorts_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_named_ports(): + # Create a client + client = compute_v1.InstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceGroups_SetNamedPorts_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_aggregated_list_sync.py new file mode 100644 index 000000000..1a5a1298d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstanceTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceTemplates_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_delete_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_delete_sync.py new file mode 100644 index 000000000..1e9349c01 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_get_iam_policy_sync.py new file mode 100644 index 000000000..7261aa32a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyInstanceTemplateRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_get_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_get_sync.py new file mode 100644 index 000000000..a73a1efa4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_insert_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_insert_sync.py new file mode 100644 index 000000000..3870d511a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceTemplateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_list_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_list_sync.py new file mode 100644 index 000000000..63c2ad5bb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListInstanceTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InstanceTemplates_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_set_iam_policy_sync.py new file mode 100644 index 000000000..368bc5b3d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyInstanceTemplateRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_instance_templates_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_instance_templates_test_iam_permissions_sync.py new file mode 100644 index 000000000..dc84c1f68 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instance_templates_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InstanceTemplates_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.InstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsInstanceTemplateRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InstanceTemplates_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_add_access_config_sync.py b/samples/generated_samples/compute_v1_generated_instances_add_access_config_sync.py new file mode 100644 index 000000000..effc740c0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_add_access_config_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddAccessConfig +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_AddAccessConfig_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_access_config(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_AddAccessConfig_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_add_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_instances_add_resource_policies_sync.py new file mode 100644 index 000000000..d7894b34b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_add_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_AddResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_AddResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_instances_aggregated_list_sync.py new file mode 100644 index 000000000..d2fd6c821 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInstancesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Instances_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_attach_disk_sync.py b/samples/generated_samples/compute_v1_generated_instances_attach_disk_sync.py new file mode 100644 index 000000000..d87f64b9b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_attach_disk_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AttachDisk +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_AttachDisk_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_attach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.AttachDiskInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_disk(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_AttachDisk_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_bulk_insert_sync.py b/samples/generated_samples/compute_v1_generated_instances_bulk_insert_sync.py new file mode 100644 index 000000000..6548892b1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_bulk_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for BulkInsert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_BulkInsert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_bulk_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_BulkInsert_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_delete_access_config_sync.py b/samples/generated_samples/compute_v1_generated_instances_delete_access_config_sync.py new file mode 100644 index 000000000..3242ab22a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_delete_access_config_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAccessConfig +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_DeleteAccessConfig_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteAccessConfigInstanceRequest( + access_config="access_config_value", + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_access_config(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_DeleteAccessConfig_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_delete_sync.py b/samples/generated_samples/compute_v1_generated_instances_delete_sync.py new file mode 100644 index 000000000..2f05a06fd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_detach_disk_sync.py b/samples/generated_samples/compute_v1_generated_instances_detach_disk_sync.py new file mode 100644 index 000000000..ac45403f1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_detach_disk_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DetachDisk +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_DetachDisk_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_detach_disk(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.DetachDiskInstanceRequest( + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_disk(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_DetachDisk_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_effective_firewalls_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_effective_firewalls_sync.py new file mode 100644 index 000000000..f18334731 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_effective_firewalls_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEffectiveFirewalls +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetEffectiveFirewalls_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_effective_firewalls(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetEffectiveFirewalls_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_guest_attributes_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_guest_attributes_sync.py new file mode 100644 index 000000000..ac7626c13 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_guest_attributes_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetGuestAttributes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetGuestAttributes_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_guest_attributes(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetGuestAttributesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_guest_attributes(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetGuestAttributes_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_iam_policy_sync.py new file mode 100644 index 000000000..9705be9b7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_screenshot_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_screenshot_sync.py new file mode 100644 index 000000000..d01c00620 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_screenshot_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetScreenshot +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetScreenshot_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_screenshot(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetScreenshotInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_screenshot(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetScreenshot_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_serial_port_output_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_serial_port_output_sync.py new file mode 100644 index 000000000..395a694fd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_serial_port_output_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetSerialPortOutput +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetSerialPortOutput_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_serial_port_output(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetSerialPortOutputInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_serial_port_output(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetSerialPortOutput_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_shielded_instance_identity_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_shielded_instance_identity_sync.py new file mode 100644 index 000000000..81471f5cd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_shielded_instance_identity_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetShieldedInstanceIdentity +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_shielded_instance_identity(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetShieldedInstanceIdentityInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get_shielded_instance_identity(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_get_sync.py b/samples/generated_samples/compute_v1_generated_instances_get_sync.py new file mode 100644 index 000000000..4d2c6593a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_insert_sync.py b/samples/generated_samples/compute_v1_generated_instances_insert_sync.py new file mode 100644 index 000000000..c00635179 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_list_referrers_sync.py b/samples/generated_samples/compute_v1_generated_instances_list_referrers_sync.py new file mode 100644 index 000000000..92eaa2c22 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_list_referrers_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListReferrers +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_ListReferrers_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_referrers(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListReferrersInstancesRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_referrers(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Instances_ListReferrers_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_list_sync.py b/samples/generated_samples/compute_v1_generated_instances_list_sync.py new file mode 100644 index 000000000..991063342 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Instances_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_remove_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_instances_remove_resource_policies_sync.py new file mode 100644 index 000000000..5ecfe0fb4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_remove_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_RemoveResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_resource_policies(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_RemoveResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_reset_sync.py b/samples/generated_samples/compute_v1_generated_instances_reset_sync.py new file mode 100644 index 000000000..70fba2a74 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_reset_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Reset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Reset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_reset(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResetInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.reset(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Reset_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_resume_sync.py b/samples/generated_samples/compute_v1_generated_instances_resume_sync.py new file mode 100644 index 000000000..a34107a25 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_resume_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resume +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Resume_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resume(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.ResumeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.resume(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Resume_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_send_diagnostic_interrupt_sync.py b/samples/generated_samples/compute_v1_generated_instances_send_diagnostic_interrupt_sync.py new file mode 100644 index 000000000..60cb442dd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_send_diagnostic_interrupt_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SendDiagnosticInterrupt +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SendDiagnosticInterrupt_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_send_diagnostic_interrupt(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SendDiagnosticInterruptInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.send_diagnostic_interrupt(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SendDiagnosticInterrupt_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_deletion_protection_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_deletion_protection_sync.py new file mode 100644 index 000000000..78d56c555 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_deletion_protection_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetDeletionProtection +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetDeletionProtection_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_deletion_protection(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDeletionProtectionInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_deletion_protection(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetDeletionProtection_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_disk_auto_delete_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_disk_auto_delete_sync.py new file mode 100644 index 000000000..9a0d61be7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_disk_auto_delete_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetDiskAutoDelete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetDiskAutoDelete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_disk_auto_delete(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetDiskAutoDeleteInstanceRequest( + auto_delete=True, + device_name="device_name_value", + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_disk_auto_delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetDiskAutoDelete_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_iam_policy_sync.py new file mode 100644 index 000000000..6b737ac78 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_labels_sync.py new file mode 100644 index 000000000..86e1b1778 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_machine_resources_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_machine_resources_sync.py new file mode 100644 index 000000000..5f5b9f68c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_machine_resources_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetMachineResources +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetMachineResources_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_machine_resources(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineResourcesInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_resources(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetMachineResources_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_machine_type_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_machine_type_sync.py new file mode 100644 index 000000000..5bedaa046 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_machine_type_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetMachineType +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetMachineType_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_machine_type(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMachineTypeInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_machine_type(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetMachineType_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_metadata_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_metadata_sync.py new file mode 100644 index 000000000..816eb292e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_metadata_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetMetadata +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetMetadata_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_metadata(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMetadataInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_metadata(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetMetadata_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_min_cpu_platform_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_min_cpu_platform_sync.py new file mode 100644 index 000000000..e4f458d03 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_min_cpu_platform_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetMinCpuPlatform +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetMinCpuPlatform_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_min_cpu_platform(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetMinCpuPlatformInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_min_cpu_platform(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetMinCpuPlatform_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_name_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_name_sync.py new file mode 100644 index 000000000..3e688dd2b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_name_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetName +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetName_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_name(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetNameInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_name(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetName_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_scheduling_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_scheduling_sync.py new file mode 100644 index 000000000..fcc67bf0c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_scheduling_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetScheduling +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetScheduling_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_scheduling(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetSchedulingInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_scheduling(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetScheduling_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_service_account_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_service_account_sync.py new file mode 100644 index 000000000..ae29741bd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_service_account_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetServiceAccount +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetServiceAccount_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_service_account(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetServiceAccountInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_service_account(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetServiceAccount_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py new file mode 100644 index 000000000..1bc334c90 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetShieldedInstanceIntegrityPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_shielded_instance_integrity_policy(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetShieldedInstanceIntegrityPolicyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_shielded_instance_integrity_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_set_tags_sync.py b/samples/generated_samples/compute_v1_generated_instances_set_tags_sync.py new file mode 100644 index 000000000..05500ce30 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_set_tags_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetTags +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SetTags_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_tags(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SetTagsInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_tags(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SetTags_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_simulate_maintenance_event_sync.py b/samples/generated_samples/compute_v1_generated_instances_simulate_maintenance_event_sync.py new file mode 100644 index 000000000..7a481477c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_simulate_maintenance_event_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SimulateMaintenanceEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_SimulateMaintenanceEvent_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_simulate_maintenance_event(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_SimulateMaintenanceEvent_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_start_sync.py b/samples/generated_samples/compute_v1_generated_instances_start_sync.py new file mode 100644 index 000000000..a15fb87b2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_start_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Start +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Start_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_start(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Start_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_start_with_encryption_key_sync.py b/samples/generated_samples/compute_v1_generated_instances_start_with_encryption_key_sync.py new file mode 100644 index 000000000..a1fce7f26 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_start_with_encryption_key_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StartWithEncryptionKey +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_StartWithEncryptionKey_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_start_with_encryption_key(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StartWithEncryptionKeyInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.start_with_encryption_key(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_StartWithEncryptionKey_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_stop_sync.py b/samples/generated_samples/compute_v1_generated_instances_stop_sync.py new file mode 100644 index 000000000..dd8479b58 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_stop_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Stop +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Stop_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_stop(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.StopInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.stop(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Stop_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_suspend_sync.py b/samples/generated_samples/compute_v1_generated_instances_suspend_sync.py new file mode 100644 index 000000000..92e5bbac7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_suspend_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Suspend +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Suspend_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_suspend(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.SuspendInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.suspend(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Suspend_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_instances_test_iam_permissions_sync.py new file mode 100644 index 000000000..71505ff7b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsInstanceRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_update_access_config_sync.py b/samples/generated_samples/compute_v1_generated_instances_update_access_config_sync.py new file mode 100644 index 000000000..0b25926df --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_update_access_config_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateAccessConfig +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_UpdateAccessConfig_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_access_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateAccessConfigInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_access_config(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_UpdateAccessConfig_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_update_display_device_sync.py b/samples/generated_samples/compute_v1_generated_instances_update_display_device_sync.py new file mode 100644 index 000000000..116271c9b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_update_display_device_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateDisplayDevice +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_UpdateDisplayDevice_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_display_device(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateDisplayDeviceInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_display_device(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_UpdateDisplayDevice_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_update_network_interface_sync.py b/samples/generated_samples/compute_v1_generated_instances_update_network_interface_sync.py new file mode 100644 index 000000000..0bb855b2d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_update_network_interface_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateNetworkInterface +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_UpdateNetworkInterface_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_network_interface(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateNetworkInterfaceInstanceRequest( + instance="instance_value", + network_interface="network_interface_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_network_interface(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_UpdateNetworkInterface_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_update_shielded_instance_config_sync.py b/samples/generated_samples/compute_v1_generated_instances_update_shielded_instance_config_sync.py new file mode 100644 index 000000000..11268bf50 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_update_shielded_instance_config_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateShieldedInstanceConfig +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_shielded_instance_config(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateShieldedInstanceConfigInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update_shielded_instance_config(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync] diff --git a/samples/generated_samples/compute_v1_generated_instances_update_sync.py b/samples/generated_samples/compute_v1_generated_instances_update_sync.py new file mode 100644 index 000000000..9d3895174 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_instances_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Instances_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.InstancesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateInstanceRequest( + instance="instance_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Instances_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_aggregated_list_sync.py new file mode 100644 index 000000000..cdfcbd932 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListInterconnectAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InterconnectAttachments_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_delete_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_delete_sync.py new file mode 100644 index 000000000..a9ddcbd7d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectAttachments_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_get_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_get_sync.py new file mode 100644 index 000000000..5f2cc9d91 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectAttachments_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_insert_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_insert_sync.py new file mode 100644 index 000000000..d7e05ac03 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectAttachments_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_list_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_list_sync.py new file mode 100644 index 000000000..f0d37113c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InterconnectAttachments_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_patch_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_patch_sync.py new file mode 100644 index 000000000..35eab59f5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectAttachmentRequest( + interconnect_attachment="interconnect_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectAttachments_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_attachments_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_attachments_set_labels_sync.py new file mode 100644 index 000000000..3e7b1933f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_attachments_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectAttachments_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.InterconnectAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectAttachments_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_locations_get_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_locations_get_sync.py new file mode 100644 index 000000000..58fb5edd5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_locations_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectLocations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InterconnectLocationsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectLocationRequest( + interconnect_location="interconnect_location_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectLocations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_locations_list_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_locations_list_sync.py new file mode 100644 index 000000000..242e6993b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_locations_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectLocations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InterconnectLocationsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectLocationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InterconnectLocations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_get_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_get_sync.py new file mode 100644 index 000000000..b71f97110 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectRemoteLocations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InterconnectRemoteLocationsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectRemoteLocationRequest( + interconnect_remote_location="interconnect_remote_location_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_InterconnectRemoteLocations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_list_sync.py b/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_list_sync.py new file mode 100644 index 000000000..194ac4b3a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnect_remote_locations_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_InterconnectRemoteLocations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InterconnectRemoteLocationsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectRemoteLocationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_InterconnectRemoteLocations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_delete_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_delete_sync.py new file mode 100644 index 000000000..80bec4464 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_get_diagnostics_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_get_diagnostics_sync.py new file mode 100644 index 000000000..fb6310e9e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_get_diagnostics_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDiagnostics +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_GetDiagnostics_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_diagnostics(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.GetDiagnosticsInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.get_diagnostics(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_GetDiagnostics_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_get_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_get_sync.py new file mode 100644 index 000000000..5bcbee1db --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.GetInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_insert_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_insert_sync.py new file mode 100644 index 000000000..3ee68eb49 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.InsertInterconnectRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_list_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_list_sync.py new file mode 100644 index 000000000..b90b766d3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.ListInterconnectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Interconnects_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_patch_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_patch_sync.py new file mode 100644 index 000000000..a92b63acc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.PatchInterconnectRequest( + interconnect="interconnect_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_interconnects_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_interconnects_set_labels_sync.py new file mode 100644 index 000000000..9964c78dd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_interconnects_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Interconnects_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.InterconnectsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsInterconnectRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Interconnects_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_license_codes_get_sync.py b/samples/generated_samples/compute_v1_generated_license_codes_get_sync.py new file mode 100644 index 000000000..8b03d390e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_license_codes_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_LicenseCodes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.LicenseCodesClient() + + # Initialize request argument(s) + request = compute_v1.GetLicenseCodeRequest( + license_code="license_code_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_LicenseCodes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_license_codes_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_license_codes_test_iam_permissions_sync.py new file mode 100644 index 000000000..334194136 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_license_codes_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_LicenseCodes_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.LicenseCodesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsLicenseCodeRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_LicenseCodes_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_delete_sync.py b/samples/generated_samples/compute_v1_generated_licenses_delete_sync.py new file mode 100644 index 000000000..ef6c67393 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteLicenseRequest( + license_="license__value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_licenses_get_iam_policy_sync.py new file mode 100644 index 000000000..b412eed41 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyLicenseRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_get_sync.py b/samples/generated_samples/compute_v1_generated_licenses_get_sync.py new file mode 100644 index 000000000..f070a6d2f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.GetLicenseRequest( + license_="license__value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_insert_sync.py b/samples/generated_samples/compute_v1_generated_licenses_insert_sync.py new file mode 100644 index 000000000..cc1af0d19 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.InsertLicenseRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_list_sync.py b/samples/generated_samples/compute_v1_generated_licenses_list_sync.py new file mode 100644 index 000000000..8b752ead6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.ListLicensesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Licenses_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_licenses_set_iam_policy_sync.py new file mode 100644 index 000000000..19ba34a6b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyLicenseRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_licenses_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_licenses_test_iam_permissions_sync.py new file mode 100644 index 000000000..da8194a4c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_licenses_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Licenses_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.LicensesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsLicenseRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Licenses_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_delete_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_delete_sync.py new file mode 100644 index 000000000..2c86169ba --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteMachineImageRequest( + machine_image="machine_image_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_get_iam_policy_sync.py new file mode 100644 index 000000000..6d1aa7dfc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyMachineImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_get_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_get_sync.py new file mode 100644 index 000000000..1b1b8e857 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.GetMachineImageRequest( + machine_image="machine_image_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_insert_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_insert_sync.py new file mode 100644 index 000000000..33f8a2e1f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.InsertMachineImageRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_list_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_list_sync.py new file mode 100644 index 000000000..efaac4f34 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.ListMachineImagesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_MachineImages_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_set_iam_policy_sync.py new file mode 100644 index 000000000..4edeac2cd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyMachineImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_images_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_machine_images_test_iam_permissions_sync.py new file mode 100644 index 000000000..acd2ef008 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_images_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineImages_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.MachineImagesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsMachineImageRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineImages_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_types_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_machine_types_aggregated_list_sync.py new file mode 100644 index 000000000..05d8e937f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_types_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineTypes_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListMachineTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_MachineTypes_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_types_get_sync.py b/samples/generated_samples/compute_v1_generated_machine_types_get_sync.py new file mode 100644 index 000000000..84d808246 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_types_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineTypes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetMachineTypeRequest( + machine_type="machine_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_MachineTypes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_machine_types_list_sync.py b/samples/generated_samples/compute_v1_generated_machine_types_list_sync.py new file mode 100644 index 000000000..17934e488 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_machine_types_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_MachineTypes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.MachineTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListMachineTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_MachineTypes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_aggregated_list_sync.py new file mode 100644 index 000000000..036160b8e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkAttachments_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_delete_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_delete_sync.py new file mode 100644 index 000000000..337301597 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkAttachmentRequest( + network_attachment="network_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_get_iam_policy_sync.py new file mode 100644 index 000000000..2c69ef9ab --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNetworkAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_get_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_get_sync.py new file mode 100644 index 000000000..d3a0b7283 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkAttachmentRequest( + network_attachment="network_attachment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_insert_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_insert_sync.py new file mode 100644 index 000000000..38b028750 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_list_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_list_sync.py new file mode 100644 index 000000000..adac3b762 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkAttachments_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_set_iam_policy_sync.py new file mode 100644 index 000000000..674913a19 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNetworkAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_attachments_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_network_attachments_test_iam_permissions_sync.py new file mode 100644 index 000000000..b972ff5ec --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_attachments_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkAttachments_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.NetworkAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkAttachments_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_edge_security_services_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_network_edge_security_services_aggregated_list_sync.py new file mode 100644 index 000000000..2d517045a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_edge_security_services_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkEdgeSecurityServicesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_edge_security_services_delete_sync.py b/samples/generated_samples/compute_v1_generated_network_edge_security_services_delete_sync.py new file mode 100644 index 000000000..fa96dcebb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_edge_security_services_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEdgeSecurityServices_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEdgeSecurityServices_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_edge_security_services_get_sync.py b/samples/generated_samples/compute_v1_generated_network_edge_security_services_get_sync.py new file mode 100644 index 000000000..0206909a4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_edge_security_services_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEdgeSecurityServices_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEdgeSecurityServices_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_edge_security_services_insert_sync.py b/samples/generated_samples/compute_v1_generated_network_edge_security_services_insert_sync.py new file mode 100644 index 000000000..69e196c6a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_edge_security_services_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEdgeSecurityServices_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEdgeSecurityServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEdgeSecurityServices_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_edge_security_services_patch_sync.py b/samples/generated_samples/compute_v1_generated_network_edge_security_services_patch_sync.py new file mode 100644 index 000000000..84a31134c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_edge_security_services_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEdgeSecurityServices_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.NetworkEdgeSecurityServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkEdgeSecurityServiceRequest( + network_edge_security_service="network_edge_security_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEdgeSecurityServices_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py new file mode 100644 index 000000000..06a599c6e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNetworkEndpointGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py new file mode 100644 index 000000000..89f527eec --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AttachNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_attach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AttachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.attach_network_endpoints(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_delete_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_delete_sync.py new file mode 100644 index 000000000..09fdcf36e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py new file mode 100644 index 000000000..71d0d808b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DetachNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_detach_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DetachNetworkEndpointsNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.detach_network_endpoints(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_get_sync.py new file mode 100644 index 000000000..19946c4e1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_insert_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_insert_sync.py new file mode 100644 index 000000000..8c7720fc7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkEndpointGroupRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py new file mode 100644 index 000000000..0f0e6355b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListNetworkEndpoints +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_network_endpoints(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointsNetworkEndpointGroupsRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_network_endpoints(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_sync.py new file mode 100644 index 000000000..1cff240b8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkEndpointGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py new file mode 100644 index 000000000..a0608e635 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.NetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkEndpointGroupRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_association_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_association_sync.py new file mode 100644 index 000000000..cf56f5c10 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_association_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_AddAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_AddAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_rule_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_rule_sync.py new file mode 100644 index 000000000..c3b8e3d15 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_add_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_AddRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_AddRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_clone_rules_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_clone_rules_sync.py new file mode 100644 index 000000000..b262dd902 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_clone_rules_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CloneRules +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_CloneRules_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_clone_rules(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_CloneRules_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_delete_sync.py new file mode 100644 index 000000000..9b69bac35 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_association_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_association_sync.py new file mode 100644 index 000000000..e75adbf39 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_association_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_GetAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_GetAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py new file mode 100644 index 000000000..8555d77a1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNetworkFirewallPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_rule_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_rule_sync.py new file mode 100644 index 000000000..1316c8f3a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_GetRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_GetRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_sync.py new file mode 100644 index 000000000..4cdb7e430 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_insert_sync.py new file mode 100644 index 000000000..9bde93024 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkFirewallPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_list_sync.py new file mode 100644 index 000000000..8a457df73 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworkFirewallPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_rule_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_rule_sync.py new file mode 100644 index 000000000..2bd1b31ce --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_PatchRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_PatchRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_sync.py new file mode 100644 index 000000000..e672c1aa9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_association_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_association_sync.py new file mode 100644 index 000000000..267e7e08a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_association_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_association(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_rule_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_rule_sync.py new file mode 100644 index 000000000..7f497af70 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_remove_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_RemoveRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_rule(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_RemoveRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py new file mode 100644 index 000000000..0794b1e52 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNetworkFirewallPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py new file mode 100644 index 000000000..8bcc312ea --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.NetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNetworkFirewallPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_add_peering_sync.py b/samples/generated_samples/compute_v1_generated_networks_add_peering_sync.py new file mode 100644 index 000000000..2188c1aaf --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_add_peering_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddPeering +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_AddPeering_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.AddPeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.add_peering(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_AddPeering_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_delete_sync.py b/samples/generated_samples/compute_v1_generated_networks_delete_sync.py new file mode 100644 index 000000000..1050c4246 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_get_effective_firewalls_sync.py b/samples/generated_samples/compute_v1_generated_networks_get_effective_firewalls_sync.py new file mode 100644 index 000000000..13f9c9eb2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_get_effective_firewalls_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEffectiveFirewalls +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_GetEffectiveFirewalls_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_effective_firewalls(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_GetEffectiveFirewalls_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_get_sync.py b/samples/generated_samples/compute_v1_generated_networks_get_sync.py new file mode 100644 index 000000000..2dfb9c6f2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_insert_sync.py b/samples/generated_samples/compute_v1_generated_networks_insert_sync.py new file mode 100644 index 000000000..7d537a04b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertNetworkRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_list_peering_routes_sync.py b/samples/generated_samples/compute_v1_generated_networks_list_peering_routes_sync.py new file mode 100644 index 000000000..8a0dd8ce7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_list_peering_routes_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPeeringRoutes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_ListPeeringRoutes_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_peering_routes(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListPeeringRoutesNetworksRequest( + network="network_value", + project="project_value", + ) + + # Make the request + page_result = client.list_peering_routes(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Networks_ListPeeringRoutes_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_list_sync.py b/samples/generated_samples/compute_v1_generated_networks_list_sync.py new file mode 100644 index 000000000..16b54620a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListNetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Networks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_patch_sync.py b/samples/generated_samples/compute_v1_generated_networks_patch_sync.py new file mode 100644 index 000000000..213e91e89 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_remove_peering_sync.py b/samples/generated_samples/compute_v1_generated_networks_remove_peering_sync.py new file mode 100644 index 000000000..3f2c3c09d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_remove_peering_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemovePeering +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_RemovePeering_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.RemovePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.remove_peering(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_RemovePeering_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_switch_to_custom_mode_sync.py b/samples/generated_samples/compute_v1_generated_networks_switch_to_custom_mode_sync.py new file mode 100644 index 000000000..1cbe1fe1d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_switch_to_custom_mode_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SwitchToCustomMode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_SwitchToCustomMode_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_switch_to_custom_mode(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.SwitchToCustomModeNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.switch_to_custom_mode(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_SwitchToCustomMode_sync] diff --git a/samples/generated_samples/compute_v1_generated_networks_update_peering_sync.py b/samples/generated_samples/compute_v1_generated_networks_update_peering_sync.py new file mode 100644 index 000000000..e80eb7299 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_networks_update_peering_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdatePeering +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Networks_UpdatePeering_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_peering(): + # Create a client + client = compute_v1.NetworksClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePeeringNetworkRequest( + network="network_value", + project="project_value", + ) + + # Make the request + response = client.update_peering(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Networks_UpdatePeering_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_add_nodes_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_add_nodes_sync.py new file mode 100644 index 000000000..b7ea0eba9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_add_nodes_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddNodes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_AddNodes_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AddNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.add_nodes(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_AddNodes_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_aggregated_list_sync.py new file mode 100644 index 000000000..9b5e7ea05 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeGroupsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeGroups_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_delete_nodes_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_delete_nodes_sync.py new file mode 100644 index 000000000..a618f83b4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_delete_nodes_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteNodes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_DeleteNodes_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodesNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete_nodes(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_DeleteNodes_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_delete_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_delete_sync.py new file mode 100644 index 000000000..0a4e2440a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_get_iam_policy_sync.py new file mode 100644 index 000000000..d77569cef --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNodeGroupRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_get_sync.py new file mode 100644 index 000000000..20df90427 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_insert_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_insert_sync.py new file mode 100644 index 000000000..cff1fdc35 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_insert_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeGroupRequest( + initial_node_count=1911, + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_list_nodes_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_list_nodes_sync.py new file mode 100644 index 000000000..fd376df76 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_list_nodes_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListNodes +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_ListNodes_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_nodes(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNodesNodeGroupsRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list_nodes(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeGroups_ListNodes_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_list_sync.py new file mode 100644 index 000000000..274c704a3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeGroupsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_patch_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_patch_sync.py new file mode 100644 index 000000000..521ddfe5c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.PatchNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_set_iam_policy_sync.py new file mode 100644 index 000000000..841a9fabc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNodeGroupRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_set_node_template_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_set_node_template_sync.py new file mode 100644 index 000000000..9e8e77741 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_set_node_template_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetNodeTemplate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_SetNodeTemplate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_node_template(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNodeTemplateNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.set_node_template(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_SetNodeTemplate_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_simulate_maintenance_event_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_simulate_maintenance_event_sync.py new file mode 100644 index 000000000..fdb280dee --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_simulate_maintenance_event_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SimulateMaintenanceEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_simulate_maintenance_event(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SimulateMaintenanceEventNodeGroupRequest( + node_group="node_group_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.simulate_maintenance_event(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_groups_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_node_groups_test_iam_permissions_sync.py new file mode 100644 index 000000000..f629a9a62 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_groups_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeGroups_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.NodeGroupsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNodeGroupRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeGroups_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_aggregated_list_sync.py new file mode 100644 index 000000000..117af9a0f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeTemplatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeTemplates_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_delete_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_delete_sync.py new file mode 100644 index 000000000..1cd7df815 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteNodeTemplateRequest( + node_template="node_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_get_iam_policy_sync.py new file mode 100644 index 000000000..e22c2ebc1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyNodeTemplateRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_get_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_get_sync.py new file mode 100644 index 000000000..b5bafbcb4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeTemplateRequest( + node_template="node_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_insert_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_insert_sync.py new file mode 100644 index 000000000..0967e422f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertNodeTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_list_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_list_sync.py new file mode 100644 index 000000000..71ee3e251 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeTemplatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeTemplates_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_set_iam_policy_sync.py new file mode 100644 index 000000000..4a6254f6d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyNodeTemplateRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_templates_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_node_templates_test_iam_permissions_sync.py new file mode 100644 index 000000000..8392e3935 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_templates_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTemplates_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.NodeTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsNodeTemplateRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTemplates_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_types_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_node_types_aggregated_list_sync.py new file mode 100644 index 000000000..a0d6aa91c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_types_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTypes_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListNodeTypesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeTypes_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_types_get_sync.py b/samples/generated_samples/compute_v1_generated_node_types_get_sync.py new file mode 100644 index 000000000..b1802eced --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_types_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTypes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetNodeTypeRequest( + node_type="node_type_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_NodeTypes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_node_types_list_sync.py b/samples/generated_samples/compute_v1_generated_node_types_list_sync.py new file mode 100644 index 000000000..6d2641dbb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_node_types_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_NodeTypes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.NodeTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListNodeTypesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_NodeTypes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_aggregated_list_sync.py new file mode 100644 index 000000000..943d24830 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListPacketMirroringsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_PacketMirrorings_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_delete_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_delete_sync.py new file mode 100644 index 000000000..45d42f1f4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.DeletePacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PacketMirrorings_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_get_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_get_sync.py new file mode 100644 index 000000000..e8915f5f4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.GetPacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PacketMirrorings_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_insert_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_insert_sync.py new file mode 100644 index 000000000..77bad4d14 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.InsertPacketMirroringRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PacketMirrorings_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_list_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_list_sync.py new file mode 100644 index 000000000..b1117d681 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.ListPacketMirroringsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_PacketMirrorings_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_patch_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_patch_sync.py new file mode 100644 index 000000000..c2c49bb0c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.PatchPacketMirroringRequest( + packet_mirroring="packet_mirroring_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PacketMirrorings_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py new file mode 100644 index 000000000..9a0b8f46c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PacketMirrorings_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.PacketMirroringsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsPacketMirroringRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PacketMirrorings_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_disable_xpn_host_sync.py b/samples/generated_samples/compute_v1_generated_projects_disable_xpn_host_sync.py new file mode 100644 index 000000000..e4f95917f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_disable_xpn_host_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DisableXpnHost +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_DisableXpnHost_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_disable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_host(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_DisableXpnHost_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_disable_xpn_resource_sync.py b/samples/generated_samples/compute_v1_generated_projects_disable_xpn_resource_sync.py new file mode 100644 index 000000000..446d4ad0f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_disable_xpn_resource_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DisableXpnResource +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_DisableXpnResource_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_disable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.DisableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.disable_xpn_resource(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_DisableXpnResource_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_enable_xpn_host_sync.py b/samples/generated_samples/compute_v1_generated_projects_enable_xpn_host_sync.py new file mode 100644 index 000000000..bdeca4fbf --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_enable_xpn_host_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for EnableXpnHost +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_EnableXpnHost_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_enable_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_host(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_EnableXpnHost_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_enable_xpn_resource_sync.py b/samples/generated_samples/compute_v1_generated_projects_enable_xpn_resource_sync.py new file mode 100644 index 000000000..8e29908a7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_enable_xpn_resource_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for EnableXpnResource +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_EnableXpnResource_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_enable_xpn_resource(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.EnableXpnResourceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.enable_xpn_resource(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_EnableXpnResource_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_get_sync.py b/samples/generated_samples/compute_v1_generated_projects_get_sync.py new file mode 100644 index 000000000..129bf7de7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_get_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetProjectRequest( + project="project_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_get_xpn_host_sync.py b/samples/generated_samples/compute_v1_generated_projects_get_xpn_host_sync.py new file mode 100644 index 000000000..c705251cf --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_get_xpn_host_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetXpnHost +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_GetXpnHost_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_xpn_host(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetXpnHostProjectRequest( + project="project_value", + ) + + # Make the request + response = client.get_xpn_host(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_GetXpnHost_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_get_xpn_resources_sync.py b/samples/generated_samples/compute_v1_generated_projects_get_xpn_resources_sync.py new file mode 100644 index 000000000..29c8350ea --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_get_xpn_resources_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetXpnResources +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_GetXpnResources_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_xpn_resources(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.GetXpnResourcesProjectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.get_xpn_resources(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Projects_GetXpnResources_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_list_xpn_hosts_sync.py b/samples/generated_samples/compute_v1_generated_projects_list_xpn_hosts_sync.py new file mode 100644 index 000000000..51ffcae82 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_list_xpn_hosts_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListXpnHosts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_ListXpnHosts_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_xpn_hosts(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.ListXpnHostsProjectsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list_xpn_hosts(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Projects_ListXpnHosts_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_move_disk_sync.py b/samples/generated_samples/compute_v1_generated_projects_move_disk_sync.py new file mode 100644 index 000000000..5caabb111 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_move_disk_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for MoveDisk +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_MoveDisk_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_move_disk(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveDiskProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_disk(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_MoveDisk_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_move_instance_sync.py b/samples/generated_samples/compute_v1_generated_projects_move_instance_sync.py new file mode 100644 index 000000000..4061c4898 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_move_instance_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for MoveInstance +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_MoveInstance_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_move_instance(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.MoveInstanceProjectRequest( + project="project_value", + ) + + # Make the request + response = client.move_instance(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_MoveInstance_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_set_common_instance_metadata_sync.py b/samples/generated_samples/compute_v1_generated_projects_set_common_instance_metadata_sync.py new file mode 100644 index 000000000..78ae13e17 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_set_common_instance_metadata_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetCommonInstanceMetadata +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_SetCommonInstanceMetadata_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_common_instance_metadata(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetCommonInstanceMetadataProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_common_instance_metadata(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_SetCommonInstanceMetadata_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_set_default_network_tier_sync.py b/samples/generated_samples/compute_v1_generated_projects_set_default_network_tier_sync.py new file mode 100644 index 000000000..8f236a567 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_set_default_network_tier_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetDefaultNetworkTier +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_SetDefaultNetworkTier_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_default_network_tier(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetDefaultNetworkTierProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_default_network_tier(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_SetDefaultNetworkTier_sync] diff --git a/samples/generated_samples/compute_v1_generated_projects_set_usage_export_bucket_sync.py b/samples/generated_samples/compute_v1_generated_projects_set_usage_export_bucket_sync.py new file mode 100644 index 000000000..2b515d604 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_projects_set_usage_export_bucket_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetUsageExportBucket +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Projects_SetUsageExportBucket_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_usage_export_bucket(): + # Create a client + client = compute_v1.ProjectsClient() + + # Initialize request argument(s) + request = compute_v1.SetUsageExportBucketProjectRequest( + project="project_value", + ) + + # Make the request + response = client.set_usage_export_bucket(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Projects_SetUsageExportBucket_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_delete_sync.py b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_delete_sync.py new file mode 100644 index 000000000..c0b49ad83 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_get_sync.py b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_get_sync.py new file mode 100644 index 000000000..9ac0a2c90 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicAdvertisedPrefixes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetPublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicAdvertisedPrefixes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_insert_sync.py b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_insert_sync.py new file mode 100644 index 000000000..fc77e5b00 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicAdvertisedPrefixeRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_list_sync.py b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_list_sync.py new file mode 100644 index 000000000..663b2adbc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicAdvertisedPrefixes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListPublicAdvertisedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_PublicAdvertisedPrefixes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_patch_sync.py b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_patch_sync.py new file mode 100644 index 000000000..bfa1a112d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_advertised_prefixes_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.PublicAdvertisedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicAdvertisedPrefixeRequest( + project="project_value", + public_advertised_prefix="public_advertised_prefix_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py new file mode 100644 index 000000000..ee9ea0714 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListPublicDelegatedPrefixesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_delete_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_delete_sync.py new file mode 100644 index 000000000..89d86d392 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.DeletePublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_get_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_get_sync.py new file mode 100644 index 000000000..107e4a671 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.GetPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_insert_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_insert_sync.py new file mode 100644 index 000000000..80923f29a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.InsertPublicDelegatedPrefixeRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_list_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_list_sync.py new file mode 100644 index 000000000..56b61bba8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.ListPublicDelegatedPrefixesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_patch_sync.py b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_patch_sync.py new file mode 100644 index 000000000..90666dcc9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_public_delegated_prefixes_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_PublicDelegatedPrefixes_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.PublicDelegatedPrefixesClient() + + # Initialize request argument(s) + request = compute_v1.PatchPublicDelegatedPrefixeRequest( + project="project_value", + public_delegated_prefix="public_delegated_prefix_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_PublicDelegatedPrefixes_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_delete_sync.py new file mode 100644 index 000000000..9acbf9d7f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionAutoscalers_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_get_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_get_sync.py new file mode 100644 index 000000000..c82516561 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionAutoscalerRequest( + autoscaler="autoscaler_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionAutoscalers_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_insert_sync.py new file mode 100644 index 000000000..8cd7fd091 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionAutoscalers_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_list_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_list_sync.py new file mode 100644 index 000000000..311fc9463 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionAutoscalersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionAutoscalers_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_patch_sync.py new file mode 100644 index 000000000..44df2a5b8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionAutoscalers_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_autoscalers_update_sync.py b/samples/generated_samples/compute_v1_generated_region_autoscalers_update_sync.py new file mode 100644 index 000000000..4a516343f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_autoscalers_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionAutoscalers_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionAutoscalersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionAutoscalerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionAutoscalers_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_delete_sync.py new file mode 100644 index 000000000..4124e33e8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_get_health_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_get_health_sync.py new file mode 100644 index 000000000..b2eef062d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_get_health_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetHealth +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_GetHealth_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_health(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_GetHealth_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_get_iam_policy_sync.py new file mode 100644 index 000000000..9798521b5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionBackendServiceRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_get_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_get_sync.py new file mode 100644 index 000000000..07fa186f6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_insert_sync.py new file mode 100644 index 000000000..c84bc7ce9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionBackendServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_list_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_list_sync.py new file mode 100644 index 000000000..e32132f5f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionBackendServicesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionBackendServices_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_patch_sync.py new file mode 100644 index 000000000..8662147d2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_set_iam_policy_sync.py new file mode 100644 index 000000000..9775fb641 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionBackendServiceRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_backend_services_update_sync.py b/samples/generated_samples/compute_v1_generated_region_backend_services_update_sync.py new file mode 100644 index 000000000..da7f481c4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_backend_services_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionBackendServices_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionBackendServicesClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionBackendServiceRequest( + backend_service="backend_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionBackendServices_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_commitments_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_region_commitments_aggregated_list_sync.py new file mode 100644 index 000000000..0740ca856 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_commitments_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionCommitments_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListRegionCommitmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionCommitments_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_commitments_get_sync.py b/samples/generated_samples/compute_v1_generated_region_commitments_get_sync.py new file mode 100644 index 000000000..b83aa48cc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_commitments_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionCommitments_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionCommitmentRequest( + commitment="commitment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionCommitments_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_commitments_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_commitments_insert_sync.py new file mode 100644 index 000000000..3cebe64d4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_commitments_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionCommitments_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionCommitmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionCommitments_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_commitments_list_sync.py b/samples/generated_samples/compute_v1_generated_region_commitments_list_sync.py new file mode 100644 index 000000000..d41f01ce6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_commitments_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionCommitments_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionCommitmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionCommitments_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_commitments_update_sync.py b/samples/generated_samples/compute_v1_generated_region_commitments_update_sync.py new file mode 100644 index 000000000..ec101398b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_commitments_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionCommitments_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionCommitmentsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionCommitmentRequest( + commitment="commitment_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionCommitments_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disk_types_get_sync.py b/samples/generated_samples/compute_v1_generated_region_disk_types_get_sync.py new file mode 100644 index 000000000..c8e302da1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disk_types_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDiskTypes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionDiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionDiskTypeRequest( + disk_type="disk_type_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDiskTypes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disk_types_list_sync.py b/samples/generated_samples/compute_v1_generated_region_disk_types_list_sync.py new file mode 100644 index 000000000..de942f309 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disk_types_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDiskTypes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionDiskTypesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionDiskTypesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionDiskTypes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_add_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_add_resource_policies_sync.py new file mode 100644 index 000000000..bfbdeedfd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_add_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_AddResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.AddResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_AddResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_bulk_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_bulk_insert_sync.py new file mode 100644 index 000000000..8915bde1c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_bulk_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for BulkInsert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_BulkInsert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_bulk_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_BulkInsert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_create_snapshot_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_create_snapshot_sync.py new file mode 100644 index 000000000..e4f51d5c3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_create_snapshot_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateSnapshot +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_CreateSnapshot_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_create_snapshot(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.CreateSnapshotRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_snapshot(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_CreateSnapshot_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_delete_sync.py new file mode 100644 index 000000000..3a0d3a6ee --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_get_iam_policy_sync.py new file mode 100644 index 000000000..38d3a481b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_get_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_get_sync.py new file mode 100644 index 000000000..306920b2e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_insert_sync.py new file mode 100644 index 000000000..0176972e6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_list_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_list_sync.py new file mode 100644 index 000000000..56a276784 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionDisksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionDisks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_remove_resource_policies_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_remove_resource_policies_sync.py new file mode 100644 index 000000000..af5c3f0a5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_remove_resource_policies_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveResourcePolicies +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_resource_policies(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.RemoveResourcePoliciesRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_resource_policies(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_resize_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_resize_sync.py new file mode 100644 index 000000000..d6c176001 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_resize_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resize +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_Resize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resize(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_Resize_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_set_iam_policy_sync.py new file mode 100644 index 000000000..b61a39161 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_set_labels_sync.py new file mode 100644 index 000000000..219af40f4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_start_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_start_async_replication_sync.py new file mode 100644 index 000000000..e910c6f55 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_start_async_replication_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StartAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_StartAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_start_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StartAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.start_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_StartAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_stop_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_stop_async_replication_sync.py new file mode 100644 index 000000000..0def5c4b1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_stop_async_replication_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StopAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_StopAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_stop_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopAsyncReplicationRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_StopAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_stop_group_async_replication_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_stop_group_async_replication_sync.py new file mode 100644 index 000000000..d8dcada6f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_stop_group_async_replication_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for StopGroupAsyncReplication +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_StopGroupAsyncReplication_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_stop_group_async_replication(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.StopGroupAsyncReplicationRegionDiskRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.stop_group_async_replication(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_StopGroupAsyncReplication_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_test_iam_permissions_sync.py new file mode 100644 index 000000000..6ff2702a1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsRegionDiskRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_disks_update_sync.py b/samples/generated_samples/compute_v1_generated_region_disks_update_sync.py new file mode 100644 index 000000000..fffe50eb5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_disks_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionDisks_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionDisksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionDiskRequest( + disk="disk_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionDisks_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_check_services_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_health_check_services_delete_sync.py new file mode 100644 index 000000000..ac6190d9e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_check_services_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthCheckServices_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthCheckServices_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_check_services_get_sync.py b/samples/generated_samples/compute_v1_generated_region_health_check_services_get_sync.py new file mode 100644 index 000000000..7ee6a6782 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_check_services_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthCheckServices_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthCheckServices_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_check_services_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_health_check_services_insert_sync.py new file mode 100644 index 000000000..115d0171a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_check_services_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthCheckServices_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckServiceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthCheckServices_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_check_services_list_sync.py b/samples/generated_samples/compute_v1_generated_region_health_check_services_list_sync.py new file mode 100644 index 000000000..738bba396 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_check_services_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthCheckServices_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionHealthCheckServicesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionHealthCheckServices_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_check_services_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_health_check_services_patch_sync.py new file mode 100644 index 000000000..b4b0d6340 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_check_services_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthCheckServices_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionHealthCheckServicesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckServiceRequest( + health_check_service="health_check_service_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthCheckServices_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_delete_sync.py new file mode 100644 index 000000000..f482e7af8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthChecks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_get_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_get_sync.py new file mode 100644 index 000000000..0fe66b4e8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthChecks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_insert_sync.py new file mode 100644 index 000000000..bc325a15d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionHealthCheckRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthChecks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_list_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_list_sync.py new file mode 100644 index 000000000..1c1ea23df --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionHealthChecksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionHealthChecks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_patch_sync.py new file mode 100644 index 000000000..bca66e463 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthChecks_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_health_checks_update_sync.py b/samples/generated_samples/compute_v1_generated_region_health_checks_update_sync.py new file mode 100644 index 000000000..995fb743c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_health_checks_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionHealthChecks_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionHealthChecksClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionHealthCheckRequest( + health_check="health_check_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionHealthChecks_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py new file mode 100644 index 000000000..4e229d9c6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AbandonInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_abandon_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.AbandonInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.abandon_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py new file mode 100644 index 000000000..d08e17a12 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ApplyUpdatesToInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_apply_updates_to_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.apply_updates_to_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_create_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_create_instances_sync.py new file mode 100644 index 000000000..d08b25255 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_create_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_create_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.CreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.create_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_instances_sync.py new file mode 100644 index 000000000..ef619ff9e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py new file mode 100644 index 000000000..71f4e1cd4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeletePerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_sync.py new file mode 100644 index 000000000..2c19fb39f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_get_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_get_sync.py new file mode 100644 index 000000000..53ecc7b3e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_insert_sync.py new file mode 100644 index 000000000..291441c79 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceGroupManagerRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_errors_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_errors_sync.py new file mode 100644 index 000000000..65cd10a8a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_errors_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListErrors +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_errors(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListErrorsRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_errors(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py new file mode 100644 index 000000000..edc1c1c68 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListManagedInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_managed_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListManagedInstancesRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_managed_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py new file mode 100644 index 000000000..908fd351c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_per_instance_configs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_sync.py new file mode 100644 index 000000000..0f32061de --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceGroupManagersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py new file mode 100644 index 000000000..57f636586 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchPerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_sync.py new file mode 100644 index 000000000..26834788b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py new file mode 100644 index 000000000..1a81b9e5d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RecreateInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_recreate_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.RecreateInstancesRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.recreate_instances(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_resize_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_resize_sync.py new file mode 100644 index 000000000..5577c48d2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_resize_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resize +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_Resize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resize(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.ResizeRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + size=443, + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_Resize_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py new file mode 100644 index 000000000..d43b54cf2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetInstanceTemplate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_instance_template(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetInstanceTemplateRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_instance_template(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py new file mode 100644 index 000000000..047b78a9f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetTargetPools +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_target_pools(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.SetTargetPoolsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_target_pools(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py new file mode 100644 index 000000000..d71c80dbe --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdatePerInstanceConfigs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update_per_instance_configs(): + # Create a client + client = compute_v1.RegionInstanceGroupManagersClient() + + # Initialize request argument(s) + request = compute_v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest( + instance_group_manager="instance_group_manager_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.update_per_instance_configs(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_groups_get_sync.py new file mode 100644 index 000000000..38600ad54 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_groups_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_groups_list_instances_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_groups_list_instances_sync.py new file mode 100644 index 000000000..db1b4ccc3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_groups_list_instances_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListInstances +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroups_ListInstances_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_instances(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListInstancesRegionInstanceGroupsRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list_instances(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroups_ListInstances_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_groups_list_sync.py new file mode 100644 index 000000000..f1345b1f4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_groups_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceGroupsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_groups_set_named_ports_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_groups_set_named_ports_sync.py new file mode 100644 index 000000000..f8b56c9e3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_groups_set_named_ports_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetNamedPorts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_named_ports(): + # Create a client + client = compute_v1.RegionInstanceGroupsClient() + + # Initialize request argument(s) + request = compute_v1.SetNamedPortsRegionInstanceGroupRequest( + instance_group="instance_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.set_named_ports(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_templates_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_templates_delete_sync.py new file mode 100644 index 000000000..7eb699410 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_templates_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceTemplates_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceTemplates_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_templates_get_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_templates_get_sync.py new file mode 100644 index 000000000..bb14e5c74 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_templates_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceTemplates_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionInstanceTemplateRequest( + instance_template="instance_template_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceTemplates_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_templates_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_templates_insert_sync.py new file mode 100644 index 000000000..2a539b8e7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_templates_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceTemplates_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionInstanceTemplateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstanceTemplates_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instance_templates_list_sync.py b/samples/generated_samples/compute_v1_generated_region_instance_templates_list_sync.py new file mode 100644 index 000000000..9d94fa423 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instance_templates_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstanceTemplates_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionInstanceTemplatesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionInstanceTemplatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionInstanceTemplates_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_instances_bulk_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_instances_bulk_insert_sync.py new file mode 100644 index 000000000..ca09ce03f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_instances_bulk_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for BulkInsert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionInstances_BulkInsert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_bulk_insert(): + # Create a client + client = compute_v1.RegionInstancesClient() + + # Initialize request argument(s) + request = compute_v1.BulkInsertRegionInstanceRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.bulk_insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionInstances_BulkInsert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_delete_sync.py new file mode 100644 index 000000000..ee04add94 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_get_sync.py b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_get_sync.py new file mode 100644 index 000000000..18d52100d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkEndpointGroups_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNetworkEndpointGroupRequest( + network_endpoint_group="network_endpoint_group_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkEndpointGroups_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_insert_sync.py new file mode 100644 index 000000000..44516d853 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkEndpointGroupRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_list_sync.py b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_list_sync.py new file mode 100644 index 000000000..7253d9f27 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_endpoint_groups_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkEndpointGroups_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionNetworkEndpointGroupsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNetworkEndpointGroupsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionNetworkEndpointGroups_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_association_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_association_sync.py new file mode 100644 index 000000000..d217a1d5b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_association_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_rule_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_rule_sync.py new file mode 100644 index 000000000..be1be4675 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_add_rule_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py new file mode 100644 index 000000000..6faaf6d01 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CloneRules +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_clone_rules(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.CloneRulesRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.clone_rules(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_delete_sync.py new file mode 100644 index 000000000..861d927c6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_association_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_association_sync.py new file mode 100644 index 000000000..96d4b4e91 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_association_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py new file mode 100644 index 000000000..eb5059534 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEffectiveFirewalls +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_effective_firewalls(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest( + network="network_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_effective_firewalls(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py new file mode 100644 index 000000000..063793f35 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_rule_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_rule_sync.py new file mode 100644 index 000000000..bda4e4f2b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_rule_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_sync.py new file mode 100644 index 000000000..ab9d348a0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_insert_sync.py new file mode 100644 index 000000000..86fa41792 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_list_sync.py new file mode 100644 index 000000000..e5dbe2948 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNetworkFirewallPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py new file mode 100644 index 000000000..050b82c8f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_sync.py new file mode 100644 index 000000000..74995a70b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_association_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_association_sync.py new file mode 100644 index 000000000..f943414f7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_association_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveAssociation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_association(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveAssociationRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_association(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py new file mode 100644 index 000000000..b5f542de5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_rule(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleRegionNetworkFirewallPolicyRequest( + firewall_policy="firewall_policy_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py new file mode 100644 index 000000000..c101d828c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py new file mode 100644 index 000000000..854cf09f2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.RegionNetworkFirewallPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_notification_endpoints_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_delete_sync.py new file mode 100644 index 000000000..dfb2b191f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNotificationEndpoints_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionNotificationEndpointRequest( + notification_endpoint="notification_endpoint_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNotificationEndpoints_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_notification_endpoints_get_sync.py b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_get_sync.py new file mode 100644 index 000000000..f23ea3333 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNotificationEndpoints_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionNotificationEndpointRequest( + notification_endpoint="notification_endpoint_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNotificationEndpoints_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_notification_endpoints_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_insert_sync.py new file mode 100644 index 000000000..e04fadf7c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNotificationEndpoints_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionNotificationEndpointRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionNotificationEndpoints_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_notification_endpoints_list_sync.py b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_list_sync.py new file mode 100644 index 000000000..562252588 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_notification_endpoints_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionNotificationEndpoints_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionNotificationEndpointsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionNotificationEndpointsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionNotificationEndpoints_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_operations_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_operations_delete_sync.py new file mode 100644 index 000000000..7863d5621 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_operations_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionOperations_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionOperations_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_operations_get_sync.py b/samples/generated_samples/compute_v1_generated_region_operations_get_sync.py new file mode 100644 index 000000000..38811df1a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_operations_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionOperations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionOperations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_operations_list_sync.py b/samples/generated_samples/compute_v1_generated_region_operations_list_sync.py new file mode 100644 index 000000000..787c9e895 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_operations_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionOperations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionOperationsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionOperations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_operations_wait_sync.py b/samples/generated_samples/compute_v1_generated_region_operations_wait_sync.py new file mode 100644 index 000000000..52f457ebf --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_operations_wait_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Wait +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionOperations_Wait_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_wait(): + # Create a client + client = compute_v1.RegionOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitRegionOperationRequest( + operation="operation_value", + project="project_value", + region="region_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionOperations_Wait_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_security_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_security_policies_delete_sync.py new file mode 100644 index 000000000..2a3cf117a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_security_policies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSecurityPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSecurityPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_security_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_security_policies_get_sync.py new file mode 100644 index 000000000..daf624165 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_security_policies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSecurityPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSecurityPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_security_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_security_policies_insert_sync.py new file mode 100644 index 000000000..2a4b0cfcd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_security_policies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSecurityPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSecurityPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_security_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_security_policies_list_sync.py new file mode 100644 index 000000000..083fb372f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_security_policies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSecurityPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSecurityPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionSecurityPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_security_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_security_policies_patch_sync.py new file mode 100644 index 000000000..6e533c9b7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_security_policies_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSecurityPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionSecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSecurityPolicyRequest( + project="project_value", + region="region_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSecurityPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_certificates_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_delete_sync.py new file mode 100644 index 000000000..2630021ad --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslCertificates_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslCertificateRequest( + project="project_value", + region="region_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslCertificates_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_certificates_get_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_get_sync.py new file mode 100644 index 000000000..a5646277f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslCertificates_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSslCertificateRequest( + project="project_value", + region="region_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslCertificates_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_certificates_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_insert_sync.py new file mode 100644 index 000000000..e29718916 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslCertificates_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslCertificateRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslCertificates_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_certificates_list_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_list_sync.py new file mode 100644 index 000000000..adff49b49 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_certificates_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslCertificates_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionSslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSslCertificatesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionSslCertificates_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_delete_sync.py new file mode 100644 index 000000000..684d067dc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_get_sync.py new file mode 100644 index 000000000..6a3d61dcd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_insert_sync.py new file mode 100644 index 000000000..572ccfc00 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionSslPolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_available_features_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_available_features_sync.py new file mode 100644 index 000000000..098a94449 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_available_features_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAvailableFeatures +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_available_features(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAvailableFeaturesRegionSslPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.list_available_features(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_sync.py new file mode 100644 index 000000000..81b2e876b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionSslPoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionSslPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_ssl_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_ssl_policies_patch_sync.py new file mode 100644 index 000000000..b40b7c511 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_ssl_policies_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionSslPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionSslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionSslPolicyRequest( + project="project_value", + region="region_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionSslPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_http_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_delete_sync.py new file mode 100644 index 000000000..c6b8cf920 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_http_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_get_sync.py new file mode 100644 index 000000000..27f077453 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_http_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_insert_sync.py new file mode 100644 index 000000000..fae389165 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_http_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_list_sync.py new file mode 100644 index 000000000..129129df8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetHttpProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionTargetHttpProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_http_proxies_set_url_map_sync.py b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_set_url_map_sync.py new file mode 100644 index 000000000..995a73a89 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_http_proxies_set_url_map_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetUrlMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpProxyRequest( + project="project_value", + region="region_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_delete_sync.py new file mode 100644 index 000000000..c07fd3c5a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_get_sync.py new file mode 100644 index 000000000..854d0d2a1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_insert_sync.py new file mode 100644 index 000000000..bde18c9fd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_list_sync.py new file mode 100644 index 000000000..00052801a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetHttpsProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_patch_sync.py new file mode 100644 index 000000000..998be9369 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py new file mode 100644 index 000000000..e54e88df0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSslCertificates +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_ssl_certificates(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_url_map_sync.py b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_url_map_sync.py new file mode 100644 index 000000000..49b885af2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_https_proxies_set_url_map_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetUrlMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_url_map(): + # Create a client + client = compute_v1.RegionTargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapRegionTargetHttpsProxyRequest( + project="project_value", + region="region_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_delete_sync.py new file mode 100644 index 000000000..9d3916e9f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetTcpProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetTcpProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_get_sync.py new file mode 100644 index 000000000..651785d2f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetTcpProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetTcpProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_insert_sync.py new file mode 100644 index 000000000..1a227328b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetTcpProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionTargetTcpProxyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionTargetTcpProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_list_sync.py new file mode 100644 index 000000000..0766d42c9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_target_tcp_proxies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionTargetTcpProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionTargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionTargetTcpProxiesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionTargetTcpProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_delete_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_delete_sync.py new file mode 100644 index 000000000..d84f14a11 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_get_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_get_sync.py new file mode 100644 index 000000000..11f8130b7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_insert_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_insert_sync.py new file mode 100644 index 000000000..1885267a7 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertRegionUrlMapRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_list_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_list_sync.py new file mode 100644 index 000000000..057797d13 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionUrlMapsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_RegionUrlMaps_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_patch_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_patch_sync.py new file mode 100644 index 000000000..d71f7876d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_update_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_update_sync.py new file mode 100644 index 000000000..c848274b9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_region_url_maps_validate_sync.py b/samples/generated_samples/compute_v1_generated_region_url_maps_validate_sync.py new file mode 100644 index 000000000..1851af109 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_region_url_maps_validate_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Validate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_RegionUrlMaps_Validate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_validate(): + # Create a client + client = compute_v1.RegionUrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ValidateRegionUrlMapRequest( + project="project_value", + region="region_value", + url_map="url_map_value", + ) + + # Make the request + response = client.validate(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_RegionUrlMaps_Validate_sync] diff --git a/samples/generated_samples/compute_v1_generated_regions_get_sync.py b/samples/generated_samples/compute_v1_generated_regions_get_sync.py new file mode 100644 index 000000000..6e47391eb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_regions_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Regions_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RegionsClient() + + # Initialize request argument(s) + request = compute_v1.GetRegionRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Regions_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_regions_list_sync.py b/samples/generated_samples/compute_v1_generated_regions_list_sync.py new file mode 100644 index 000000000..b56446805 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_regions_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Regions_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RegionsClient() + + # Initialize request argument(s) + request = compute_v1.ListRegionsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Regions_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_reservations_aggregated_list_sync.py new file mode 100644 index 000000000..8431e7169 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListReservationsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Reservations_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_delete_sync.py b/samples/generated_samples/compute_v1_generated_reservations_delete_sync.py new file mode 100644 index 000000000..9e5356185 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_reservations_get_iam_policy_sync.py new file mode 100644 index 000000000..8c71ed2c4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyReservationRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_get_sync.py b/samples/generated_samples/compute_v1_generated_reservations_get_sync.py new file mode 100644 index 000000000..60824907f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.GetReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_insert_sync.py b/samples/generated_samples/compute_v1_generated_reservations_insert_sync.py new file mode 100644 index 000000000..a1d0d254a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.InsertReservationRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_list_sync.py b/samples/generated_samples/compute_v1_generated_reservations_list_sync.py new file mode 100644 index 000000000..fdac50ae6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.ListReservationsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Reservations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_resize_sync.py b/samples/generated_samples/compute_v1_generated_reservations_resize_sync.py new file mode 100644 index 000000000..9f1df02fd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_resize_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Resize +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_Resize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_resize(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.ResizeReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.resize(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_Resize_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_reservations_set_iam_policy_sync.py new file mode 100644 index 000000000..f27370063 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyReservationRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_reservations_test_iam_permissions_sync.py new file mode 100644 index 000000000..431513e57 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsReservationRequest( + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_reservations_update_sync.py b/samples/generated_samples/compute_v1_generated_reservations_update_sync.py new file mode 100644 index 000000000..128de7e4a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_reservations_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Reservations_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.ReservationsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateReservationRequest( + project="project_value", + reservation="reservation_value", + zone="zone_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Reservations_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_aggregated_list_sync.py new file mode 100644 index 000000000..0b9748eb1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListResourcePoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ResourcePolicies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_delete_sync.py new file mode 100644 index 000000000..ede521c46 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteResourcePolicyRequest( + project="project_value", + region="region_value", + resource_policy="resource_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_get_iam_policy_sync.py new file mode 100644 index 000000000..517d44589 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyResourcePolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_get_sync.py new file mode 100644 index 000000000..979a575ae --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetResourcePolicyRequest( + project="project_value", + region="region_value", + resource_policy="resource_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_insert_sync.py new file mode 100644 index 000000000..1fcf3232e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertResourcePolicyRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_list_sync.py new file mode 100644 index 000000000..37e5782d5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListResourcePoliciesRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ResourcePolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_set_iam_policy_sync.py new file mode 100644 index 000000000..9edf624be --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyResourcePolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_resource_policies_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_resource_policies_test_iam_permissions_sync.py new file mode 100644 index 000000000..6ca829ddd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_resource_policies_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ResourcePolicies_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ResourcePoliciesClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsResourcePolicyRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ResourcePolicies_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_routers_aggregated_list_sync.py new file mode 100644 index 000000000..db2016ad2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListRoutersRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Routers_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_delete_sync.py b/samples/generated_samples/compute_v1_generated_routers_delete_sync.py new file mode 100644 index 000000000..b102f4600 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_get_nat_mapping_info_sync.py b/samples/generated_samples/compute_v1_generated_routers_get_nat_mapping_info_sync.py new file mode 100644 index 000000000..0cf5ba459 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_get_nat_mapping_info_sync.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetNatMappingInfo +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_GetNatMappingInfo_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_nat_mapping_info(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetNatMappingInfoRoutersRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + page_result = client.get_nat_mapping_info(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Routers_GetNatMappingInfo_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_get_router_status_sync.py b/samples/generated_samples/compute_v1_generated_routers_get_router_status_sync.py new file mode 100644 index 000000000..40a43bedc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_get_router_status_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRouterStatus +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_GetRouterStatus_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_router_status(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetRouterStatusRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.get_router_status(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_GetRouterStatus_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_get_sync.py b/samples/generated_samples/compute_v1_generated_routers_get_sync.py new file mode 100644 index 000000000..9d10cb222 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.GetRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_insert_sync.py b/samples/generated_samples/compute_v1_generated_routers_insert_sync.py new file mode 100644 index 000000000..ddf8c5688 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouterRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_list_sync.py b/samples/generated_samples/compute_v1_generated_routers_list_sync.py new file mode 100644 index 000000000..a7290a99c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.ListRoutersRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Routers_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_patch_sync.py b/samples/generated_samples/compute_v1_generated_routers_patch_sync.py new file mode 100644 index 000000000..8425c3892 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.PatchRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_preview_sync.py b/samples/generated_samples/compute_v1_generated_routers_preview_sync.py new file mode 100644 index 000000000..cfbc565e8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_preview_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Preview +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Preview_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_preview(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.PreviewRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.preview(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Preview_sync] diff --git a/samples/generated_samples/compute_v1_generated_routers_update_sync.py b/samples/generated_samples/compute_v1_generated_routers_update_sync.py new file mode 100644 index 000000000..816ab8ba6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routers_update_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routers_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.RoutersClient() + + # Initialize request argument(s) + request = compute_v1.UpdateRouterRequest( + project="project_value", + region="region_value", + router="router_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routers_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_routes_delete_sync.py b/samples/generated_samples/compute_v1_generated_routes_delete_sync.py new file mode 100644 index 000000000..9c9ed9135 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routes_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routes_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteRouteRequest( + project="project_value", + route="route_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routes_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_routes_get_sync.py b/samples/generated_samples/compute_v1_generated_routes_get_sync.py new file mode 100644 index 000000000..5ff202d55 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routes_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routes_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.GetRouteRequest( + project="project_value", + route="route_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routes_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_routes_insert_sync.py b/samples/generated_samples/compute_v1_generated_routes_insert_sync.py new file mode 100644 index 000000000..732e392ab --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routes_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routes_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.InsertRouteRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Routes_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_routes_list_sync.py b/samples/generated_samples/compute_v1_generated_routes_list_sync.py new file mode 100644 index 000000000..c1adc3a27 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_routes_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Routes_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.RoutesClient() + + # Initialize request argument(s) + request = compute_v1.ListRoutesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Routes_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_add_rule_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_add_rule_sync.py new file mode 100644 index 000000000..6a43e6e79 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_add_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_AddRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AddRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.add_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_AddRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_aggregated_list_sync.py new file mode 100644 index 000000000..d1eebb1cd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SecurityPolicies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_delete_sync.py new file mode 100644 index 000000000..bb88bb146 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_get_rule_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_get_rule_sync.py new file mode 100644 index 000000000..ff1cbd2c3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_get_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_GetRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_GetRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_get_sync.py new file mode 100644 index 000000000..c934fe3fb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_insert_sync.py new file mode 100644 index 000000000..3394ca21b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSecurityPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_list_preconfigured_expression_sets_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_list_preconfigured_expression_sets_sync.py new file mode 100644 index 000000000..1e5409cdb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_list_preconfigured_expression_sets_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListPreconfiguredExpressionSets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_preconfigured_expression_sets(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListPreconfiguredExpressionSetsSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + response = client.list_preconfigured_expression_sets(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_list_sync.py new file mode 100644 index 000000000..496b0ada6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListSecurityPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SecurityPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_patch_rule_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_patch_rule_sync.py new file mode 100644 index 000000000..b2461e022 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_patch_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PatchRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_PatchRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_PatchRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_patch_sync.py new file mode 100644 index 000000000..17be66870 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_remove_rule_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_remove_rule_sync.py new file mode 100644 index 000000000..00bbcc9f5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_remove_rule_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveRule +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_RemoveRule_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_rule(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.RemoveRuleSecurityPolicyRequest( + project="project_value", + security_policy="security_policy_value", + ) + + # Make the request + response = client.remove_rule(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_RemoveRule_sync] diff --git a/samples/generated_samples/compute_v1_generated_security_policies_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_security_policies_set_labels_sync.py new file mode 100644 index 000000000..50e7f0fe6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_security_policies_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SecurityPolicies_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.SecurityPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSecurityPolicyRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SecurityPolicies_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_aggregated_list_sync.py new file mode 100644 index 000000000..a082ce622 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListServiceAttachmentsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ServiceAttachments_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_delete_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_delete_sync.py new file mode 100644 index 000000000..57cab1983 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_get_iam_policy_sync.py new file mode 100644 index 000000000..70c64c8b9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyServiceAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_get_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_get_sync.py new file mode 100644 index 000000000..2ecd75c5d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.GetServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_insert_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_insert_sync.py new file mode 100644 index 000000000..d14a1274b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.InsertServiceAttachmentRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_list_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_list_sync.py new file mode 100644 index 000000000..b5dbfc757 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.ListServiceAttachmentsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ServiceAttachments_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_patch_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_patch_sync.py new file mode 100644 index 000000000..144159bb2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.PatchServiceAttachmentRequest( + project="project_value", + region="region_value", + service_attachment="service_attachment_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_set_iam_policy_sync.py new file mode 100644 index 000000000..0d0ec8a7c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyServiceAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_service_attachments_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_service_attachments_test_iam_permissions_sync.py new file mode 100644 index 000000000..b8b508bf6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_service_attachments_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ServiceAttachments_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ServiceAttachmentsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsServiceAttachmentRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ServiceAttachments_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_delete_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_delete_sync.py new file mode 100644 index 000000000..2fd1120cc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSnapshotRequest( + project="project_value", + snapshot="snapshot_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_get_iam_policy_sync.py new file mode 100644 index 000000000..2e6960c8a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_get_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicySnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_get_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_get_sync.py new file mode 100644 index 000000000..6f7a900ad --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.GetSnapshotRequest( + project="project_value", + snapshot="snapshot_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_insert_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_insert_sync.py new file mode 100644 index 000000000..5df243f4e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.InsertSnapshotRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_list_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_list_sync.py new file mode 100644 index 000000000..718951d4f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.ListSnapshotsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Snapshots_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_set_iam_policy_sync.py new file mode 100644 index 000000000..68559ef7f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_set_iam_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicySnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_set_labels_sync.py new file mode 100644 index 000000000..18f2757f2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_set_labels_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsSnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_snapshots_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_snapshots_test_iam_permissions_sync.py new file mode 100644 index 000000000..761f4784a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_snapshots_test_iam_permissions_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Snapshots_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.SnapshotsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsSnapshotRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Snapshots_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_certificates_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_ssl_certificates_aggregated_list_sync.py new file mode 100644 index 000000000..dc23094ba --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_certificates_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslCertificates_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSslCertificatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SslCertificates_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_certificates_delete_sync.py b/samples/generated_samples/compute_v1_generated_ssl_certificates_delete_sync.py new file mode 100644 index 000000000..65634d5e4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_certificates_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslCertificates_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslCertificateRequest( + project="project_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslCertificates_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_certificates_get_sync.py b/samples/generated_samples/compute_v1_generated_ssl_certificates_get_sync.py new file mode 100644 index 000000000..23901708e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_certificates_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslCertificates_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.GetSslCertificateRequest( + project="project_value", + ssl_certificate="ssl_certificate_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslCertificates_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_certificates_insert_sync.py b/samples/generated_samples/compute_v1_generated_ssl_certificates_insert_sync.py new file mode 100644 index 000000000..21dab5ee9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_certificates_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslCertificates_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslCertificateRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslCertificates_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_certificates_list_sync.py b/samples/generated_samples/compute_v1_generated_ssl_certificates_list_sync.py new file mode 100644 index 000000000..b984732de --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_certificates_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslCertificates_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.SslCertificatesClient() + + # Initialize request argument(s) + request = compute_v1.ListSslCertificatesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SslCertificates_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_aggregated_list_sync.py new file mode 100644 index 000000000..4a4990fb9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSslPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SslPolicies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_delete_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_delete_sync.py new file mode 100644 index 000000000..0467ffe24 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslPolicies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_get_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_get_sync.py new file mode 100644 index 000000000..58878c631 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.GetSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslPolicies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_insert_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_insert_sync.py new file mode 100644 index 000000000..ee75d0c75 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.InsertSslPolicyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslPolicies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_list_available_features_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_list_available_features_sync.py new file mode 100644 index 000000000..4b32f284e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_list_available_features_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAvailableFeatures +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_ListAvailableFeatures_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_available_features(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListAvailableFeaturesSslPoliciesRequest( + project="project_value", + ) + + # Make the request + response = client.list_available_features(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslPolicies_ListAvailableFeatures_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_list_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_list_sync.py new file mode 100644 index 000000000..f3ff22906 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.ListSslPoliciesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_SslPolicies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_ssl_policies_patch_sync.py b/samples/generated_samples/compute_v1_generated_ssl_policies_patch_sync.py new file mode 100644 index 000000000..3e0c946ba --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_ssl_policies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_SslPolicies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.SslPoliciesClient() + + # Initialize request argument(s) + request = compute_v1.PatchSslPolicyRequest( + project="project_value", + ssl_policy="ssl_policy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_SslPolicies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_aggregated_list_sync.py new file mode 100644 index 000000000..8d7ce1d6f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListSubnetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Subnetworks_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_delete_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_delete_sync.py new file mode 100644 index 000000000..3084a24e4 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.DeleteSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_expand_ip_cidr_range_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_expand_ip_cidr_range_sync.py new file mode 100644 index 000000000..4c94b61d2 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_expand_ip_cidr_range_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExpandIpCidrRange +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_ExpandIpCidrRange_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_expand_ip_cidr_range(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ExpandIpCidrRangeSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.expand_ip_cidr_range(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_ExpandIpCidrRange_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_get_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_get_iam_policy_sync.py new file mode 100644 index 000000000..d0cf382b8 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_get_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_GetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_iam_policy(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicySubnetworkRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_GetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_get_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_get_sync.py new file mode 100644 index 000000000..df50f7524 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.GetSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_insert_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_insert_sync.py new file mode 100644 index 000000000..77eb94836 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.InsertSubnetworkRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_list_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_list_sync.py new file mode 100644 index 000000000..18a6a049f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListSubnetworksRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Subnetworks_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_list_usable_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_list_usable_sync.py new file mode 100644 index 000000000..27abbe47e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_list_usable_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListUsable +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_ListUsable_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list_usable(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.ListUsableSubnetworksRequest( + project="project_value", + ) + + # Make the request + page_result = client.list_usable(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Subnetworks_ListUsable_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_patch_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_patch_sync.py new file mode 100644 index 000000000..fabb1a8fe --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_patch_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.PatchSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_set_iam_policy_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_set_iam_policy_sync.py new file mode 100644 index 000000000..fb23a122c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_set_iam_policy_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetIamPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_SetIamPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_iam_policy(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicySubnetworkRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_SetIamPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_set_private_ip_google_access_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_set_private_ip_google_access_sync.py new file mode 100644 index 000000000..c153d0f83 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_set_private_ip_google_access_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetPrivateIpGoogleAccess +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_private_ip_google_access(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.SetPrivateIpGoogleAccessSubnetworkRequest( + project="project_value", + region="region_value", + subnetwork="subnetwork_value", + ) + + # Make the request + response = client.set_private_ip_google_access(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_sync] diff --git a/samples/generated_samples/compute_v1_generated_subnetworks_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_subnetworks_test_iam_permissions_sync.py new file mode 100644 index 000000000..78e3ad9b0 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_subnetworks_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Subnetworks_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.SubnetworksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsSubnetworkRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Subnetworks_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_grpc_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_delete_sync.py new file mode 100644 index 000000000..7120d0c0a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetGrpcProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetGrpcProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_grpc_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_get_sync.py new file mode 100644 index 000000000..f32ceca12 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetGrpcProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetGrpcProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_grpc_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_insert_sync.py new file mode 100644 index 000000000..5d3faea7a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetGrpcProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetGrpcProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetGrpcProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_grpc_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_list_sync.py new file mode 100644 index 000000000..b4860d70e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetGrpcProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetGrpcProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetGrpcProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_grpc_proxies_patch_sync.py b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_patch_sync.py new file mode 100644 index 000000000..12173862a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_grpc_proxies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetGrpcProxies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.TargetGrpcProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetGrpcProxyRequest( + project="project_value", + target_grpc_proxy="target_grpc_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetGrpcProxies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_aggregated_list_sync.py new file mode 100644 index 000000000..146357823 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetHttpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetHttpProxies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_delete_sync.py new file mode 100644 index 000000000..ea2729bab --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_get_sync.py new file mode 100644 index 000000000..0421bcc1f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_insert_sync.py new file mode 100644 index 000000000..b87b24c42 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_list_sync.py new file mode 100644 index 000000000..b691ef593 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetHttpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetHttpProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_patch_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_patch_sync.py new file mode 100644 index 000000000..5e8325f2b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpProxies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_http_proxies_set_url_map_sync.py b/samples/generated_samples/compute_v1_generated_target_http_proxies_set_url_map_sync.py new file mode 100644 index 000000000..12067016c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_http_proxies_set_url_map_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetUrlMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpProxies_SetUrlMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_url_map(): + # Create a client + client = compute_v1.TargetHttpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpProxyRequest( + project="project_value", + target_http_proxy="target_http_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpProxies_SetUrlMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_aggregated_list_sync.py new file mode 100644 index 000000000..2a81cf2de --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetHttpsProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_delete_sync.py new file mode 100644 index 000000000..a2f249581 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_get_sync.py new file mode 100644 index 000000000..a2fbfae37 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_insert_sync.py new file mode 100644 index 000000000..65820731c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetHttpsProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_list_sync.py new file mode 100644 index 000000000..ff92a0fdc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetHttpsProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_patch_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_patch_sync.py new file mode 100644 index 000000000..d4db48d8d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.PatchTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_set_certificate_map_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_certificate_map_sync.py new file mode 100644 index 000000000..2d87c1095 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_certificate_map_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetCertificateMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_SetCertificateMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_certificate_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_SetCertificateMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_set_quic_override_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_quic_override_sync.py new file mode 100644 index 000000000..82c213f67 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_quic_override_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetQuicOverride +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_SetQuicOverride_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_quic_override(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetQuicOverrideTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_quic_override(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_SetQuicOverride_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_certificates_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_certificates_sync.py new file mode 100644 index 000000000..e51c91d7d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_certificates_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSslCertificates +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_SetSslCertificates_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_ssl_certificates(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_SetSslCertificates_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_policy_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_policy_sync.py new file mode 100644 index 000000000..b9f602a93 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_ssl_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSslPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_SetSslPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_ssl_policy(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_SetSslPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_https_proxies_set_url_map_sync.py b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_url_map_sync.py new file mode 100644 index 000000000..9ad175b1c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_https_proxies_set_url_map_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetUrlMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetHttpsProxies_SetUrlMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_url_map(): + # Create a client + client = compute_v1.TargetHttpsProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetUrlMapTargetHttpsProxyRequest( + project="project_value", + target_https_proxy="target_https_proxy_value", + ) + + # Make the request + response = client.set_url_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetHttpsProxies_SetUrlMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_instances_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_instances_aggregated_list_sync.py new file mode 100644 index 000000000..254cfbf56 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_instances_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetInstances_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetInstancesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetInstances_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_instances_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_instances_delete_sync.py new file mode 100644 index 000000000..3e9b75879 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_instances_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetInstances_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetInstanceRequest( + project="project_value", + target_instance="target_instance_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetInstances_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_instances_get_sync.py b/samples/generated_samples/compute_v1_generated_target_instances_get_sync.py new file mode 100644 index 000000000..f2a1c497d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_instances_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetInstances_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetInstanceRequest( + project="project_value", + target_instance="target_instance_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetInstances_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_instances_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_instances_insert_sync.py new file mode 100644 index 000000000..42a8152bd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_instances_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetInstances_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetInstanceRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetInstances_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_instances_list_sync.py b/samples/generated_samples/compute_v1_generated_target_instances_list_sync.py new file mode 100644 index 000000000..924b5633c --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_instances_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetInstances_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetInstancesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetInstancesRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetInstances_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_add_health_check_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_add_health_check_sync.py new file mode 100644 index 000000000..56edb12fd --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_add_health_check_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddHealthCheck +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_AddHealthCheck_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_health_check(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_AddHealthCheck_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_add_instance_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_add_instance_sync.py new file mode 100644 index 000000000..978182d9a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_add_instance_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddInstance +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_AddInstance_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_add_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AddInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.add_instance(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_AddInstance_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_aggregated_list_sync.py new file mode 100644 index 000000000..5c948c445 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetPoolsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetPools_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_delete_sync.py new file mode 100644 index 000000000..68dcf4066 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_get_health_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_get_health_sync.py new file mode 100644 index 000000000..355f65341 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_get_health_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetHealth +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_GetHealth_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_health(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.GetHealthTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.get_health(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_GetHealth_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_get_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_get_sync.py new file mode 100644 index 000000000..ada010ceb --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_insert_sync.py new file mode 100644 index 000000000..1a8846a57 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetPoolRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_list_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_list_sync.py new file mode 100644 index 000000000..27bacbea6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetPoolsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetPools_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_remove_health_check_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_remove_health_check_sync.py new file mode 100644 index 000000000..305b9a777 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_remove_health_check_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveHealthCheck +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_RemoveHealthCheck_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_health_check(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveHealthCheckTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_health_check(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_RemoveHealthCheck_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_remove_instance_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_remove_instance_sync.py new file mode 100644 index 000000000..812a3f990 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_remove_instance_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveInstance +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_RemoveInstance_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_remove_instance(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.RemoveInstanceTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.remove_instance(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_RemoveInstance_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_pools_set_backup_sync.py b/samples/generated_samples/compute_v1_generated_target_pools_set_backup_sync.py new file mode 100644 index 000000000..f6e57d996 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_pools_set_backup_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetBackup +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetPools_SetBackup_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_backup(): + # Create a client + client = compute_v1.TargetPoolsClient() + + # Initialize request argument(s) + request = compute_v1.SetBackupTargetPoolRequest( + project="project_value", + region="region_value", + target_pool="target_pool_value", + ) + + # Make the request + response = client.set_backup(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetPools_SetBackup_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_delete_sync.py new file mode 100644 index 000000000..c8b84626d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_get_sync.py new file mode 100644 index 000000000..5bfe6564a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_insert_sync.py new file mode 100644 index 000000000..4a6092c59 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetSslProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_list_sync.py new file mode 100644 index 000000000..fb2aed34e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetSslProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetSslProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_backend_service_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_backend_service_sync.py new file mode 100644 index 000000000..e214f4560 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_backend_service_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetBackendService +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_SetBackendService_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_backend_service(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_SetBackendService_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_certificate_map_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_certificate_map_sync.py new file mode 100644 index 000000000..d2fa8e1bc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_certificate_map_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetCertificateMap +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_SetCertificateMap_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_certificate_map(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetCertificateMapTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_certificate_map(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_SetCertificateMap_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_proxy_header_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_proxy_header_sync.py new file mode 100644 index 000000000..cd75c7197 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_proxy_header_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetProxyHeader +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_SetProxyHeader_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_proxy_header(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_SetProxyHeader_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_certificates_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_certificates_sync.py new file mode 100644 index 000000000..e9f70afbf --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_certificates_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSslCertificates +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_SetSslCertificates_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_ssl_certificates(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslCertificatesTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_certificates(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_SetSslCertificates_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_policy_sync.py b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_policy_sync.py new file mode 100644 index 000000000..2f0d851f6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_ssl_proxies_set_ssl_policy_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetSslPolicy +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetSslProxies_SetSslPolicy_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_ssl_policy(): + # Create a client + client = compute_v1.TargetSslProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetSslPolicyTargetSslProxyRequest( + project="project_value", + target_ssl_proxy="target_ssl_proxy_value", + ) + + # Make the request + response = client.set_ssl_policy(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetSslProxies_SetSslPolicy_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_aggregated_list_sync.py new file mode 100644 index 000000000..c33924e5e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetTcpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetTcpProxies_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_delete_sync.py new file mode 100644 index 000000000..685491461 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetTcpProxies_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_get_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_get_sync.py new file mode 100644 index 000000000..c3e208d29 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetTcpProxies_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_insert_sync.py new file mode 100644 index 000000000..f43f688e5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetTcpProxyRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetTcpProxies_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_list_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_list_sync.py new file mode 100644 index 000000000..cc3aa0f5f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetTcpProxiesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetTcpProxies_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_backend_service_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_backend_service_sync.py new file mode 100644 index 000000000..ab0b9710d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_backend_service_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetBackendService +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_SetBackendService_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_backend_service(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetBackendServiceTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_backend_service(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetTcpProxies_SetBackendService_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_proxy_header_sync.py b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_proxy_header_sync.py new file mode 100644 index 000000000..d7490110e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_tcp_proxies_set_proxy_header_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetProxyHeader +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetTcpProxies_SetProxyHeader_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_proxy_header(): + # Create a client + client = compute_v1.TargetTcpProxiesClient() + + # Initialize request argument(s) + request = compute_v1.SetProxyHeaderTargetTcpProxyRequest( + project="project_value", + target_tcp_proxy="target_tcp_proxy_value", + ) + + # Make the request + response = client.set_proxy_header(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetTcpProxies_SetProxyHeader_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_aggregated_list_sync.py new file mode 100644 index 000000000..e6defa5d9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListTargetVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetVpnGateways_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_delete_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_delete_sync.py new file mode 100644 index 000000000..44668bcfa --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteTargetVpnGatewayRequest( + project="project_value", + region="region_value", + target_vpn_gateway="target_vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetVpnGateways_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_get_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_get_sync.py new file mode 100644 index 000000000..8a2be19a1 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetTargetVpnGatewayRequest( + project="project_value", + region="region_value", + target_vpn_gateway="target_vpn_gateway_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetVpnGateways_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_insert_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_insert_sync.py new file mode 100644 index 000000000..cc2bccb4a --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertTargetVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetVpnGateways_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_list_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_list_sync.py new file mode 100644 index 000000000..4a127c3ec --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListTargetVpnGatewaysRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_TargetVpnGateways_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_target_vpn_gateways_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_set_labels_sync.py new file mode 100644 index 000000000..b872f6943 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_target_vpn_gateways_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_TargetVpnGateways_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.TargetVpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsTargetVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_TargetVpnGateways_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_aggregated_list_sync.py new file mode 100644 index 000000000..5ef2463dc --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListUrlMapsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_UrlMaps_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_delete_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_delete_sync.py new file mode 100644 index 000000000..fec82ae98 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_delete_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_get_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_get_sync.py new file mode 100644 index 000000000..5fe4eee62 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.GetUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_insert_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_insert_sync.py new file mode 100644 index 000000000..b2afb930e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_insert_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InsertUrlMapRequest( + project="project_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_invalidate_cache_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_invalidate_cache_sync.py new file mode 100644 index 000000000..179cce86d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_invalidate_cache_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for InvalidateCache +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_InvalidateCache_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_invalidate_cache(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.InvalidateCacheUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.invalidate_cache(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_InvalidateCache_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_list_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_list_sync.py new file mode 100644 index 000000000..081a8f2c9 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ListUrlMapsRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_UrlMaps_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_patch_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_patch_sync.py new file mode 100644 index 000000000..721e295b6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_patch_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Patch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Patch_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_patch(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.PatchUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.patch(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Patch_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_update_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_update_sync.py new file mode 100644 index 000000000..4bbe21595 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_update_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Update +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Update_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_update(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.UpdateUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.update(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Update_sync] diff --git a/samples/generated_samples/compute_v1_generated_url_maps_validate_sync.py b/samples/generated_samples/compute_v1_generated_url_maps_validate_sync.py new file mode 100644 index 000000000..98c586a81 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_url_maps_validate_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Validate +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_UrlMaps_Validate_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_validate(): + # Create a client + client = compute_v1.UrlMapsClient() + + # Initialize request argument(s) + request = compute_v1.ValidateUrlMapRequest( + project="project_value", + url_map="url_map_value", + ) + + # Make the request + response = client.validate(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_UrlMaps_Validate_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_aggregated_list_sync.py new file mode 100644 index 000000000..6f1ece04b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListVpnGatewaysRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_VpnGateways_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_delete_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_delete_sync.py new file mode 100644 index 000000000..75e5898e6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_get_status_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_get_status_sync.py new file mode 100644 index 000000000..c4287bd5f --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_get_status_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetStatus +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_GetStatus_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get_status(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetStatusVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.get_status(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_GetStatus_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_get_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_get_sync.py new file mode 100644 index 000000000..8e4f78c4b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.GetVpnGatewayRequest( + project="project_value", + region="region_value", + vpn_gateway="vpn_gateway_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_insert_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_insert_sync.py new file mode 100644 index 000000000..fb1e9dece --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnGatewayRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_list_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_list_sync.py new file mode 100644 index 000000000..c5156ace6 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.ListVpnGatewaysRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_VpnGateways_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_set_labels_sync.py new file mode 100644 index 000000000..051dd6c46 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py b/samples/generated_samples/compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py new file mode 100644 index 000000000..0329ef30e --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TestIamPermissions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnGateways_TestIamPermissions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_test_iam_permissions(): + # Create a client + client = compute_v1.VpnGatewaysClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsVpnGatewayRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnGateways_TestIamPermissions_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_aggregated_list_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_aggregated_list_sync.py new file mode 100644 index 000000000..f711e6635 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_aggregated_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AggregatedList +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_AggregatedList_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_aggregated_list(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.AggregatedListVpnTunnelsRequest( + project="project_value", + ) + + # Make the request + page_result = client.aggregated_list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_VpnTunnels_AggregatedList_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_delete_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_delete_sync.py new file mode 100644 index 000000000..4a4067939 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteVpnTunnelRequest( + project="project_value", + region="region_value", + vpn_tunnel="vpn_tunnel_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnTunnels_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_get_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_get_sync.py new file mode 100644 index 000000000..bc8523cb5 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.GetVpnTunnelRequest( + project="project_value", + region="region_value", + vpn_tunnel="vpn_tunnel_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnTunnels_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_insert_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_insert_sync.py new file mode 100644 index 000000000..68341b491 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_insert_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Insert +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_Insert_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_insert(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.InsertVpnTunnelRequest( + project="project_value", + region="region_value", + ) + + # Make the request + response = client.insert(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnTunnels_Insert_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_list_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_list_sync.py new file mode 100644 index 000000000..1a8497b5d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.ListVpnTunnelsRequest( + project="project_value", + region="region_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_VpnTunnels_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_vpn_tunnels_set_labels_sync.py b/samples/generated_samples/compute_v1_generated_vpn_tunnels_set_labels_sync.py new file mode 100644 index 000000000..1c0e7b3f3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_vpn_tunnels_set_labels_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetLabels +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_VpnTunnels_SetLabels_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_set_labels(): + # Create a client + client = compute_v1.VpnTunnelsClient() + + # Initialize request argument(s) + request = compute_v1.SetLabelsVpnTunnelRequest( + project="project_value", + region="region_value", + resource="resource_value", + ) + + # Make the request + response = client.set_labels(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_VpnTunnels_SetLabels_sync] diff --git a/samples/generated_samples/compute_v1_generated_zone_operations_delete_sync.py b/samples/generated_samples/compute_v1_generated_zone_operations_delete_sync.py new file mode 100644 index 000000000..7283afe74 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zone_operations_delete_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Delete +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ZoneOperations_Delete_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_delete(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.DeleteZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.delete(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ZoneOperations_Delete_sync] diff --git a/samples/generated_samples/compute_v1_generated_zone_operations_get_sync.py b/samples/generated_samples/compute_v1_generated_zone_operations_get_sync.py new file mode 100644 index 000000000..3586bb003 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zone_operations_get_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ZoneOperations_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.GetZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ZoneOperations_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_zone_operations_list_sync.py b/samples/generated_samples/compute_v1_generated_zone_operations_list_sync.py new file mode 100644 index 000000000..b069d3339 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zone_operations_list_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ZoneOperations_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.ListZoneOperationsRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_ZoneOperations_List_sync] diff --git a/samples/generated_samples/compute_v1_generated_zone_operations_wait_sync.py b/samples/generated_samples/compute_v1_generated_zone_operations_wait_sync.py new file mode 100644 index 000000000..9450daa0d --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zone_operations_wait_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Wait +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_ZoneOperations_Wait_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_wait(): + # Create a client + client = compute_v1.ZoneOperationsClient() + + # Initialize request argument(s) + request = compute_v1.WaitZoneOperationRequest( + operation="operation_value", + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.wait(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_ZoneOperations_Wait_sync] diff --git a/samples/generated_samples/compute_v1_generated_zones_get_sync.py b/samples/generated_samples/compute_v1_generated_zones_get_sync.py new file mode 100644 index 000000000..de60fc25b --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zones_get_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Get +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Zones_Get_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_get(): + # Create a client + client = compute_v1.ZonesClient() + + # Initialize request argument(s) + request = compute_v1.GetZoneRequest( + project="project_value", + zone="zone_value", + ) + + # Make the request + response = client.get(request=request) + + # Handle the response + print(response) + +# [END compute_v1_generated_Zones_Get_sync] diff --git a/samples/generated_samples/compute_v1_generated_zones_list_sync.py b/samples/generated_samples/compute_v1_generated_zones_list_sync.py new file mode 100644 index 000000000..1a78887a3 --- /dev/null +++ b/samples/generated_samples/compute_v1_generated_zones_list_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for List +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-compute + + +# [START compute_v1_generated_Zones_List_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html +from google.cloud import compute_v1 + + +def sample_list(): + # Create a client + client = compute_v1.ZonesClient() + + # Initialize request argument(s) + request = compute_v1.ListZonesRequest( + project="project_value", + ) + + # Make the request + page_result = client.list(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END compute_v1_generated_Zones_List_sync] diff --git a/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json new file mode 100644 index 000000000..e75a0d5a4 --- /dev/null +++ b/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json @@ -0,0 +1,60575 @@ +{ + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.compute.v1", + "version": "v1" + } + ], + "language": "PYTHON", + "name": "google-cloud-compute", + "version": "0.1.0" + }, + "snippets": [ + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient", + "shortName": "AcceleratorTypesClient" + }, + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes", + "shortName": "AcceleratorTypes" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListAcceleratorTypesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.accelerator_types.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_accelerator_types_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_AcceleratorTypes_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_accelerator_types_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient", + "shortName": "AcceleratorTypesClient" + }, + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes.Get", + "service": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes", + "shortName": "AcceleratorTypes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAcceleratorTypeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "accelerator_type", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.AcceleratorType", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_accelerator_types_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_AcceleratorTypes_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_accelerator_types_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient", + "shortName": "AcceleratorTypesClient" + }, + "fullName": "google.cloud.compute_v1.AcceleratorTypesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes.List", + "service": { + "fullName": "google.cloud.compute.v1.AcceleratorTypes", + "shortName": "AcceleratorTypes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAcceleratorTypesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.accelerator_types.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_accelerator_types_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_AcceleratorTypes_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_accelerator_types_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListAddressesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.addresses.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_addresses_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "address", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_addresses_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.Get", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "address", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Address", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_addresses_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "address_resource", + "type": "google.cloud.compute_v1.types.Address" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_addresses_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.List", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAddressesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.addresses.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_addresses_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.move", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.Move", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "Move" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.MoveAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "address", + "type": "str" + }, + { + "name": "region_addresses_move_request_resource", + "type": "google.cloud.compute_v1.types.RegionAddressesMoveRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" + }, + "description": "Sample for Move", + "file": "compute_v1_generated_addresses_move_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_Move_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_addresses_move_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AddressesClient", + "shortName": "AddressesClient" + }, + "fullName": "google.cloud.compute_v1.AddressesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Addresses.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Addresses", + "shortName": "Addresses" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsAddressRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_addresses_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Addresses_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_addresses_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListAutoscalersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.autoscalers.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_autoscalers_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "autoscaler", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_autoscalers_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.Get", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "autoscaler", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Autoscaler", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_autoscalers_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_autoscalers_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.List", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAutoscalersRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.autoscalers.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_autoscalers_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_autoscalers_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_Patch_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_autoscalers_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AutoscalersClient", + "shortName": "AutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.AutoscalersClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Autoscalers.Update", + "service": { + "fullName": "google.cloud.compute.v1.Autoscalers", + "shortName": "Autoscalers" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_autoscalers_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Autoscalers_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_autoscalers_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.add_signed_url_key", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.AddSignedUrlKey", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "AddSignedUrlKey" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddSignedUrlKeyBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "signed_url_key_resource", + "type": "google.cloud.compute_v1.types.SignedUrlKey" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_signed_url_key" + }, + "description": "Sample for AddSignedUrlKey", + "file": "compute_v1_generated_backend_buckets_add_signed_url_key_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_AddSignedUrlKey_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_backend_buckets_add_signed_url_key_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.delete_signed_url_key", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.DeleteSignedUrlKey", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "DeleteSignedUrlKey" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "key_name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_signed_url_key" + }, + "description": "Sample for DeleteSignedUrlKey", + "file": "compute_v1_generated_backend_buckets_delete_signed_url_key_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_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_backend_buckets_delete_signed_url_key_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.Delete", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_backend_buckets_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_Delete_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_backend_buckets_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.Get", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.BackendBucket", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_backend_buckets_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_Get_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_backend_buckets_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.Insert", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket_resource", + "type": "google.cloud.compute_v1.types.BackendBucket" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_backend_buckets_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_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_backend_buckets_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.List", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListBackendBucketsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.backend_buckets.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_backend_buckets_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_List_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_backend_buckets_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.Patch", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "backend_bucket_resource", + "type": "google.cloud.compute_v1.types.BackendBucket" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_backend_buckets_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_Patch_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_backend_buckets_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.set_edge_security_policy", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicy", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "SetEdgeSecurityPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "security_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_edge_security_policy" + }, + "description": "Sample for SetEdgeSecurityPolicy", + "file": "compute_v1_generated_backend_buckets_set_edge_security_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_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_backend_buckets_set_edge_security_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendBucketsClient", + "shortName": "BackendBucketsClient" + }, + "fullName": "google.cloud.compute_v1.BackendBucketsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.BackendBuckets.Update", + "service": { + "fullName": "google.cloud.compute.v1.BackendBuckets", + "shortName": "BackendBuckets" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateBackendBucketRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_bucket", + "type": "str" + }, + { + "name": "backend_bucket_resource", + "type": "google.cloud.compute_v1.types.BackendBucket" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_backend_buckets_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendBuckets_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_backend_buckets_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.add_signed_url_key", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.AddSignedUrlKey", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "AddSignedUrlKey" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddSignedUrlKeyBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "signed_url_key_resource", + "type": "google.cloud.compute_v1.types.SignedUrlKey" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_signed_url_key" + }, + "description": "Sample for AddSignedUrlKey", + "file": "compute_v1_generated_backend_services_add_signed_url_key_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_AddSignedUrlKey_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_backend_services_add_signed_url_key_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListBackendServicesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.backend_services.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_backend_services_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_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_backend_services_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.delete_signed_url_key", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.DeleteSignedUrlKey", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "DeleteSignedUrlKey" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSignedUrlKeyBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "key_name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_signed_url_key" + }, + "description": "Sample for DeleteSignedUrlKey", + "file": "compute_v1_generated_backend_services_delete_signed_url_key_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_DeleteSignedUrlKey_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_backend_services_delete_signed_url_key_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.Delete", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_backend_services_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_Delete_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_backend_services_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.get_health", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.GetHealth", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "GetHealth" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetHealthBackendServiceRequest" + }, + { + "name": "project", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.BackendServiceGroupHealth", + "shortName": "get_health" + }, + "description": "Sample for GetHealth", + "file": "compute_v1_generated_backend_services_get_health_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_GetHealth_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_backend_services_get_health_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_backend_services_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_GetIamPolicy_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_backend_services_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.Get", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.BackendService", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_backend_services_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_Get_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_backend_services_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.Insert", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service_resource", + "type": "google.cloud.compute_v1.types.BackendService" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_backend_services_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_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_backend_services_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.List", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListBackendServicesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.backend_services.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_backend_services_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_List_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_backend_services_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.Patch", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchBackendServiceRequest" + }, + { + "name": "project", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_backend_services_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_Patch_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_backend_services_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.set_edge_security_policy", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicy", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "SetEdgeSecurityPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetEdgeSecurityPolicyBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "security_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_edge_security_policy" + }, + "description": "Sample for SetEdgeSecurityPolicy", + "file": "compute_v1_generated_backend_services_set_edge_security_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_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_backend_services_set_edge_security_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyBackendServiceRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_backend_services_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_SetIamPolicy_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_backend_services_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.set_security_policy", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.SetSecurityPolicy", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "SetSecurityPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSecurityPolicyBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "security_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_security_policy" + }, + "description": "Sample for SetSecurityPolicy", + "file": "compute_v1_generated_backend_services_set_security_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_SetSecurityPolicy_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_backend_services_set_security_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.BackendServicesClient", + "shortName": "BackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.BackendServicesClient.update", + "method": { + "fullName": "google.cloud.compute.v1.BackendServices.Update", + "service": { + "fullName": "google.cloud.compute.v1.BackendServices", + "shortName": "BackendServices" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateBackendServiceRequest" + }, + { + "name": "project", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_backend_services_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_BackendServices_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_backend_services_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DiskTypesClient", + "shortName": "DiskTypesClient" + }, + "fullName": "google.cloud.compute_v1.DiskTypesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.DiskTypes", + "shortName": "DiskTypes" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListDiskTypesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.disk_types.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_disk_types_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_DiskTypes_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_disk_types_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DiskTypesClient", + "shortName": "DiskTypesClient" + }, + "fullName": "google.cloud.compute_v1.DiskTypesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.DiskTypes.Get", + "service": { + "fullName": "google.cloud.compute.v1.DiskTypes", + "shortName": "DiskTypes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetDiskTypeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk_type", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DiskType", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_disk_types_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_DiskTypes_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, str]" + } + ], + "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, + "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_disk_types_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.add_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "AddResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest" + }, + { + "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": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_resource_policies" + }, + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_disks_add_resource_policies_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_AddResourcePolicies_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_disks_add_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Disks.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListDisksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.disks.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_disks_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.bulk_insert", + "method": { + "fullName": "google.cloud.compute.v1.Disks.BulkInsert", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "BulkInsert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.BulkInsertDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "bulk_insert_disk_resource_resource", + "type": "google.cloud.compute_v1.types.BulkInsertDiskResource" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "bulk_insert" + }, + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_disks_bulk_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_bulk_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.create_snapshot", + "method": { + "fullName": "google.cloud.compute.v1.Disks.CreateSnapshot", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "CreateSnapshot" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CreateSnapshotDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "snapshot_resource", + "type": "google.cloud.compute_v1.types.Snapshot" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_snapshot" + }, + "description": "Sample for CreateSnapshot", + "file": "compute_v1_generated_disks_create_snapshot_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_CreateSnapshot_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_disks_create_snapshot_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Disks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_disks_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Disks.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_disks_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Disks.Get", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Disk", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_disks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Disks.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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, str]" + } + ], + "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": "zone", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.disks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_disks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.remove_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "RemoveResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_resource_policies" + }, + "description": "Sample for RemoveResourcePolicies", + "file": "compute_v1_generated_disks_remove_resource_policies_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_RemoveResourcePolicies_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_disks_remove_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.resize", + "method": { + "fullName": "google.cloud.compute.v1.Disks.Resize", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "Resize" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResizeDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "disks_resize_request_resource", + "type": "google.cloud.compute_v1.types.DisksResizeRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" + }, + "description": "Sample for Resize", + "file": "compute_v1_generated_disks_resize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_Resize_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_disks_resize_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Disks.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyDiskRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_disks_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Disks.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "zone_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetLabelsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_disks_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.start_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "StartAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StartAsyncReplicationDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "start_async_replication" + }, + "description": "Sample for StartAsyncReplication", + "file": "compute_v1_generated_disks_start_async_replication_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_StartAsyncReplication_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_disks_start_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.stop_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "StopAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StopAsyncReplicationDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_async_replication" + }, + "description": "Sample for StopAsyncReplication", + "file": "compute_v1_generated_disks_stop_async_replication_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_StopAsyncReplication_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_disks_stop_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.stop_group_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "StopGroupAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StopGroupAsyncReplicationDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_group_async_replication" + }, + "description": "Sample for StopGroupAsyncReplication", + "file": "compute_v1_generated_disks_stop_group_async_replication_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_stop_group_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Disks.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_disks_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_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_disks_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Disks.Update", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_disks_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_Update_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_disks_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "external_vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_external_vpn_gateways_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ExternalVpnGateways_Delete_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_external_vpn_gateways_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetExternalVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "external_vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ExternalVpnGateway", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_external_vpn_gateways_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ExternalVpnGateways_Get_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_external_vpn_gateways_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "external_vpn_gateway_resource", + "type": "google.cloud.compute_v1.types.ExternalVpnGateway" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_external_vpn_gateways_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ExternalVpnGateways_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_external_vpn_gateways_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.list", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.List", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListExternalVpnGatewaysRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.external_vpn_gateways.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_external_vpn_gateways_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ExternalVpnGateways_List_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_external_vpn_gateways_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_external_vpn_gateways_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ExternalVpnGateways_SetLabels_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_external_vpn_gateways_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsExternalVpnGatewayRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "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_ExternalVpnGateways_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_external_vpn_gateways_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_association", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "AddAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_association" + }, + "description": "Sample for AddAssociation", + "file": "compute_v1_generated_firewall_policies_add_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_add_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_rule", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "AddRule" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" + }, + "description": "Sample for AddRule", + "file": "compute_v1_generated_firewall_policies_add_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_add_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.clone_rules", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "CloneRules" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "clone_rules" + }, + "description": "Sample for CloneRules", + "file": "compute_v1_generated_firewall_policies_clone_rules_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_CloneRules_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_firewall_policies_clone_rules_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_firewall_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_association", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "GetAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAssociationFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" + }, + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_firewall_policies_get_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_get_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyFirewallPolicyRequest" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "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_GetIamPolicy_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_firewall_policies_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_rule", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "GetRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRuleFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" + }, + "description": "Sample for GetRule", + "file": "compute_v1_generated_firewall_policies_get_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_get_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_firewall_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertFirewallPolicyRequest" + }, + { + "name": "parent_id", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_firewall_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list_associations", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "ListAssociations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAssociationsFirewallPolicyRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPoliciesListAssociationsResponse", + "shortName": "list_associations" + }, + "description": "Sample for ListAssociations", + "file": "compute_v1_generated_firewall_policies_list_associations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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_firewall_policies_list_associations_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListFirewallPoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.firewall_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_firewall_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_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": 48, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_firewall_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.move", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.Move", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "Move" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.MoveFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "parent_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" + }, + "description": "Sample for Move", + "file": "compute_v1_generated_firewall_policies_move_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_Move_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_firewall_policies_move_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch_rule", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "PatchRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" + }, + "description": "Sample for PatchRule", + "file": "compute_v1_generated_firewall_policies_patch_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_PatchRule_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_firewall_policies_patch_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_firewall_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_Patch_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_firewall_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_association", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "RemoveAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" + }, + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_firewall_policies_remove_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_RemoveAssociation_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_firewall_policies_remove_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_rule", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "RemoveRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_rule" + }, + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_firewall_policies_remove_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_RemoveRule_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_firewall_policies_remove_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyFirewallPolicyRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_firewall_policies_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_SetIamPolicy_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_firewall_policies_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsFirewallPolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_firewall_policies_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_FirewallPolicies_TestIamPermissions_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_firewall_policies_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteFirewallRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_firewalls_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_Delete_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_firewalls_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.Get", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetFirewallRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Firewall", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_firewalls_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_Get_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_firewalls_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertFirewallRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_firewalls_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_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_firewalls_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.List", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListFirewallsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.firewalls.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_firewalls_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_List_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_firewalls_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchFirewallRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall", + "type": "str" + }, + { + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_firewalls_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_Patch_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_firewalls_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" + }, + "fullName": "google.cloud.compute_v1.FirewallsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Firewalls.Update", + "service": { + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateFirewallRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall", + "type": "str" + }, + { + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_firewalls_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Firewalls_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_firewalls_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListForwardingRulesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_forwarding_rules_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.Delete", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_forwarding_rules_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.Get", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ForwardingRule", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_forwarding_rules_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.Insert", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_forwarding_rules_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.List", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListForwardingRulesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_forwarding_rules_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.Patch", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_forwarding_rules_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_Patch_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_forwarding_rules_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_forwarding_rules_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_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_forwarding_rules_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_target", + "method": { + "fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget", + "service": { + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" + }, + "shortName": "SetTarget" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetTargetForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target" + }, + "description": "Sample for SetTarget", + "file": "compute_v1_generated_forwarding_rules_set_target_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ForwardingRules_SetTarget_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_forwarding_rules_set_target_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "address", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_addresses_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_Delete_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_global_addresses_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "address", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Address", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_addresses_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_Get_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_global_addresses_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.Insert", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertGlobalAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "address_resource", + "type": "google.cloud.compute_v1.types.Address" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_global_addresses_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_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_global_addresses_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalAddressesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_addresses.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_addresses_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_List_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_global_addresses_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.move", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.Move", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "Move" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.MoveGlobalAddressRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" + }, + "description": "Sample for Move", + "file": "compute_v1_generated_global_addresses_move_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_Move_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_global_addresses_move_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_global_addresses_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalAddresses_SetLabels_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_global_addresses_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_forwarding_rules_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Delete_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_global_forwarding_rules_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ForwardingRule", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_forwarding_rules_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Get_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_global_forwarding_rules_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_global_forwarding_rules_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_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_global_forwarding_rules_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalForwardingRulesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_forwarding_rules.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_forwarding_rules_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_List_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_global_forwarding_rules_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_global_forwarding_rules_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Patch_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_global_forwarding_rules_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_global_forwarding_rules_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_SetLabels_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_global_forwarding_rules_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_target", + "method": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget", + "service": { + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" + }, + "shortName": "SetTarget" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target" + }, + "description": "Sample for SetTarget", + "file": "compute_v1_generated_global_forwarding_rules_set_target_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalForwardingRules_SetTarget_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_global_forwarding_rules_set_target_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.attach_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "AttachNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_network_endpoints" + }, + "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_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_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_global_network_endpoint_groups_attach_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest" + }, + { + "name": "project", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_network_endpoint_groups_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Delete_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_global_network_endpoint_groups_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.detach_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "DetachNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "detach_network_endpoints" + }, + "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_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_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_global_network_endpoint_groups_detach_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest" + }, + { + "name": "project", + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_network_endpoint_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_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_global_network_endpoint_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_global_network_endpoint_groups_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_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_global_network_endpoint_groups_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "ListNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListNetworkEndpointsPager", + "shortName": "list_network_endpoints" + }, + "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_GlobalNetworkEndpointGroups_ListNetworkEndpoints_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_global_network_endpoint_groups_list_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalNetworkEndpointGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_network_endpoint_groups_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_List_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_global_network_endpoint_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListGlobalOperationsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_operations.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_global_operations_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOperations_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_global_operations_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOperations.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DeleteGlobalOperationResponse", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_operations_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOperations_Delete_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_global_operations_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOperations.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_operations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOperations_Get_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_global_operations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOperations.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalOperationsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_operations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_operations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOperations_List_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_global_operations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.wait", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOperations.Wait", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" + }, + "shortName": "Wait" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.WaitGlobalOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "wait" + }, + "description": "Sample for Wait", + "file": "compute_v1_generated_global_operations_wait_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOperations_Wait_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_global_operations_wait_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationRequest" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationResponse", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_organization_operations_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_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_global_organization_operations_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalOrganizationOperationRequest" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_organization_operations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_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_global_organization_operations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" + }, + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalOrganizationOperationsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_organization_operations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_organization_operations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_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": 48, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_global_organization_operations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete", + "service": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_global_public_delegated_prefixes_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_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_global_public_delegated_prefixes_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get", + "service": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGlobalPublicDelegatedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_global_public_delegated_prefixes_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_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_global_public_delegated_prefixes_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert", + "service": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_global_public_delegated_prefixes_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_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_global_public_delegated_prefixes_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List", + "service": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListGlobalPublicDelegatedPrefixesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.global_public_delegated_prefixes.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_global_public_delegated_prefixes_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_List_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_global_public_delegated_prefixes_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch", + "service": { + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_global_public_delegated_prefixes_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_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_global_public_delegated_prefixes_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListHealthChecksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.health_checks.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_health_checks_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_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_health_checks_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "health_check", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_health_checks_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_Delete_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_health_checks_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.Get", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "health_check", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.HealthCheck", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_health_checks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_Get_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_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, str]" + } + ], + "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" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.List", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListHealthChecksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.health_checks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_health_checks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_List_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_health_checks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.Patch", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "health_check", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_health_checks_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_Patch_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_health_checks_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.HealthChecksClient.update", + "method": { + "fullName": "google.cloud.compute.v1.HealthChecks.Update", + "service": { + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "health_check", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_health_checks_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_HealthChecks_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_health_checks_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient", + "shortName": "ImageFamilyViewsClient" + }, + "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ImageFamilyViews.Get", + "service": { + "fullName": "google.cloud.compute.v1.ImageFamilyViews", + "shortName": "ImageFamilyViews" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetImageFamilyViewRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "family", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ImageFamilyView", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_image_family_views_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ImageFamilyViews_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_image_family_views_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Images.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "image", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_images_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_Delete_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_images_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.deprecate", + "method": { + "fullName": "google.cloud.compute.v1.Images.Deprecate", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "Deprecate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeprecateImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "image", + "type": "str" + }, + { + "name": "deprecation_status_resource", + "type": "google.cloud.compute_v1.types.DeprecationStatus" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "deprecate" + }, + "description": "Sample for Deprecate", + "file": "compute_v1_generated_images_deprecate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_Deprecate_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_images_deprecate_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.get_from_family", + "method": { + "fullName": "google.cloud.compute.v1.Images.GetFromFamily", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "GetFromFamily" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetFromFamilyImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "family", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Image", + "shortName": "get_from_family" + }, + "description": "Sample for GetFromFamily", + "file": "compute_v1_generated_images_get_from_family_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_GetFromFamily_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_images_get_from_family_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Images.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_images_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_GetIamPolicy_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_images_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Images.Get", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "image", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Image", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_images_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_Get_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_images_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Images.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "image_resource", + "type": "google.cloud.compute_v1.types.Image" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_images_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_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_images_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Images.List", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListImagesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.images.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_images_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_List_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_images_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Images.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "image", + "type": "str" + }, + { + "name": "image_resource", + "type": "google.cloud.compute_v1.types.Image" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_images_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_Patch_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_images_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Images.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyImageRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_images_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_SetIamPolicy_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_images_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Images.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsImageRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_images_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_SetLabels_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_images_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" + }, + "fullName": "google.cloud.compute_v1.ImagesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Images.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsImageRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_images_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Images_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_images_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.abandon_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "AbandonInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "abandon_instances" + }, + "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_AbandonInstances_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_abandon_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupManagersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "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_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_instance_group_managers_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.apply_updates_to_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "ApplyUpdatesToInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "apply_updates_to_instances" + }, + "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_ApplyUpdatesToInstances_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_apply_updates_to_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.create_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "CreateInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest" + }, + { + "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": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_instances" + }, + "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_CreateInstances_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_create_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "DeleteInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_instances" + }, + "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_DeleteInstances_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_delete_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "DeletePerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_delete_per_instance_configs_req_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersDeletePerInstanceConfigsReq" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_per_instance_configs" + }, + "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_DeletePerInstanceConfigs_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_delete_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_group_managers_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_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_instance_group_managers_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_instance_group_managers_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_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_instance_group_managers_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_group_managers_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_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_instance_group_managers_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_errors", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "ListErrors" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListErrorsInstanceGroupManagersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListErrorsPager", + "shortName": "list_errors" + }, + "description": "Sample for ListErrors", + "file": "compute_v1_generated_instance_group_managers_list_errors_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ListErrors_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instance_group_managers_list_errors_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_managed_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "ListManagedInstances" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListManagedInstancesPager", + "shortName": "list_managed_instances" + }, + "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_InstanceGroupManagers_ListManagedInstances_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instance_group_managers_list_managed_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "ListPerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsInstanceGroupManagersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPerInstanceConfigsPager", + "shortName": "list_per_instance_configs" + }, + "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_InstanceGroupManagers_ListPerInstanceConfigs_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.List", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstanceGroupManagersRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_instance_group_managers_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_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_instance_group_managers_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.patch_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "PatchPerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_per_instance_configs" + }, + "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_InstanceGroupManagers_PatchPerInstanceConfigs_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, str]" + } + ], + "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, + "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_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.recreate_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "RecreateInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "recreate_instances" + }, + "description": "Sample for RecreateInstances", + "file": "compute_v1_generated_instance_group_managers_recreate_instances_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_RecreateInstances_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_recreate_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.resize", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "Resize" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" + }, + "description": "Sample for Resize", + "file": "compute_v1_generated_instance_group_managers_resize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Resize_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_instance_group_managers_resize_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_instance_template", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "SetInstanceTemplate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_set_instance_template_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersSetInstanceTemplateRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_instance_template" + }, + "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_InstanceGroupManagers_SetInstanceTemplate_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_set_instance_template_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_target_pools", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "SetTargetPools" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target_pools" + }, + "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_InstanceGroupManagers_SetTargetPools_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_set_target_pools_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.update_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" + }, + "shortName": "UpdatePerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_per_instance_configs" + }, + "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_InstanceGroupManagers_UpdatePerInstanceConfigs_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_update_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.add_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "AddInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_instances" + }, + "description": "Sample for AddInstances", + "file": "compute_v1_generated_instance_groups_add_instances_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_AddInstances_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_groups_add_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instance_groups_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_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_instance_groups_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_groups_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_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_instance_groups_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_instance_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_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_instance_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.Insert", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_resource", + "type": "google.cloud.compute_v1.types.InstanceGroup" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_groups_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_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_instance_groups_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "ListInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstancesInstanceGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "instance_groups_list_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsListInstancesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListInstancesPager", + "shortName": "list_instances" + }, + "description": "Sample for ListInstances", + "file": "compute_v1_generated_instance_groups_list_instances_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_ListInstances_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instance_groups_list_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstanceGroupsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_instance_groups_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_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_instance_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.remove_instances", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "RemoveInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "instance_groups_remove_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsRemoveInstancesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_instances" + }, + "description": "Sample for RemoveInstances", + "file": "compute_v1_generated_instance_groups_remove_instances_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_RemoveInstances_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_groups_remove_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.set_named_ports", + "method": { + "fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts", + "service": { + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" + }, + "shortName": "SetNamedPorts" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_named_ports" + }, + "description": "Sample for SetNamedPorts", + "file": "compute_v1_generated_instance_groups_set_named_ports_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceGroups_SetNamedPorts_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_groups_set_named_ports_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instance_templates_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_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_instance_templates_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.Delete", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "instance_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_templates_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_Delete_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_instance_templates_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_instance_templates_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_GetIamPolicy_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_instance_templates_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.Get", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "instance_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceTemplate", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_instance_templates_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_Get_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_instance_templates_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.Insert", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "instance_template_resource", + "type": "google.cloud.compute_v1.types.InstanceTemplate" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_templates_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_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_instance_templates_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.List", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstanceTemplatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_instance_templates_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_List_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_instance_templates_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceTemplateRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_instance_templates_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_SetIamPolicy_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_instance_templates_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceTemplateRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instance_templates_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InstanceTemplates_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_instance_templates_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.add_access_config", + "method": { + "fullName": "google.cloud.compute.v1.Instances.AddAccessConfig", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "AddAccessConfig" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddAccessConfigInstanceRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_access_config" + }, + "description": "Sample for AddAccessConfig", + "file": "compute_v1_generated_instances_add_access_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_AddAccessConfig_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_add_access_config_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.add_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "AddResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "instances_add_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.InstancesAddResourcePoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_resource_policies" + }, + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_instances_add_resource_policies_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_AddResourcePolicies_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_instances_add_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Instances.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListInstancesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instances.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instances_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.attach_disk", + "method": { + "fullName": "google.cloud.compute.v1.Instances.AttachDisk", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "AttachDisk" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AttachDiskInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_disk" + }, + "description": "Sample for AttachDisk", + "file": "compute_v1_generated_instances_attach_disk_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_AttachDisk_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_instances_attach_disk_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.bulk_insert", + "method": { + "fullName": "google.cloud.compute.v1.Instances.BulkInsert", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "BulkInsert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.BulkInsertInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "bulk_insert" + }, + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_instances_bulk_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_bulk_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.delete_access_config", + "method": { + "fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "DeleteAccessConfig" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "access_config", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_access_config" + }, + "description": "Sample for DeleteAccessConfig", + "file": "compute_v1_generated_instances_delete_access_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_DeleteAccessConfig_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instances_delete_access_config_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_instances_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.detach_disk", + "method": { + "fullName": "google.cloud.compute.v1.Instances.DetachDisk", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "DetachDisk" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DetachDiskInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "device_name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "detach_disk" + }, + "description": "Sample for DetachDisk", + "file": "compute_v1_generated_instances_detach_disk_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_DetachDisk_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_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, str]" + } + ], + "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": 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_get_effective_firewalls_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_guest_attributes", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetGuestAttributes" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetGuestAttributesInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.GuestAttributes", + "shortName": "get_guest_attributes" + }, + "description": "Sample for GetGuestAttributes", + "file": "compute_v1_generated_instances_get_guest_attributes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_GetGuestAttributes_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_instances_get_guest_attributes_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_instances_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_screenshot", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetScreenshot", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetScreenshot" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetScreenshotInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Screenshot", + "shortName": "get_screenshot" + }, + "description": "Sample for GetScreenshot", + "file": "compute_v1_generated_instances_get_screenshot_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_GetScreenshot_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_instances_get_screenshot_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_serial_port_output", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetSerialPortOutput" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSerialPortOutputInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SerialPortOutput", + "shortName": "get_serial_port_output" + }, + "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_GetSerialPortOutput_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_instances_get_serial_port_output_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_shielded_instance_identity", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetShieldedInstanceIdentity" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetShieldedInstanceIdentityInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ShieldedInstanceIdentity", + "shortName": "get_shielded_instance_identity" + }, + "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_GetShieldedInstanceIdentity_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_instances_get_shielded_instance_identity_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Get", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Instance", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_instances_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_resource", + "type": "google.cloud.compute_v1.types.Instance" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_instances_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.list_referrers", + "method": { + "fullName": "google.cloud.compute.v1.Instances.ListReferrers", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "ListReferrers" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListReferrersInstancesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instances.pagers.ListReferrersPager", + "shortName": "list_referrers" + }, + "description": "Sample for ListReferrers", + "file": "compute_v1_generated_instances_list_referrers_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_ListReferrers_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instances_list_referrers_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Instances.List", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstancesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.instances.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_instances_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.remove_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "RemoveResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "instances_remove_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.InstancesRemoveResourcePoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_resource_policies" + }, + "description": "Sample for RemoveResourcePolicies", + "file": "compute_v1_generated_instances_remove_resource_policies_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_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_instances_remove_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.reset", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Reset", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Reset" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResetInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "reset" + }, + "description": "Sample for Reset", + "file": "compute_v1_generated_instances_reset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Reset_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_instances_reset_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.resume", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Resume", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Resume" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResumeInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resume" + }, + "description": "Sample for Resume", + "file": "compute_v1_generated_instances_resume_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Resume_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_instances_resume_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.send_diagnostic_interrupt", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SendDiagnosticInterrupt" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceResponse", + "shortName": "send_diagnostic_interrupt" + }, + "description": "Sample for SendDiagnosticInterrupt", + "file": "compute_v1_generated_instances_send_diagnostic_interrupt_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SendDiagnosticInterrupt_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_instances_send_diagnostic_interrupt_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_deletion_protection", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetDeletionProtection" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_deletion_protection" + }, + "description": "Sample for SetDeletionProtection", + "file": "compute_v1_generated_instances_set_deletion_protection_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetDeletionProtection_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_instances_set_deletion_protection_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_disk_auto_delete", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetDiskAutoDelete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "auto_delete", + "type": "bool" + }, + { + "name": "device_name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_disk_auto_delete" + }, + "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_SetDiskAutoDelete_sync", + "segments": [ + { + "end": 55, + "start": 27, + "type": "FULL" + }, + { + "end": 55, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 52, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 56, + "start": 53, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instances_set_disk_auto_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_instances_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_instances_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_instances_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_resources", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetMachineResources", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetMachineResources" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_machine_resources" + }, + "description": "Sample for SetMachineResources", + "file": "compute_v1_generated_instances_set_machine_resources_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetMachineResources_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_instances_set_machine_resources_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_type", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetMachineType", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetMachineType" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetMachineTypeInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "instances_set_machine_type_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetMachineTypeRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_machine_type" + }, + "description": "Sample for SetMachineType", + "file": "compute_v1_generated_instances_set_machine_type_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetMachineType_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_instances_set_machine_type_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_metadata", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetMetadata", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetMetadata" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetMetadataInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "metadata_resource", + "type": "google.cloud.compute_v1.types.Metadata" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_metadata" + }, + "description": "Sample for SetMetadata", + "file": "compute_v1_generated_instances_set_metadata_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetMetadata_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_instances_set_metadata_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_min_cpu_platform", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetMinCpuPlatform" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_min_cpu_platform" + }, + "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_SetMinCpuPlatform_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_instances_set_min_cpu_platform_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_name", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetName", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetName" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetNameInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_name" + }, + "description": "Sample for SetName", + "file": "compute_v1_generated_instances_set_name_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetName_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_instances_set_name_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_scheduling", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetScheduling", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetScheduling" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSchedulingInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "scheduling_resource", + "type": "google.cloud.compute_v1.types.Scheduling" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_scheduling" + }, + "description": "Sample for SetScheduling", + "file": "compute_v1_generated_instances_set_scheduling_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetScheduling_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_instances_set_scheduling_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_service_account", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetServiceAccount", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetServiceAccount" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetServiceAccountInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_service_account" + }, + "description": "Sample for SetServiceAccount", + "file": "compute_v1_generated_instances_set_service_account_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetServiceAccount_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_instances_set_service_account_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_shielded_instance_integrity_policy", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetShieldedInstanceIntegrityPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_shielded_instance_integrity_policy" + }, + "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_Instances_SetShieldedInstanceIntegrityPolicy_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_instances_set_shielded_instance_integrity_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.set_tags", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SetTags", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SetTags" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetTagsInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "tags_resource", + "type": "google.cloud.compute_v1.types.Tags" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_tags" + }, + "description": "Sample for SetTags", + "file": "compute_v1_generated_instances_set_tags_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SetTags_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_instances_set_tags_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.simulate_maintenance_event", + "method": { + "fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "SimulateMaintenanceEvent" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "simulate_maintenance_event" + }, + "description": "Sample for SimulateMaintenanceEvent", + "file": "compute_v1_generated_instances_simulate_maintenance_event_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_SimulateMaintenanceEvent_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_instances_simulate_maintenance_event_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.start_with_encryption_key", + "method": { + "fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "StartWithEncryptionKey" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "instances_start_with_encryption_key_request_resource", + "type": "google.cloud.compute_v1.types.InstancesStartWithEncryptionKeyRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "start_with_encryption_key" + }, + "description": "Sample for StartWithEncryptionKey", + "file": "compute_v1_generated_instances_start_with_encryption_key_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_StartWithEncryptionKey_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_instances_start_with_encryption_key_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.start", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Start", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Start" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StartInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "start" + }, + "description": "Sample for Start", + "file": "compute_v1_generated_instances_start_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Start_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_instances_start_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.stop", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Stop", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Stop" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StopInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop" + }, + "description": "Sample for Stop", + "file": "compute_v1_generated_instances_stop_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Stop_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_instances_stop_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.suspend", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Suspend", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Suspend" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SuspendInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "suspend" + }, + "description": "Sample for Suspend", + "file": "compute_v1_generated_instances_suspend_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Suspend_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_instances_suspend_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Instances.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instances_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_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_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, str]" + } + ], + "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" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.update_display_device", + "method": { + "fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "UpdateDisplayDevice" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_display_device" + }, + "description": "Sample for UpdateDisplayDevice", + "file": "compute_v1_generated_instances_update_display_device_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_UpdateDisplayDevice_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_instances_update_display_device_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.update_network_interface", + "method": { + "fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "UpdateNetworkInterface" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_network_interface" + }, + "description": "Sample for UpdateNetworkInterface", + "file": "compute_v1_generated_instances_update_network_interface_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_UpdateNetworkInterface_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_network_interface_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.update_shielded_instance_config", + "method": { + "fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "UpdateShieldedInstanceConfig" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_shielded_instance_config" + }, + "description": "Sample for UpdateShieldedInstanceConfig", + "file": "compute_v1_generated_instances_update_shielded_instance_config_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_UpdateShieldedInstanceConfig_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_instances_update_shielded_instance_config_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Instances.Update", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "instance_resource", + "type": "google.cloud.compute_v1.types.Instance" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_instances_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_Update_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_instances_update_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", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_interconnect_attachments_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_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_interconnect_attachments_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_interconnect_attachments_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_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_interconnect_attachments_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Get", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInterconnectAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "interconnect_attachment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InterconnectAttachment", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_interconnect_attachments_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "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, str]" + } + ], + "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, + "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_attachments_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.List", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInterconnectAttachmentsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_attachments_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_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_interconnect_attachments_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_interconnect_attachments_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_Patch_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_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_interconnect_attachments_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_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_interconnect_attachments_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", + "shortName": "InterconnectLocationsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectLocations.Get", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectLocations", + "shortName": "InterconnectLocations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInterconnectLocationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect_location", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InterconnectLocation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_interconnect_locations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectLocations_Get_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_locations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", + "shortName": "InterconnectLocationsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectLocations.List", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectLocations", + "shortName": "InterconnectLocations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInterconnectLocationsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.interconnect_locations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_locations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectLocations_List_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_interconnect_locations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", + "shortName": "InterconnectRemoteLocationsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", + "shortName": "InterconnectRemoteLocations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InterconnectRemoteLocation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_interconnect_remote_locations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectRemoteLocations_Get_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_remote_locations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", + "shortName": "InterconnectRemoteLocationsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", + "shortName": "InterconnectRemoteLocations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInterconnectRemoteLocationsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.interconnect_remote_locations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_remote_locations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectRemoteLocations_List_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_interconnect_remote_locations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInterconnectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_interconnects_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_Delete_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_interconnects_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.get_diagnostics", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "GetDiagnostics" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetDiagnosticsInterconnectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InterconnectsGetDiagnosticsResponse", + "shortName": "get_diagnostics" + }, + "description": "Sample for GetDiagnostics", + "file": "compute_v1_generated_interconnects_get_diagnostics_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_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_interconnects_get_diagnostics_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.Get", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetInterconnectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Interconnect", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_interconnects_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_Get_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_interconnects_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInterconnectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect_resource", + "type": "google.cloud.compute_v1.types.Interconnect" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_interconnects_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_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_interconnects_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.List", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInterconnectsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.interconnects.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_interconnects_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_List_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_interconnects_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchInterconnectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "interconnect", + "type": "str" + }, + { + "name": "interconnect_resource", + "type": "google.cloud.compute_v1.types.Interconnect" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_interconnects_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_Patch_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_interconnects_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectsClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Interconnects.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsInterconnectRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_interconnects_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Interconnects_SetLabels_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_interconnects_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicenseCodesClient", + "shortName": "LicenseCodesClient" + }, + "fullName": "google.cloud.compute_v1.LicenseCodesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.LicenseCodes.Get", + "service": { + "fullName": "google.cloud.compute.v1.LicenseCodes", + "shortName": "LicenseCodes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetLicenseCodeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "license_code", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.LicenseCode", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_license_codes_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_LicenseCodes_Get_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_license_codes_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicenseCodesClient", + "shortName": "LicenseCodesClient" + }, + "fullName": "google.cloud.compute_v1.LicenseCodesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.LicenseCodes", + "shortName": "LicenseCodes" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_license_codes_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_LicenseCodes_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_license_codes_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteLicenseRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "license_", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_licenses_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_Delete_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_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyLicenseRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_licenses_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_GetIamPolicy_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_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.Get", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetLicenseRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "license_", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.License", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_licenses_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_Get_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_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertLicenseRequest" + }, + { + "name": "project", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_licenses_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_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_licenses_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.List", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListLicensesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.licenses.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_licenses_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_List_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_licenses_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyLicenseRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_licenses_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_SetIamPolicy_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_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" + }, + "fullName": "google.cloud.compute_v1.LicensesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsLicenseRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_licenses_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Licenses_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_licenses_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.Delete", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteMachineImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "machine_image", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_machine_images_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_Delete_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_machine_images_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyMachineImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_machine_images_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_GetIamPolicy_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_machine_images_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.Get", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetMachineImageRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "machine_image", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.MachineImage", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_machine_images_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_Get_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_machine_images_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.Insert", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_machine_images_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_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_machine_images_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.List", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListMachineImagesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.machine_images.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_machine_images_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_List_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_machine_images_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyMachineImageRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_machine_images_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_SetIamPolicy_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_machine_images_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" + }, + "fullName": "google.cloud.compute_v1.MachineImagesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsMachineImageRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_machine_images_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineImages_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_machine_images_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" + }, + "fullName": "google.cloud.compute_v1.MachineTypesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListMachineTypesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.machine_types.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_machine_types_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineTypes_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_machine_types_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" + }, + "fullName": "google.cloud.compute_v1.MachineTypesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.MachineTypes.Get", + "service": { + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetMachineTypeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "machine_type", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.MachineType", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_machine_types_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineTypes_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_machine_types_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" + }, + "fullName": "google.cloud.compute_v1.MachineTypesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.MachineTypes.List", + "service": { + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListMachineTypesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.machine_types.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_machine_types_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_MachineTypes_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_machine_types_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNetworkAttachmentsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_attachments_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_attachment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_network_attachments_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_network_attachments_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNetworkAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_attachment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworkAttachment", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_network_attachments_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNetworkAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_attachment_resource", + "type": "google.cloud.compute_v1.types.NetworkAttachment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_network_attachments_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.List", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNetworkAttachmentsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_network_attachments_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyNetworkAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_network_attachments_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_network_attachments_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkAttachments_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_network_attachments_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNetworkEdgeSecurityServicesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_edge_security_services.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_edge_security_services_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_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_network_edge_security_services_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_edge_security_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_network_edge_security_services_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_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_network_edge_security_services_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNetworkEdgeSecurityServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_edge_security_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworkEdgeSecurityService", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_network_edge_security_services_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_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_network_edge_security_services_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_network_edge_security_services_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_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_network_edge_security_services_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_network_edge_security_services_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Patch_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_network_edge_security_services_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNetworkEndpointGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_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_network_endpoint_groups_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.attach_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "AttachNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_network_endpoints" + }, + "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_NetworkEndpointGroups_AttachNetworkEndpoints_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_network_endpoint_groups_attach_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_network_endpoint_groups_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_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_network_endpoint_groups_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.detach_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "DetachNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "detach_network_endpoints" + }, + "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_NetworkEndpointGroups_DetachNetworkEndpoints_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_network_endpoint_groups_detach_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_network_endpoint_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_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_network_endpoint_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_network_endpoint_groups_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_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_network_endpoint_groups_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list_network_endpoints", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "ListNetworkEndpoints" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNetworkEndpointsNetworkEndpointGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListNetworkEndpointsPager", + "shortName": "list_network_endpoints" + }, + "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_NetworkEndpointGroups_ListNetworkEndpoints_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNetworkEndpointGroupsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_network_endpoint_groups_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_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_network_endpoint_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkEndpointGroupRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "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_NetworkEndpointGroups_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_network_endpoint_groups_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_association", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "AddAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_association" + }, + "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_AddAssociation_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_network_firewall_policies_add_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_rule", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "AddRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" + }, + "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_AddRule_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_network_firewall_policies_add_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.clone_rules", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "CloneRules" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "clone_rules" + }, + "description": "Sample for CloneRules", + "file": "compute_v1_generated_network_firewall_policies_clone_rules_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_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_network_firewall_policies_clone_rules_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_network_firewall_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Delete_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_network_firewall_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_association", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "GetAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAssociationNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" + }, + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_network_firewall_policies_get_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetAssociation_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_network_firewall_policies_get_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "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_NetworkFirewallPolicies_GetIamPolicy_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_network_firewall_policies_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_rule", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "GetRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRuleNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" + }, + "description": "Sample for GetRule", + "file": "compute_v1_generated_network_firewall_policies_get_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetRule_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_network_firewall_policies_get_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_network_firewall_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Get_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_network_firewall_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_network_firewall_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_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_network_firewall_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNetworkFirewallPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.network_firewall_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_network_firewall_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_List_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_network_firewall_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch_rule", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "PatchRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" + }, + "description": "Sample for PatchRule", + "file": "compute_v1_generated_network_firewall_policies_patch_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchRule_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_network_firewall_policies_patch_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_network_firewall_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Patch_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_network_firewall_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_association", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "RemoveAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" + }, + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_network_firewall_policies_remove_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_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_network_firewall_policies_remove_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_rule", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "RemoveRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_rule" + }, + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_network_firewall_policies_remove_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveRule_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_network_firewall_policies_remove_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "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_NetworkFirewallPolicies_SetIamPolicy_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_network_firewall_policies_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkFirewallPolicyRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "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_NetworkFirewallPolicies_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_network_firewall_policies_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.add_peering", + "method": { + "fullName": "google.cloud.compute.v1.Networks.AddPeering", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "AddPeering" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddPeeringNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "networks_add_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksAddPeeringRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_peering" + }, + "description": "Sample for AddPeering", + "file": "compute_v1_generated_networks_add_peering_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_AddPeering_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_networks_add_peering_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Networks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_networks_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_Delete_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_networks_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.get_effective_firewalls", + "method": { + "fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "GetEffectiveFirewalls" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworksGetEffectiveFirewallsResponse", + "shortName": "get_effective_firewalls" + }, + "description": "Sample for GetEffectiveFirewalls", + "file": "compute_v1_generated_networks_get_effective_firewalls_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_GetEffectiveFirewalls_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_networks_get_effective_firewalls_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Networks.Get", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Network", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_networks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_Get_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_networks_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Networks.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network_resource", + "type": "google.cloud.compute_v1.types.Network" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_networks_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_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_networks_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.list_peering_routes", + "method": { + "fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "ListPeeringRoutes" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPeeringRoutesNetworksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPeeringRoutesPager", + "shortName": "list_peering_routes" + }, + "description": "Sample for ListPeeringRoutes", + "file": "compute_v1_generated_networks_list_peering_routes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_ListPeeringRoutes_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_networks_list_peering_routes_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Networks.List", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNetworksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_networks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_List_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_networks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Networks.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "network_resource", + "type": "google.cloud.compute_v1.types.Network" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_networks_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_Patch_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_networks_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.remove_peering", + "method": { + "fullName": "google.cloud.compute.v1.Networks.RemovePeering", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "RemovePeering" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemovePeeringNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "networks_remove_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksRemovePeeringRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_peering" + }, + "description": "Sample for RemovePeering", + "file": "compute_v1_generated_networks_remove_peering_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_RemovePeering_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_networks_remove_peering_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.switch_to_custom_mode", + "method": { + "fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "SwitchToCustomMode" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "switch_to_custom_mode" + }, + "description": "Sample for SwitchToCustomMode", + "file": "compute_v1_generated_networks_switch_to_custom_mode_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_SwitchToCustomMode_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_networks_switch_to_custom_mode_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" + }, + "fullName": "google.cloud.compute_v1.NetworksClient.update_peering", + "method": { + "fullName": "google.cloud.compute.v1.Networks.UpdatePeering", + "service": { + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" + }, + "shortName": "UpdatePeering" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdatePeeringNetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "networks_update_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksUpdatePeeringRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_peering" + }, + "description": "Sample for UpdatePeering", + "file": "compute_v1_generated_networks_update_peering_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Networks_UpdatePeering_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_networks_update_peering_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.add_nodes", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.AddNodes", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "AddNodes" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddNodesNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_nodes" + }, + "description": "Sample for AddNodes", + "file": "compute_v1_generated_node_groups_add_nodes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_AddNodes_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_add_nodes_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNodeGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_node_groups_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete_nodes", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "DeleteNodes" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "node_groups_delete_nodes_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsDeleteNodesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_nodes" + }, + "description": "Sample for DeleteNodes", + "file": "compute_v1_generated_node_groups_delete_nodes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_DeleteNodes_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_delete_nodes_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_node_groups_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_node_groups_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NodeGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_node_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_node_groups_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_Insert_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_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.list_nodes", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.ListNodes", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "ListNodes" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNodesNodeGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListNodesPager", + "shortName": "list_nodes" + }, + "description": "Sample for ListNodes", + "file": "compute_v1_generated_node_groups_list_nodes_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_ListNodes_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_groups_list_nodes_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNodeGroupsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_node_groups_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.Patch", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchNodeGroupRequest" + }, + { + "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": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_node_groups_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_Patch_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_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyNodeGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_node_groups_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_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_groups_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_node_template", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "SetNodeTemplate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_node_template" + }, + "description": "Sample for SetNodeTemplate", + "file": "compute_v1_generated_node_groups_set_node_template_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_SetNodeTemplate_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_set_node_template_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.simulate_maintenance_event", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "SimulateMaintenanceEvent" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "simulate_maintenance_event" + }, + "description": "Sample for SimulateMaintenanceEvent", + "file": "compute_v1_generated_node_groups_simulate_maintenance_event_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_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_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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListPacketMirroringsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.packet_mirrorings.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_packet_mirrorings_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_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_packet_mirrorings_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.Delete", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeletePacketMirroringRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_packet_mirrorings_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_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_packet_mirrorings_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.Get", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetPacketMirroringRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.PacketMirroring", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_packet_mirrorings_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_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_packet_mirrorings_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.Insert", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertPacketMirroringRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_packet_mirrorings_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_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_packet_mirrorings_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.list", + "method": { + "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, str]" + } + ], + "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.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchPacketMirroringRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_packet_mirrorings_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_Patch_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_packet_mirrorings_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsPacketMirroringRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_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_packet_mirrorings_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_host", + "method": { + "fullName": "google.cloud.compute.v1.Projects.DisableXpnHost", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "DisableXpnHost" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DisableXpnHostProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "disable_xpn_host" + }, + "description": "Sample for DisableXpnHost", + "file": "compute_v1_generated_projects_disable_xpn_host_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_DisableXpnHost_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_projects_disable_xpn_host_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_resource", + "method": { + "fullName": "google.cloud.compute.v1.Projects.DisableXpnResource", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "DisableXpnResource" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DisableXpnResourceProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "projects_disable_xpn_resource_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsDisableXpnResourceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "disable_xpn_resource" + }, + "description": "Sample for DisableXpnResource", + "file": "compute_v1_generated_projects_disable_xpn_resource_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_DisableXpnResource_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_projects_disable_xpn_resource_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_host", + "method": { + "fullName": "google.cloud.compute.v1.Projects.EnableXpnHost", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "EnableXpnHost" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.EnableXpnHostProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "enable_xpn_host" + }, + "description": "Sample for EnableXpnHost", + "file": "compute_v1_generated_projects_enable_xpn_host_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_EnableXpnHost_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_projects_enable_xpn_host_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_resource", + "method": { + "fullName": "google.cloud.compute.v1.Projects.EnableXpnResource", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "EnableXpnResource" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.EnableXpnResourceProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "projects_enable_xpn_resource_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsEnableXpnResourceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "enable_xpn_resource" + }, + "description": "Sample for EnableXpnResource", + "file": "compute_v1_generated_projects_enable_xpn_resource_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_EnableXpnResource_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_projects_enable_xpn_resource_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_host", + "method": { + "fullName": "google.cloud.compute.v1.Projects.GetXpnHost", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "GetXpnHost" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetXpnHostProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Project", + "shortName": "get_xpn_host" + }, + "description": "Sample for GetXpnHost", + "file": "compute_v1_generated_projects_get_xpn_host_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_GetXpnHost_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_projects_get_xpn_host_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_resources", + "method": { + "fullName": "google.cloud.compute.v1.Projects.GetXpnResources", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "GetXpnResources" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetXpnResourcesProjectsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.projects.pagers.GetXpnResourcesPager", + "shortName": "get_xpn_resources" + }, + "description": "Sample for GetXpnResources", + "file": "compute_v1_generated_projects_get_xpn_resources_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_GetXpnResources_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_projects_get_xpn_resources_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Projects.Get", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Project", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_projects_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_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_projects_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.list_xpn_hosts", + "method": { + "fullName": "google.cloud.compute.v1.Projects.ListXpnHosts", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "ListXpnHosts" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListXpnHostsProjectsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "projects_list_xpn_hosts_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsListXpnHostsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.projects.pagers.ListXpnHostsPager", + "shortName": "list_xpn_hosts" + }, + "description": "Sample for ListXpnHosts", + "file": "compute_v1_generated_projects_list_xpn_hosts_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_ListXpnHosts_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_projects_list_xpn_hosts_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.move_disk", + "method": { + "fullName": "google.cloud.compute.v1.Projects.MoveDisk", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "MoveDisk" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move_disk" + }, + "description": "Sample for MoveDisk", + "file": "compute_v1_generated_projects_move_disk_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_MoveDisk_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_projects_move_disk_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.move_instance", + "method": { + "fullName": "google.cloud.compute.v1.Projects.MoveInstance", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "MoveInstance" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.MoveInstanceProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "instance_move_request_resource", + "type": "google.cloud.compute_v1.types.InstanceMoveRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move_instance" + }, + "description": "Sample for MoveInstance", + "file": "compute_v1_generated_projects_move_instance_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Projects_MoveInstance_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_projects_move_instance_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.set_common_instance_metadata", + "method": { + "fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "SetCommonInstanceMetadata" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_common_instance_metadata" + }, + "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_SetCommonInstanceMetadata_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_projects_set_common_instance_metadata_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.set_default_network_tier", + "method": { + "fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "SetDefaultNetworkTier" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_default_network_tier" + }, + "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_SetDefaultNetworkTier_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_projects_set_default_network_tier_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" + }, + "fullName": "google.cloud.compute_v1.ProjectsClient.set_usage_export_bucket", + "method": { + "fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket", + "service": { + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" + }, + "shortName": "SetUsageExportBucket" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "usage_export_location_resource", + "type": "google.cloud.compute_v1.types.UsageExportLocation" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_usage_export_bucket" + }, + "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_SetUsageExportBucket_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_projects_set_usage_export_bucket_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete", + "service": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_advertised_prefix", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_public_advertised_prefixes_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Delete_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_public_advertised_prefixes_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get", + "service": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetPublicAdvertisedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_advertised_prefix", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.PublicAdvertisedPrefix", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_public_advertised_prefixes_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Get_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_public_advertised_prefixes_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert", + "service": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_advertised_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_public_advertised_prefixes_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_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_public_advertised_prefixes_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List", + "service": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPublicAdvertisedPrefixesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.public_advertised_prefixes.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_public_advertised_prefixes_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_List_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_public_advertised_prefixes_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch", + "service": { + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "public_advertised_prefix", + "type": "str" + }, + { + "name": "public_advertised_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_public_advertised_prefixes_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Patch_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_public_advertised_prefixes_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListPublicDelegatedPrefixesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_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_public_delegated_prefixes_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_public_delegated_prefixes_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_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_public_delegated_prefixes_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_public_delegated_prefixes_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_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_public_delegated_prefixes_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_public_delegated_prefixes_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_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_public_delegated_prefixes_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPublicDelegatedPrefixesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_public_delegated_prefixes_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_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_public_delegated_prefixes_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" + }, + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch", + "service": { + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_public_delegated_prefixes_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Patch_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_public_delegated_prefixes_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "autoscaler", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_autoscalers_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionAutoscalers_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_autoscalers_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "autoscaler", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Autoscaler", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_autoscalers_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionAutoscalers_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_region_autoscalers_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "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", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_autoscalers.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_autoscalers_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionAutoscalers_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_region_autoscalers_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_autoscalers_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionAutoscalers_Patch_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_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" + }, + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_autoscalers_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionAutoscalers_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_region_autoscalers_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_backend_services_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_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_backend_services_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_health", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "GetHealth" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetHealthRegionBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.BackendServiceGroupHealth", + "shortName": "get_health" + }, + "description": "Sample for GetHealth", + "file": "compute_v1_generated_region_backend_services_get_health_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_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_backend_services_get_health_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionBackendServiceRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "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_RegionBackendServices_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_region_backend_services_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.BackendService", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_backend_services_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_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_region_backend_services_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionBackendServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "backend_service_resource", + "type": "google.cloud.compute_v1.types.BackendService" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_backend_services_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_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_backend_services_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionBackendServicesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_backend_services.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_backend_services_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_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_region_backend_services_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionBackendServiceRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_backend_services_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_Patch_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_backend_services_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionBackendServiceRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "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_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_region_backend_services_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_backend_services_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionBackendServices_Update_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_backend_services_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" + }, + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListRegionCommitmentsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_region_commitments_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionCommitments_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_region_commitments_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" + }, + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionCommitments.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionCommitmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "commitment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Commitment", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_commitments_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionCommitments_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_region_commitments_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" + }, + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionCommitmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "commitment_resource", + "type": "google.cloud.compute_v1.types.Commitment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_commitments_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionCommitments_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_commitments_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" + }, + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionCommitments.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionCommitmentsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_commitments_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionCommitments_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_region_commitments_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" + }, + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionCommitments.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionCommitmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "commitment", + "type": "str" + }, + { + "name": "commitment_resource", + "type": "google.cloud.compute_v1.types.Commitment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_commitments_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionCommitments_Update_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_commitments_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", + "shortName": "RegionDiskTypesClient" + }, + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionDiskTypes", + "shortName": "RegionDiskTypes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DiskType", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_disk_types_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDiskTypes_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_region_disk_types_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", + "shortName": "RegionDiskTypesClient" + }, + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionDiskTypes", + "shortName": "RegionDiskTypes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionDiskTypesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_disk_types.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_disk_types_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDiskTypes_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_region_disk_types_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.add_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "AddResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_resource_policies" + }, + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_region_disks_add_resource_policies_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_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_add_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.bulk_insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "BulkInsert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.BulkInsertRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "bulk_insert" + }, + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_region_disks_bulk_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_disks_bulk_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.create_snapshot", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "CreateSnapshot" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_snapshot" + }, + "description": "Sample for CreateSnapshot", + "file": "compute_v1_generated_region_disks_create_snapshot_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_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_create_snapshot_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "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": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_region_disks_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_region_disks_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Disk", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_disks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_region_disks_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_disks_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_disks_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionDisksRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_disks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_disks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_region_disks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.remove_resource_policies", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "RemoveResourcePolicies" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "region_disks_remove_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.RegionDisksRemoveResourcePoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_resource_policies" + }, + "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_RemoveResourcePolicies_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_remove_resource_policies_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.resize", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.Resize", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "Resize" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResizeRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" + }, + "description": "Sample for Resize", + "file": "compute_v1_generated_region_disks_resize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_Resize_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_resize_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionDiskRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "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_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_region_disks_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsRegionDiskRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_region_disks_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_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_region_disks_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.start_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "StartAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StartAsyncReplicationRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "start_async_replication" + }, + "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_StartAsyncReplication_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_start_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "StopAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.StopAsyncReplicationRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_async_replication" + }, + "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_StopAsyncReplication_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_stop_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_group_async_replication", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "StopGroupAsyncReplication" + }, + "parameters": [ + { + "name": "request", + "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, str]" + } + ], + "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", + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "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_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_region_disks_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_disks_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_Update_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_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_health_check_services_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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_health_check_services_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionHealthCheckServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check_service", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.HealthCheckService", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_health_check_services_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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_region_health_check_services_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check_service_resource", + "type": "google.cloud.compute_v1.types.HealthCheckService" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_health_check_services_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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_health_check_services_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionHealthCheckServicesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_health_check_services.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_health_check_services_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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_region_health_check_services_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check_service", + "type": "str" + }, + { + "name": "health_check_service_resource", + "type": "google.cloud.compute_v1.types.HealthCheckService" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_health_check_services_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_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_health_check_services_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_health_checks_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_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_health_checks_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.HealthCheck", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_health_checks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_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_region_health_checks_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_health_checks_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_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_health_checks_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionHealthChecksRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_health_checks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_health_checks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_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_region_health_checks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_health_checks_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_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_health_checks_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" + }, + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "health_check", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_health_checks_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionHealthChecks_Update_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_health_checks_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.abandon_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "AbandonInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "abandon_instances" + }, + "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_RegionInstanceGroupManagers_AbandonInstances_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_instance_group_managers_abandon_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.apply_updates_to_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "ApplyUpdatesToInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "apply_updates_to_instances" + }, + "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_RegionInstanceGroupManagers_ApplyUpdatesToInstances_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_instance_group_managers_apply_updates_to_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.create_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "CreateInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_instances" + }, + "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_RegionInstanceGroupManagers_CreateInstances_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_instance_group_managers_create_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "DeleteInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_instances" + }, + "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_RegionInstanceGroupManagers_DeleteInstances_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_instance_group_managers_delete_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "DeletePerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete_per_instance_configs" + }, + "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_RegionInstanceGroupManagers_DeletePerInstanceConfigs_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_instance_group_managers_delete_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "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_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_instance_group_managers_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", + "shortName": "get" + }, + "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_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_region_instance_group_managers_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "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", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListErrorsPager", + "shortName": "list_errors" + }, + "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_ListErrors_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_instance_group_managers_list_errors_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_managed_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "ListManagedInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListManagedInstancesRegionInstanceGroupManagersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListManagedInstancesPager", + "shortName": "list_managed_instances" + }, + "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_ListManagedInstances_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "ListPerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsRegionInstanceGroupManagersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPerInstanceConfigsPager", + "shortName": "list_per_instance_configs" + }, + "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_ListPerInstanceConfigs_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupManagersRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPager", + "shortName": "list" + }, + "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_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_region_instance_group_managers_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "PatchPerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_per_instance_configs" + }, + "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_PatchPerInstanceConfigs_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_instance_group_managers_patch_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "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_Patch_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_instance_group_managers_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.recreate_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "RecreateInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "recreate_instances" + }, + "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_RecreateInstances_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_instance_group_managers_recreate_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.resize", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "Resize" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "size", + "type": "int" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" + }, + "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_Resize_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_region_instance_group_managers_resize_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_instance_template", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "SetInstanceTemplate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_instance_template" + }, + "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_SetInstanceTemplate_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_instance_group_managers_set_instance_template_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_target_pools", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "SetTargetPools" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "region_instance_group_managers_set_target_pools_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSetTargetPoolsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target_pools" + }, + "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_SetTargetPools_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_instance_group_managers_set_target_pools_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.update_per_instance_configs", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "UpdatePerInstanceConfigs" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_per_instance_configs" + }, + "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_UpdatePerInstanceConfigs_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_instance_group_managers_update_per_instance_configs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_instance_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceGroups_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_region_instance_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list_instances", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" + }, + "shortName": "ListInstances" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListInstancesRegionInstanceGroupsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "region_instance_groups_list_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupsListInstancesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListInstancesPager", + "shortName": "list_instances" + }, + "description": "Sample for ListInstances", + "file": "compute_v1_generated_region_instance_groups_list_instances_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceGroups_ListInstances_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_instance_groups_list_instances_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_instance_groups_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceGroups_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_region_instance_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.set_named_ports", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" + }, + "shortName": "SetNamedPorts" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "region_instance_groups_set_named_ports_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupsSetNamedPortsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_named_ports" + }, + "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_RegionInstanceGroups_SetNamedPorts_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_instance_groups_set_named_ports_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_instance_templates_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_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_instance_templates_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstanceTemplate", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_instance_templates_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_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_region_instance_templates_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "instance_template_resource", + "type": "google.cloud.compute_v1.types.InstanceTemplate" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_instance_templates_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_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_templates_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_instance_templates.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_instance_templates_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_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_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, str]" + } + ], + "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" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_network_endpoint_groups_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_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_network_endpoint_groups_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_network_endpoint_groups_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_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_region_network_endpoint_groups_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_network_endpoint_groups_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_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_endpoint_groups_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionNetworkEndpointGroupsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_network_endpoint_groups.pagers.ListPager", + "shortName": "list" + }, + "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_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_region_network_endpoint_groups_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_association", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "AddAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_association" + }, + "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_RegionNetworkFirewallPolicies_AddAssociation_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_network_firewall_policies_add_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_rule", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "AddRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" + }, + "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_RegionNetworkFirewallPolicies_AddRule_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_network_firewall_policies_add_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.clone_rules", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "CloneRules" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "clone_rules" + }, + "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_RegionNetworkFirewallPolicies_CloneRules_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_network_firewall_policies_clone_rules_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_network_firewall_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_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_network_firewall_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_association", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "GetAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAssociationRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" + }, + "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_GetAssociation_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_network_firewall_policies_get_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_effective_firewalls", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "GetEffectiveFirewalls" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "network", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", + "shortName": "get_effective_firewalls" + }, + "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_GetEffectiveFirewalls_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_network_firewall_policies_get_effective_firewalls_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionNetworkFirewallPolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "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_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_region_network_firewall_policies_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_rule", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "GetRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRuleRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" + }, + "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_GetRule_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_network_firewall_policies_get_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" + }, + "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_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_region_network_firewall_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "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, str]" + } + ], + "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", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_network_firewall_policies.pagers.ListPager", + "shortName": "list" + }, + "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_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_region_network_firewall_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch_rule", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "PatchRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" + }, + "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_PatchRule_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_network_firewall_policies_patch_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "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_Patch_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_network_firewall_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_association", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "RemoveAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" + }, + "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_RemoveAssociation_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_network_firewall_policies_remove_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_rule", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "RemoveRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "firewall_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_rule" + }, + "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_RemoveRule_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_network_firewall_policies_remove_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionNetworkFirewallPolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "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_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_region_network_firewall_policies_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionNetworkFirewallPolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "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_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_region_network_firewall_policies_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "notification_endpoint", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_notification_endpoints_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_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_notification_endpoints_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionNotificationEndpointRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "notification_endpoint", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.NotificationEndpoint", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_notification_endpoints_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_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_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, str]" + } + ], + "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": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_notification_endpoints.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_notification_endpoints_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_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_region_notification_endpoints_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" + }, + "fullName": "google.cloud.compute_v1.RegionOperationsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionOperations.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DeleteRegionOperationResponse", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_operations_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionOperations_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_operations_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" + }, + "fullName": "google.cloud.compute_v1.RegionOperationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionOperations.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_operations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionOperations_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_region_operations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" + }, + "fullName": "google.cloud.compute_v1.RegionOperationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionOperations.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionOperationsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_operations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_operations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionOperations_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_region_operations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" + }, + "fullName": "google.cloud.compute_v1.RegionOperationsClient.wait", + "method": { + "fullName": "google.cloud.compute.v1.RegionOperations.Wait", + "service": { + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" + }, + "shortName": "Wait" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.WaitRegionOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "wait" + }, + "description": "Sample for Wait", + "file": "compute_v1_generated_region_operations_wait_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionOperations_Wait_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_operations_wait_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_security_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_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_security_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_security_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_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_region_security_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_security_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "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, str]" + } + ], + "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, + "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_region_security_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_security_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_Patch_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_security_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_certificate", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_ssl_certificates_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslCertificates_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_ssl_certificates_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_certificate", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslCertificate", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_ssl_certificates_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslCertificates_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_region_ssl_certificates_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_certificate_resource", + "type": "google.cloud.compute_v1.types.SslCertificate" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_ssl_certificates_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslCertificates_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_ssl_certificates_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionSslCertificatesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_ssl_certificates.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_ssl_certificates_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslCertificates_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_region_ssl_certificates_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_ssl_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_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_ssl_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_ssl_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_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_region_ssl_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_ssl_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_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_ssl_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.list_available_features", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures", + "service": { + "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, str]" + } + ], + "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.ListRegionSslPoliciesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_ssl_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_ssl_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_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_region_ssl_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_ssl_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_Patch_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_ssl_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_target_http_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_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_target_http_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetHttpProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_target_http_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_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_region_target_http_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_http_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_target_http_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_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_http_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionTargetHttpProxiesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_target_http_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_target_http_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_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_region_target_http_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.set_url_map", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" + }, + "shortName": "SetUrlMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "url_map_reference_resource", + "type": "google.cloud.compute_v1.types.UrlMapReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_url_map" + }, + "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_RegionTargetHttpProxies_SetUrlMap_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_target_http_proxies_set_url_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_target_https_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_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_target_https_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetHttpsProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_target_https_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_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_region_target_https_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_target_https_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_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_https_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionTargetHttpsProxiesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_target_https_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_target_https_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_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_region_target_https_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_target_https_proxies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Patch_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_target_https_proxies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_ssl_certificates", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "SetSslCertificates" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_ssl_certificates" + }, + "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_SetSslCertificates_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_target_https_proxies_set_ssl_certificates_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_url_map", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" + }, + "shortName": "SetUrlMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_url_map" + }, + "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_SetUrlMap_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_target_https_proxies_set_url_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_target_tcp_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_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_target_tcp_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetTcpProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_target_tcp_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_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_region_target_tcp_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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, str]" + } + ], + "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": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_target_tcp_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_target_tcp_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_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_region_target_tcp_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_region_url_maps_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_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_url_maps_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Get", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.UrlMap", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_region_url_maps_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_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_region_url_maps_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "url_map_resource", + "type": "google.cloud.compute_v1.types.UrlMap" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_url_maps_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_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_url_maps_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionUrlMapsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_url_maps.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_url_maps_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_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_region_url_maps_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_region_url_maps_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_Patch_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_url_maps_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Update", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_region_url_maps_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_Update_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_url_maps_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.validate", + "method": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate", + "service": { + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" + }, + "shortName": "Validate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ValidateRegionUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.UrlMapsValidateResponse", + "shortName": "validate" + }, + "description": "Sample for Validate", + "file": "compute_v1_generated_region_url_maps_validate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionUrlMaps_Validate_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_url_maps_validate_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionsClient", + "shortName": "RegionsClient" + }, + "fullName": "google.cloud.compute_v1.RegionsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Regions.Get", + "service": { + "fullName": "google.cloud.compute.v1.Regions", + "shortName": "Regions" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRegionRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Region", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_regions_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Regions_Get_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_regions_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionsClient", + "shortName": "RegionsClient" + }, + "fullName": "google.cloud.compute_v1.RegionsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Regions.List", + "service": { + "fullName": "google.cloud.compute.v1.Regions", + "shortName": "Regions" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.regions.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_regions_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Regions_List_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_regions_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListReservationsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.reservations.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_reservations_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "reservation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_reservations_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_reservations_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.Get", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "reservation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Reservation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_reservations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "reservation_resource", + "type": "google.cloud.compute_v1.types.Reservation" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_reservations_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.List", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListReservationsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.reservations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_reservations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.resize", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.Resize", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "Resize" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ResizeReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "reservation", + "type": "str" + }, + { + "name": "reservations_resize_request_resource", + "type": "google.cloud.compute_v1.types.ReservationsResizeRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" + }, + "description": "Sample for Resize", + "file": "compute_v1_generated_reservations_resize_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_Resize_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_reservations_resize_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyReservationRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_reservations_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsReservationRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_reservations_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_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_reservations_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ReservationsClient", + "shortName": "ReservationsClient" + }, + "fullName": "google.cloud.compute_v1.ReservationsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Reservations.Update", + "service": { + "fullName": "google.cloud.compute.v1.Reservations", + "shortName": "Reservations" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateReservationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "reservation", + "type": "str" + }, + { + "name": "reservation_resource", + "type": "google.cloud.compute_v1.types.Reservation" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_reservations_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Reservations_Update_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_reservations_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListResourcePoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.resource_policies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_resource_policies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteResourcePolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_resource_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyResourcePolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_resource_policies_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetResourcePolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ResourcePolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_resource_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertResourcePolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource_policy_resource", + "type": "google.cloud.compute_v1.types.ResourcePolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_resource_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListResourcePoliciesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.resource_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_resource_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyResourcePolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_resource_policies_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient", + "shortName": "ResourcePoliciesClient" + }, + "fullName": "google.cloud.compute_v1.ResourcePoliciesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.ResourcePolicies.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.ResourcePolicies", + "shortName": "ResourcePolicies" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsResourcePolicyRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_resource_policies_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ResourcePolicies_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_resource_policies_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Routers.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListRoutersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.routers.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_routers_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_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_routers_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_routers_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_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_routers_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.get_nat_mapping_info", + "method": { + "fullName": "google.cloud.compute.v1.Routers.GetNatMappingInfo", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "GetNatMappingInfo" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNatMappingInfoRoutersRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.routers.pagers.GetNatMappingInfoPager", + "shortName": "get_nat_mapping_info" + }, + "description": "Sample for GetNatMappingInfo", + "file": "compute_v1_generated_routers_get_nat_mapping_info_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_GetNatMappingInfo_sync", + "segments": [ + { + "end": 54, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "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": 55, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_routers_get_nat_mapping_info_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.get_router_status", + "method": { + "fullName": "google.cloud.compute.v1.Routers.GetRouterStatus", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "GetRouterStatus" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRouterStatusRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.RouterStatusResponse", + "shortName": "get_router_status" + }, + "description": "Sample for GetRouterStatus", + "file": "compute_v1_generated_routers_get_router_status_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_GetRouterStatus_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_routers_get_router_status_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Get", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Router", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_routers_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_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_routers_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router_resource", + "type": "google.cloud.compute_v1.types.Router" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_routers_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_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_routers_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Routers.List", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRoutersRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.routers.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_routers_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_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_routers_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "router_resource", + "type": "google.cloud.compute_v1.types.Router" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_routers_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_Patch_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_routers_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.preview", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Preview", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Preview" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PreviewRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "router_resource", + "type": "google.cloud.compute_v1.types.Router" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.RoutersPreviewResponse", + "shortName": "preview" + }, + "description": "Sample for Preview", + "file": "compute_v1_generated_routers_preview_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_Preview_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_routers_preview_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutersClient", + "shortName": "RoutersClient" + }, + "fullName": "google.cloud.compute_v1.RoutersClient.update", + "method": { + "fullName": "google.cloud.compute.v1.Routers.Update", + "service": { + "fullName": "google.cloud.compute.v1.Routers", + "shortName": "Routers" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateRouterRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "router", + "type": "str" + }, + { + "name": "router_resource", + "type": "google.cloud.compute_v1.types.Router" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_routers_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routers_Update_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_routers_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutesClient", + "shortName": "RoutesClient" + }, + "fullName": "google.cloud.compute_v1.RoutesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Routes.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Routes", + "shortName": "Routes" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteRouteRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "route", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_routes_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routes_Delete_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_routes_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutesClient", + "shortName": "RoutesClient" + }, + "fullName": "google.cloud.compute_v1.RoutesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Routes.Get", + "service": { + "fullName": "google.cloud.compute.v1.Routes", + "shortName": "Routes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRouteRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "route", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Route", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_routes_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routes_Get_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_routes_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutesClient", + "shortName": "RoutesClient" + }, + "fullName": "google.cloud.compute_v1.RoutesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Routes.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Routes", + "shortName": "Routes" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertRouteRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "route_resource", + "type": "google.cloud.compute_v1.types.Route" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_routes_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routes_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_routes_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RoutesClient", + "shortName": "RoutesClient" + }, + "fullName": "google.cloud.compute_v1.RoutesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Routes.List", + "service": { + "fullName": "google.cloud.compute.v1.Routes", + "shortName": "Routes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRoutesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.routes.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_routes_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Routes_List_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_routes_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.add_rule", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.AddRule", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "AddRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddRuleSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" + }, + "description": "Sample for AddRule", + "file": "compute_v1_generated_security_policies_add_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_AddRule_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_security_policies_add_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListSecurityPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.security_policies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_security_policies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_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_security_policies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_security_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_Delete_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_security_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.get_rule", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.GetRule", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "GetRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRuleSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicyRule", + "shortName": "get_rule" + }, + "description": "Sample for GetRule", + "file": "compute_v1_generated_security_policies_get_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_GetRule_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_security_policies_get_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_security_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_Get_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_security_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_security_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_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_security_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.list_preconfigured_expression_sets", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSets", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "ListPreconfiguredExpressionSets" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPreconfiguredExpressionSetsSecurityPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPoliciesListPreconfiguredExpressionSetsResponse", + "shortName": "list_preconfigured_expression_sets" + }, + "description": "Sample for ListPreconfiguredExpressionSets", + "file": "compute_v1_generated_security_policies_list_preconfigured_expression_sets_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_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_security_policies_list_preconfigured_expression_sets_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListSecurityPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.security_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_security_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_List_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_security_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.patch_rule", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.PatchRule", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "PatchRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchRuleSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" + }, + "description": "Sample for PatchRule", + "file": "compute_v1_generated_security_policies_patch_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_PatchRule_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_security_policies_patch_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_security_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_Patch_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_security_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.remove_rule", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.RemoveRule", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "RemoveRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveRuleSecurityPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_rule" + }, + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_security_policies_remove_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_RemoveRule_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_security_policies_remove_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient", + "shortName": "SecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SecurityPoliciesClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.SecurityPolicies.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.SecurityPolicies", + "shortName": "SecurityPolicies" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsSecurityPolicyRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_security_policies_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SecurityPolicies_SetLabels_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_security_policies_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListServiceAttachmentsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.service_attachments.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_service_attachments_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.Delete", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteServiceAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "service_attachment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_service_attachments_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyServiceAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_service_attachments_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.Get", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetServiceAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "service_attachment", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.ServiceAttachment", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_service_attachments_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.Insert", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertServiceAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "service_attachment_resource", + "type": "google.cloud.compute_v1.types.ServiceAttachment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_service_attachments_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.List", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListServiceAttachmentsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.service_attachments.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_service_attachments_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.Patch", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchServiceAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "service_attachment", + "type": "str" + }, + { + "name": "service_attachment_resource", + "type": "google.cloud.compute_v1.types.ServiceAttachment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_service_attachments_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_Patch_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_service_attachments_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyServiceAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_service_attachments_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient", + "shortName": "ServiceAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.ServiceAttachmentsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.ServiceAttachments.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.ServiceAttachments", + "shortName": "ServiceAttachments" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsServiceAttachmentRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_service_attachments_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ServiceAttachments_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_service_attachments_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSnapshotRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "snapshot", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_snapshots_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_Delete_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_snapshots_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicySnapshotRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_snapshots_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_GetIamPolicy_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_snapshots_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.Get", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSnapshotRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "snapshot", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Snapshot", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_snapshots_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_Get_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_snapshots_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertSnapshotRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "snapshot_resource", + "type": "google.cloud.compute_v1.types.Snapshot" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_snapshots_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_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_snapshots_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.List", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListSnapshotsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.snapshots.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_snapshots_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_List_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_snapshots_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicySnapshotRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_snapshots_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_SetIamPolicy_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_snapshots_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsSnapshotRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_snapshots_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_SetLabels_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_snapshots_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SnapshotsClient", + "shortName": "SnapshotsClient" + }, + "fullName": "google.cloud.compute_v1.SnapshotsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Snapshots.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Snapshots", + "shortName": "Snapshots" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsSnapshotRequest" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_snapshots_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Snapshots_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_snapshots_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslCertificatesClient", + "shortName": "SslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.SslCertificatesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.SslCertificates.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.SslCertificates", + "shortName": "SslCertificates" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListSslCertificatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.ssl_certificates.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_ssl_certificates_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslCertificates_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_ssl_certificates_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslCertificatesClient", + "shortName": "SslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.SslCertificatesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.SslCertificates.Delete", + "service": { + "fullName": "google.cloud.compute.v1.SslCertificates", + "shortName": "SslCertificates" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_certificate", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_ssl_certificates_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslCertificates_Delete_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_ssl_certificates_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslCertificatesClient", + "shortName": "SslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.SslCertificatesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.SslCertificates.Get", + "service": { + "fullName": "google.cloud.compute.v1.SslCertificates", + "shortName": "SslCertificates" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_certificate", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslCertificate", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_ssl_certificates_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslCertificates_Get_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_ssl_certificates_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslCertificatesClient", + "shortName": "SslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.SslCertificatesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.SslCertificates.Insert", + "service": { + "fullName": "google.cloud.compute.v1.SslCertificates", + "shortName": "SslCertificates" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertSslCertificateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_certificate_resource", + "type": "google.cloud.compute_v1.types.SslCertificate" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_ssl_certificates_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslCertificates_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_ssl_certificates_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslCertificatesClient", + "shortName": "SslCertificatesClient" + }, + "fullName": "google.cloud.compute_v1.SslCertificatesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.SslCertificates.List", + "service": { + "fullName": "google.cloud.compute.v1.SslCertificates", + "shortName": "SslCertificates" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListSslCertificatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.ssl_certificates.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_ssl_certificates_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslCertificates_List_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_ssl_certificates_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListSslPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.ssl_policies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_ssl_policies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_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_ssl_policies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_ssl_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_Delete_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_ssl_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_ssl_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_Get_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_ssl_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_ssl_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_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_ssl_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.list_available_features", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.ListAvailableFeatures", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "ListAvailableFeatures" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAvailableFeaturesSslPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslPoliciesListAvailableFeaturesResponse", + "shortName": "list_available_features" + }, + "description": "Sample for ListAvailableFeatures", + "file": "compute_v1_generated_ssl_policies_list_available_features_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_ListAvailableFeatures_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_ssl_policies_list_available_features_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListSslPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.ssl_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_ssl_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_List_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_ssl_policies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SslPoliciesClient", + "shortName": "SslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.SslPoliciesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.SslPolicies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.SslPolicies", + "shortName": "SslPolicies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchSslPolicyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "ssl_policy", + "type": "str" + }, + { + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_ssl_policies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_SslPolicies_Patch_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_ssl_policies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListSubnetworksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.subnetworks.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_subnetworks_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.Delete", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_subnetworks_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.expand_ip_cidr_range", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.ExpandIpCidrRange", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "ExpandIpCidrRange" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ExpandIpCidrRangeSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork", + "type": "str" + }, + { + "name": "subnetworks_expand_ip_cidr_range_request_resource", + "type": "google.cloud.compute_v1.types.SubnetworksExpandIpCidrRangeRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "expand_ip_cidr_range" + }, + "description": "Sample for ExpandIpCidrRange", + "file": "compute_v1_generated_subnetworks_expand_ip_cidr_range_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_ExpandIpCidrRange_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_subnetworks_expand_ip_cidr_range_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicySubnetworkRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_subnetworks_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.Get", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Subnetwork", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_subnetworks_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.Insert", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork_resource", + "type": "google.cloud.compute_v1.types.Subnetwork" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_subnetworks_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.list_usable", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.ListUsable", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "ListUsable" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListUsableSubnetworksRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.subnetworks.pagers.ListUsablePager", + "shortName": "list_usable" + }, + "description": "Sample for ListUsable", + "file": "compute_v1_generated_subnetworks_list_usable_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_ListUsable_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_subnetworks_list_usable_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.List", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListSubnetworksRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.subnetworks.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_subnetworks_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.Patch", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork", + "type": "str" + }, + { + "name": "subnetwork_resource", + "type": "google.cloud.compute_v1.types.Subnetwork" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_subnetworks_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_Patch_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_subnetworks_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicySubnetworkRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_subnetworks_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.set_private_ip_google_access", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.SetPrivateIpGoogleAccess", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "SetPrivateIpGoogleAccess" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetPrivateIpGoogleAccessSubnetworkRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "subnetwork", + "type": "str" + }, + { + "name": "subnetworks_set_private_ip_google_access_request_resource", + "type": "google.cloud.compute_v1.types.SubnetworksSetPrivateIpGoogleAccessRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_private_ip_google_access" + }, + "description": "Sample for SetPrivateIpGoogleAccess", + "file": "compute_v1_generated_subnetworks_set_private_ip_google_access_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_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_subnetworks_set_private_ip_google_access_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.SubnetworksClient", + "shortName": "SubnetworksClient" + }, + "fullName": "google.cloud.compute_v1.SubnetworksClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.Subnetworks.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.Subnetworks", + "shortName": "Subnetworks" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsSubnetworkRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_subnetworks_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Subnetworks_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_subnetworks_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient", + "shortName": "TargetGrpcProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies", + "shortName": "TargetGrpcProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetGrpcProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_grpc_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_grpc_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetGrpcProxies_Delete_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_target_grpc_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient", + "shortName": "TargetGrpcProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies", + "shortName": "TargetGrpcProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetGrpcProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_grpc_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetGrpcProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_grpc_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetGrpcProxies_Get_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_target_grpc_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient", + "shortName": "TargetGrpcProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies", + "shortName": "TargetGrpcProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetGrpcProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_grpc_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetGrpcProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_grpc_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetGrpcProxies_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_target_grpc_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient", + "shortName": "TargetGrpcProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies", + "shortName": "TargetGrpcProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetGrpcProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_grpc_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_grpc_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetGrpcProxies_List_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_target_grpc_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient", + "shortName": "TargetGrpcProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetGrpcProxiesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.TargetGrpcProxies", + "shortName": "TargetGrpcProxies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchTargetGrpcProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_grpc_proxy", + "type": "str" + }, + { + "name": "target_grpc_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetGrpcProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_target_grpc_proxies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetGrpcProxies_Patch_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_target_grpc_proxies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetHttpProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_http_proxies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_http_proxies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_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_target_http_proxies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_http_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_Delete_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_target_http_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetHttpProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_http_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_Get_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_target_http_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_http_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_http_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_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_target_http_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetHttpProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_http_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_http_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_List_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_target_http_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "target_http_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_target_http_proxies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_Patch_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_target_http_proxies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient", + "shortName": "TargetHttpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpProxiesClient.set_url_map", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies.SetUrlMap", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpProxies", + "shortName": "TargetHttpProxies" + }, + "shortName": "SetUrlMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetUrlMapTargetHttpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_http_proxy", + "type": "str" + }, + { + "name": "url_map_reference_resource", + "type": "google.cloud.compute_v1.types.UrlMapReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_url_map" + }, + "description": "Sample for SetUrlMap", + "file": "compute_v1_generated_target_http_proxies_set_url_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpProxies_SetUrlMap_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_target_http_proxies_set_url_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetHttpsProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_https_proxies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_https_proxies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_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_target_https_proxies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_https_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_Delete_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_target_https_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetHttpsProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_https_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_Get_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_target_https_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_https_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_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_target_https_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetHttpsProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_https_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_https_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_List_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_target_https_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Patch", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_target_https_proxies_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_Patch_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_target_https_proxies_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.set_certificate_map", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetCertificateMap", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "SetCertificateMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetCertificateMapTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "target_https_proxies_set_certificate_map_request_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxiesSetCertificateMapRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_certificate_map" + }, + "description": "Sample for SetCertificateMap", + "file": "compute_v1_generated_target_https_proxies_set_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_SetCertificateMap_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_target_https_proxies_set_certificate_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.set_quic_override", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetQuicOverride", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "SetQuicOverride" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetQuicOverrideTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "target_https_proxies_set_quic_override_request_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxiesSetQuicOverrideRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_quic_override" + }, + "description": "Sample for SetQuicOverride", + "file": "compute_v1_generated_target_https_proxies_set_quic_override_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_SetQuicOverride_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_target_https_proxies_set_quic_override_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.set_ssl_certificates", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslCertificates", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "SetSslCertificates" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSslCertificatesTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "target_https_proxies_set_ssl_certificates_request_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxiesSetSslCertificatesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_ssl_certificates" + }, + "description": "Sample for SetSslCertificates", + "file": "compute_v1_generated_target_https_proxies_set_ssl_certificates_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslCertificates_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_target_https_proxies_set_ssl_certificates_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.set_ssl_policy", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslPolicy", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "SetSslPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSslPolicyTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_https_proxy", + "type": "str" + }, + { + "name": "ssl_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SslPolicyReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_ssl_policy" + }, + "description": "Sample for SetSslPolicy", + "file": "compute_v1_generated_target_https_proxies_set_ssl_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslPolicy_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_target_https_proxies_set_ssl_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient", + "shortName": "TargetHttpsProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetHttpsProxiesClient.set_url_map", + "method": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetUrlMap", + "service": { + "fullName": "google.cloud.compute.v1.TargetHttpsProxies", + "shortName": "TargetHttpsProxies" + }, + "shortName": "SetUrlMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetUrlMapTargetHttpsProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_url_map" + }, + "description": "Sample for SetUrlMap", + "file": "compute_v1_generated_target_https_proxies_set_url_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetHttpsProxies_SetUrlMap_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_target_https_proxies_set_url_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetInstancesClient", + "shortName": "TargetInstancesClient" + }, + "fullName": "google.cloud.compute_v1.TargetInstancesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetInstances.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetInstances", + "shortName": "TargetInstances" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetInstancesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_instances.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_instances_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetInstances_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_target_instances_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetInstancesClient", + "shortName": "TargetInstancesClient" + }, + "fullName": "google.cloud.compute_v1.TargetInstancesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetInstances.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetInstances", + "shortName": "TargetInstances" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "target_instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_instances_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetInstances_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_target_instances_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetInstancesClient", + "shortName": "TargetInstancesClient" + }, + "fullName": "google.cloud.compute_v1.TargetInstancesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetInstances.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetInstances", + "shortName": "TargetInstances" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "target_instance", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetInstance", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_instances_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetInstances_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_target_instances_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetInstancesClient", + "shortName": "TargetInstancesClient" + }, + "fullName": "google.cloud.compute_v1.TargetInstancesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetInstances.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetInstances", + "shortName": "TargetInstances" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "target_instance_resource", + "type": "google.cloud.compute_v1.types.TargetInstance" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_instances_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetInstances_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_target_instances_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetInstancesClient", + "shortName": "TargetInstancesClient" + }, + "fullName": "google.cloud.compute_v1.TargetInstancesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetInstances.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetInstances", + "shortName": "TargetInstances" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetInstancesRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_instances.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_instances_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetInstances_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_target_instances_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.add_health_check", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.AddHealthCheck", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "AddHealthCheck" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddHealthCheckTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "target_pools_add_health_check_request_resource", + "type": "google.cloud.compute_v1.types.TargetPoolsAddHealthCheckRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_health_check" + }, + "description": "Sample for AddHealthCheck", + "file": "compute_v1_generated_target_pools_add_health_check_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_AddHealthCheck_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_target_pools_add_health_check_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.add_instance", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.AddInstance", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "AddInstance" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddInstanceTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "target_pools_add_instance_request_resource", + "type": "google.cloud.compute_v1.types.TargetPoolsAddInstanceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_instance" + }, + "description": "Sample for AddInstance", + "file": "compute_v1_generated_target_pools_add_instance_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_AddInstance_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_target_pools_add_instance_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetPoolsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_pools.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_pools_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_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_target_pools_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_pools_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_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_target_pools_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.get_health", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.GetHealth", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "GetHealth" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetHealthTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "instance_reference_resource", + "type": "google.cloud.compute_v1.types.InstanceReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetPoolInstanceHealth", + "shortName": "get_health" + }, + "description": "Sample for GetHealth", + "file": "compute_v1_generated_target_pools_get_health_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_GetHealth_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_target_pools_get_health_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetPool", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_pools_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_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_target_pools_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool_resource", + "type": "google.cloud.compute_v1.types.TargetPool" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_pools_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_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_target_pools_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetPoolsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_pools.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_pools_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_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_target_pools_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.remove_health_check", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.RemoveHealthCheck", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "RemoveHealthCheck" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveHealthCheckTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "target_pools_remove_health_check_request_resource", + "type": "google.cloud.compute_v1.types.TargetPoolsRemoveHealthCheckRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_health_check" + }, + "description": "Sample for RemoveHealthCheck", + "file": "compute_v1_generated_target_pools_remove_health_check_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_RemoveHealthCheck_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_target_pools_remove_health_check_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.remove_instance", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.RemoveInstance", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "RemoveInstance" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.RemoveInstanceTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "target_pools_remove_instance_request_resource", + "type": "google.cloud.compute_v1.types.TargetPoolsRemoveInstanceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_instance" + }, + "description": "Sample for RemoveInstance", + "file": "compute_v1_generated_target_pools_remove_instance_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_RemoveInstance_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_target_pools_remove_instance_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetPoolsClient", + "shortName": "TargetPoolsClient" + }, + "fullName": "google.cloud.compute_v1.TargetPoolsClient.set_backup", + "method": { + "fullName": "google.cloud.compute.v1.TargetPools.SetBackup", + "service": { + "fullName": "google.cloud.compute.v1.TargetPools", + "shortName": "TargetPools" + }, + "shortName": "SetBackup" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetBackupTargetPoolRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_pool", + "type": "str" + }, + { + "name": "target_reference_resource", + "type": "google.cloud.compute_v1.types.TargetReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_backup" + }, + "description": "Sample for SetBackup", + "file": "compute_v1_generated_target_pools_set_backup_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetPools_SetBackup_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_target_pools_set_backup_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_ssl_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_Delete_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_target_ssl_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetSslProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_ssl_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_Get_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_target_ssl_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetSslProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_ssl_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_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_target_ssl_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetSslProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_ssl_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_ssl_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_List_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_target_ssl_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.set_backend_service", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.SetBackendService", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "SetBackendService" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetBackendServiceTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "target_ssl_proxies_set_backend_service_request_resource", + "type": "google.cloud.compute_v1.types.TargetSslProxiesSetBackendServiceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_backend_service" + }, + "description": "Sample for SetBackendService", + "file": "compute_v1_generated_target_ssl_proxies_set_backend_service_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_SetBackendService_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_target_ssl_proxies_set_backend_service_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.set_certificate_map", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.SetCertificateMap", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "SetCertificateMap" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetCertificateMapTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "target_ssl_proxies_set_certificate_map_request_resource", + "type": "google.cloud.compute_v1.types.TargetSslProxiesSetCertificateMapRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_certificate_map" + }, + "description": "Sample for SetCertificateMap", + "file": "compute_v1_generated_target_ssl_proxies_set_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_SetCertificateMap_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_target_ssl_proxies_set_certificate_map_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.set_proxy_header", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.SetProxyHeader", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "SetProxyHeader" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetProxyHeaderTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "target_ssl_proxies_set_proxy_header_request_resource", + "type": "google.cloud.compute_v1.types.TargetSslProxiesSetProxyHeaderRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_proxy_header" + }, + "description": "Sample for SetProxyHeader", + "file": "compute_v1_generated_target_ssl_proxies_set_proxy_header_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_SetProxyHeader_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_target_ssl_proxies_set_proxy_header_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.set_ssl_certificates", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslCertificates", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "SetSslCertificates" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSslCertificatesTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "target_ssl_proxies_set_ssl_certificates_request_resource", + "type": "google.cloud.compute_v1.types.TargetSslProxiesSetSslCertificatesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_ssl_certificates" + }, + "description": "Sample for SetSslCertificates", + "file": "compute_v1_generated_target_ssl_proxies_set_ssl_certificates_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_SetSslCertificates_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_target_ssl_proxies_set_ssl_certificates_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient", + "shortName": "TargetSslProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetSslProxiesClient.set_ssl_policy", + "method": { + "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslPolicy", + "service": { + "fullName": "google.cloud.compute.v1.TargetSslProxies", + "shortName": "TargetSslProxies" + }, + "shortName": "SetSslPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetSslPolicyTargetSslProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_ssl_proxy", + "type": "str" + }, + { + "name": "ssl_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SslPolicyReference" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_ssl_policy" + }, + "description": "Sample for SetSslPolicy", + "file": "compute_v1_generated_target_ssl_proxies_set_ssl_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetSslProxies_SetSslPolicy_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_target_ssl_proxies_set_ssl_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetTcpProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_tcp_proxies.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_tcp_proxies_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_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_target_tcp_proxies_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_tcp_proxies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_Delete_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_target_tcp_proxies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetTcpProxy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_tcp_proxies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_Get_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_target_tcp_proxies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_tcp_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_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_target_tcp_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetTcpProxiesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_tcp_proxies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_tcp_proxies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_List_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_target_tcp_proxies_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.set_backend_service", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetBackendService", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "SetBackendService" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetBackendServiceTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "target_tcp_proxies_set_backend_service_request_resource", + "type": "google.cloud.compute_v1.types.TargetTcpProxiesSetBackendServiceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_backend_service" + }, + "description": "Sample for SetBackendService", + "file": "compute_v1_generated_target_tcp_proxies_set_backend_service_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_SetBackendService_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_target_tcp_proxies_set_backend_service_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient", + "shortName": "TargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.TargetTcpProxiesClient.set_proxy_header", + "method": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetProxyHeader", + "service": { + "fullName": "google.cloud.compute.v1.TargetTcpProxies", + "shortName": "TargetTcpProxies" + }, + "shortName": "SetProxyHeader" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetProxyHeaderTargetTcpProxyRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "target_tcp_proxy", + "type": "str" + }, + { + "name": "target_tcp_proxies_set_proxy_header_request_resource", + "type": "google.cloud.compute_v1.types.TargetTcpProxiesSetProxyHeaderRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_proxy_header" + }, + "description": "Sample for SetProxyHeader", + "file": "compute_v1_generated_target_tcp_proxies_set_proxy_header_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetTcpProxies_SetProxyHeader_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_target_tcp_proxies_set_proxy_header_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListTargetVpnGatewaysRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_vpn_gateways.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_target_vpn_gateways_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.Delete", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteTargetVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_target_vpn_gateways_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.get", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.Get", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetTargetVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TargetVpnGateway", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_target_vpn_gateways_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.Insert", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertTargetVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "target_vpn_gateway_resource", + "type": "google.cloud.compute_v1.types.TargetVpnGateway" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_target_vpn_gateways_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.list", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.List", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListTargetVpnGatewaysRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.target_vpn_gateways.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_target_vpn_gateways_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient", + "shortName": "TargetVpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.TargetVpnGatewaysClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.TargetVpnGateways", + "shortName": "TargetVpnGateways" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsTargetVpnGatewayRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_target_vpn_gateways_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_TargetVpnGateways_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_target_vpn_gateways_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListUrlMapsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.url_maps.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_url_maps_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_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_url_maps_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Delete", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_url_maps_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_Delete_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_url_maps_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Get", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.UrlMap", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_url_maps_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_Get_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_url_maps_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Insert", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "url_map_resource", + "type": "google.cloud.compute_v1.types.UrlMap" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_url_maps_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_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_url_maps_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.invalidate_cache", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.InvalidateCache", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "InvalidateCache" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InvalidateCacheUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "cache_invalidation_rule_resource", + "type": "google.cloud.compute_v1.types.CacheInvalidationRule" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "invalidate_cache" + }, + "description": "Sample for InvalidateCache", + "file": "compute_v1_generated_url_maps_invalidate_cache_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_InvalidateCache_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_url_maps_invalidate_cache_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.List", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListUrlMapsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.url_maps.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_url_maps_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_List_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_url_maps_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Patch", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Patch" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.PatchUrlMapRequest" + }, + { + "name": "project", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" + }, + "description": "Sample for Patch", + "file": "compute_v1_generated_url_maps_patch_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_Patch_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_url_maps_patch_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.update", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Update", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Update" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.UpdateUrlMapRequest" + }, + { + "name": "project", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" + }, + "description": "Sample for Update", + "file": "compute_v1_generated_url_maps_update_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_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_url_maps_update_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.UrlMapsClient", + "shortName": "UrlMapsClient" + }, + "fullName": "google.cloud.compute_v1.UrlMapsClient.validate", + "method": { + "fullName": "google.cloud.compute.v1.UrlMaps.Validate", + "service": { + "fullName": "google.cloud.compute.v1.UrlMaps", + "shortName": "UrlMaps" + }, + "shortName": "Validate" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ValidateUrlMapRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "url_maps_validate_request_resource", + "type": "google.cloud.compute_v1.types.UrlMapsValidateRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.UrlMapsValidateResponse", + "shortName": "validate" + }, + "description": "Sample for Validate", + "file": "compute_v1_generated_url_maps_validate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_UrlMaps_Validate_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_url_maps_validate_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListVpnGatewaysRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.vpn_gateways.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_vpn_gateways_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_gateways_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.Delete", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_vpn_gateways_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_gateways_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.get_status", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.GetStatus", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "GetStatus" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetStatusVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.VpnGatewaysGetStatusResponse", + "shortName": "get_status" + }, + "description": "Sample for GetStatus", + "file": "compute_v1_generated_vpn_gateways_get_status_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_GetStatus_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_gateways_get_status_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.get", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.Get", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_gateway", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.VpnGateway", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_vpn_gateways_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_gateways_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.Insert", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertVpnGatewayRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_gateway_resource", + "type": "google.cloud.compute_v1.types.VpnGateway" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_vpn_gateways_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_vpn_gateways_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.list", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.List", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListVpnGatewaysRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.vpn_gateways.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_vpn_gateways_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_gateways_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsVpnGatewayRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_vpn_gateways_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_gateways_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnGatewaysClient", + "shortName": "VpnGatewaysClient" + }, + "fullName": "google.cloud.compute_v1.VpnGatewaysClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.VpnGateways.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.VpnGateways", + "shortName": "VpnGateways" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsVpnGatewayRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnGateways_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_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, str]" + } + ], + "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, str]" + } + ], + "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, str]" + } + ], + "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, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.Insert", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "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" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_vpn_tunnels_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_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_vpn_tunnels_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.List", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListVpnTunnelsRequest" + }, + { + "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, str]" + } + ], + "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, str]" + } + ], + "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.ZoneOperationsClient", + "shortName": "ZoneOperationsClient" + }, + "fullName": "google.cloud.compute_v1.ZoneOperationsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.ZoneOperations.Delete", + "service": { + "fullName": "google.cloud.compute.v1.ZoneOperations", + "shortName": "ZoneOperations" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteZoneOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.DeleteZoneOperationResponse", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_zone_operations_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ZoneOperations_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_zone_operations_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ZoneOperationsClient", + "shortName": "ZoneOperationsClient" + }, + "fullName": "google.cloud.compute_v1.ZoneOperationsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.ZoneOperations.Get", + "service": { + "fullName": "google.cloud.compute.v1.ZoneOperations", + "shortName": "ZoneOperations" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetZoneOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_zone_operations_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ZoneOperations_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_zone_operations_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ZoneOperationsClient", + "shortName": "ZoneOperationsClient" + }, + "fullName": "google.cloud.compute_v1.ZoneOperationsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.ZoneOperations.List", + "service": { + "fullName": "google.cloud.compute.v1.ZoneOperations", + "shortName": "ZoneOperations" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListZoneOperationsRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.zone_operations.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_zone_operations_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ZoneOperations_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_zone_operations_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ZoneOperationsClient", + "shortName": "ZoneOperationsClient" + }, + "fullName": "google.cloud.compute_v1.ZoneOperationsClient.wait", + "method": { + "fullName": "google.cloud.compute.v1.ZoneOperations.Wait", + "service": { + "fullName": "google.cloud.compute.v1.ZoneOperations", + "shortName": "ZoneOperations" + }, + "shortName": "Wait" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.WaitZoneOperationRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "operation", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "wait" + }, + "description": "Sample for Wait", + "file": "compute_v1_generated_zone_operations_wait_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_ZoneOperations_Wait_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_zone_operations_wait_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ZonesClient", + "shortName": "ZonesClient" + }, + "fullName": "google.cloud.compute_v1.ZonesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.Zones.Get", + "service": { + "fullName": "google.cloud.compute.v1.Zones", + "shortName": "Zones" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetZoneRequest" + }, + { + "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, str]" + } + ], + "resultType": "google.cloud.compute_v1.types.Zone", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_zones_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Zones_Get_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_zones_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.ZonesClient", + "shortName": "ZonesClient" + }, + "fullName": "google.cloud.compute_v1.ZonesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Zones.List", + "service": { + "fullName": "google.cloud.compute.v1.Zones", + "shortName": "Zones" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListZonesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.compute_v1.services.zones.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_zones_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Zones_List_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_zones_list_sync.py" + } + ] +} From a4d806983c327c3aaeac2350a2bcca92a98860cc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 6 Jul 2023 12:13:30 -0400 Subject: [PATCH 2/2] chore(main): release 1.12.1 (#419) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ google/cloud/compute/gapic_version.py | 2 +- google/cloud/compute_v1/gapic_version.py | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a09efe7f8..87f5de027 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.0" + ".": "1.12.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 361ea2984..ac7a4d1cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.12.1](https://github.com/googleapis/python-compute/compare/v1.12.0...v1.12.1) (2023-07-06) + + +### Documentation + +* Add generated code snippets ([#418](https://github.com/googleapis/python-compute/issues/418)) ([b5c4592](https://github.com/googleapis/python-compute/commit/b5c4592f7f99f3732e1cea75ea80e985371bf60e)) + ## [1.12.0](https://github.com/googleapis/python-compute/compare/v1.11.0...v1.12.0) (2023-07-04) diff --git a/google/cloud/compute/gapic_version.py b/google/cloud/compute/gapic_version.py index 7138f2147..0d065af34 100644 --- a/google/cloud/compute/gapic_version.py +++ b/google/cloud/compute/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version} diff --git a/google/cloud/compute_v1/gapic_version.py b/google/cloud/compute_v1/gapic_version.py index 7138f2147..0d065af34 100644 --- a/google/cloud/compute_v1/gapic_version.py +++ b/google/cloud/compute_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "1.12.0" # {x-release-please-version} +__version__ = "1.12.1" # {x-release-please-version}