Skip to content

Commit 53449c3

Browse files
authored
Fixed schemas and tests (#115)
1 parent 6db22a0 commit 53449c3

File tree

6 files changed

+70
-100
lines changed

6 files changed

+70
-100
lines changed

sdk/go/api_esc.go

Lines changed: 45 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/go/api_esc_extensions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (c *EscClient) ReadEnvironmentProperty(ctx context.Context, org, projectNam
242242
// CreateEnvironment creates a new environment with the given name in the given organization.
243243
func (c *EscClient) CreateEnvironment(ctx context.Context, org, projectName, envName string) error {
244244
createEnvironment := NewCreateEnvironment(projectName, envName)
245-
_, _, err := c.EscAPI.CreateEnvironment(ctx, org).CreateEnvironment(*createEnvironment).Execute()
245+
_, err := c.EscAPI.CreateEnvironment(ctx, org).CreateEnvironment(*createEnvironment).Execute()
246246
return err
247247
}
248248

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

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

0 commit comments

Comments
 (0)