universe
: _(Optional, default: `googleapis.com`)_ The Google Cloud universe to use for constructing API endpoints. The
+ default universe is "googleapis.com", which corresponds to
+ https://cloud.google.com. Trusted Partner Cloud and Google Distributed
+ Hosted Cloud should set this to their universe address.
+
diff --git a/action.yml b/action.yml
index d5d4147..1e5fbf6 100644
--- a/action.yml
+++ b/action.yml
@@ -76,6 +76,15 @@ inputs:
required: false
default: 'utf8'
+ universe:
+ description: |-
+ The Google Cloud universe to use for constructing API endpoints. The
+ default universe is "googleapis.com", which corresponds to
+ https://cloud.google.com. Trusted Partner Cloud and Google Distributed
+ Hosted Cloud should set this to their universe address.
+ required: false
+ default: 'googleapis.com'
+
outputs:
secrets:
description: |-
diff --git a/dist/index.js b/dist/index.js
index 2df96ca..0b1af42 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2,4 +2,4 @@
/*! safe-buffer. MIT License. Feross Aboukhadijeh /secrets/ /locations/ /secrets/ /secrets/ /locations/ /secrets/ / //versions//versions/
+ // projects//versions/
+ case 6: {
+ if (refParts[2] === 'secrets') {
+ this.project = refParts[1];
+ this.name = refParts[3];
+ this.version = refParts[5];
+ break;
+ } else if (refParts[2] === 'locations') {
+ this.project = refParts[1];
+ this.location = refParts[3];
+ this.name = refParts[5];
+ this.version = 'latest';
+ break;
+ } else {
+ throw new TypeError(`Invalid reference "${s}" - unknown format`);
+ }
+ }
+ // projects/ OR //