NAME
Google::Cloud::Compute::V1::InstancesClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Compute::V1::InstancesClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Compute::V1::InstancesClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Compute::V1::InstancesClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Compute::V1::InstancesClient is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
google/cloud/compute/v1/compute.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Compute::V1::InstancesClient->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
add_access_config
Calls the RPC method
AddAccessConfigon the service. Takes a hash of parameters representing the request.add_network_interface
Calls the RPC method
AddNetworkInterfaceon the service. Takes a hash of parameters representing the request.add_resource_policies
Calls the RPC method
AddResourcePolicieson the service. Takes a hash of parameters representing the request.aggregated_list
Calls the RPC method
AggregatedListon the service. Takes a hash of parameters representing the request.attach_disk
Calls the RPC method
AttachDiskon the service. Takes a hash of parameters representing the request.bulk_insert
Calls the RPC method
BulkInserton the service. Takes a hash of parameters representing the request.delete
Calls the RPC method
Deleteon the service. Takes a hash of parameters representing the request.delete_access_config
Calls the RPC method
DeleteAccessConfigon the service. Takes a hash of parameters representing the request.delete_network_interface
Calls the RPC method
DeleteNetworkInterfaceon the service. Takes a hash of parameters representing the request.detach_disk
Calls the RPC method
DetachDiskon the service. Takes a hash of parameters representing the request.get
Calls the RPC method
Geton the service. Takes a hash of parameters representing the request.get_effective_firewalls
Calls the RPC method
GetEffectiveFirewallson the service. Takes a hash of parameters representing the request.get_guest_attributes
Calls the RPC method
GetGuestAttributeson the service. Takes a hash of parameters representing the request.get_iam_policy
Calls the RPC method
GetIamPolicyon the service. Takes a hash of parameters representing the request.get_screenshot
Calls the RPC method
GetScreenshoton the service. Takes a hash of parameters representing the request.get_serial_port_output
Calls the RPC method
GetSerialPortOutputon the service. Takes a hash of parameters representing the request.get_shielded_instance_identity
Calls the RPC method
GetShieldedInstanceIdentityon the service. Takes a hash of parameters representing the request.insert
Calls the RPC method
Inserton the service. Takes a hash of parameters representing the request.list
Calls the RPC method
Liston the service. Takes a hash of parameters representing the request.list_referrers
Calls the RPC method
ListReferrerson the service. Takes a hash of parameters representing the request.perform_maintenance
Calls the RPC method
PerformMaintenanceon the service. Takes a hash of parameters representing the request.remove_resource_policies
Calls the RPC method
RemoveResourcePolicieson the service. Takes a hash of parameters representing the request.report_host_as_faulty
Calls the RPC method
ReportHostAsFaultyon the service. Takes a hash of parameters representing the request.reset
Calls the RPC method
Reseton the service. Takes a hash of parameters representing the request.resume
Calls the RPC method
Resumeon the service. Takes a hash of parameters representing the request.send_diagnostic_interrupt
Calls the RPC method
SendDiagnosticInterrupton the service. Takes a hash of parameters representing the request.set_deletion_protection
Calls the RPC method
SetDeletionProtectionon the service. Takes a hash of parameters representing the request.set_disk_auto_delete
Calls the RPC method
SetDiskAutoDeleteon the service. Takes a hash of parameters representing the request.set_iam_policy
Calls the RPC method
SetIamPolicyon the service. Takes a hash of parameters representing the request.set_labels
Calls the RPC method
SetLabelson the service. Takes a hash of parameters representing the request.set_machine_resources
Calls the RPC method
SetMachineResourceson the service. Takes a hash of parameters representing the request.set_machine_type
Calls the RPC method
SetMachineTypeon the service. Takes a hash of parameters representing the request.set_metadata
Calls the RPC method
SetMetadataon the service. Takes a hash of parameters representing the request.set_min_cpu_platform
Calls the RPC method
SetMinCpuPlatformon the service. Takes a hash of parameters representing the request.set_name
Calls the RPC method
SetNameon the service. Takes a hash of parameters representing the request.set_scheduling
Calls the RPC method
SetSchedulingon the service. Takes a hash of parameters representing the request.set_security_policy
Calls the RPC method
SetSecurityPolicyon the service. Takes a hash of parameters representing the request.set_service_account
Calls the RPC method
SetServiceAccounton the service. Takes a hash of parameters representing the request.set_shielded_instance_integrity_policy
Calls the RPC method
SetShieldedInstanceIntegrityPolicyon the service. Takes a hash of parameters representing the request.set_tags
Calls the RPC method
SetTagson the service. Takes a hash of parameters representing the request.simulate_maintenance_event
Calls the RPC method
SimulateMaintenanceEventon the service. Takes a hash of parameters representing the request.start
Calls the RPC method
Starton the service. Takes a hash of parameters representing the request.start_with_encryption_key
Calls the RPC method
StartWithEncryptionKeyon the service. Takes a hash of parameters representing the request.stop
Calls the RPC method
Stopon the service. Takes a hash of parameters representing the request.suspend
Calls the RPC method
Suspendon the service. Takes a hash of parameters representing the request.test_iam_permissions
Calls the RPC method
TestIamPermissionson the service. Takes a hash of parameters representing the request.update
Calls the RPC method
Updateon the service. Takes a hash of parameters representing the request.update_access_config
Calls the RPC method
UpdateAccessConfigon the service. Takes a hash of parameters representing the request.update_display_device
Calls the RPC method
UpdateDisplayDeviceon the service. Takes a hash of parameters representing the request.update_network_interface
Calls the RPC method
UpdateNetworkInterfaceon the service. Takes a hash of parameters representing the request.update_shielded_instance_config
Calls the RPC method
UpdateShieldedInstanceConfigon the service. Takes a hash of parameters representing the request.
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.