Skip to content

Commit

Permalink
enhance resource deletion flow. (#111)
Browse files Browse the repository at this point in the history
Signed-off-by: morvencao <[email protected]>
  • Loading branch information
morvencao authored Jun 7, 2024
1 parent a70c15e commit 9916ae6
Show file tree
Hide file tree
Showing 18 changed files with 310 additions and 28 deletions.
4 changes: 2 additions & 2 deletions data/generated/openapi/openapi.go

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@ components:
updated_at:
type: string
format: date-time
deleted_at:
type: string
format: date-time
manifest:
type: object
delete_option:
Expand Down Expand Up @@ -635,6 +638,9 @@ components:
updated_at:
type: string
format: date-time
deleted_at:
type: string
format: date-time
manifests:
type: array
items:
Expand Down
6 changes: 6 additions & 0 deletions pkg/api/openapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ components:
updated_at:
format: date-time
type: string
deleted_at:
format: date-time
type: string
manifest:
type: object
delete_option:
Expand Down Expand Up @@ -1041,6 +1044,9 @@ components:
updated_at:
format: date-time
type: string
deleted_at:
format: date-time
type: string
manifests:
items:
type: object
Expand Down
26 changes: 26 additions & 0 deletions pkg/api/openapi/docs/Resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**Version** | Pointer to **int32** | | [optional]
**CreatedAt** | Pointer to **time.Time** | | [optional]
**UpdatedAt** | Pointer to **time.Time** | | [optional]
**DeletedAt** | Pointer to **time.Time** | | [optional]
**Manifest** | Pointer to **map[string]interface{}** | | [optional]
**DeleteOption** | Pointer to **map[string]interface{}** | | [optional]
**UpdateStrategy** | Pointer to **map[string]interface{}** | | [optional]
Expand Down Expand Up @@ -236,6 +237,31 @@ SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt returns a boolean if a field has been set.

### GetDeletedAt

`func (o *Resource) GetDeletedAt() time.Time`

GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.

### GetDeletedAtOk

`func (o *Resource) GetDeletedAtOk() (*time.Time, bool)`

GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeletedAt

`func (o *Resource) SetDeletedAt(v time.Time)`

SetDeletedAt sets DeletedAt field to given value.

### HasDeletedAt

`func (o *Resource) HasDeletedAt() bool`

HasDeletedAt returns a boolean if a field has been set.

### GetManifest

`func (o *Resource) GetManifest() map[string]interface{}`
Expand Down
26 changes: 26 additions & 0 deletions pkg/api/openapi/docs/ResourceAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Version** | Pointer to **int32** | | [optional]
**CreatedAt** | Pointer to **time.Time** | | [optional]
**UpdatedAt** | Pointer to **time.Time** | | [optional]
**DeletedAt** | Pointer to **time.Time** | | [optional]
**Manifest** | Pointer to **map[string]interface{}** | | [optional]
**DeleteOption** | Pointer to **map[string]interface{}** | | [optional]
**UpdateStrategy** | Pointer to **map[string]interface{}** | | [optional]
Expand Down Expand Up @@ -158,6 +159,31 @@ SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt returns a boolean if a field has been set.

### GetDeletedAt

`func (o *ResourceAllOf) GetDeletedAt() time.Time`

GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.

### GetDeletedAtOk

`func (o *ResourceAllOf) GetDeletedAtOk() (*time.Time, bool)`

GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeletedAt

`func (o *ResourceAllOf) SetDeletedAt(v time.Time)`

SetDeletedAt sets DeletedAt field to given value.

### HasDeletedAt

`func (o *ResourceAllOf) HasDeletedAt() bool`

HasDeletedAt returns a boolean if a field has been set.

### GetManifest

`func (o *ResourceAllOf) GetManifest() map[string]interface{}`
Expand Down
26 changes: 26 additions & 0 deletions pkg/api/openapi/docs/ResourceBundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**Version** | Pointer to **int32** | | [optional]
**CreatedAt** | Pointer to **time.Time** | | [optional]
**UpdatedAt** | Pointer to **time.Time** | | [optional]
**DeletedAt** | Pointer to **time.Time** | | [optional]
**Manifests** | Pointer to **[]map[string]interface{}** | | [optional]
**DeleteOption** | Pointer to **map[string]interface{}** | | [optional]
**ManifestConfigs** | Pointer to **[]map[string]interface{}** | | [optional]
Expand Down Expand Up @@ -236,6 +237,31 @@ SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt returns a boolean if a field has been set.

### GetDeletedAt

`func (o *ResourceBundle) GetDeletedAt() time.Time`

GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.

### GetDeletedAtOk

`func (o *ResourceBundle) GetDeletedAtOk() (*time.Time, bool)`

GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeletedAt

`func (o *ResourceBundle) SetDeletedAt(v time.Time)`

SetDeletedAt sets DeletedAt field to given value.

### HasDeletedAt

`func (o *ResourceBundle) HasDeletedAt() bool`

HasDeletedAt returns a boolean if a field has been set.

### GetManifests

`func (o *ResourceBundle) GetManifests() []map[string]interface{}`
Expand Down
26 changes: 26 additions & 0 deletions pkg/api/openapi/docs/ResourceBundleAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Version** | Pointer to **int32** | | [optional]
**CreatedAt** | Pointer to **time.Time** | | [optional]
**UpdatedAt** | Pointer to **time.Time** | | [optional]
**DeletedAt** | Pointer to **time.Time** | | [optional]
**Manifests** | Pointer to **[]map[string]interface{}** | | [optional]
**DeleteOption** | Pointer to **map[string]interface{}** | | [optional]
**ManifestConfigs** | Pointer to **[]map[string]interface{}** | | [optional]
Expand Down Expand Up @@ -158,6 +159,31 @@ SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt returns a boolean if a field has been set.

### GetDeletedAt

`func (o *ResourceBundleAllOf) GetDeletedAt() time.Time`

GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise.

### GetDeletedAtOk

`func (o *ResourceBundleAllOf) GetDeletedAtOk() (*time.Time, bool)`

GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeletedAt

`func (o *ResourceBundleAllOf) SetDeletedAt(v time.Time)`

SetDeletedAt sets DeletedAt field to given value.

### HasDeletedAt

`func (o *ResourceBundleAllOf) HasDeletedAt() bool`

HasDeletedAt returns a boolean if a field has been set.

### GetManifests

`func (o *ResourceBundleAllOf) GetManifests() []map[string]interface{}`
Expand Down
36 changes: 36 additions & 0 deletions pkg/api/openapi/model_resource.go

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

36 changes: 36 additions & 0 deletions pkg/api/openapi/model_resource_all_of.go

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

36 changes: 36 additions & 0 deletions pkg/api/openapi/model_resource_bundle.go

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

Loading

0 comments on commit 9916ae6

Please sign in to comment.