Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
add support for apigee connect
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jan 3, 2020
1 parent a680b6e commit 3724fb3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cmd/iam/createconnect/createconnect.go
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")
}

0 comments on commit 3724fb3

Please sign in to comment.