diff --git a/aliases.go b/aliases.go
index 85a555d..61fc5c1 100644
--- a/aliases.go
+++ b/aliases.go
@@ -15,7 +15,7 @@ type Error = apierror.Error
// that the automation should be triggered after the dev container has started.
//
// This is an alias to an internal type.
-type AutomationTrigger = shared.AutomationTrigger
+type AutomationTrigge = shared.AutomationTrigge
// An AutomationTrigger represents a trigger for an automation action. The
// `post_environment_start` field indicates that the automation should be triggered
@@ -23,7 +23,7 @@ type AutomationTrigger = shared.AutomationTrigger
// that the automation should be triggered after the dev container has started.
//
// This is an alias to an internal type.
-type AutomationTriggerParam = shared.AutomationTriggerParam
+type AutomationTriggeParam = shared.AutomationTriggeParam
// This is an alias to an internal type.
type EnvironmentClass = shared.EnvironmentClass
diff --git a/api.md b/api.md
index 5aa7cbb..11835f1 100644
--- a/api.md
+++ b/api.md
@@ -1,6 +1,6 @@
# Shared Params Types
-- shared.AutomationTriggerParam
+- shared.AutomationTriggeParam
- shared.EnvironmentClassParam
- shared.FieldValueParam
- shared.OrganizationRole
@@ -13,7 +13,7 @@
# Shared Response Types
-- shared.AutomationTrigger
+- shared.AutomationTrigge
- shared.EnvironmentClass
- shared.FieldValue
- shared.OrganizationRole
diff --git a/environmentautomationservice.go b/environmentautomationservice.go
index 69b4e16..0431be4 100644
--- a/environmentautomationservice.go
+++ b/environmentautomationservice.go
@@ -244,8 +244,8 @@ type ServiceMetadata struct {
// identify the service in user interactions (e.g. the CLI).
Reference string `json:"reference"`
// triggered_by is a list of trigger that start the service.
- TriggeredBy []shared.AutomationTrigger `json:"triggeredBy"`
- JSON serviceMetadataJSON `json:"-"`
+ TriggeredBy []shared.AutomationTrigge `json:"triggeredBy"`
+ JSON serviceMetadataJSON `json:"-"`
}
// serviceMetadataJSON contains the JSON metadata for the struct [ServiceMetadata]
@@ -372,7 +372,7 @@ type ServiceMetadataParam struct {
// identify the service in user interactions (e.g. the CLI).
Reference param.Field[string] `json:"reference"`
// triggered_by is a list of trigger that start the service.
- TriggeredBy param.Field[[]shared.AutomationTriggerParam] `json:"triggeredBy"`
+ TriggeredBy param.Field[[]shared.AutomationTriggeParam] `json:"triggeredBy"`
}
func (r ServiceMetadataParam) MarshalJSON() (data []byte, err error) {
@@ -665,7 +665,7 @@ func (r EnvironmentAutomationServiceUpdateParamsMetadata) MarshalJSON() (data []
}
type EnvironmentAutomationServiceUpdateParamsMetadataTriggeredBy struct {
- Trigger param.Field[[]shared.AutomationTriggerParam] `json:"trigger"`
+ Trigger param.Field[[]shared.AutomationTriggeParam] `json:"trigger"`
}
func (r EnvironmentAutomationServiceUpdateParamsMetadataTriggeredBy) MarshalJSON() (data []byte, err error) {
diff --git a/environmentautomationservice_test.go b/environmentautomationservice_test.go
index 2a88e92..7734b29 100644
--- a/environmentautomationservice_test.go
+++ b/environmentautomationservice_test.go
@@ -39,7 +39,7 @@ func TestEnvironmentAutomationServiceNewWithOptionalParams(t *testing.T) {
Description: gitpod.F("description"),
Name: gitpod.F("x"),
Reference: gitpod.F("reference"),
- TriggeredBy: gitpod.F([]shared.AutomationTriggerParam{{
+ TriggeredBy: gitpod.F([]shared.AutomationTriggeParam{{
Manual: gitpod.F(true),
PostDevcontainerStart: gitpod.F(true),
PostEnvironmentStart: gitpod.F(true),
@@ -115,7 +115,7 @@ func TestEnvironmentAutomationServiceUpdateWithOptionalParams(t *testing.T) {
Description: gitpod.F("description"),
Name: gitpod.F("x"),
TriggeredBy: gitpod.F(gitpod.EnvironmentAutomationServiceUpdateParamsMetadataTriggeredBy{
- Trigger: gitpod.F([]shared.AutomationTriggerParam{{
+ Trigger: gitpod.F([]shared.AutomationTriggeParam{{
Manual: gitpod.F(true),
PostDevcontainerStart: gitpod.F(true),
PostEnvironmentStart: gitpod.F(true),
diff --git a/environmentautomationtask.go b/environmentautomationtask.go
index e1292dc..4931250 100644
--- a/environmentautomationtask.go
+++ b/environmentautomationtask.go
@@ -210,7 +210,7 @@ func (r EnvironmentAutomationTaskUpdateParamsMetadata) MarshalJSON() (data []byt
}
type EnvironmentAutomationTaskUpdateParamsMetadataTriggeredBy struct {
- Trigger param.Field[[]shared.AutomationTriggerParam] `json:"trigger"`
+ Trigger param.Field[[]shared.AutomationTriggeParam] `json:"trigger"`
}
func (r EnvironmentAutomationTaskUpdateParamsMetadataTriggeredBy) MarshalJSON() (data []byte, err error) {
diff --git a/environmentautomationtask_test.go b/environmentautomationtask_test.go
index 901819c..a51e79c 100644
--- a/environmentautomationtask_test.go
+++ b/environmentautomationtask_test.go
@@ -40,7 +40,7 @@ func TestEnvironmentAutomationTaskNewWithOptionalParams(t *testing.T) {
Description: gitpod.F("description"),
Name: gitpod.F("x"),
Reference: gitpod.F("reference"),
- TriggeredBy: gitpod.F([]shared.AutomationTriggerParam{{
+ TriggeredBy: gitpod.F([]shared.AutomationTriggeParam{{
Manual: gitpod.F(true),
PostDevcontainerStart: gitpod.F(true),
PostEnvironmentStart: gitpod.F(true),
@@ -110,7 +110,7 @@ func TestEnvironmentAutomationTaskUpdateWithOptionalParams(t *testing.T) {
Description: gitpod.F("description"),
Name: gitpod.F("x"),
TriggeredBy: gitpod.F(gitpod.EnvironmentAutomationTaskUpdateParamsMetadataTriggeredBy{
- Trigger: gitpod.F([]shared.AutomationTriggerParam{{
+ Trigger: gitpod.F([]shared.AutomationTriggeParam{{
Manual: gitpod.F(true),
PostDevcontainerStart: gitpod.F(true),
PostEnvironmentStart: gitpod.F(true),
diff --git a/shared/shared.go b/shared/shared.go
index e174c8f..a414803 100644
--- a/shared/shared.go
+++ b/shared/shared.go
@@ -13,16 +13,16 @@ import (
// `post_environment_start` field indicates that the automation should be triggered
// after the environment has started. The `post_devcontainer_start` field indicates
// that the automation should be triggered after the dev container has started.
-type AutomationTrigger struct {
- Manual bool `json:"manual"`
- PostDevcontainerStart bool `json:"postDevcontainerStart"`
- PostEnvironmentStart bool `json:"postEnvironmentStart"`
- JSON automationTriggerJSON `json:"-"`
+type AutomationTrigge struct {
+ Manual bool `json:"manual"`
+ PostDevcontainerStart bool `json:"postDevcontainerStart"`
+ PostEnvironmentStart bool `json:"postEnvironmentStart"`
+ JSON automationTriggeJSON `json:"-"`
}
-// automationTriggerJSON contains the JSON metadata for the struct
-// [AutomationTrigger]
-type automationTriggerJSON struct {
+// automationTriggeJSON contains the JSON metadata for the struct
+// [AutomationTrigge]
+type automationTriggeJSON struct {
Manual apijson.Field
PostDevcontainerStart apijson.Field
PostEnvironmentStart apijson.Field
@@ -30,11 +30,11 @@ type automationTriggerJSON struct {
ExtraFields map[string]apijson.Field
}
-func (r *AutomationTrigger) UnmarshalJSON(data []byte) (err error) {
+func (r *AutomationTrigge) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
-func (r automationTriggerJSON) RawJSON() string {
+func (r automationTriggeJSON) RawJSON() string {
return r.raw
}
@@ -42,13 +42,13 @@ func (r automationTriggerJSON) RawJSON() string {
// `post_environment_start` field indicates that the automation should be triggered
// after the environment has started. The `post_devcontainer_start` field indicates
// that the automation should be triggered after the dev container has started.
-type AutomationTriggerParam struct {
+type AutomationTriggeParam struct {
Manual param.Field[bool] `json:"manual"`
PostDevcontainerStart param.Field[bool] `json:"postDevcontainerStart"`
PostEnvironmentStart param.Field[bool] `json:"postEnvironmentStart"`
}
-func (r AutomationTriggerParam) MarshalJSON() (data []byte, err error) {
+func (r AutomationTriggeParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
@@ -924,8 +924,8 @@ type TaskMetadata struct {
// the task in user interactions (e.g. the CLI).
Reference string `json:"reference"`
// triggered_by is a list of trigger that start the task.
- TriggeredBy []AutomationTrigger `json:"triggeredBy"`
- JSON taskMetadataJSON `json:"-"`
+ TriggeredBy []AutomationTrigge `json:"triggeredBy"`
+ JSON taskMetadataJSON `json:"-"`
}
// taskMetadataJSON contains the JSON metadata for the struct [TaskMetadata]
@@ -1052,7 +1052,7 @@ type TaskMetadataParam struct {
// the task in user interactions (e.g. the CLI).
Reference param.Field[string] `json:"reference"`
// triggered_by is a list of trigger that start the task.
- TriggeredBy param.Field[[]AutomationTriggerParam] `json:"triggeredBy"`
+ TriggeredBy param.Field[[]AutomationTriggeParam] `json:"triggeredBy"`
}
func (r TaskMetadataParam) MarshalJSON() (data []byte, err error) {