This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package createconnect | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
"github.com/srinandan/apigeecli/cmd/shared" | ||
) | ||
|
||
//Cmd to get org details | ||
var Cmd = &cobra.Command{ | ||
Use: "createconnect", | ||
Short: "Create a new IAM Service Account for Apigee Connect", | ||
Long: "Create a new IAM Service Account for Apigee Connect", | ||
RunE: func(cmd *cobra.Command, args []string) (err error) { | ||
return shared.CreateIAMServiceAccount(name, "connect") | ||
}, | ||
} | ||
|
||
var name string | ||
|
||
func init() { | ||
|
||
Cmd.Flags().StringVarP(&shared.RootArgs.ProjectID, "prj", "p", | ||
"", "GCP Project ID") | ||
Cmd.Flags().StringVarP(&name, "name", "n", | ||
"", "Service Account Name") | ||
|
||
_ = Cmd.MarkFlagRequired("prj") | ||
_ = Cmd.MarkFlagRequired("name") | ||
} |