Reference documentation and code samples for the Design Center V1 API class Google::Cloud::DesignCenter::V1::DesignCenter::Client.
Client for the DesignCenter service.
Service describing handlers for resources
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the DesignCenter Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all DesignCenter clients ::Google::Cloud::DesignCenter::V1::DesignCenter::Client.configure do |config| config.timeout = 10.0 end
#commit_application_template
def commit_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision
def commit_application_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisionCommits an application template to create a new revision.
def commit_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisioncommit_application_template via a request object, either of type
CommitApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CommitApplicationTemplateRequest, ::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 commit_application_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisioncommit_application_template 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 application template.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CommitApplicationTemplateRequest.new # Call the commit_application_template method. result = client.commit_application_template request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the DesignCenter 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_application
def create_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Application
def create_application(parent: nil, application_id: nil, application: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationCreates an application.
def create_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Applicationcreate_application via a request object, either of type
CreateApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateApplicationRequest, ::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_application(parent: nil, application_id: nil, application: nil) -> ::Google::Cloud::DesignCenter::V1::Applicationcreate_application 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 parent resource in which to create the application.
Format:
projects/$project/locations/$location/spaces/$space - application_id (::String) — Required. The ID of the application to create.
- application (::Google::Cloud::DesignCenter::V1::Application, ::Hash) — Required. The application to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateApplicationRequest.new # Call the create_application method. result = client.create_application request # The returned object is of type Google::Cloud::DesignCenter::V1::Application. p result
#create_application_template
def create_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplate
def create_application_template(parent: nil, application_template_id: nil, application_template: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateCreates an application template.
def create_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplatecreate_application_template via a request object, either of type
CreateApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateApplicationTemplateRequest, ::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_application_template(parent: nil, application_template_id: nil, application_template: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplatecreate_application_template 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 parent resource in which to create the application template.
- application_template_id (::String) — Required. The ID of the application template to create.
- application_template (::Google::Cloud::DesignCenter::V1::ApplicationTemplate, ::Hash) — Required. The application template to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateApplicationTemplateRequest.new # Call the create_application_template method. result = client.create_application_template request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplate. p result
#create_catalog
def create_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalog
def create_catalog(parent: nil, catalog_id: nil, catalog: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogCreates a catalog.
def create_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalogcreate_catalog via a request object, either of type
CreateCatalogRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateCatalogRequest, ::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_catalog(parent: nil, catalog_id: nil, catalog: nil) -> ::Google::Cloud::DesignCenter::V1::Catalogcreate_catalog 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 parent space in which a catalog is created in the following
format:
projects/$project/locations/$location/spaces/$space - catalog_id (::String) — Required. The ID of the catalog to create.
- catalog (::Google::Cloud::DesignCenter::V1::Catalog, ::Hash) — Required. The catalog to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Catalog)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateCatalogRequest.new # Call the create_catalog method. result = client.create_catalog request # The returned object is of type Google::Cloud::DesignCenter::V1::Catalog. p result
#create_catalog_template
def create_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplate
def create_catalog_template(parent: nil, catalog_template_id: nil, catalog_template: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateAdds a template to a catalog.
def create_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplatecreate_catalog_template via a request object, either of type
CreateCatalogTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateCatalogTemplateRequest, ::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_catalog_template(parent: nil, catalog_template_id: nil, catalog_template: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplatecreate_catalog_template 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 parent resource in which the catalog template is created.
- catalog_template_id (::String) — Required. The ID of the catalog template to create. The ID is appended to the catalog template's name.
- catalog_template (::Google::Cloud::DesignCenter::V1::CatalogTemplate, ::Hash) — Required. The catalog template to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::CatalogTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateCatalogTemplateRequest.new # Call the create_catalog_template method. result = client.create_catalog_template request # The returned object is of type Google::Cloud::DesignCenter::V1::CatalogTemplate. p result
#create_catalog_template_revision
def create_catalog_template_revision(request, options = nil) -> ::Gapic::Operation
def create_catalog_template_revision(parent: nil, catalog_template_revision_id: nil, catalog_template_revision: nil) -> ::Gapic::OperationCreates a template revision.
def create_catalog_template_revision(request, options = nil) -> ::Gapic::Operationcreate_catalog_template_revision via a request object, either of type
CreateCatalogTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateCatalogTemplateRevisionRequest, ::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_catalog_template_revision(parent: nil, catalog_template_revision_id: nil, catalog_template_revision: nil) -> ::Gapic::Operationcreate_catalog_template_revision 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 parent in which the catalog template revisions request is
created in following format:
projects/$project/locations/$location/spaces/$space/templates/$template - catalog_template_revision_id (::String) — Required. The ID of the template revision to create.
- catalog_template_revision (::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision, ::Hash) — Required. The template revision to create.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateCatalogTemplateRevisionRequest.new # Call the create_catalog_template_revision method. result = client.create_catalog_template_revision 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_component
def create_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Component
def create_component(parent: nil, component_id: nil, component: nil) -> ::Google::Cloud::DesignCenter::V1::ComponentCreates a component.
def create_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Componentcreate_component via a request object, either of type
CreateComponentRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateComponentRequest, ::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_component(parent: nil, component_id: nil, component: nil) -> ::Google::Cloud::DesignCenter::V1::Componentcreate_component 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 parent resource in which to create the component.
- component_id (::String) — Required. The ID of the component to create.
- component (::Google::Cloud::DesignCenter::V1::Component, ::Hash) — Required. The component to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Component)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateComponentRequest.new # Call the create_component method. result = client.create_component request # The returned object is of type Google::Cloud::DesignCenter::V1::Component. p result
#create_connection
def create_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connection
def create_connection(parent: nil, connection_id: nil, connection: nil) -> ::Google::Cloud::DesignCenter::V1::ConnectionCreates a connection.
def create_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connectioncreate_connection via a request object, either of type
CreateConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateConnectionRequest, ::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_connection(parent: nil, connection_id: nil, connection: nil) -> ::Google::Cloud::DesignCenter::V1::Connectioncreate_connection 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 parent resource in which to create a connection.
- connection_id (::String) — Required. The ID of the connection to create.
- connection (::Google::Cloud::DesignCenter::V1::Connection, ::Hash) — Required. The connection to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Connection)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateConnectionRequest.new # Call the create_connection method. result = client.create_connection request # The returned object is of type Google::Cloud::DesignCenter::V1::Connection. p result
#create_policy
def create_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policy
def create_policy(parent: nil, policy_id: nil, policy: nil) -> ::Google::Cloud::DesignCenter::V1::PolicyCreates a policy for an application template.
def create_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policycreate_policy via a request object, either of type
CreatePolicyRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreatePolicyRequest, ::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_policy(parent: nil, policy_id: nil, policy: nil) -> ::Google::Cloud::DesignCenter::V1::Policycreate_policy 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 parent resource in which to create the policy in the
following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate - policy_id (::String) — Required. The ID of the policy to create.
- policy (::Google::Cloud::DesignCenter::V1::Policy, ::Hash) — Required. The policy to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Policy)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreatePolicyRequest.new # Call the create_policy method. result = client.create_policy request # The returned object is of type Google::Cloud::DesignCenter::V1::Policy. p result
#create_share
def create_share(request, options = nil) -> ::Gapic::Operation
def create_share(parent: nil, share_id: nil, share: nil) -> ::Gapic::OperationShares a catalog from one space to another space.
def create_share(request, options = nil) -> ::Gapic::Operationcreate_share via a request object, either of type
CreateShareRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateShareRequest, ::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_share(parent: nil, share_id: nil, share: nil) -> ::Gapic::Operationcreate_share via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource in which shares are created.
- share_id (::String) — Required. The ID of the share to create.
- share (::Google::Cloud::DesignCenter::V1::Share, ::Hash) — Required. The share to create.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateShareRequest.new # Call the create_share method. result = client.create_share 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_space
def create_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Space
def create_space(parent: nil, space_id: nil, space: nil) -> ::Google::Cloud::DesignCenter::V1::SpaceCreates a space.
def create_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Spacecreate_space via a request object, either of type
CreateSpaceRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::CreateSpaceRequest, ::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_space(parent: nil, space_id: nil, space: nil) -> ::Google::Cloud::DesignCenter::V1::Spacecreate_space 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 parent in which to create a space.
- space_id (::String) — Required. The ID of the space to create.
- space (::Google::Cloud::DesignCenter::V1::Space, ::Hash) — Required. The space to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Space)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::CreateSpaceRequest.new # Call the create_space method. result = client.create_space request # The returned object is of type Google::Cloud::DesignCenter::V1::Space. p result
#delete_application
def delete_application(request, options = nil) -> ::Gapic::Operation
def delete_application(name: nil, force: nil) -> ::Gapic::OperationDeletes an application.
def delete_application(request, options = nil) -> ::Gapic::Operationdelete_application via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteApplicationRequest, ::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_application(name: nil, force: nil) -> ::Gapic::Operationdelete_application 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 application name.
Format:
projects/$project/locations/$location/spaces/$space/applications/$application - force (::Boolean) — Optional. If set to true, the application's children are also deleted. If false, the application is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteApplicationRequest.new # Call the delete_application method. result = client.delete_application 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_application_template
def delete_application_template(request, options = nil) -> ::Google::Protobuf::Empty
def delete_application_template(name: nil, force: nil) -> ::Google::Protobuf::EmptyDeletes an application template.
def delete_application_template(request, options = nil) -> ::Google::Protobuf::Emptydelete_application_template via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRequest, ::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_application_template(name: nil, force: nil) -> ::Google::Protobuf::Emptydelete_application_template 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 application template name.
- force (::Boolean) — Optional. If set to true, the application template's children are also deleted. If false, the application template is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRequest.new # Call the delete_application_template method. result = client.delete_application_template request # The returned object is of type Google::Protobuf::Empty. p result
#delete_application_template_revision
def delete_application_template_revision(request, options = nil) -> ::Google::Protobuf::Empty
def delete_application_template_revision(name: nil) -> ::Google::Protobuf::EmptyDeletes an application template revision.
def delete_application_template_revision(request, options = nil) -> ::Google::Protobuf::Emptydelete_application_template_revision via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRevisionRequest, ::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_application_template_revision(name: nil) -> ::Google::Protobuf::Emptydelete_application_template_revision 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 application template revision name.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteApplicationTemplateRevisionRequest.new # Call the delete_application_template_revision method. result = client.delete_application_template_revision request # The returned object is of type Google::Protobuf::Empty. p result
#delete_catalog
def delete_catalog(request, options = nil) -> ::Gapic::Operation
def delete_catalog(name: nil, force: nil) -> ::Gapic::OperationDeletes a catalog.
def delete_catalog(request, options = nil) -> ::Gapic::Operationdelete_catalog via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteCatalogRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteCatalogRequest, ::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_catalog(name: nil, force: nil) -> ::Gapic::Operationdelete_catalog 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 catalog name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog - force (::Boolean) — Optional. If set to true, the catalog's children are also deleted. If false, the catalog is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteCatalogRequest.new # Call the delete_catalog method. result = client.delete_catalog 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_catalog_template
def delete_catalog_template(request, options = nil) -> ::Gapic::Operation
def delete_catalog_template(name: nil, force: nil) -> ::Gapic::OperationDeletes a catalog template.
def delete_catalog_template(request, options = nil) -> ::Gapic::Operationdelete_catalog_template via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRequest, ::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_catalog_template(name: nil, force: nil) -> ::Gapic::Operationdelete_catalog_template 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 catalog template name.
Format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template - force (::Boolean) — Optional. If set to true, the catalog template's children are also deleted. If false, the catalog template is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRequest.new # Call the delete_catalog_template method. result = client.delete_catalog_template 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_catalog_template_revision
def delete_catalog_template_revision(request, options = nil) -> ::Gapic::Operation
def delete_catalog_template_revision(name: nil) -> ::Gapic::OperationDeletes a template revision.
def delete_catalog_template_revision(request, options = nil) -> ::Gapic::Operationdelete_catalog_template_revision via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRevisionRequest, ::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_catalog_template_revision(name: nil) -> ::Gapic::Operationdelete_catalog_template_revision 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 template revision name.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteCatalogTemplateRevisionRequest.new # Call the delete_catalog_template_revision method. result = client.delete_catalog_template_revision 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_component
def delete_component(request, options = nil) -> ::Google::Protobuf::Empty
def delete_component(name: nil, force: nil) -> ::Google::Protobuf::EmptyDeletes a component.
def delete_component(request, options = nil) -> ::Google::Protobuf::Emptydelete_component via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteComponentRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteComponentRequest, ::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_component(name: nil, force: nil) -> ::Google::Protobuf::Emptydelete_component 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 component name.
- force (::Boolean) — Optional. If set to true, the component's children are also deleted. If false, the component is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteComponentRequest.new # Call the delete_component method. result = client.delete_component request # The returned object is of type Google::Protobuf::Empty. p result
#delete_connection
def delete_connection(request, options = nil) -> ::Google::Protobuf::Empty
def delete_connection(name: nil) -> ::Google::Protobuf::EmptyDeletes a connection.
def delete_connection(request, options = nil) -> ::Google::Protobuf::Emptydelete_connection via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteConnectionRequest, ::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_connection(name: nil) -> ::Google::Protobuf::Emptydelete_connection 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 connection name.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteConnectionRequest.new # Call the delete_connection method. result = client.delete_connection request # The returned object is of type Google::Protobuf::Empty. p result
#delete_policy
def delete_policy(request, options = nil) -> ::Google::Protobuf::Empty
def delete_policy(name: nil) -> ::Google::Protobuf::EmptyDeletes a policy.
def delete_policy(request, options = nil) -> ::Google::Protobuf::Emptydelete_policy via a request object, either of type
Google::Cloud::DesignCenter::V1::DeletePolicyRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeletePolicyRequest, ::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_policy(name: nil) -> ::Google::Protobuf::Emptydelete_policy 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 policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeletePolicyRequest.new # Call the delete_policy method. result = client.delete_policy request # The returned object is of type Google::Protobuf::Empty. p result
#delete_share
def delete_share(request, options = nil) -> ::Gapic::Operation
def delete_share(name: nil) -> ::Gapic::OperationDeletes a catalog share.
def delete_share(request, options = nil) -> ::Gapic::Operationdelete_share via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteShareRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteShareRequest, ::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_share(name: nil) -> ::Gapic::Operationdelete_share via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteShareRequest.new # Call the delete_share method. result = client.delete_share 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_space
def delete_space(request, options = nil) -> ::Google::Protobuf::Empty
def delete_space(name: nil, force: nil) -> ::Google::Protobuf::EmptyDeletes a space.
def delete_space(request, options = nil) -> ::Google::Protobuf::Emptydelete_space via a request object, either of type
Google::Cloud::DesignCenter::V1::DeleteSpaceRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeleteSpaceRequest, ::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_space(name: nil, force: nil) -> ::Google::Protobuf::Emptydelete_space 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 space name.
- force (::Boolean) — Optional. If set to true, the space's children are also deleted. If false, the space is only deleted if it has no children.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeleteSpaceRequest.new # Call the delete_space method. result = client.delete_space request # The returned object is of type Google::Protobuf::Empty. p result
#deploy_application
def deploy_application(request, options = nil) -> ::Gapic::Operation
def deploy_application(name: nil, replace: nil, worker_pool: nil, service_account: nil, validate_only: nil) -> ::Gapic::OperationDeploys an application.
def deploy_application(request, options = nil) -> ::Gapic::Operationdeploy_application via a request object, either of type
Google::Cloud::DesignCenter::V1::DeployApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::DeployApplicationRequest, ::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 deploy_application(name: nil, replace: nil, worker_pool: nil, service_account: nil, validate_only: nil) -> ::Gapic::Operationdeploy_application 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 application name.
Format:
projects/$project/locations/$location/spaces/$space/applications/$application -
replace (::Boolean) — Optional. Flag to update the existing deployment. If not set or false,
deploy will fail if application
stateis in theDEPLOYEDstate. - worker_pool (::String) — Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId} If this flag is omitted, the worker pool already defined on the application will be used. If no worker pool is defined on the application, the default Cloud Build worker pool is used. The worker pool must exist in the same region as the application.
-
service_account (::String) —
Optional. The email address of the service account to use for this deployment.
- If provided, this service account will be used to execute the deployment process, taking precedence over any service_account specified on the Application resource.
- The caller must have the 'iam.serviceAccounts.actAs' permission on this service account.
- If this field is omitted, the system will use the 'service_account' defined within the Application resource.
- We recommend that you provide a service account here or on the Application resource. If you don't provide a service account, the deployment will fail. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
- validate_only (::Boolean) — Optional. If set to true, the request is validated, but no actual deployment will occur. See https://google.aip.dev/163 for more details.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::DeployApplicationRequest.new # Call the deploy_application method. result = client.deploy_application 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
#export_application_ia_c
def export_application_ia_c(request, options = nil) -> ::Gapic::Operation
def export_application_ia_c(name: nil, iac_format: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::OperationExports Terraform files for an application asynchronously.
def export_application_ia_c(request, options = nil) -> ::Gapic::Operationexport_application_ia_c via a request object, either of type
ExportApplicationIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ExportApplicationIaCRequest, ::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 export_application_ia_c(name: nil, iac_format: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::Operationexport_application_ia_c 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 application.
- iac_format (::Google::Cloud::DesignCenter::V1::IACFormat) — Optional. The IaC format to generate.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository.
- export_iac_config (::Google::Cloud::DesignCenter::V1::ExportIaCConfig, ::Hash) — Optional. Configuration for exporting IaC.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ExportApplicationIaCRequest.new # Call the export_application_ia_c method. result = client.export_application_ia_c 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
#export_application_template_ia_c
def export_application_template_ia_c(request, options = nil) -> ::Gapic::Operation
def export_application_template_ia_c(name: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::OperationExports Terraform files for an application template. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.
def export_application_template_ia_c(request, options = nil) -> ::Gapic::Operationexport_application_template_ia_c via a request object, either of type
ExportApplicationTemplateIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ExportApplicationTemplateIaCRequest, ::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 export_application_template_ia_c(name: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::Operationexport_application_template_ia_c 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 application template.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository. Default is Google Cloud Storage.
- export_iac_config (::Google::Cloud::DesignCenter::V1::ExportIaCConfig, ::Hash) — Optional. Configuration for exporting IaC.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ExportApplicationTemplateIaCRequest.new # Call the export_application_template_ia_c method. result = client.export_application_template_ia_c 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
#export_application_template_revision_ia_c
def export_application_template_revision_ia_c(request, options = nil) -> ::Gapic::Operation
def export_application_template_revision_ia_c(name: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::OperationExports Terraform files for an application template revision. The generated modules can have remote sources or local sources downloaded from remote. This is an ASYNCHRONOUS operation that returns a Long Running Operation.
def export_application_template_revision_ia_c(request, options = nil) -> ::Gapic::Operationexport_application_template_revision_ia_c via a request object, either of type
ExportApplicationTemplateRevisionIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ExportApplicationTemplateRevisionIaCRequest, ::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 export_application_template_revision_ia_c(name: nil, artifact_location: nil, export_iac_config: nil) -> ::Gapic::Operationexport_application_template_revision_ia_c 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 application template revision.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository. Default is Google Cloud Storage.
- export_iac_config (::Google::Cloud::DesignCenter::V1::ExportIaCConfig, ::Hash) — Optional. Configuration for exporting IaC.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ExportApplicationTemplateRevisionIaCRequest.new # Call the export_application_template_revision_ia_c method. result = client.export_application_template_revision_ia_c 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
#fetch_application_assessment_report
def fetch_application_assessment_report(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponse
def fetch_application_assessment_report(name: nil) -> ::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponseFetches the assessment report of a deployed application if present.
def fetch_application_assessment_report(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponsefetch_application_assessment_report via a request object, either of type
FetchApplicationAssessmentReportRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportRequest, ::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 fetch_application_assessment_report(name: nil) -> ::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponsefetch_application_assessment_report 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 application name in the following format:
projects/$project/locations/$location/spaces/$space/applications/$application
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportRequest.new # Call the fetch_application_assessment_report method. result = client.fetch_application_assessment_report request # The returned object is of type Google::Cloud::DesignCenter::V1::FetchApplicationAssessmentReportResponse. p result
#fetch_frameworks
def fetch_frameworks(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>
def fetch_frameworks(parent: nil, projects: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>Fetches all frameworks for assessment report.
def fetch_frameworks(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>fetch_frameworks via a request object, either of type
FetchFrameworksRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::FetchFrameworksRequest, ::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 fetch_frameworks(parent: nil, projects: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>fetch_frameworks 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 parent resource name. Format: projects/{project}/locations/{location}
- projects (::Array<::String>) — Optional. Projects to fetch frameworks for. Format: projects/{project}
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. Filter for frameworks list.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Framework>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::FetchFrameworksRequest.new # Call the fetch_frameworks method. result = client.fetch_frameworks 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::DesignCenter::V1::Framework. p item end
#generate_application_assessment_report
def generate_application_assessment_report(request, options = nil) -> ::Gapic::Operation
def generate_application_assessment_report(name: nil) -> ::Gapic::OperationGenerate Assessment Reports of an application.
def generate_application_assessment_report(request, options = nil) -> ::Gapic::Operationgenerate_application_assessment_report via a request object, either of type
GenerateApplicationAssessmentReportRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateApplicationAssessmentReportRequest, ::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 generate_application_assessment_report(name: nil) -> ::Gapic::Operationgenerate_application_assessment_report 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 application name in the following format:
projects/$project/locations/$location/spaces/$space/applications/$application
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateApplicationAssessmentReportRequest.new # Call the generate_application_assessment_report method. result = client.generate_application_assessment_report 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
#generate_application_ia_c
def generate_application_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponse
def generate_application_ia_c(name: nil, iac_format: nil, gcs_uri: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponseGenerates Terraform files for an application.
def generate_application_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponsegenerate_application_ia_c via a request object, either of type
GenerateApplicationIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCRequest, ::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 generate_application_ia_c(name: nil, iac_format: nil, gcs_uri: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponsegenerate_application_ia_c 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 application.
- iac_format (::Google::Cloud::DesignCenter::V1::IACFormat) — Optional. The IaC format to generate.
- gcs_uri (::String) — Optional. DEPRECATED: Use the 'artifact_location' field instead. The Cloud Storage URI to write the generated IaC to.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateApplicationIaCRequest.new # Call the generate_application_ia_c method. result = client.generate_application_ia_c request # The returned object is of type Google::Cloud::DesignCenter::V1::GenerateApplicationIaCResponse. p result
#generate_application_template_assessment_report
def generate_application_template_assessment_report(request, options = nil) -> ::Gapic::Operation
def generate_application_template_assessment_report(name: nil, service_account: nil) -> ::Gapic::OperationGenerate Assessment Reports of an application template.
def generate_application_template_assessment_report(request, options = nil) -> ::Gapic::Operationgenerate_application_template_assessment_report via a request object, either of type
GenerateApplicationTemplateAssessmentReportRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateAssessmentReportRequest, ::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 generate_application_template_assessment_report(name: nil, service_account: nil) -> ::Gapic::Operationgenerate_application_template_assessment_report 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 application template name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate -
service_account (::String) —
Optional. Deprecated: This field is no longer used since we moved to fast plan assessment.
- This service account will be used to execute the preview process.
- The caller must have the 'iam.serviceAccounts.actAs' permission on this service account. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateAssessmentReportRequest.new # Call the generate_application_template_assessment_report method. result = client.generate_application_template_assessment_report 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
#generate_application_template_ia_c
def generate_application_template_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponse
def generate_application_template_ia_c(name: nil, iac_format: nil, gcs_uri: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponseGenerates Terraform files for an application template. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.
def generate_application_template_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponsegenerate_application_template_ia_c via a request object, either of type
GenerateApplicationTemplateIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCRequest, ::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 generate_application_template_ia_c(name: nil, iac_format: nil, gcs_uri: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponsegenerate_application_template_ia_c 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 application template.
- iac_format (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCRequest::IACFormat) — Optional. The IaC format to generate.
- gcs_uri (::String) — Optional. DEPRECATED: Use the 'artifact_location' field instead. The Cloud Storage URI to write the generated IaC to.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCRequest.new # Call the generate_application_template_ia_c method. result = client.generate_application_template_ia_c request # The returned object is of type Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateIaCResponse. p result
#generate_application_template_revision_ia_c
def generate_application_template_revision_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponse
def generate_application_template_revision_ia_c(name: nil, iac_format: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponseGenerates Terraform files for an application template revision. This is a SYNCHRONOUS operation and returns the generated IaC directly in the response. It does NOT download external module sources; it only uses remote sources.
def generate_application_template_revision_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponsegenerate_application_template_revision_ia_c via a request object, either of type
GenerateApplicationTemplateRevisionIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCRequest, ::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 generate_application_template_revision_ia_c(name: nil, iac_format: nil, artifact_location: nil) -> ::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponsegenerate_application_template_revision_ia_c 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 application template revision.
- iac_format (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCRequest::IACFormat) — Optional. The IaC format to generate.
- artifact_location (::Google::Cloud::DesignCenter::V1::ArtifactLocation, ::Hash) — Optional. Specifies the destination for the generated IaC, which can be Cloud Storage or a Developer Connect repository.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCRequest.new # Call the generate_application_template_revision_ia_c method. result = client.generate_application_template_revision_ia_c request # The returned object is of type Google::Cloud::DesignCenter::V1::GenerateApplicationTemplateRevisionIaCResponse. p result
#generate_assessment_report
def generate_assessment_report(request, options = nil) -> ::Gapic::Operation
def generate_assessment_report(terraform_plan: nil, additional_frameworks: nil, space_name: nil) -> ::Gapic::OperationDeprecated: Use GenerateTerraformPlanAssessmentReport instead.
Generate a best practice report for a given Terraform plan.
def generate_assessment_report(request, options = nil) -> ::Gapic::Operationgenerate_assessment_report via a request object, either of type
GenerateAssessmentReportRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateAssessmentReportRequest, ::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 generate_assessment_report(terraform_plan: nil, additional_frameworks: nil, space_name: nil) -> ::Gapic::Operationgenerate_assessment_report 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).
- terraform_plan (::String) — Required. Terraform plan bytes.
- additional_frameworks (::Array<::String>) — Optional. Additional Frameworks to run assessment against. If empty, run against default frameworks. Frameworks refers to the policies.
-
space_name (::String) — Required. The name of the space at which Generate Assessment Report is
called. Format:
projects/$project/locations/$location/spaces/$space
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateAssessmentReportRequest.new # Call the generate_assessment_report method. result = client.generate_assessment_report 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
#generate_terraform_plan_assessment_report
def generate_terraform_plan_assessment_report(request, options = nil) -> ::Gapic::Operation
def generate_terraform_plan_assessment_report(name: nil, terraform_plan: nil, additional_frameworks: nil) -> ::Gapic::OperationGenerate a Terraform plan assessment report for a given Terraform plan.
def generate_terraform_plan_assessment_report(request, options = nil) -> ::Gapic::Operationgenerate_terraform_plan_assessment_report via a request object, either of type
GenerateTerraformPlanAssessmentReportRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GenerateTerraformPlanAssessmentReportRequest, ::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 generate_terraform_plan_assessment_report(name: nil, terraform_plan: nil, additional_frameworks: nil) -> ::Gapic::Operationgenerate_terraform_plan_assessment_report 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 parent resource in which to generate the assessment report. Format: projects/$project/locations/$location/spaces/$space
- terraform_plan (::String) — Required. The raw JSON representation of the generated Terraform plan, provided as bytes.
- additional_frameworks (::Array<::String>) — Optional. Additional Frameworks to run assessment against. If empty, run against default frameworks. Frameworks refers to the policies.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GenerateTerraformPlanAssessmentReportRequest.new # Call the generate_terraform_plan_assessment_report method. result = client.generate_terraform_plan_assessment_report 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
#get_application
def get_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Application
def get_application(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationGets details about an application.
def get_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Applicationget_application via a request object, either of type
GetApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetApplicationRequest, ::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_application(name: nil) -> ::Google::Cloud::DesignCenter::V1::Applicationget_application 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 application name.
Format:
projects/$project/locations/$location/spaces/$space/applications/$application
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetApplicationRequest.new # Call the get_application method. result = client.get_application request # The returned object is of type Google::Cloud::DesignCenter::V1::Application. p result
#get_application_template
def get_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplate
def get_application_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateGets details about an application template.
def get_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateget_application_template via a request object, either of type
GetApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetApplicationTemplateRequest, ::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_application_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateget_application_template 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 application template name.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetApplicationTemplateRequest.new # Call the get_application_template method. result = client.get_application_template request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplate. p result
#get_application_template_revision
def get_application_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision
def get_application_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisionGets details about an application template revision.
def get_application_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisionget_application_template_revision via a request object, either of type
GetApplicationTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetApplicationTemplateRevisionRequest, ::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_application_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevisionget_application_template_revision 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 application template revision name.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetApplicationTemplateRevisionRequest.new # Call the get_application_template_revision method. result = client.get_application_template_revision request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision. p result
#get_application_template_system_revision
def get_application_template_system_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision
def get_application_template_system_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevisionGets the given application template system revision.
def get_application_template_system_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevisionget_application_template_system_revision via a request object, either of type
GetApplicationTemplateSystemRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetApplicationTemplateSystemRevisionRequest, ::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_application_template_system_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevisionget_application_template_system_revision 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 ApplicationTemplateSystemRevision to retrieve. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}/systemRevisions/{system_revision}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetApplicationTemplateSystemRevisionRequest.new # Call the get_application_template_system_revision method. result = client.get_application_template_system_revision request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision. p result
#get_catalog
def get_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalog
def get_catalog(name: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogGets details about a catalog.
def get_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalogget_catalog via a request object, either of type
GetCatalogRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetCatalogRequest, ::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_catalog(name: nil) -> ::Google::Cloud::DesignCenter::V1::Catalogget_catalog 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 catalog name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Catalog)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetCatalogRequest.new # Call the get_catalog method. result = client.get_catalog request # The returned object is of type Google::Cloud::DesignCenter::V1::Catalog. p result
#get_catalog_template
def get_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplate
def get_catalog_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateGets a catalog template.
def get_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateget_catalog_template via a request object, either of type
GetCatalogTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetCatalogTemplateRequest, ::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_catalog_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateget_catalog_template 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 catalog template name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::CatalogTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetCatalogTemplateRequest.new # Call the get_catalog_template method. result = client.get_catalog_template request # The returned object is of type Google::Cloud::DesignCenter::V1::CatalogTemplate. p result
#get_catalog_template_revision
def get_catalog_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision
def get_catalog_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateRevisionGets details about a template revision.
def get_catalog_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateRevisionget_catalog_template_revision via a request object, either of type
GetCatalogTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetCatalogTemplateRevisionRequest, ::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_catalog_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateRevisionget_catalog_template_revision 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 catalog template revisions name.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetCatalogTemplateRevisionRequest.new # Call the get_catalog_template_revision method. result = client.get_catalog_template_revision request # The returned object is of type Google::Cloud::DesignCenter::V1::CatalogTemplateRevision. p result
#get_component
def get_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Component
def get_component(name: nil) -> ::Google::Cloud::DesignCenter::V1::ComponentGets details about a Component.
def get_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Componentget_component via a request object, either of type
GetComponentRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetComponentRequest, ::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_component(name: nil) -> ::Google::Cloud::DesignCenter::V1::Componentget_component 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 component name.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Component)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetComponentRequest.new # Call the get_component method. result = client.get_component request # The returned object is of type Google::Cloud::DesignCenter::V1::Component. p result
#get_connection
def get_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connection
def get_connection(name: nil) -> ::Google::Cloud::DesignCenter::V1::ConnectionGets details about a connection.
def get_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connectionget_connection via a request object, either of type
GetConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetConnectionRequest, ::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_connection(name: nil) -> ::Google::Cloud::DesignCenter::V1::Connectionget_connection 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::DesignCenter::V1::Connection)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetConnectionRequest.new # Call the get_connection method. result = client.get_connection request # The returned object is of type Google::Cloud::DesignCenter::V1::Connection. p result
#get_policy
def get_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policy
def get_policy(name: nil) -> ::Google::Cloud::DesignCenter::V1::PolicyPolicy related APIs. Get a policy for an application template.
def get_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policyget_policy via a request object, either of type
GetPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetPolicyRequest, ::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_policy(name: nil) -> ::Google::Cloud::DesignCenter::V1::Policyget_policy 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 policy name in the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Policy)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetPolicyRequest.new # Call the get_policy method. result = client.get_policy request # The returned object is of type Google::Cloud::DesignCenter::V1::Policy. p result
#get_share
def get_share(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Share
def get_share(name: nil) -> ::Google::Cloud::DesignCenter::V1::ShareGet catalog share object for the space.
def get_share(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Shareget_share via a request object, either of type
GetShareRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetShareRequest, ::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_share(name: nil) -> ::Google::Cloud::DesignCenter::V1::Shareget_share via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Share)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetShareRequest.new # Call the get_share method. result = client.get_share request # The returned object is of type Google::Cloud::DesignCenter::V1::Share. p result
#get_shared_template
def get_shared_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplate
def get_shared_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateGets details about a shared template.
def get_shared_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateget_shared_template via a request object, either of type
GetSharedTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetSharedTemplateRequest, ::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_shared_template(name: nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateget_shared_template 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 shared template name.
Format:
projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::SharedTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetSharedTemplateRequest.new # Call the get_shared_template method. result = client.get_shared_template request # The returned object is of type Google::Cloud::DesignCenter::V1::SharedTemplate. p result
#get_shared_template_revision
def get_shared_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateRevision
def get_shared_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateRevisionGets details about a shared template revision.
def get_shared_template_revision(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateRevisionget_shared_template_revision via a request object, either of type
GetSharedTemplateRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetSharedTemplateRevisionRequest, ::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_shared_template_revision(name: nil) -> ::Google::Cloud::DesignCenter::V1::SharedTemplateRevisionget_shared_template_revision 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 shared template revision name, in the following format:
projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate/revisions/$revision
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::SharedTemplateRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetSharedTemplateRevisionRequest.new # Call the get_shared_template_revision method. result = client.get_shared_template_revision request # The returned object is of type Google::Cloud::DesignCenter::V1::SharedTemplateRevision. p result
#get_space
def get_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Space
def get_space(name: nil) -> ::Google::Cloud::DesignCenter::V1::SpaceGets details about a space.
def get_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Spaceget_space via a request object, either of type
GetSpaceRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::GetSpaceRequest, ::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_space(name: nil) -> ::Google::Cloud::DesignCenter::V1::Spaceget_space 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 space name.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Space)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::GetSpaceRequest.new # Call the get_space method. result = client.get_space request # The returned object is of type Google::Cloud::DesignCenter::V1::Space. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Client)
#import_application_ia_c
def import_application_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponse
def import_application_ia_c(gcs_uri: nil, iac_module: nil, name: nil, allow_partial_import: nil, validate_iac: nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponseImports IaC for an application resource.
def import_application_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponseimport_application_ia_c via a request object, either of type
ImportApplicationIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ImportApplicationIaCRequest, ::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 import_application_ia_c(gcs_uri: nil, iac_module: nil, name: nil, allow_partial_import: nil, validate_iac: nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponseimport_application_ia_c 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).
-
gcs_uri (::String) — Optional. The Cloud Storage URI of the terraform code.
Note: The following parameters are mutually exclusive:
gcs_uri,iac_module. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
iac_module (::Google::Cloud::DesignCenter::V1::IaCModule, ::Hash) — Optional. The IaC module to import.
Note: The following parameters are mutually exclusive:
iac_module,gcs_uri. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - name (::String) — Required. The name of the application.
- allow_partial_import (::Boolean) — Optional. If set to true, partially imports the valid edits in the IaC and ignores the invalid changes. Defaults to false, which means any edits which can't be imported must result in an error.
- validate_iac (::Boolean) — Optional. If set to true, the IaC is validated against the golden terraform without importing. Defaults to false.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ImportApplicationIaCRequest.new # Call the import_application_ia_c method. result = client.import_application_ia_c request # The returned object is of type Google::Cloud::DesignCenter::V1::ImportApplicationIaCResponse. p result
#import_application_template
def import_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplate
def import_application_template(application_template_revision_uri: nil, shared_template_revision_uri: nil, serialized_application_template: nil, application_template_system_revision: nil, name: nil, annotations: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateImports to an existing application template from a given shared template.
def import_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateimport_application_template via a request object, either of type
ImportApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateRequest, ::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 import_application_template(application_template_revision_uri: nil, shared_template_revision_uri: nil, serialized_application_template: nil, application_template_system_revision: nil, name: nil, annotations: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateimport_application_template 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).
-
application_template_revision_uri (::String) — Optional. The source URI for application template revision.
Note: The following parameters are mutually exclusive:
application_template_revision_uri,shared_template_revision_uri,serialized_application_template,application_template_system_revision. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
shared_template_revision_uri (::String) — Optional. The source URI for catalog template.
Note: The following parameters are mutually exclusive:
shared_template_revision_uri,application_template_revision_uri,serialized_application_template,application_template_system_revision. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
serialized_application_template (::Google::Cloud::DesignCenter::V1::SerializedApplicationTemplate, ::Hash) — Optional. The serialized application template to be imported.
Note: The following parameters are mutually exclusive:
serialized_application_template,application_template_revision_uri,shared_template_revision_uri,application_template_system_revision. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
application_template_system_revision (::String) — Optional. The system revision to be imported. Used when user tries to
Restore (rev X) or perform Undo/Redo operations.
Note: The following parameters are mutually exclusive:
application_template_system_revision,application_template_revision_uri,shared_template_revision_uri,serialized_application_template. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - name (::String) — Required. The name of the application template.
- annotations (::Hash{::String => ::String}) — Optional. Annotations to be stored with the new system revision created as a result of this import. Sample annotations from agentic workflows might look like { "designcenter.googleapis.com/agent_id": "gemini-3-flash-v1", "designcenter.googleapis.com/llm_agent_summary": "Restored to revision Rev-100", "designcenter.googleapis.com/external_ref_id": "trace-uuid-88921-xyz", }
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ImportApplicationTemplateRequest.new # Call the import_application_template method. result = client.import_application_template request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplate. p result
#import_application_template_ia_c
def import_application_template_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponse
def import_application_template_ia_c(gcs_uri: nil, iac_module: nil, developer_connect_source_config: nil, name: nil, allow_partial_import: nil, validate_iac: nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponseImports IaC for an application template.
def import_application_template_ia_c(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponseimport_application_template_ia_c via a request object, either of type
ImportApplicationTemplateIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCRequest, ::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 import_application_template_ia_c(gcs_uri: nil, iac_module: nil, developer_connect_source_config: nil, name: nil, allow_partial_import: nil, validate_iac: nil) -> ::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponseimport_application_template_ia_c 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).
-
gcs_uri (::String) — Optional. The Cloud Storage URI of the terraform code.
Note: The following parameters are mutually exclusive:
gcs_uri,iac_module,developer_connect_source_config. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
iac_module (::Google::Cloud::DesignCenter::V1::IaCModule, ::Hash) — Optional. The IaC module to import.
Note: The following parameters are mutually exclusive:
iac_module,gcs_uri,developer_connect_source_config. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
developer_connect_source_config (::Google::Cloud::DesignCenter::V1::DeveloperConnectSourceConfig, ::Hash) — Optional. Configuration for fetching content from source code repository
such as GitHub or Bitbucket through Developer Connect.
Note: The following parameters are mutually exclusive:
developer_connect_source_config,gcs_uri,iac_module. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - name (::String) — Required. The name of the application template.
- allow_partial_import (::Boolean) — Optional. If set to true, partially imports the valid edits in the IaC and ignores the invalid changes. Defaults to false, which means any edits which can't be imported must result in an error.
- validate_iac (::Boolean) — Optional. If set to true, the IaC is validated against the golden terraform without importing. Defaults to false.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCRequest.new # Call the import_application_template_ia_c method. result = client.import_application_template_ia_c request # The returned object is of type Google::Cloud::DesignCenter::V1::ImportApplicationTemplateIaCResponse. p result
#ingest_application_template_ia_c
def ingest_application_template_ia_c(request, options = nil) -> ::Gapic::Operation
def ingest_application_template_ia_c(gcs_uri: nil, iac_module: nil, devconnect_source_config: nil, git_source: nil, name: nil, validate_catalog_compatibility: nil, raw_terraform_import_enabled: nil) -> ::Gapic::OperationIngests IaC for an application template asynchronously.
def ingest_application_template_ia_c(request, options = nil) -> ::Gapic::Operationingest_application_template_ia_c via a request object, either of type
IngestApplicationTemplateIaCRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::IngestApplicationTemplateIaCRequest, ::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 ingest_application_template_ia_c(gcs_uri: nil, iac_module: nil, devconnect_source_config: nil, git_source: nil, name: nil, validate_catalog_compatibility: nil, raw_terraform_import_enabled: nil) -> ::Gapic::Operationingest_application_template_ia_c 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).
-
gcs_uri (::String) — Optional. The Cloud Storage URI of the terraform code.
Note: The following parameters are mutually exclusive:
gcs_uri,iac_module,devconnect_source_config,git_source. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
iac_module (::Google::Cloud::DesignCenter::V1::IaCModule, ::Hash) — Optional. The IaC configuration to import.
Note: The following parameters are mutually exclusive:
iac_module,gcs_uri,devconnect_source_config,git_source. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
devconnect_source_config (::Google::Cloud::DesignCenter::V1::DeveloperConnectSourceConfig, ::Hash) — Optional. Configuration for fetching content from source code repository
such as GitHub or Bitbucket through Developer Connect.
Note: The following parameters are mutually exclusive:
devconnect_source_config,gcs_uri,iac_module,git_source. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
git_source (::Google::Cloud::DesignCenter::V1::GitSource, ::Hash) — Optional. The git source.
Note: The following parameters are mutually exclusive:
git_source,gcs_uri,iac_module,devconnect_source_config. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - name (::String) — Required. The name of the application template.
- validate_catalog_compatibility (::Boolean) — Optional. If set to true, validates if the imported IaC is compatible with the catalog.
- raw_terraform_import_enabled (::Boolean) — Optional. If set to true, imports the IaC as raw terraform and does not attempt SAT conversion.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::IngestApplicationTemplateIaCRequest.new # Call the ingest_application_template_ia_c method. result = client.ingest_application_template_ia_c 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
#initialize
def initialize() { |config| ... } -> ClientCreate a new DesignCenter client object.
- (config) — Configure the DesignCenter client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DesignCenter::V1::DesignCenter::Client.new do |config| config.timeout = 10.0 end
#list_application_template_revisions
def list_application_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>
def list_application_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>Lists application template revisions in a given application template.
def list_application_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>list_application_template_revisions via a request object, either of type
ListApplicationTemplateRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListApplicationTemplateRevisionsRequest, ::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_application_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>list_application_template_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 parent from which to list application template revisions.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which application template revisions to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateRevision>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListApplicationTemplateRevisionsRequest.new # Call the list_application_template_revisions method. result = client.list_application_template_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::DesignCenter::V1::ApplicationTemplateRevision. p item end
#list_application_template_system_revisions
def list_application_template_system_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>
def list_application_template_system_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>Lists application template system revisions in a given application template.
def list_application_template_system_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>list_application_template_system_revisions via a request object, either of type
ListApplicationTemplateSystemRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListApplicationTemplateSystemRevisionsRequest, ::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_application_template_system_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>list_application_template_system_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 parent Application Template from which to list the system revisions. Format: projects/{project}/locations/{location}/spaces/{space}/applicationTemplates/{application_template}
- page_size (::Integer) — Optional. The maximum number of system revisions to return. The service may return fewer than this value. If unspecified, at most 50 system revisions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter expression that filters system revisions listed in the response. See https://google.aip.dev/160 for more information on the grammar.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplateSystemRevision>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListApplicationTemplateSystemRevisionsRequest.new # Call the list_application_template_system_revisions method. result = client.list_application_template_system_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::DesignCenter::V1::ApplicationTemplateSystemRevision. p item end
#list_application_templates
def list_application_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>
def list_application_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>Lists application templates in a given space.
def list_application_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>list_application_templates via a request object, either of type
ListApplicationTemplatesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListApplicationTemplatesRequest, ::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_application_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>list_application_templates 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 parent resource from which to list application templates.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which shared template revisions to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::ApplicationTemplate>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListApplicationTemplatesRequest.new # Call the list_application_templates method. result = client.list_application_templates 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::DesignCenter::V1::ApplicationTemplate. p item end
#list_applications
def list_applications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>
def list_applications(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>Lists applications in a given space.
def list_applications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>list_applications via a request object, either of type
ListApplicationsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListApplicationsRequest, ::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_applications(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>list_applications 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 parent resource from which to request a list of applications.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which applications to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Application>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListApplicationsRequest.new # Call the list_applications method. result = client.list_applications 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::DesignCenter::V1::Application. p item end
#list_catalog_template_revisions
def list_catalog_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>
def list_catalog_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>Lists template revisions.
def list_catalog_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>list_catalog_template_revisions via a request object, either of type
ListCatalogTemplateRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListCatalogTemplateRevisionsRequest, ::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_catalog_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>list_catalog_template_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 parent resource from which a list of catalog template revisions is requested.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which catalog template revisions to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplateRevision>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListCatalogTemplateRevisionsRequest.new # Call the list_catalog_template_revisions method. result = client.list_catalog_template_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::DesignCenter::V1::CatalogTemplateRevision. p item end
#list_catalog_templates
def list_catalog_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>
def list_catalog_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>Lists catalog templates.
def list_catalog_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>list_catalog_templates via a request object, either of type
ListCatalogTemplatesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListCatalogTemplatesRequest, ::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_catalog_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>list_catalog_templates 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 parent from which the catalog templates are listed in the
following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog - page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses the catalog templates to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::CatalogTemplate>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListCatalogTemplatesRequest.new # Call the list_catalog_templates method. result = client.list_catalog_templates 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::DesignCenter::V1::CatalogTemplate. p item end
#list_catalogs
def list_catalogs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>
def list_catalogs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>Lists catalogs in a given space.
def list_catalogs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>list_catalogs via a request object, either of type
ListCatalogsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListCatalogsRequest, ::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_catalogs(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>list_catalogs 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 parent space from which catalogs are listed.
Format:
projects/$project/locations/$location/spaces/$space - page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which catalogs to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Catalog>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListCatalogsRequest.new # Call the list_catalogs method. result = client.list_catalogs 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::DesignCenter::V1::Catalog. p item end
#list_components
def list_components(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>
def list_components(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>Lists components in an application template.
def list_components(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>list_components via a request object, either of type
ListComponentsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListComponentsRequest, ::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_components(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>list_components 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 parent resource from which the list of components is requested.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which components to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Component>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListComponentsRequest.new # Call the list_components method. result = client.list_components 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::DesignCenter::V1::Component. p item end
#list_connections
def list_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>
def list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>Lists connections in an application template.
def list_connections(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>list_connections via a request object, either of type
ListConnectionsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListConnectionsRequest, ::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_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>list_connections 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 parent resource from which to request a list of connections.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which connections to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Connection>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListConnectionsRequest.new # Call the list_connections method. result = client.list_connections 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::DesignCenter::V1::Connection. p item end
#list_policies
def list_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>
def list_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>Lists policies for an application template.
def list_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>list_policies via a request object, either of type
ListPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListPoliciesRequest, ::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_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>list_policies 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 parent application template from which policies are listed in
the following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate - page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which policies to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Policy>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListPoliciesRequest.new # Call the list_policies method. result = client.list_policies 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::DesignCenter::V1::Policy. p item end
#list_shared_template_revisions
def list_shared_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>
def list_shared_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>Lists shared template revisions in a given space.
def list_shared_template_revisions(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>list_shared_template_revisions via a request object, either of type
ListSharedTemplateRevisionsRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListSharedTemplateRevisionsRequest, ::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_shared_template_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>list_shared_template_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 parent resource from which to list shared template revisions,
in the following format:
projects/$project/locations/$location/spaces/$space/sharedTemplates/$sharedTemplate - page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which shared template revisions to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplateRevision>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListSharedTemplateRevisionsRequest.new # Call the list_shared_template_revisions method. result = client.list_shared_template_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::DesignCenter::V1::SharedTemplateRevision. p item end
#list_shared_templates
def list_shared_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>
def list_shared_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>Lists shared templates in a given space.
def list_shared_templates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>list_shared_templates via a request object, either of type
ListSharedTemplatesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListSharedTemplatesRequest, ::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_shared_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>list_shared_templates 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 parent space for which shared templates are listed in the
following format:
projects/$project/locations/$location/spaces/$space - page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which shared templates to return.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::SharedTemplate>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListSharedTemplatesRequest.new # Call the list_shared_templates method. result = client.list_shared_templates 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::DesignCenter::V1::SharedTemplate. p item end
#list_shares
def list_shares(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>
def list_shares(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>Lists catalog share objects for the space.
def list_shares(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>list_shares via a request object, either of type
ListSharesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListSharesRequest, ::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_shares(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>list_shares via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource from which a list of shares is requested.
- page_size (::Integer) — Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
- page_token (::String) — Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- order_by (::String) — Optional. How the results should be sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Share>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListSharesRequest.new # Call the list_shares method. result = client.list_shares 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::DesignCenter::V1::Share. p item end
#list_spaces
def list_spaces(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>
def list_spaces(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>Lists spaces in a given project and location.
def list_spaces(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>list_spaces via a request object, either of type
ListSpacesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::ListSpacesRequest, ::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_spaces(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>list_spaces 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 the parent resource, for which spaces are listed.
- page_size (::Integer) — Optional. The maximum number of pages to return from this request. If unspecified, the value automatically reflects the number of results returned.
- page_token (::String) — Optional. If present, retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- filter (::String) — Optional. A filter that chooses which spaces to return.
- order_by (::String) — Optional. How the results are sorted.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DesignCenter::V1::Space>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::ListSpacesRequest.new # Call the list_spaces method. result = client.list_spaces 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::DesignCenter::V1::Space. 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::DesignCenter::V1::DesignCenter::OperationsGet the associated client for long-running operations.
#preview_application
def preview_application(request, options = nil) -> ::Gapic::Operation
def preview_application(name: nil, worker_pool: nil, service_account: nil) -> ::Gapic::OperationPreviews deployment of an application.
def preview_application(request, options = nil) -> ::Gapic::Operationpreview_application via a request object, either of type
PreviewApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::PreviewApplicationRequest, ::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 preview_application(name: nil, worker_pool: nil, service_account: nil) -> ::Gapic::Operationpreview_application 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 application name in the following format:
projects/$project/locations/$location/spaces/$space/applications/$application - worker_pool (::String) — Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId} If this flag is omitted, the worker pool already defined on the application will be used. If no worker pool is defined on the application, the default Cloud Build worker pool is used. The worker pool must exist in the same region as the application.
-
service_account (::String) —
Optional. The email address of the service account to use for this preview operation.
- If provided, this service account will be used to execute the preview process, taking precedence over any service_account specified on the Application resource.
- The caller must have the 'iam.serviceAccounts.actAs' permission on this service account.
- If this field is omitted, the system will use the 'service_account' defined within the Application resource.
- We recommend that you provide a service account here or on the Application resource. If you don't provide a service account, the preview will fail. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::PreviewApplicationRequest.new # Call the preview_application method. result = client.preview_application 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
#recommend_iam_roles
def recommend_iam_roles(request, options = nil) -> ::Gapic::Operation
def recommend_iam_roles(name: nil) -> ::Gapic::OperationGets recommended IAM roles for an application.
Evaluates the infrastructure resources defined by an application (including its template configuration and parameters) to determine the set of IAM roles and Google Cloud APIs that you must configure before you deploy across target projects.
The operation is asynchronous and returns a google.longrunning.Operation.
Upon completion, the operation result contains a
RecommendIAMRolesResponse with project-level IAM role and API
recommendations.
def recommend_iam_roles(request, options = nil) -> ::Gapic::Operationrecommend_iam_roles via a request object, either of type
RecommendIAMRolesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::RecommendIAMRolesRequest, ::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 recommend_iam_roles(name: nil) -> ::Gapic::Operationrecommend_iam_roles 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 application resource for which to recommend IAM roles. Format: projects/$project/locations/$location/spaces/$space/applications/$application
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::RecommendIAMRolesRequest.new # Call the recommend_iam_roles method. result = client.recommend_iam_roles 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
#register_app_hub_application_resources
def register_app_hub_application_resources(request, options = nil) -> ::Gapic::Operation
def register_app_hub_application_resources(tfstate_content: nil, tfstate_signed_gcs_uri: nil, parent: nil, apphub_application: nil) -> ::Gapic::OperationRegister deployed resources from terraform state file with App Hub without needing a space.
def register_app_hub_application_resources(request, options = nil) -> ::Gapic::Operationregister_app_hub_application_resources via a request object, either of type
RegisterAppHubApplicationResourcesRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::RegisterAppHubApplicationResourcesRequest, ::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_app_hub_application_resources(tfstate_content: nil, tfstate_signed_gcs_uri: nil, parent: nil, apphub_application: nil) -> ::Gapic::Operationregister_app_hub_application_resources 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).
-
tfstate_content (::String) — Optional. The Terraform state (tfstate) content as a raw string.
For large state files exceeding 10MB, use the 'tfstate_signed_gcs_uri'
field instead.
Note: The following parameters are mutually exclusive:
tfstate_content,tfstate_signed_gcs_uri. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
tfstate_signed_gcs_uri (::String) — Optional. A securely signed Cloud Storage URI pointing to the tfstate
file. The URI must be signed to grant the service temporary read access
to the state file. Application Design Center imposes a limit on the
maximum size of the state file accessed via this URI.
Note: The following parameters are mutually exclusive:
tfstate_signed_gcs_uri,tfstate_content. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - parent (::String) — Required. The parent location. Format: projects/{project}/locations/{location}
- apphub_application (::String) — Required. The name of the AppHub Application. Format: projects/{project}/locations/{location}/applications/{application}
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::RegisterAppHubApplicationResourcesRequest.new # Call the register_app_hub_application_resources method. result = client.register_app_hub_application_resources 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
#snapshot_application_template
def snapshot_application_template(request, options = nil) -> ::Gapic::Operation
def snapshot_application_template(name: nil) -> ::Gapic::OperationSnapshots an application template to create a new revision asynchronously.
def snapshot_application_template(request, options = nil) -> ::Gapic::Operationsnapshot_application_template via a request object, either of type
SnapshotApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::SnapshotApplicationTemplateRequest, ::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 snapshot_application_template(name: nil) -> ::Gapic::Operationsnapshot_application_template 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 application template.
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::SnapshotApplicationTemplateRequest.new # Call the snapshot_application_template method. result = client.snapshot_application_template 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
#sync_share
def sync_share(request, options = nil) -> ::Gapic::Operation
def sync_share(name: nil) -> ::Gapic::OperationSynchronizes a share and updates the destination workspace to reflect. reflect the most recent changes to the catalog.
def sync_share(request, options = nil) -> ::Gapic::Operationsync_share via a request object, either of type
SyncShareRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::SyncShareRequest, ::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 sync_share(name: nil) -> ::Gapic::Operationsync_share via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
- (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/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::SyncShareRequest.new # Call the sync_share method. result = client.sync_share 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
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_application
def update_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Application
def update_application(update_mask: nil, application: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationUpdates an application.
def update_application(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Applicationupdate_application via a request object, either of type
UpdateApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateApplicationRequest, ::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_application(update_mask: nil, application: nil) -> ::Google::Cloud::DesignCenter::V1::Applicationupdate_application 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the application update. If you don't provide a mask, all fields are overwritten.
- application (::Google::Cloud::DesignCenter::V1::Application, ::Hash) — Required. The application to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateApplicationRequest.new # Call the update_application method. result = client.update_application request # The returned object is of type Google::Cloud::DesignCenter::V1::Application. p result
#update_application_template
def update_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplate
def update_application_template(update_mask: nil, application_template: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateUpdates an application template.
def update_application_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateupdate_application_template via a request object, either of type
UpdateApplicationTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateApplicationTemplateRequest, ::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_application_template(update_mask: nil, application_template: nil) -> ::Google::Cloud::DesignCenter::V1::ApplicationTemplateupdate_application_template 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the application template 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 you don't provide a mask, all fields are overwritten.
- application_template (::Google::Cloud::DesignCenter::V1::ApplicationTemplate, ::Hash) — Required. The application template to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::ApplicationTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateApplicationTemplateRequest.new # Call the update_application_template method. result = client.update_application_template request # The returned object is of type Google::Cloud::DesignCenter::V1::ApplicationTemplate. p result
#update_catalog
def update_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalog
def update_catalog(update_mask: nil, catalog: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogUpdates a catalog.
def update_catalog(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Catalogupdate_catalog via a request object, either of type
UpdateCatalogRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateCatalogRequest, ::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_catalog(update_mask: nil, catalog: nil) -> ::Google::Cloud::DesignCenter::V1::Catalogupdate_catalog 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the catalog update. If you don't provide a mask, all fields are overwritten.
- catalog (::Google::Cloud::DesignCenter::V1::Catalog, ::Hash) — Required. The catalog to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Catalog)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateCatalogRequest.new # Call the update_catalog method. result = client.update_catalog request # The returned object is of type Google::Cloud::DesignCenter::V1::Catalog. p result
#update_catalog_template
def update_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplate
def update_catalog_template(catalog_template: nil, update_mask: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateUpdates a catalog template resource.
def update_catalog_template(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateupdate_catalog_template via a request object, either of type
UpdateCatalogTemplateRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateCatalogTemplateRequest, ::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_catalog_template(catalog_template: nil, update_mask: nil) -> ::Google::Cloud::DesignCenter::V1::CatalogTemplateupdate_catalog_template 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).
-
catalog_template (::Google::Cloud::DesignCenter::V1::CatalogTemplate, ::Hash) — Required. The catalog template to update.
Format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/templates/$template - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the catalog template 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 you don't provide a mask, all fields are overwritten.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::CatalogTemplate)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateCatalogTemplateRequest.new # Call the update_catalog_template method. result = client.update_catalog_template request # The returned object is of type Google::Cloud::DesignCenter::V1::CatalogTemplate. p result
#update_component
def update_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Component
def update_component(update_mask: nil, component: nil) -> ::Google::Cloud::DesignCenter::V1::ComponentUpdates a component.
def update_component(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Componentupdate_component via a request object, either of type
UpdateComponentRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateComponentRequest, ::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_component(update_mask: nil, component: nil) -> ::Google::Cloud::DesignCenter::V1::Componentupdate_component 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the component update. If you don't provide a mask, all fields are overwritten.
- component (::Google::Cloud::DesignCenter::V1::Component, ::Hash) — Required. The component to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Component)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateComponentRequest.new # Call the update_component method. result = client.update_component request # The returned object is of type Google::Cloud::DesignCenter::V1::Component. p result
#update_connection
def update_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connection
def update_connection(update_mask: nil, connection: nil) -> ::Google::Cloud::DesignCenter::V1::ConnectionUpdates a connection.
def update_connection(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Connectionupdate_connection via a request object, either of type
UpdateConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateConnectionRequest, ::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_connection(update_mask: nil, connection: nil) -> ::Google::Cloud::DesignCenter::V1::Connectionupdate_connection 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. Fields to overwrite in the connection 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 you don't provide a mask, all fields are overwritten.
- connection (::Google::Cloud::DesignCenter::V1::Connection, ::Hash) — Required. The connection to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Connection)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateConnectionRequest.new # Call the update_connection method. result = client.update_connection request # The returned object is of type Google::Cloud::DesignCenter::V1::Connection. p result
#update_policy
def update_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policy
def update_policy(update_mask: nil, policy: nil) -> ::Google::Cloud::DesignCenter::V1::PolicyUpdates a policy.
def update_policy(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Policyupdate_policy via a request object, either of type
UpdatePolicyRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdatePolicyRequest, ::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_policy(update_mask: nil, policy: nil) -> ::Google::Cloud::DesignCenter::V1::Policyupdate_policy 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the policy 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 you don't provide a mask, all fields are overwritten.
- policy (::Google::Cloud::DesignCenter::V1::Policy, ::Hash) — Required. The policy to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Policy)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdatePolicyRequest.new # Call the update_policy method. result = client.update_policy request # The returned object is of type Google::Cloud::DesignCenter::V1::Policy. p result
#update_space
def update_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Space
def update_space(update_mask: nil, space: nil) -> ::Google::Cloud::DesignCenter::V1::SpaceUpdates a space.
def update_space(request, options = nil) -> ::Google::Cloud::DesignCenter::V1::Spaceupdate_space via a request object, either of type
UpdateSpaceRequest or an equivalent Hash.
- request (::Google::Cloud::DesignCenter::V1::UpdateSpaceRequest, ::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_space(update_mask: nil, space: nil) -> ::Google::Cloud::DesignCenter::V1::Spaceupdate_space 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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The fields to overwrite in the space update. If you don't provide a mask, all fields are overwritten.
- space (::Google::Cloud::DesignCenter::V1::Space, ::Hash) — Required. The space to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DesignCenter::V1::Space)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/design_center/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DesignCenter::V1::DesignCenter::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DesignCenter::V1::UpdateSpaceRequest.new # Call the update_space method. result = client.update_space request # The returned object is of type Google::Cloud::DesignCenter::V1::Space. p result