envgroup

package
v1.125.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttachCmd = &cobra.Command{
	Use:   "attach",
	Short: "Attach an env to an Environment Group",
	Long:  "Attach an env to an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.Attach(name, environment)
		return
	},
}

AttachCmd to get env group

View Source
var Cmd = &cobra.Command{
	Use:   "envgroups",
	Short: "Manage Apigee environment groups",
	Long:  "Manage Apigee environment groups",
}

Cmd to manage envs

View Source
var CreateCmd = &cobra.Command{
	Use:   "create",
	Short: "Create an Environment Group",
	Long:  "Create an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.Create(name, hostnames)
		return
	},
}

CreateCmd to create a new product

View Source
var DelCmd = &cobra.Command{
	Use:   "delete",
	Short: "Deletes an Environment Group",
	Long:  "Deletes an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.Delete(name)
		return
	},
}

DelCmd to get env group

View Source
var DetachCmd = &cobra.Command{
	Use:   "detach",
	Short: "Detach an env from an Environment Group",
	Long:  "Detach an env from an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.DetachEnvironment(name, environment)
		return
	},
}

DetachCmd to get env group

View Source
var GetCmd = &cobra.Command{
	Use:   "get",
	Short: "Gets an Environment Group",
	Long:  "Gets an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.Get(name)
		return
	},
}

GetCmd to get env group

View Source
var ListAttachCmd = &cobra.Command{
	Use:   "listattach",
	Short: "List attachments of an Environment Group",
	Long:  "List attachments of an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.ListAttach(name)
		return
	},
}

ListAttachCmd to get env group

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "Returns a list of environment groups",
	Long:  "Returns a list of environment groups",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.List()
		return
	},
}

ListCmd to list products

View Source
var UpdateCmd = &cobra.Command{
	Use:   "update",
	Short: "Update hostnames in an Environment Group",
	Long:  "Update hostnames in an Environment Group",
	Args: func(cmd *cobra.Command, args []string) (err error) {
		return apiclient.SetApigeeOrg(org)
	},
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		_, err = envgroups.PatchHosts(name, hostnames)
		return
	},
}

UpdateCmd to create a new product

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL