Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.
REST client for the BareMetalSolution service.
Performs management operations on Bare Metal Solution servers.
The baremetalsolution.googleapis.com
service provides management
capabilities for Bare Metal Solution servers. To access the API methods, you
must assign Bare Metal Solution IAM roles containing the desired permissions
to your staff in your Google Cloud project. You must also enable the Bare
Metal Solution API. Once enabled, the methods act
upon specific servers in your Bare Metal Solution environment.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the BareMetalSolution Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all BareMetalSolution clients ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the BareMetalSolution Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#detach_lun
def detach_lun(request, options = nil) -> ::Gapic::Operation
def detach_lun(instance: nil, lun: nil) -> ::Gapic::Operation
Detach LUN from Instance.
def detach_lun(request, options = nil) -> ::Gapic::Operation
detach_lun
via a request object, either of type
DetachLunRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::DetachLunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def detach_lun(instance: nil, lun: nil) -> ::Gapic::Operation
detach_lun
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- instance (::String) — Required. Name of the instance.
- lun (::String) — Required. Name of the Lun to detach.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_instance
def get_instance(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Instance
def get_instance(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Instance
Get details about a single server.
def get_instance(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Instance
get_instance
via a request object, either of type
GetInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::GetInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_instance(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Instance
get_instance
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Instance)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_lun
def get_lun(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Lun
def get_lun(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Lun
Get details of a single storage logical unit number(LUN).
def get_lun(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Lun
get_lun
via a request object, either of type
GetLunRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::GetLunRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_lun(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Lun
get_lun
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Lun)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_network
def get_network(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Network
def get_network(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Network
Get details of a single network.
def get_network(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Network
get_network
via a request object, either of type
GetNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::GetNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_network(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Network
get_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Network)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_nfs_share
def get_nfs_share(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::NfsShare
def get_nfs_share(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::NfsShare
Get details of a single NFS share.
def get_nfs_share(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::NfsShare
get_nfs_share
via a request object, either of type
GetNfsShareRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::GetNfsShareRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_nfs_share(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::NfsShare
get_nfs_share
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::NfsShare)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_volume
def get_volume(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Volume
def get_volume(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Volume
Get details of a single storage volume.
def get_volume(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::Volume
get_volume
via a request object, either of type
GetVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::GetVolumeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_volume(name: nil) -> ::Google::Cloud::BareMetalSolution::V2::Volume
get_volume
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::Volume)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::Client
Get the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> Client
Create a new BareMetalSolution REST client object.
- (config) — Configure the BareMetalSolution client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Client.new do |config| config.timeout = 10.0 end
#list_instances
def list_instances(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
def list_instances(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
List servers in a given project and location.
def list_instances(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
list_instances
via a request object, either of type
ListInstancesRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListInstancesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_instances(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse
list_instances
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListInstancesRequest.
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results from the server.
- filter (::String) — List filter.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListInstancesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_luns
def list_luns(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
def list_luns(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
List storage volume luns for given storage volume.
def list_luns(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
list_luns
via a request object, either of type
ListLunsRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListLunsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_luns(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListLunsResponse
list_luns
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListLunsRequest.
- page_size (::Integer) — Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results from the server.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListLunsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_network_usage
def list_network_usage(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
def list_network_usage(location: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
def list_network_usage(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
list_network_usage
via a request object, either of type
ListNetworkUsageRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_network_usage(location: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse
list_network_usage
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- location (::String) — Required. Parent value (project and location).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNetworkUsageResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_networks
def list_networks(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
def list_networks(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
List network in a given project and location.
def list_networks(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
list_networks
via a request object, either of type
ListNetworksRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListNetworksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_networks(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse
list_networks
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListNetworksRequest.
- page_size (::Integer) — Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results from the server.
- filter (::String) — List filter.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNetworksResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_nfs_shares
def list_nfs_shares(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
def list_nfs_shares(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
List NFS shares.
def list_nfs_shares(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
list_nfs_shares
via a request object, either of type
ListNfsSharesRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListNfsSharesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_nfs_shares(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse
list_nfs_shares
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListNfsSharesRequest.
- page_size (::Integer) — Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results from the server.
- filter (::String) — List filter.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListNfsSharesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_volumes
def list_volumes(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
List storage volumes in a given project and location.
def list_volumes(request, options = nil) -> ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
list_volumes
via a request object, either of type
ListVolumesRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ListVolumesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse
list_volumes
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. Parent value for ListVolumesRequest.
- page_size (::Integer) — Requested page size. The server might return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results from the server.
- filter (::String) — List filter.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::BareMetalSolution::V2::ListVolumesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#operations_client
def operations_client() -> ::Google::Cloud::BareMetalSolution::V2::BareMetalSolution::Rest::Operations
Get the associated client for long-running operations.
#reset_instance
def reset_instance(request, options = nil) -> ::Gapic::Operation
def reset_instance(name: nil) -> ::Gapic::Operation
Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
def reset_instance(request, options = nil) -> ::Gapic::Operation
reset_instance
via a request object, either of type
ResetInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ResetInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def reset_instance(name: nil) -> ::Gapic::Operation
reset_instance
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#resize_volume
def resize_volume(request, options = nil) -> ::Gapic::Operation
def resize_volume(volume: nil, size_gib: nil) -> ::Gapic::Operation
Emergency Volume resize.
def resize_volume(request, options = nil) -> ::Gapic::Operation
resize_volume
via a request object, either of type
ResizeVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::ResizeVolumeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def resize_volume(volume: nil, size_gib: nil) -> ::Gapic::Operation
resize_volume
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- volume (::String) — Required. Volume to resize.
- size_gib (::Integer) — New Volume size, in GiB.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#start_instance
def start_instance(request, options = nil) -> ::Gapic::Operation
def start_instance(name: nil) -> ::Gapic::Operation
Starts a server that was shutdown.
def start_instance(request, options = nil) -> ::Gapic::Operation
start_instance
via a request object, either of type
StartInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::StartInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def start_instance(name: nil) -> ::Gapic::Operation
start_instance
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#stop_instance
def stop_instance(request, options = nil) -> ::Gapic::Operation
def stop_instance(name: nil) -> ::Gapic::Operation
Stop a running server.
def stop_instance(request, options = nil) -> ::Gapic::Operation
stop_instance
via a request object, either of type
StopInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::StopInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def stop_instance(name: nil) -> ::Gapic::Operation
stop_instance
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. Name of the resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_instance
def update_instance(request, options = nil) -> ::Gapic::Operation
def update_instance(instance: nil, update_mask: nil) -> ::Gapic::Operation
Update details of a single server.
def update_instance(request, options = nil) -> ::Gapic::Operation
update_instance
via a request object, either of type
UpdateInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::UpdateInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_instance(instance: nil, update_mask: nil) -> ::Gapic::Operation
update_instance
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
instance (::Google::Cloud::BareMetalSolution::V2::Instance, ::Hash) — Required. The server to update.
The
name
field is used to identify the instance to update. Format: projects/{project}/locations/{location}/instances/{instance} -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The list of fields to update.
The currently supported fields are:
labels
hyperthreading_enabled
os_image
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_network
def update_network(request, options = nil) -> ::Gapic::Operation
def update_network(network: nil, update_mask: nil) -> ::Gapic::Operation
Update details of a single network.
def update_network(request, options = nil) -> ::Gapic::Operation
update_network
via a request object, either of type
UpdateNetworkRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::UpdateNetworkRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_network(network: nil, update_mask: nil) -> ::Gapic::Operation
update_network
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
network (::Google::Cloud::BareMetalSolution::V2::Network, ::Hash) — Required. The network to update.
The
name
field is used to identify the instance to update. Format: projects/{project}/locations/{location}/networks/{network} -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The list of fields to update.
The only currently supported fields are:
labels
,reservations
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_nfs_share
def update_nfs_share(request, options = nil) -> ::Gapic::Operation
def update_nfs_share(nfs_share: nil, update_mask: nil) -> ::Gapic::Operation
Update details of a single NFS share.
def update_nfs_share(request, options = nil) -> ::Gapic::Operation
update_nfs_share
via a request object, either of type
UpdateNfsShareRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::UpdateNfsShareRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_nfs_share(nfs_share: nil, update_mask: nil) -> ::Gapic::Operation
update_nfs_share
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
nfs_share (::Google::Cloud::BareMetalSolution::V2::NfsShare, ::Hash) — Required. The NFS share to update.
The
name
field is used to identify the NFS share to update. Format: projects/{project}/locations/{location}/nfsShares/{nfs_share} -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The list of fields to update.
The only currently supported fields are:
labels
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_volume
def update_volume(request, options = nil) -> ::Gapic::Operation
def update_volume(volume: nil, update_mask: nil) -> ::Gapic::Operation
Update details of a single storage volume.
def update_volume(request, options = nil) -> ::Gapic::Operation
update_volume
via a request object, either of type
UpdateVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::BareMetalSolution::V2::UpdateVolumeRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_volume(volume: nil, update_mask: nil) -> ::Gapic::Operation
update_volume
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
volume (::Google::Cloud::BareMetalSolution::V2::Volume, ::Hash) — Required. The volume to update.
The
name
field is used to identify the volume to update. Format: projects/{project}/locations/{location}/volumes/{volume} -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — The list of fields to update.
The only currently supported fields are:
snapshot_auto_delete_behavior
snapshot_schedule_policy_name
'labels' 'snapshot_enabled' 'snapshot_reservation_detail.reserved_space_percent'
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.