Skip to content

Commit

Permalink
use specify resource identifier in restful api.
Browse files Browse the repository at this point in the history
Signed-off-by: morvencao <[email protected]>
  • Loading branch information
morvencao committed Jan 20, 2025
1 parent a78c98c commit ed3743e
Show file tree
Hide file tree
Showing 18 changed files with 270 additions and 206 deletions.
4 changes: 2 additions & 2 deletions data/generated/openapi/openapi.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ components:
type: object
delete_option:
type: object
update_strategy:
manifest_config:
type: object
status:
type: object
Expand All @@ -610,7 +610,7 @@ components:
type: object
delete_option:
type: object
update_strategy:
manifest_config:
type: object
ResourceBundleList:
allOf:
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/openapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -930,17 +930,17 @@ components:
ResourcePatchRequest:
example:
delete_option: "{}"
update_strategy: "{}"
manifest: "{}"
version: 0
manifest_config: "{}"
properties:
version:
type: integer
manifest:
type: object
delete_option:
type: object
update_strategy:
manifest_config:
type: object
type: object
ResourceBundleList:
Expand Down Expand Up @@ -1008,7 +1008,7 @@ components:
type: object
delete_option:
type: object
update_strategy:
manifest_config:
type: object
status:
type: object
Expand Down
26 changes: 13 additions & 13 deletions pkg/api/openapi/docs/Resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**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]
**ManifestConfig** | Pointer to **map[string]interface{}** | | [optional]
**Status** | Pointer to **map[string]interface{}** | | [optional]

## Methods
Expand Down Expand Up @@ -312,30 +312,30 @@ SetDeleteOption sets DeleteOption field to given value.

HasDeleteOption returns a boolean if a field has been set.

### GetUpdateStrategy
### GetManifestConfig

`func (o *Resource) GetUpdateStrategy() map[string]interface{}`
`func (o *Resource) GetManifestConfig() map[string]interface{}`

GetUpdateStrategy returns the UpdateStrategy field if non-nil, zero value otherwise.
GetManifestConfig returns the ManifestConfig field if non-nil, zero value otherwise.

### GetUpdateStrategyOk
### GetManifestConfigOk

`func (o *Resource) GetUpdateStrategyOk() (*map[string]interface{}, bool)`
`func (o *Resource) GetManifestConfigOk() (*map[string]interface{}, bool)`

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

### SetUpdateStrategy
### SetManifestConfig

`func (o *Resource) SetUpdateStrategy(v map[string]interface{})`
`func (o *Resource) SetManifestConfig(v map[string]interface{})`

SetUpdateStrategy sets UpdateStrategy field to given value.
SetManifestConfig sets ManifestConfig field to given value.

### HasUpdateStrategy
### HasManifestConfig

`func (o *Resource) HasUpdateStrategy() bool`
`func (o *Resource) HasManifestConfig() bool`

HasUpdateStrategy returns a boolean if a field has been set.
HasManifestConfig returns a boolean if a field has been set.

### GetStatus

Expand Down
26 changes: 13 additions & 13 deletions pkg/api/openapi/docs/ResourceAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**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]
**ManifestConfig** | Pointer to **map[string]interface{}** | | [optional]
**Status** | Pointer to **map[string]interface{}** | | [optional]

## Methods
Expand Down Expand Up @@ -234,30 +234,30 @@ SetDeleteOption sets DeleteOption field to given value.

HasDeleteOption returns a boolean if a field has been set.

### GetUpdateStrategy
### GetManifestConfig

`func (o *ResourceAllOf) GetUpdateStrategy() map[string]interface{}`
`func (o *ResourceAllOf) GetManifestConfig() map[string]interface{}`

GetUpdateStrategy returns the UpdateStrategy field if non-nil, zero value otherwise.
GetManifestConfig returns the ManifestConfig field if non-nil, zero value otherwise.

### GetUpdateStrategyOk
### GetManifestConfigOk

`func (o *ResourceAllOf) GetUpdateStrategyOk() (*map[string]interface{}, bool)`
`func (o *ResourceAllOf) GetManifestConfigOk() (*map[string]interface{}, bool)`

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

### SetUpdateStrategy
### SetManifestConfig

`func (o *ResourceAllOf) SetUpdateStrategy(v map[string]interface{})`
`func (o *ResourceAllOf) SetManifestConfig(v map[string]interface{})`

SetUpdateStrategy sets UpdateStrategy field to given value.
SetManifestConfig sets ManifestConfig field to given value.

### HasUpdateStrategy
### HasManifestConfig

`func (o *ResourceAllOf) HasUpdateStrategy() bool`
`func (o *ResourceAllOf) HasManifestConfig() bool`

HasUpdateStrategy returns a boolean if a field has been set.
HasManifestConfig returns a boolean if a field has been set.

### GetStatus

Expand Down
26 changes: 13 additions & 13 deletions pkg/api/openapi/docs/ResourcePatchRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Version** | Pointer to **int32** | | [optional]
**Manifest** | Pointer to **map[string]interface{}** | | [optional]
**DeleteOption** | Pointer to **map[string]interface{}** | | [optional]
**UpdateStrategy** | Pointer to **map[string]interface{}** | | [optional]
**ManifestConfig** | Pointer to **map[string]interface{}** | | [optional]

## Methods

Expand Down Expand Up @@ -103,30 +103,30 @@ SetDeleteOption sets DeleteOption field to given value.

HasDeleteOption returns a boolean if a field has been set.

### GetUpdateStrategy
### GetManifestConfig

`func (o *ResourcePatchRequest) GetUpdateStrategy() map[string]interface{}`
`func (o *ResourcePatchRequest) GetManifestConfig() map[string]interface{}`

GetUpdateStrategy returns the UpdateStrategy field if non-nil, zero value otherwise.
GetManifestConfig returns the ManifestConfig field if non-nil, zero value otherwise.

### GetUpdateStrategyOk
### GetManifestConfigOk

`func (o *ResourcePatchRequest) GetUpdateStrategyOk() (*map[string]interface{}, bool)`
`func (o *ResourcePatchRequest) GetManifestConfigOk() (*map[string]interface{}, bool)`

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

### SetUpdateStrategy
### SetManifestConfig

`func (o *ResourcePatchRequest) SetUpdateStrategy(v map[string]interface{})`
`func (o *ResourcePatchRequest) SetManifestConfig(v map[string]interface{})`

SetUpdateStrategy sets UpdateStrategy field to given value.
SetManifestConfig sets ManifestConfig field to given value.

### HasUpdateStrategy
### HasManifestConfig

`func (o *ResourcePatchRequest) HasUpdateStrategy() bool`
`func (o *ResourcePatchRequest) HasManifestConfig() bool`

HasUpdateStrategy returns a boolean if a field has been set.
HasManifestConfig returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
34 changes: 17 additions & 17 deletions pkg/api/openapi/model_resource.go

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

34 changes: 17 additions & 17 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.

Loading

0 comments on commit ed3743e

Please sign in to comment.