Rapid Migration Assessment V1 API - Class Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Client (v0.1.0)

Reference documentation and code samples for the Rapid Migration Assessment V1 API class Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Client.

REST client for the RapidMigrationAssessment service.

Rapid Migration Assessment service

Inherits

  • Object

Methods

.configure

def self.configure() { |config| ... } -> Client::Configuration

Configure the RapidMigrationAssessment Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# Modify the configuration for all RapidMigrationAssessment clients
::Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Client.configure do |config|
  config.timeout = 10.0
end

#configure

def configure() { |config| ... } -> Client::Configuration

Configure the RapidMigrationAssessment 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.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#create_annotation

def create_annotation(request, options = nil) -> ::Gapic::Operation
def create_annotation(parent: nil, annotation: nil, request_id: nil) -> ::Gapic::Operation

Creates an Annotation

Overloads
def create_annotation(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_annotation via a request object, either of type CreateAnnotationRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::CreateAnnotationRequest, ::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 create_annotation(parent: nil, annotation: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to create_annotation 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).
Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#create_collector

def create_collector(request, options = nil) -> ::Gapic::Operation
def create_collector(parent: nil, collector_id: nil, collector: nil, request_id: nil) -> ::Gapic::Operation

Create a Collector to manage the on-prem appliance which collects information about Customer assets.

Overloads
def create_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_collector via a request object, either of type CreateCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::CreateCollectorRequest, ::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 create_collector(parent: nil, collector_id: nil, collector: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to create_collector 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).
Parameters
  • parent (::String) — Required. Name of the parent (project+location).
  • collector_id (::String) — Required. Id of the requesting object.
  • collector (::Google::Cloud::RapidMigrationAssessment::V1::Collector, ::Hash) — Required. The resource being created.
  • request_id (::String) — Optional. An optional request ID to identify requests.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#delete_collector

def delete_collector(request, options = nil) -> ::Gapic::Operation
def delete_collector(name: nil, request_id: nil) -> ::Gapic::Operation

Deletes a single Collector - changes state of collector to "Deleting".

Overloads
def delete_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_collector via a request object, either of type DeleteCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::DeleteCollectorRequest, ::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 delete_collector(name: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to delete_collector 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).
Parameters
  • name (::String) — Required. Name of the resource.
  • request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#get_annotation

def get_annotation(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Annotation
def get_annotation(name: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Annotation

Gets details of a single Annotation.

Overloads
def get_annotation(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Annotation
Pass arguments to get_annotation via a request object, either of type GetAnnotationRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::GetAnnotationRequest, ::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_annotation(name: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Annotation
Pass arguments to get_annotation 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).
Parameter
  • name (::String) — Required. Name of the resource.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#get_collector

def get_collector(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Collector
def get_collector(name: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Collector

Gets details of a single Collector.

Overloads
def get_collector(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Collector
Pass arguments to get_collector via a request object, either of type GetCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::GetCollectorRequest, ::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_collector(name: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::Collector
Pass arguments to get_collector 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).
Parameter
  • name (::String) — Required. Name of the resource.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#initialize

def initialize() { |config| ... } -> Client

Create a new RapidMigrationAssessment REST client object.

Yields
  • (config) — Configure the RapidMigrationAssessment client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# Create a client using the default configuration
client = ::Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Client.new do |config|
  config.timeout = 10.0
end

#list_collectors

def list_collectors(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::ListCollectorsResponse
def list_collectors(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::ListCollectorsResponse

Lists Collectors in a given project and location.

Overloads
def list_collectors(request, options = nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::ListCollectorsResponse
Pass arguments to list_collectors via a request object, either of type ListCollectorsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::ListCollectorsRequest, ::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_collectors(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::RapidMigrationAssessment::V1::ListCollectorsResponse
Pass arguments to list_collectors 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).
Parameters
  • parent (::String) — Required. Parent value for ListCollectorsRequest.
  • page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  • page_token (::String) — A token identifying a page of results the server should return.
  • filter (::String) — Filtering results.
  • order_by (::String) — Hint for how to order the results.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::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.

Returns
  • (Google::Cloud::Location::Locations::Rest::Client)

#operations_client

def operations_client() -> ::Google::Cloud::RapidMigrationAssessment::V1::RapidMigrationAssessment::Rest::Operations

Get the associated client for long-running operations.

#pause_collector

def pause_collector(request, options = nil) -> ::Gapic::Operation
def pause_collector(name: nil, request_id: nil) -> ::Gapic::Operation

Pauses the given collector.

Overloads
def pause_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to pause_collector via a request object, either of type PauseCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::PauseCollectorRequest, ::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 pause_collector(name: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to pause_collector 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).
Parameters
  • name (::String) — Required. Name of the resource.
  • request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#register_collector

def register_collector(request, options = nil) -> ::Gapic::Operation
def register_collector(name: nil, request_id: nil) -> ::Gapic::Operation

Registers the given collector.

Overloads
def register_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to register_collector via a request object, either of type Google::Cloud::RapidMigrationAssessment::V1::RegisterCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::RegisterCollectorRequest, ::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 register_collector(name: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to register_collector 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).
Parameters
  • name (::String) — Required. Name of the resource.
  • request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#resume_collector

def resume_collector(request, options = nil) -> ::Gapic::Operation
def resume_collector(name: nil, request_id: nil) -> ::Gapic::Operation

Resumes the given collector.

Overloads
def resume_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to resume_collector via a request object, either of type Google::Cloud::RapidMigrationAssessment::V1::ResumeCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::ResumeCollectorRequest, ::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 resume_collector(name: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to resume_collector 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).
Parameters
  • name (::String) — Required. Name of the resource.
  • request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#update_collector

def update_collector(request, options = nil) -> ::Gapic::Operation
def update_collector(update_mask: nil, collector: nil, request_id: nil) -> ::Gapic::Operation

Updates the parameters of a single Collector.

Overloads
def update_collector(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_collector via a request object, either of type UpdateCollectorRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::RapidMigrationAssessment::V1::UpdateCollectorRequest, ::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_collector(update_mask: nil, collector: nil, request_id: nil) -> ::Gapic::Operation
Pass arguments to update_collector 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).
Parameters
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Collector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
  • collector (::Google::Cloud::RapidMigrationAssessment::V1::Collector, ::Hash) — Required. The resource being updated.
  • request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.