Reference documentation and code samples for the Telco Automation V1 API class Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.
Client for the TelcoAutomation service.
TelcoAutomation Service manages the control plane cluster a.k.a. Orchestration Cluster (GKE cluster with config controller) of TNA. It also exposes blueprint APIs which manages the lifecycle of blueprints that control the infrastructure setup (e.g GDCE clusters) and deployment of network functions.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the TelcoAutomation Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all TelcoAutomation clients ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.configure do |config| config.timeout = 10.0 end
#apply_deployment
def apply_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deployment
def apply_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::DeploymentApplies the deployment's YAML files to the parent orchestration cluster.
def apply_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentapply_deployment via a request object, either of type
ApplyDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest, ::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 apply_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentapply_deployment 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. The name of the deployment to apply to orchestration cluster.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest.new # Call the apply_deployment method. result = client.apply_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment. p result
#apply_hydrated_deployment
def apply_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment
def apply_hydrated_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentApplies a hydrated deployment to a workload cluster.
def apply_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentapply_hydrated_deployment via a request object, either of type
ApplyHydratedDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest, ::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 apply_hydrated_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentapply_hydrated_deployment 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. The name of the hydrated deployment to apply.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::HydratedDeployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest.new # Call the apply_hydrated_deployment method. result = client.apply_hydrated_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment. p result
#approve_blueprint
def approve_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def approve_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintApproves a blueprint and commits a new revision.
def approve_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintapprove_blueprint via a request object, either of type
ApproveBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest, ::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 approve_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintapprove_blueprint 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. The name of the blueprint to approve. The blueprint must be in Proposed state. A new revision is committed on approval.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest.new # Call the approve_blueprint method. result = client.approve_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#compute_deployment_status
def compute_deployment_status(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse
def compute_deployment_status(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponseReturns the requested deployment status.
def compute_deployment_status(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponsecompute_deployment_status via a request object, either of type
ComputeDeploymentStatusRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest, ::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 compute_deployment_status(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponsecompute_deployment_status 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. The name of the deployment without revisionID.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest.new # Call the compute_deployment_status method. result = client.compute_deployment_status request # The returned object is of type Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the TelcoAutomation 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)
#create_blueprint
def create_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def create_blueprint(parent: nil, blueprint_id: nil, blueprint: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintCreates a blueprint.
def create_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintcreate_blueprint via a request object, either of type
CreateBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest, ::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_blueprint(parent: nil, blueprint_id: nil, blueprint: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintcreate_blueprint 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. The name of parent resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
- blueprint_id (::String) — Optional. The name of the blueprint.
-
blueprint (::Google::Cloud::TelcoAutomation::V1::Blueprint, ::Hash) — Required. The
Blueprintto create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest.new # Call the create_blueprint method. result = client.create_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#create_deployment
def create_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deployment
def create_deployment(parent: nil, deployment_id: nil, deployment: nil) -> ::Google::Cloud::TelcoAutomation::V1::DeploymentCreates a deployment.
def create_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentcreate_deployment via a request object, either of type
CreateDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest, ::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_deployment(parent: nil, deployment_id: nil, deployment: nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentcreate_deployment 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. The name of parent resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
- deployment_id (::String) — Optional. The name of the deployment.
-
deployment (::Google::Cloud::TelcoAutomation::V1::Deployment, ::Hash) — Required. The
Deploymentto create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest.new # Call the create_deployment method. result = client.create_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment. p result
#create_edge_slm
def create_edge_slm(request, options = nil) -> ::Gapic::Operation
def create_edge_slm(parent: nil, edge_slm_id: nil, edge_slm: nil, request_id: nil) -> ::Gapic::OperationCreates a new EdgeSlm in a given project and location.
def create_edge_slm(request, options = nil) -> ::Gapic::Operationcreate_edge_slm via a request object, either of type
CreateEdgeSlmRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest, ::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_edge_slm(parent: nil, edge_slm_id: nil, edge_slm: nil, request_id: nil) -> ::Gapic::Operationcreate_edge_slm 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. Value for parent.
- edge_slm_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and edge_slm_id from the method_signature of Create RPC
- edge_slm (::Google::Cloud::TelcoAutomation::V1::EdgeSlm, ::Hash) — Required. The resource being created
-
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).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest.new # Call the create_edge_slm method. result = client.create_edge_slm request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_orchestration_cluster
def create_orchestration_cluster(request, options = nil) -> ::Gapic::Operation
def create_orchestration_cluster(parent: nil, orchestration_cluster_id: nil, orchestration_cluster: nil, request_id: nil) -> ::Gapic::OperationCreates a new OrchestrationCluster in a given project and location.
def create_orchestration_cluster(request, options = nil) -> ::Gapic::Operationcreate_orchestration_cluster via a request object, either of type
CreateOrchestrationClusterRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest, ::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_orchestration_cluster(parent: nil, orchestration_cluster_id: nil, orchestration_cluster: nil, request_id: nil) -> ::Gapic::Operationcreate_orchestration_cluster 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. Value for parent.
- orchestration_cluster_id (::String) — Required. Id of the requesting object If auto-generating Id server-side, remove this field and orchestration_cluster_id from the method_signature of Create RPC
- orchestration_cluster (::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster, ::Hash) — Required. The resource being created
-
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).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest.new # Call the create_orchestration_cluster method. result = client.create_orchestration_cluster request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_blueprint
def delete_blueprint(request, options = nil) -> ::Google::Protobuf::Empty
def delete_blueprint(name: nil) -> ::Google::Protobuf::EmptyDeletes a blueprint and all its revisions.
def delete_blueprint(request, options = nil) -> ::Google::Protobuf::Emptydelete_blueprint via a request object, either of type
DeleteBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest, ::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_blueprint(name: nil) -> ::Google::Protobuf::Emptydelete_blueprint 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. The name of blueprint to delete. Blueprint name should be in the format {blueprint_id}, if {blueprint_id}@{revision_id} is passed then the API throws invalid argument.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest.new # Call the delete_blueprint method. result = client.delete_blueprint request # The returned object is of type Google::Protobuf::Empty. p result
#delete_edge_slm
def delete_edge_slm(request, options = nil) -> ::Gapic::Operation
def delete_edge_slm(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a single EdgeSlm.
def delete_edge_slm(request, options = nil) -> ::Gapic::Operationdelete_edge_slm via a request object, either of type
DeleteEdgeSlmRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest, ::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_edge_slm(name: nil, request_id: nil) -> ::Gapic::Operationdelete_edge_slm 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
-
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).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest.new # Call the delete_edge_slm method. result = client.delete_edge_slm request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_orchestration_cluster
def delete_orchestration_cluster(request, options = nil) -> ::Gapic::Operation
def delete_orchestration_cluster(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a single OrchestrationCluster.
def delete_orchestration_cluster(request, options = nil) -> ::Gapic::Operationdelete_orchestration_cluster via a request object, either of type
DeleteOrchestrationClusterRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest, ::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_orchestration_cluster(name: nil, request_id: nil) -> ::Gapic::Operationdelete_orchestration_cluster 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
-
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).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest.new # Call the delete_orchestration_cluster method. result = client.delete_orchestration_cluster request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#discard_blueprint_changes
def discard_blueprint_changes(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse
def discard_blueprint_changes(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponseDiscards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.
def discard_blueprint_changes(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponsediscard_blueprint_changes via a request object, either of type
DiscardBlueprintChangesRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest, ::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 discard_blueprint_changes(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponsediscard_blueprint_changes 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. The name of the blueprint of which changes are being discarded.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest.new # Call the discard_blueprint_changes method. result = client.discard_blueprint_changes request # The returned object is of type Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse. p result
#discard_deployment_changes
def discard_deployment_changes(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse
def discard_deployment_changes(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponseDiscards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment does not have revisions.
def discard_deployment_changes(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponsediscard_deployment_changes via a request object, either of type
DiscardDeploymentChangesRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest, ::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 discard_deployment_changes(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponsediscard_deployment_changes 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. The name of the deployment of which changes are being discarded.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest.new # Call the discard_deployment_changes method. result = client.discard_deployment_changes request # The returned object is of type Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse. p result
#get_blueprint
def get_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def get_blueprint(name: nil, view: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintReturns the requested blueprint.
def get_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintget_blueprint via a request object, either of type
GetBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest, ::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_blueprint(name: nil, view: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintget_blueprint 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. The name of the blueprint. Case 1: If the name provided in the request is {blueprint_id}@{revision_id}, then the revision with revision_id will be returned. Case 2: If the name provided in the request is {blueprint}, then the current state of the blueprint is returned.
- view (::Google::Cloud::TelcoAutomation::V1::BlueprintView) — Optional. Defines the type of view of the blueprint. When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest.new # Call the get_blueprint method. result = client.get_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#get_deployment
def get_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deployment
def get_deployment(name: nil, view: nil) -> ::Google::Cloud::TelcoAutomation::V1::DeploymentReturns the requested deployment.
def get_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentget_deployment via a request object, either of type
GetDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest, ::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_deployment(name: nil, view: nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentget_deployment 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. The name of the deployment. Case 1: If the name provided in the request is {deployment_id}@{revision_id}, then the revision with revision_id will be returned. Case 2: If the name provided in the request is {deployment}, then the current state of the deployment is returned.
- view (::Google::Cloud::TelcoAutomation::V1::DeploymentView) — Optional. Defines the type of view of the deployment. When field is not present VIEW_BASIC is considered as default.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest.new # Call the get_deployment method. result = client.get_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment. p result
#get_edge_slm
def get_edge_slm(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::EdgeSlm
def get_edge_slm(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::EdgeSlmGets details of a single EdgeSlm.
def get_edge_slm(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::EdgeSlmget_edge_slm via a request object, either of type
GetEdgeSlmRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest, ::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_edge_slm(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::EdgeSlmget_edge_slm 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
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::EdgeSlm)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest.new # Call the get_edge_slm method. result = client.get_edge_slm request # The returned object is of type Google::Cloud::TelcoAutomation::V1::EdgeSlm. p result
#get_hydrated_deployment
def get_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment
def get_hydrated_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentReturns the requested hydrated deployment.
def get_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentget_hydrated_deployment via a request object, either of type
GetHydratedDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest, ::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_hydrated_deployment(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentget_hydrated_deployment 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 hydrated deployment.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::HydratedDeployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest.new # Call the get_hydrated_deployment method. result = client.get_hydrated_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment. p result
#get_orchestration_cluster
def get_orchestration_cluster(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster
def get_orchestration_cluster(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::OrchestrationClusterGets details of a single OrchestrationCluster.
def get_orchestration_cluster(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::OrchestrationClusterget_orchestration_cluster via a request object, either of type
GetOrchestrationClusterRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest, ::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_orchestration_cluster(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::OrchestrationClusterget_orchestration_cluster 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
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest.new # Call the get_orchestration_cluster method. result = client.get_orchestration_cluster request # The returned object is of type Google::Cloud::TelcoAutomation::V1::OrchestrationCluster. p result
#get_public_blueprint
def get_public_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::PublicBlueprint
def get_public_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::PublicBlueprintReturns the requested public blueprint.
def get_public_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::PublicBlueprintget_public_blueprint via a request object, either of type
GetPublicBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest, ::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_public_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::PublicBlueprintget_public_blueprint 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. The name of the public blueprint.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::PublicBlueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest.new # Call the get_public_blueprint method. result = client.get_public_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::PublicBlueprint. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new TelcoAutomation client object.
- (config) — Configure the TelcoAutomation client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a client using a custom configuration client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new do |config| config.timeout = 10.0 end
#list_blueprint_revisions
def list_blueprint_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>
def list_blueprint_revisions(name: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>List blueprint revisions of a given blueprint.
def list_blueprint_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>list_blueprint_revisions via a request object, either of type
ListBlueprintRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest, ::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_blueprint_revisions(name: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>list_blueprint_revisions 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. The name of the blueprint to list revisions for.
- page_size (::Integer) — The maximum number of revisions to return per page.
- page_token (::String) — The page token, received from a previous ListBlueprintRevisions call It can be provided to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest.new # Call the list_blueprint_revisions method. result = client.list_blueprint_revisions request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint. p item end
#list_blueprints
def list_blueprints(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>
def list_blueprints(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>List all blueprints.
def list_blueprints(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>list_blueprints via a request object, either of type
ListBlueprintsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest, ::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_blueprints(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>list_blueprints 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. The name of parent orchestration cluster resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
-
filter (::String) — Optional. Filtering only supports equality on blueprint state.
It should be in the form: "state = DRAFT".
ORoperator can be used to get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED". - page_size (::Integer) — Optional. The maximum number of blueprints to return per page.
- page_token (::String) — Optional. The page token, received from a previous ListBlueprints call. It can be provided to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest.new # Call the list_blueprints method. result = client.list_blueprints request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint. p item end
#list_deployment_revisions
def list_deployment_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>
def list_deployment_revisions(name: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>List deployment revisions of a given deployment.
def list_deployment_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>list_deployment_revisions via a request object, either of type
ListDeploymentRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest, ::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_deployment_revisions(name: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>list_deployment_revisions 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. The name of the deployment to list revisions for.
- page_size (::Integer) — Optional. The maximum number of revisions to return per page.
- page_token (::String) — Optional. The page token, received from a previous ListDeploymentRevisions call Provide this to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest.new # Call the list_deployment_revisions method. result = client.list_deployment_revisions request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment. p item end
#list_deployments
def list_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>
def list_deployments(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>List all deployments.
def list_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>list_deployments via a request object, either of type
ListDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest, ::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_deployments(parent: nil, filter: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>list_deployments 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. The name of parent orchestration cluster resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
-
filter (::String) — Optional. Filtering only supports equality on deployment state.
It should be in the form: "state = DRAFT".
ORoperator can be used to get response for multiple states. e.g. "state = DRAFT OR state = APPLIED". - page_size (::Integer) — Optional. The maximum number of deployments to return per page.
- page_token (::String) — Optional. The page token, received from a previous ListDeployments call. It can be provided to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest.new # Call the list_deployments method. result = client.list_deployments request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment. p item end
#list_edge_slms
def list_edge_slms(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>
def list_edge_slms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>Lists EdgeSlms in a given project and location.
def list_edge_slms(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>list_edge_slms via a request object, either of type
ListEdgeSlmsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest, ::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_edge_slms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>list_edge_slms 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 ListEdgeSlmsRequest
- 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
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::EdgeSlm>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest.new # Call the list_edge_slms method. result = client.list_edge_slms request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::EdgeSlm. p item end
#list_hydrated_deployments
def list_hydrated_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>
def list_hydrated_deployments(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>List all hydrated deployments present under a deployment.
def list_hydrated_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>list_hydrated_deployments via a request object, either of type
ListHydratedDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest, ::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_hydrated_deployments(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>list_hydrated_deployments 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. The deployment managing the hydrated deployments.
- page_size (::Integer) — Optional. The maximum number of hydrated deployments to return. The service may return fewer than this value. If unspecified, at most 50 hydrated deployments will be returned. The maximum value is 1000. Values above 1000 will be set to 1000.
- page_token (::String) — Optional. The page token, received from a previous ListHydratedDeployments call. Provide this to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest.new # Call the list_hydrated_deployments method. result = client.list_hydrated_deployments request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment. p item end
#list_orchestration_clusters
def list_orchestration_clusters(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>
def list_orchestration_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>Lists OrchestrationClusters in a given project and location.
def list_orchestration_clusters(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>list_orchestration_clusters via a request object, either of type
ListOrchestrationClustersRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest, ::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_orchestration_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>list_orchestration_clusters 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 ListOrchestrationClustersRequest
- 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.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest.new # Call the list_orchestration_clusters method. result = client.list_orchestration_clusters request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster. p item end
#list_public_blueprints
def list_public_blueprints(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>
def list_public_blueprints(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100.
def list_public_blueprints(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>list_public_blueprints via a request object, either of type
ListPublicBlueprintsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest, ::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_public_blueprints(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>list_public_blueprints 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 of public blueprint. Format should be - "projects/{project_id}/locations/{location_name}".
- page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — Optional. A token identifying a page of results the server should return.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest.new # Call the list_public_blueprints method. result = client.list_public_blueprints request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::PublicBlueprint. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::OperationsGet the associated client for long-running operations.
#propose_blueprint
def propose_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def propose_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintProposes a blueprint for approval of changes.
def propose_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintpropose_blueprint via a request object, either of type
ProposeBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest, ::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 propose_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintpropose_blueprint 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. The name of the blueprint being proposed.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest.new # Call the propose_blueprint method. result = client.propose_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#reject_blueprint
def reject_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def reject_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintRejects a blueprint revision proposal and flips it back to Draft state.
def reject_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintreject_blueprint via a request object, either of type
RejectBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest, ::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 reject_blueprint(name: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintreject_blueprint 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. The name of the blueprint being rejected.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest.new # Call the reject_blueprint method. result = client.reject_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#remove_deployment
def remove_deployment(request, options = nil) -> ::Google::Protobuf::Empty
def remove_deployment(name: nil) -> ::Google::Protobuf::EmptyRemoves the deployment by marking it as DELETING. Post which deployment and it's revisions gets deleted.
def remove_deployment(request, options = nil) -> ::Google::Protobuf::Emptyremove_deployment via a request object, either of type
RemoveDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest, ::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 remove_deployment(name: nil) -> ::Google::Protobuf::Emptyremove_deployment 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. The name of deployment to initiate delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest.new # Call the remove_deployment method. result = client.remove_deployment request # The returned object is of type Google::Protobuf::Empty. p result
#rollback_deployment
def rollback_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deployment
def rollback_deployment(name: nil, revision_id: nil) -> ::Google::Cloud::TelcoAutomation::V1::DeploymentRollback the active deployment to the given past approved deployment revision.
def rollback_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentrollback_deployment via a request object, either of type
RollbackDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest, ::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 rollback_deployment(name: nil, revision_id: nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentrollback_deployment 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 deployment.
- revision_id (::String) — Required. The revision id of deployment to roll back to.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest.new # Call the rollback_deployment method. result = client.rollback_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment. p result
#search_blueprint_revisions
def search_blueprint_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>
def search_blueprint_revisions(parent: nil, query: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>Searches across blueprint revisions.
def search_blueprint_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>search_blueprint_revisions via a request object, either of type
SearchBlueprintRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest, ::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 search_blueprint_revisions(parent: nil, query: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>search_blueprint_revisions 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. The name of parent orchestration cluster resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
-
query (::String) —
Required. Supported queries:
- "" : Lists all revisions across all blueprints.
- "latest=true" : Lists latest revisions across all blueprints.
- "name={name}" : Lists all revisions of blueprint with name {name}.
- "name={name} latest=true": Lists latest revision of blueprint with name {name}
- page_size (::Integer) — Optional. The maximum number of blueprints revisions to return per page. max page size = 100, default page size = 20.
- page_token (::String) — Optional. The page token, received from a previous search call. It can be provided to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest.new # Call the search_blueprint_revisions method. result = client.search_blueprint_revisions request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint. p item end
#search_deployment_revisions
def search_deployment_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>
def search_deployment_revisions(parent: nil, query: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>Searches across deployment revisions.
def search_deployment_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>search_deployment_revisions via a request object, either of type
SearchDeploymentRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest, ::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 search_deployment_revisions(parent: nil, query: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>search_deployment_revisions 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. The name of parent orchestration cluster resource. Format should be - "projects/{project_id}/locations/{location_name}/orchestrationClusters/{orchestration_cluster}".
-
query (::String) —
Required. Supported queries:
- "" : Lists all revisions across all deployments.
- "latest=true" : Lists latest revisions across all deployments.
- "name={name}" : Lists all revisions of deployment with name {name}.
- "name={name} latest=true": Lists latest revision of deployment with name {name}
- page_size (::Integer) — Optional. The maximum number of deployment revisions to return per page. max page size = 100, default page size = 20.
- page_token (::String) — Optional. The page token, received from a previous search call. It can be provided to retrieve the subsequent page.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest.new # Call the search_deployment_revisions method. result = client.search_deployment_revisions request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment. p item end
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_blueprint
def update_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprint
def update_blueprint(blueprint: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::BlueprintUpdates a blueprint.
def update_blueprint(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintupdate_blueprint via a request object, either of type
UpdateBlueprintRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest, ::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_blueprint(blueprint: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::Blueprintupdate_blueprint 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).
-
blueprint (::Google::Cloud::TelcoAutomation::V1::Blueprint, ::Hash) — Required. The
blueprintto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Update mask is used to specify the fields to be overwritten in
the
blueprintresource by the update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Blueprint)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest.new # Call the update_blueprint method. result = client.update_blueprint request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint. p result
#update_deployment
def update_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deployment
def update_deployment(deployment: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::DeploymentUpdates a deployment.
def update_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentupdate_deployment via a request object, either of type
UpdateDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest, ::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_deployment(deployment: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::Deploymentupdate_deployment 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).
-
deployment (::Google::Cloud::TelcoAutomation::V1::Deployment, ::Hash) — Required. The
deploymentto update. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Update mask is used to specify the fields to be overwritten in
the
deploymentresource by the update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::Deployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest.new # Call the update_deployment method. result = client.update_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment. p result
#update_hydrated_deployment
def update_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment
def update_hydrated_deployment(hydrated_deployment: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentUpdates a hydrated deployment.
def update_hydrated_deployment(request, options = nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentupdate_hydrated_deployment via a request object, either of type
UpdateHydratedDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest, ::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_hydrated_deployment(hydrated_deployment: nil, update_mask: nil) -> ::Google::Cloud::TelcoAutomation::V1::HydratedDeploymentupdate_hydrated_deployment 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).
- hydrated_deployment (::Google::Cloud::TelcoAutomation::V1::HydratedDeployment, ::Hash) — Required. The hydrated deployment to update.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The list of fields to update. Update mask supports a special
value
*which fully replaces (equivalent to PUT) the resource provided.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::TelcoAutomation::V1::HydratedDeployment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/telco_automation/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest.new # Call the update_hydrated_deployment method. result = client.update_hydrated_deployment request # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment. p result