NAME
Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient 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/spanner/admin/omni/v1/spanner_omni_admin.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Spanner::Admin::Omni::V1::OmniAdminClient->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:
create_location
my $response = $client->create_location( location_id => $location_id, location => $location, );Calls the RPC method
CreateLocationongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::CreateLocationRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Location
Parameters:
location_id-stringlocation- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Location
get_location
my $response = $client->get_location( name => $name, );Calls the RPC method
GetLocationongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetLocationRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Location
Parameters:
name-string
list_locations
my $response = $client->list_locations( page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListLocationsongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListLocationsRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListLocationsResponse
Parameters:
page_size-int32page_token-string
delete_location
my $response = $client->delete_location( name => $name, );Calls the RPC method
DeleteLocationongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::DeleteLocationRequest
Returns: Google::Protobuf::Empty::Empty
Parameters:
name-string
create_location_distance
my $response = $client->create_location_distance( parent => $parent, other_location_id => $other_location_id, location_distance => $location_distance, );Calls the RPC method
CreateLocationDistanceongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::CreateLocationDistanceRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::LocationDistance
Parameters:
parent-stringother_location_id-stringlocation_distance- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::LocationDistance
get_location_distance
my $response = $client->get_location_distance( name => $name, );Calls the RPC method
GetLocationDistanceongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetLocationDistanceRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::LocationDistance
Parameters:
name-string
list_location_distances
my $response = $client->list_location_distances( parent => $parent, page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListLocationDistancesongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListLocationDistancesRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListLocationDistancesResponse
Parameters:
parent-stringpage_size-int32page_token-string
update_location_distance
my $response = $client->update_location_distance( location_distance => $location_distance, update_mask => $update_mask, );Calls the RPC method
UpdateLocationDistanceongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::UpdateLocationDistanceRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::LocationDistance
Parameters:
location_distance- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::LocationDistanceupdate_mask- Google::Protobuf::FieldMask::FieldMask
delete_location_distance
my $response = $client->delete_location_distance( name => $name, );Calls the RPC method
DeleteLocationDistanceongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::DeleteLocationDistanceRequest
Returns: Google::Protobuf::Empty::Empty
Parameters:
name-string
get_zone
my $response = $client->get_zone( name => $name, );Calls the RPC method
GetZoneongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetZoneRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Zone
Parameters:
name-string
list_zones
my $response = $client->list_zones( page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListZonesongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListZonesRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListZonesResponse
Parameters:
page_size-int32page_token-string
list_zone_operations
my $response = $client->list_zone_operations( parent => $parent, page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListZoneOperationsongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListZoneOperationsRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListZoneOperationsResponse
Parameters:
parent-stringpage_size-int32page_token-string
create_zone
my $response = $client->create_zone( zone_id => $zone_id, zone => $zone, );Calls the RPC method
CreateZoneongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::CreateZoneRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
zone_id-stringzone- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Zone
delete_zone
my $response = $client->delete_zone( name => $name, );Calls the RPC method
DeleteZoneongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::DeleteZoneRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
name-string
create_server
my $response = $client->create_server( parent => $parent, server_id => $server_id, server => $server, );Calls the RPC method
CreateServerongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::CreateServerRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
parent-stringserver_id-stringserver- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Server
get_server
my $response = $client->get_server( name => $name, );Calls the RPC method
GetServerongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetServerRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Server
Parameters:
name-string
list_servers
my $response = $client->list_servers( parent => $parent, page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListServersongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListServersRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListServersResponse
Parameters:
parent-stringpage_size-int32page_token-string
delete_server
my $response = $client->delete_server( name => $name, );Calls the RPC method
DeleteServerongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::DeleteServerRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
name-string
list_server_operations
my $response = $client->list_server_operations( parent => $parent, page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListServerOperationsongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListServerOperationsRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListServerOperationsResponse
Parameters:
parent-stringpage_size-int32page_token-string
create_external_storage
my $response = $client->create_external_storage( external_storage_id => $external_storage_id, external_storage => $external_storage, );Calls the RPC method
CreateExternalStorageongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::CreateExternalStorageRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ExternalStorage
Parameters:
external_storage_id-stringexternal_storage- Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ExternalStorage
list_backup_descriptors
my $response = $client->list_backup_descriptors( parent => $parent, page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListBackupDescriptorsongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListBackupDescriptorsRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListBackupDescriptorsResponse
Parameters:
parent-stringpage_size-int32page_token-string
get_external_storage
my $response = $client->get_external_storage( name => $name, );Calls the RPC method
GetExternalStorageongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetExternalStorageRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ExternalStorage
Parameters:
name-string
delete_external_storage
my $response = $client->delete_external_storage( name => $name, );Calls the RPC method
DeleteExternalStorageongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::DeleteExternalStorageRequest
Returns: Google::Protobuf::Empty::Empty
Parameters:
name-string
list_external_storages
my $response = $client->list_external_storages( page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListExternalStoragesongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListExternalStoragesRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListExternalStoragesResponse
Parameters:
page_size-int32page_token-string
get_iam_policy
my $response = $client->get_iam_policy();Calls the RPC method
GetIamPolicyongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Iam::V1::IamPolicy::GetIamPolicyRequest
Returns: Google::Iam::V1::Policy::Policy
set_iam_policy
my $response = $client->set_iam_policy();Calls the RPC method
SetIamPolicyongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Iam::V1::IamPolicy::SetIamPolicyRequest
Returns: Google::Iam::V1::Policy::Policy
import_backup
my $response = $client->import_backup( parent => $parent, backup_id => $backup_id, expiration_time => $expiration_time, );Calls the RPC method
ImportBackupongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ImportBackupRequest
Returns: Google::Longrunning::Operations::Operation
Parameters:
parent-stringbackup_id-stringexpiration_time- Google::Protobuf::Timestamp::Timestamp
list_rollouts
my $response = $client->list_rollouts( page_size => $page_size, page_token => $page_token, );Calls the RPC method
ListRolloutsongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListRolloutsRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ListRolloutsResponse
Parameters:
page_size-int32page_token-string
get_rollout
my $response = $client->get_rollout( name => $name, );Calls the RPC method
GetRolloutongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::GetRolloutRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Rollout
Parameters:
name-string
schedule_rollout_phase
my $response = $client->schedule_rollout_phase( name => $name, scheduled_time => $scheduled_time, );Calls the RPC method
ScheduleRolloutPhaseongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::ScheduleRolloutPhaseRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Rollout
Parameters:
name-stringscheduled_time- Google::Protobuf::Timestamp::Timestamp
abort_rollout
my $response = $client->abort_rollout( name => $name, );Calls the RPC method
AbortRolloutongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::AbortRolloutRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Rollout
Parameters:
name-string
rollback_rollout
my $response = $client->rollback_rollout( name => $name, );Calls the RPC method
RollbackRolloutongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::RollbackRolloutRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::Rollout
Parameters:
name-string
rotate_internal_keys
my $response = $client->rotate_internal_keys( key_types => [ ... ], );Calls the RPC method
RotateInternalKeysongoogle.spanner.admin.omni.v1.OmniAdmin.Request: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::RotateInternalKeysRequest
Returns: Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::RotateInternalKeysResponse
Parameters:
key_types- ArrayRef of Google::Spanner::Admin::Omni::V1::SpannerOmniAdmin::KeyType
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.