GoogleCloudPlatform / application-integration-management-toolkit

This tool lets you interact with Application Integration, Integration Connectors or Apigee Integration/Connector APIs. The tool lets you manage (create, del, get, list) integrations, connections etc.
Apache License 2.0
22 stars 16 forks source link

Update connectors not working as expected #123

Closed ssvaidyanathan closed 1 year ago

ssvaidyanathan commented 1 year ago
srinandan commented 1 year ago

I tested the command and it worked fine. I suspect the update_mask flag wasn't properly set. In your example, the update_mask will be destinationConfigs

ssvaidyanathan commented 1 year ago

Worked as expected when I passed the update_mask Maybe we should be more clear on the documentation on what to pass for update_mask

kondurure commented 1 year ago

@srinandan, can you please help me share share some samples for how should pass/use update_mask

srinandan commented 1 year ago

Sorry for the late reply. Here is an example:

integrationcli connectors update -n sample --update-mask=destinationConfigs,description,nodeConfig -f path/to/file.json -t $token -r $region -p $project
srinandan commented 1 year ago

I have submitted a PR which will set a default update mask so you don't have to pass anything.