NAME
Google::Cloud::Compute::V1beta::InstancesClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Compute::V1beta::InstancesClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Compute::V1beta::InstancesClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Compute::V1beta::InstancesClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Compute::V1beta::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:
googleapis/google/cloud/compute/v1beta/compute.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Compute::V1beta::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
my $response = $client->add_access_config( access_config_resource => $access_config_resource, instance => $instance, network_interface => $network_interface, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
AddAccessConfigongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::AddAccessConfigInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
access_config_resource- Google::Cloud::Compute::V1beta::Compute::AccessConfiginstance-stringnetwork_interface-stringproject-stringrequest_id-stringzone-string
add_network_interface
my $response = $client->add_network_interface( instance => $instance, network_interface_resource => $network_interface_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
AddNetworkInterfaceongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::AddNetworkInterfaceInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringnetwork_interface_resource- Google::Cloud::Compute::V1beta::Compute::NetworkInterfaceproject-stringrequest_id-stringzone-string
add_resource_policies
my $response = $client->add_resource_policies( instance => $instance, instances_add_resource_policies_request_resource => $instances_add_resource_policies_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
AddResourcePoliciesongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::AddResourcePoliciesInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_add_resource_policies_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesAddResourcePoliciesRequestproject-stringrequest_id-stringzone-string
aggregated_list
my $response = $client->aggregated_list( filter => $filter, include_all_scopes => $include_all_scopes, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, return_partial_success => $return_partial_success, service_project_number => $service_project_number, );Calls the RPC method
AggregatedListongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::AggregatedListInstancesRequest
Returns: Google::Cloud::Compute::V1beta::Compute::InstanceAggregatedList
Parameters:
filter-stringinclude_all_scopes-boolmax_results-uint32order_by-stringpage_token-stringproject-stringreturn_partial_success-boolservice_project_number-int64
attach_disk
my $response = $client->attach_disk( attached_disk_resource => $attached_disk_resource, force_attach => $force_attach, instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
AttachDiskongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::AttachDiskInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
attached_disk_resource- Google::Cloud::Compute::V1beta::Compute::AttachedDiskforce_attach-boolinstance-stringproject-stringrequest_id-stringzone-string
bulk_insert
my $response = $client->bulk_insert( bulk_insert_instance_resource_resource => $bulk_insert_instance_resource_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
BulkInsertongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::BulkInsertInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
bulk_insert_instance_resource_resource- Google::Cloud::Compute::V1beta::Compute::BulkInsertInstanceResourceproject-stringrequest_id-stringzone-string
delete
my $response = $client->delete( instance => $instance, no_graceful_shutdown => $no_graceful_shutdown, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Deleteongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::DeleteInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringno_graceful_shutdown-boolproject-stringrequest_id-stringzone-string
delete_access_config
my $response = $client->delete_access_config( access_config => $access_config, instance => $instance, network_interface => $network_interface, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
DeleteAccessConfigongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::DeleteAccessConfigInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
access_config-stringinstance-stringnetwork_interface-stringproject-stringrequest_id-stringzone-string
delete_network_interface
my $response = $client->delete_network_interface( instance => $instance, network_interface_name => $network_interface_name, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
DeleteNetworkInterfaceongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::DeleteNetworkInterfaceInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringnetwork_interface_name-stringproject-stringrequest_id-stringzone-string
detach_disk
my $response = $client->detach_disk( device_name => $device_name, instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
DetachDiskongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::DetachDiskInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
device_name-stringinstance-stringproject-stringrequest_id-stringzone-string
get
my $response = $client->get( instance => $instance, project => $project, view => $view, zone => $zone, );Calls the RPC method
Getongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Instance
Parameters:
instance-stringproject-stringview-stringzone-string
get_effective_firewalls
my $response = $client->get_effective_firewalls( instance => $instance, network_interface => $network_interface, project => $project, zone => $zone, );Calls the RPC method
GetEffectiveFirewallsongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetEffectiveFirewallsInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::InstancesGetEffectiveFirewallsResponse
Parameters:
instance-stringnetwork_interface-stringproject-stringzone-string
get_guest_attributes
my $response = $client->get_guest_attributes( instance => $instance, project => $project, query_path => $query_path, variable_key => $variable_key, zone => $zone, );Calls the RPC method
GetGuestAttributesongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetGuestAttributesInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::GuestAttributes
Parameters:
instance-stringproject-stringquery_path-stringvariable_key-stringzone-string
get_iam_policy
my $response = $client->get_iam_policy( options_requested_policy_version => $options_requested_policy_version, project => $project, resource => $resource, zone => $zone, );Calls the RPC method
GetIamPolicyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetIamPolicyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Policy
Parameters:
options_requested_policy_version-int32project-stringresource-stringzone-string
get_partner_metadata
my $response = $client->get_partner_metadata( instance => $instance, namespaces => $namespaces, project => $project, zone => $zone, );Calls the RPC method
GetPartnerMetadataongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetPartnerMetadataInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::PartnerMetadata
Parameters:
instance-stringnamespaces-stringproject-stringzone-string
get_screenshot
my $response = $client->get_screenshot( instance => $instance, project => $project, zone => $zone, );Calls the RPC method
GetScreenshotongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetScreenshotInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Screenshot
Parameters:
instance-stringproject-stringzone-string
get_serial_port_output
my $response = $client->get_serial_port_output( instance => $instance, port => $port, project => $project, start => $start, zone => $zone, );Calls the RPC method
GetSerialPortOutputongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetSerialPortOutputInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::SerialPortOutput
Parameters:
instance-stringport-int32project-stringstart-int64zone-string
get_shielded_instance_identity
my $response = $client->get_shielded_instance_identity( instance => $instance, project => $project, zone => $zone, );Calls the RPC method
GetShieldedInstanceIdentityongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetShieldedInstanceIdentityInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::ShieldedInstanceIdentity
Parameters:
instance-stringproject-stringzone-string
get_shielded_vm_identity
my $response = $client->get_shielded_vm_identity( instance => $instance, project => $project, zone => $zone, );Calls the RPC method
GetShieldedVmIdentityongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetShieldedVmIdentityInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::ShieldedVmIdentity
Parameters:
instance-stringproject-stringzone-string
get_vm_extension_state
my $response = $client->get_vm_extension_state( extension_name => $extension_name, instance => $instance, project => $project, zone => $zone, );Calls the RPC method
GetVmExtensionStateongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::GetVmExtensionStateInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::VmExtensionState
Parameters:
extension_name-stringinstance-stringproject-stringzone-string
insert
my $response = $client->insert( instance_resource => $instance_resource, project => $project, request_id => $request_id, source_instance_template => $source_instance_template, source_machine_image => $source_machine_image, zone => $zone, );Calls the RPC method
Insertongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::InsertInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance_resource- Google::Cloud::Compute::V1beta::Compute::Instanceproject-stringrequest_id-stringsource_instance_template-stringsource_machine_image-stringzone-string
list
my $response = $client->list( filter => $filter, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, return_partial_success => $return_partial_success, view => $view, zone => $zone, );Calls the RPC method
Listongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ListInstancesRequest
Returns: Google::Cloud::Compute::V1beta::Compute::InstanceList
Parameters:
filter-stringmax_results-uint32order_by-stringpage_token-stringproject-stringreturn_partial_success-boolview-stringzone-string
list_referrers
my $response = $client->list_referrers( filter => $filter, instance => $instance, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, return_partial_success => $return_partial_success, zone => $zone, );Calls the RPC method
ListReferrersongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ListReferrersInstancesRequest
Returns: Google::Cloud::Compute::V1beta::Compute::InstanceListReferrers
Parameters:
filter-stringinstance-stringmax_results-uint32order_by-stringpage_token-stringproject-stringreturn_partial_success-boolzone-string
list_vm_extension_states
my $response = $client->list_vm_extension_states( filter => $filter, instance => $instance, max_results => $max_results, order_by => $order_by, page_token => $page_token, project => $project, return_partial_success => $return_partial_success, zone => $zone, );Calls the RPC method
ListVmExtensionStatesongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ListVmExtensionStatesInstancesRequest
Returns: Google::Cloud::Compute::V1beta::Compute::ListVmExtensionStatesResponse
Parameters:
filter-stringinstance-stringmax_results-uint32order_by-stringpage_token-stringproject-stringreturn_partial_success-boolzone-string
patch_partner_metadata
my $response = $client->patch_partner_metadata( instance => $instance, partner_metadata_resource => $partner_metadata_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
PatchPartnerMetadataongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::PatchPartnerMetadataInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringpartner_metadata_resource- Google::Cloud::Compute::V1beta::Compute::PartnerMetadataproject-stringrequest_id-stringzone-string
perform_maintenance
my $response = $client->perform_maintenance( instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
PerformMaintenanceongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::PerformMaintenanceInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringzone-string
remove_resource_policies
my $response = $client->remove_resource_policies( instance => $instance, instances_remove_resource_policies_request_resource => $instances_remove_resource_policies_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
RemoveResourcePoliciesongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::RemoveResourcePoliciesInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_remove_resource_policies_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesRemoveResourcePoliciesRequestproject-stringrequest_id-stringzone-string
report_host_as_faulty
my $response = $client->report_host_as_faulty( instance => $instance, instances_report_host_as_faulty_request_resource => $instances_report_host_as_faulty_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
ReportHostAsFaultyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ReportHostAsFaultyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_report_host_as_faulty_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesReportHostAsFaultyRequestproject-stringrequest_id-stringzone-string
reset
my $response = $client->reset( instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Resetongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ResetInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringzone-string
resume
my $response = $client->resume( instance => $instance, instances_resume_request_resource => $instances_resume_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Resumeongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::ResumeInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_resume_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesResumeRequestproject-stringrequest_id-stringzone-string
send_diagnostic_interrupt
my $response = $client->send_diagnostic_interrupt( instance => $instance, project => $project, zone => $zone, );Calls the RPC method
SendDiagnosticInterruptongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SendDiagnosticInterruptInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::SendDiagnosticInterruptInstanceResponse
Parameters:
instance-stringproject-stringzone-string
set_deletion_protection
my $response = $client->set_deletion_protection( deletion_protection => $deletion_protection, project => $project, request_id => $request_id, resource => $resource, zone => $zone, );Calls the RPC method
SetDeletionProtectionongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetDeletionProtectionInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
deletion_protection-boolproject-stringrequest_id-stringresource-stringzone-string
set_disk_auto_delete
my $response = $client->set_disk_auto_delete( auto_delete => $auto_delete, device_name => $device_name, instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetDiskAutoDeleteongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetDiskAutoDeleteInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
auto_delete-booldevice_name-stringinstance-stringproject-stringrequest_id-stringzone-string
set_iam_policy
my $response = $client->set_iam_policy( project => $project, resource => $resource, zone => $zone, zone_set_policy_request_resource => $zone_set_policy_request_resource, );Calls the RPC method
SetIamPolicyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetIamPolicyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Policy
Parameters:
project-stringresource-stringzone-stringzone_set_policy_request_resource- Google::Cloud::Compute::V1beta::Compute::ZoneSetPolicyRequest
set_labels
my $response = $client->set_labels( instance => $instance, instances_set_labels_request_resource => $instances_set_labels_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetLabelsongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetLabelsInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_labels_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetLabelsRequestproject-stringrequest_id-stringzone-string
set_machine_resources
my $response = $client->set_machine_resources( instance => $instance, instances_set_machine_resources_request_resource => $instances_set_machine_resources_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetMachineResourcesongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetMachineResourcesInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_machine_resources_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetMachineResourcesRequestproject-stringrequest_id-stringzone-string
set_machine_type
my $response = $client->set_machine_type( instance => $instance, instances_set_machine_type_request_resource => $instances_set_machine_type_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetMachineTypeongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetMachineTypeInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_machine_type_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetMachineTypeRequestproject-stringrequest_id-stringzone-string
set_metadata
my $response = $client->set_metadata( instance => $instance, metadata_resource => $metadata_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetMetadataongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetMetadataInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringmetadata_resource- Google::Cloud::Compute::V1beta::Compute::Metadataproject-stringrequest_id-stringzone-string
set_min_cpu_platform
my $response = $client->set_min_cpu_platform( instance => $instance, instances_set_min_cpu_platform_request_resource => $instances_set_min_cpu_platform_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetMinCpuPlatformongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetMinCpuPlatformInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_min_cpu_platform_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetMinCpuPlatformRequestproject-stringrequest_id-stringzone-string
set_name
my $response = $client->set_name( instance => $instance, instances_set_name_request_resource => $instances_set_name_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetNameongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetNameInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_name_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetNameRequestproject-stringrequest_id-stringzone-string
set_scheduling
my $response = $client->set_scheduling( instance => $instance, project => $project, request_id => $request_id, scheduling_resource => $scheduling_resource, zone => $zone, );Calls the RPC method
SetSchedulingongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetSchedulingInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringscheduling_resource- Google::Cloud::Compute::V1beta::Compute::Schedulingzone-string
set_security_policy
my $response = $client->set_security_policy( instance => $instance, instances_set_security_policy_request_resource => $instances_set_security_policy_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetSecurityPolicyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetSecurityPolicyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_security_policy_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetSecurityPolicyRequestproject-stringrequest_id-stringzone-string
set_service_account
my $response = $client->set_service_account( instance => $instance, instances_set_service_account_request_resource => $instances_set_service_account_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
SetServiceAccountongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetServiceAccountInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_set_service_account_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesSetServiceAccountRequestproject-stringrequest_id-stringzone-string
set_shielded_instance_integrity_policy
my $response = $client->set_shielded_instance_integrity_policy( instance => $instance, project => $project, request_id => $request_id, shielded_instance_integrity_policy_resource => $shielded_instance_integrity_policy_resource, zone => $zone, );Calls the RPC method
SetShieldedInstanceIntegrityPolicyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetShieldedInstanceIntegrityPolicyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringshielded_instance_integrity_policy_resource- Google::Cloud::Compute::V1beta::Compute::ShieldedInstanceIntegrityPolicyzone-string
set_shielded_vm_integrity_policy
my $response = $client->set_shielded_vm_integrity_policy( instance => $instance, project => $project, request_id => $request_id, shielded_vm_integrity_policy_resource => $shielded_vm_integrity_policy_resource, zone => $zone, );Calls the RPC method
SetShieldedVmIntegrityPolicyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetShieldedVmIntegrityPolicyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringshielded_vm_integrity_policy_resource- Google::Cloud::Compute::V1beta::Compute::ShieldedVmIntegrityPolicyzone-string
set_tags
my $response = $client->set_tags( instance => $instance, project => $project, request_id => $request_id, tags_resource => $tags_resource, zone => $zone, );Calls the RPC method
SetTagsongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SetTagsInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringtags_resource- Google::Cloud::Compute::V1beta::Compute::Tagszone-string
simulate_maintenance_event
my $response = $client->simulate_maintenance_event( instance => $instance, project => $project, request_id => $request_id, with_extended_notifications => $with_extended_notifications, zone => $zone, );Calls the RPC method
SimulateMaintenanceEventongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SimulateMaintenanceEventInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringwith_extended_notifications-boolzone-string
start
my $response = $client->start( instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Startongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::StartInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringzone-string
start_with_encryption_key
my $response = $client->start_with_encryption_key( instance => $instance, instances_start_with_encryption_key_request_resource => $instances_start_with_encryption_key_request_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
StartWithEncryptionKeyongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::StartWithEncryptionKeyInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringinstances_start_with_encryption_key_request_resource- Google::Cloud::Compute::V1beta::Compute::InstancesStartWithEncryptionKeyRequestproject-stringrequest_id-stringzone-string
stop
my $response = $client->stop( discard_local_ssd => $discard_local_ssd, instance => $instance, no_graceful_shutdown => $no_graceful_shutdown, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Stopongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::StopInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
discard_local_ssd-boolinstance-stringno_graceful_shutdown-boolproject-stringrequest_id-stringzone-string
suspend
my $response = $client->suspend( discard_local_ssd => $discard_local_ssd, instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Suspendongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::SuspendInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
discard_local_ssd-boolinstance-stringproject-stringrequest_id-stringzone-string
test_iam_permissions
my $response = $client->test_iam_permissions( project => $project, resource => $resource, test_permissions_request_resource => $test_permissions_request_resource, zone => $zone, );Calls the RPC method
TestIamPermissionsongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::TestIamPermissionsInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::TestPermissionsResponse
Parameters:
project-stringresource-stringtest_permissions_request_resource- Google::Cloud::Compute::V1beta::Compute::TestPermissionsRequestzone-string
update
my $response = $client->update( discard_local_ssd => $discard_local_ssd, instance => $instance, instance_resource => $instance_resource, minimal_action => $minimal_action, most_disruptive_allowed_action => $most_disruptive_allowed_action, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
Updateongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
discard_local_ssd-boolinstance-stringinstance_resource- Google::Cloud::Compute::V1beta::Compute::Instanceminimal_action-stringmost_disruptive_allowed_action-stringproject-stringrequest_id-stringzone-string
update_access_config
my $response = $client->update_access_config( access_config_resource => $access_config_resource, instance => $instance, network_interface => $network_interface, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
UpdateAccessConfigongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateAccessConfigInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
access_config_resource- Google::Cloud::Compute::V1beta::Compute::AccessConfiginstance-stringnetwork_interface-stringproject-stringrequest_id-stringzone-string
update_display_device
my $response = $client->update_display_device( display_device_resource => $display_device_resource, instance => $instance, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
UpdateDisplayDeviceongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateDisplayDeviceInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
display_device_resource- Google::Cloud::Compute::V1beta::Compute::DisplayDeviceinstance-stringproject-stringrequest_id-stringzone-string
update_network_interface
my $response = $client->update_network_interface( instance => $instance, network_interface => $network_interface, network_interface_resource => $network_interface_resource, project => $project, request_id => $request_id, zone => $zone, );Calls the RPC method
UpdateNetworkInterfaceongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateNetworkInterfaceInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringnetwork_interface-stringnetwork_interface_resource- Google::Cloud::Compute::V1beta::Compute::NetworkInterfaceproject-stringrequest_id-stringzone-string
update_shielded_instance_config
my $response = $client->update_shielded_instance_config( instance => $instance, project => $project, request_id => $request_id, shielded_instance_config_resource => $shielded_instance_config_resource, zone => $zone, );Calls the RPC method
UpdateShieldedInstanceConfigongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateShieldedInstanceConfigInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringshielded_instance_config_resource- Google::Cloud::Compute::V1beta::Compute::ShieldedInstanceConfigzone-string
update_shielded_vm_config
my $response = $client->update_shielded_vm_config( instance => $instance, project => $project, request_id => $request_id, shielded_vm_config_resource => $shielded_vm_config_resource, zone => $zone, );Calls the RPC method
UpdateShieldedVmConfigongoogle.cloud.compute.v1beta.Instances.Request: Google::Cloud::Compute::V1beta::Compute::UpdateShieldedVmConfigInstanceRequest
Returns: Google::Cloud::Compute::V1beta::Compute::Operation
Parameters:
instance-stringproject-stringrequest_id-stringshielded_vm_config_resource- Google::Cloud::Compute::V1beta::Compute::ShieldedVmConfigzone-string
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.