gcloud design-center spaces application-templates components connections update

NAME
gcloud design-center spaces application-templates components connections update - update a connection
SYNOPSIS
gcloud design-center spaces application-templates components connections update (CONNECTION : --component=COMPONENT) [--application-template=APPLICATION_TEMPLATE] [--destination-component-uri=DESTINATION_COMPONENT_URI] [--location=LOCATION] [--space=SPACE] [--destination-component-parameters=[key=KEY],[value=VALUE]     | --add-destination-component-parameters=[key=KEY],[value=VALUE] --clear-destination-component-parameters     | --remove-destination-component-parameters=[key=KEY],[value=VALUE]] [--source-component-parameters=[key=KEY],[value=VALUE]     | --add-source-component-parameters=[key=KEY],[value=VALUE] --clear-source-component-parameters     | --remove-source-component-parameters=[key=KEY],[value=VALUE]] [GCLOUD_WIDE_FLAG]
DESCRIPTION
Update a connection between components in an application template.
EXAMPLES
To update the destination component URI to projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-component in the connection my-connection in component my-component of application template my-app-template, space my-space, project my-project and location us-central1, run:
gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --destination-component-uri=other-new-component

Or run:

gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --destination-component-uri=projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-component

Or run:

gcloud design-center spaces application-templates components connections update projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/my-component/connections/my-connection --destination-component-uri=projects/my-project/locations/us-central1/spaces/my-space/applicationTemplates/my-app-template/components/other-new-component

To add a new parameter key-value pair of new_parameter_key:new-parameter to the connection my-connection in component my-component of application template my-app-template, space my-space, project my-project and location us-central1, run the following shorthand example:

gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters=key=project_id,value=new-project --add-parameters=key=new_parameter_key,value=new-parameter

Or run the following JSON example:

gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters='[{"key": "project_id", "value":
 "new-project"}, {"key": "new_parameter_key", "value":
 "new-parameter"}]'

Or create a YAML or JSON file with the parameters and run the following file example:

gcloud design-center spaces application-templates components connections update my-connection --application-template=my-app-template --component=my-component --space=my-space --project=my-project --location=us-central1 --add-parameters=my-parameters.yaml

To clear all parameters from the connection my-connection in component my-component of application template my-app-template, space my-space, project my-project and location us-central1, run:

gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --clear-parameters

To remove an existing parameter key-value pair of type:connection-type from the connection my-connection in component my-component of application template my-app-template, space my-space, project my-project and location us-central1, run:

gcloud design-center spaces application-templates components connections update my-connection --component=my-component --application-template=my-app-template --space=my-space --project=my-project --location=us-central1 --remove-parameters=key=type,value=connection-type
POSITIONAL ARGUMENTS
Connection resource - Identifier. The connection name. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute: