Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 45 additions & 67 deletions sdk/go/api_esc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/go/api_esc_extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (c *EscClient) ReadEnvironmentProperty(ctx context.Context, org, projectNam
// CreateEnvironment creates a new environment with the given name in the given organization.
func (c *EscClient) CreateEnvironment(ctx context.Context, org, projectName, envName string) error {
createEnvironment := NewCreateEnvironment(projectName, envName)
_, _, err := c.EscAPI.CreateEnvironment(ctx, org).CreateEnvironment(*createEnvironment).Execute()
_, err := c.EscAPI.CreateEnvironment(ctx, org).CreateEnvironment(*createEnvironment).Execute()
return err
}

Expand Down Expand Up @@ -284,7 +284,7 @@ func (c *EscClient) UpdateEnvironment(ctx context.Context, org, projectName, env

// DeleteEnvironment deletes the environment with the given name in the given organization.
func (c *EscClient) DeleteEnvironment(ctx context.Context, org, projectName, envName string) error {
_, _, err := c.EscAPI.DeleteEnvironment(ctx, org, projectName, envName).Execute()
_, err := c.EscAPI.DeleteEnvironment(ctx, org, projectName, envName).Execute()
return err
}

Expand Down
Loading