Skip to content

Commit 1332ae7

Browse files
authored
Validate cluster.delete_component_template Endpoint (#247)
* Validate cluster.delete_component_template Endpoint * add defaault values * make contrib
1 parent 8b6759a commit 1332ae7

File tree

4 files changed

+29
-51
lines changed

4 files changed

+29
-51
lines changed

output/schema/schema.json

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33851,22 +33851,6 @@
3385133851
"attachedBehaviors": [
3385233852
"CommonQueryParameters"
3385333853
],
33854-
"body": {
33855-
"kind": "properties",
33856-
"properties": [
33857-
{
33858-
"name": "stub_c",
33859-
"required": true,
33860-
"type": {
33861-
"kind": "instance_of",
33862-
"type": {
33863-
"name": "string",
33864-
"namespace": "internal"
33865-
}
33866-
}
33867-
}
33868-
]
33869-
},
3387033854
"inherits": [
3387133855
{
3387233856
"type": {
@@ -33882,26 +33866,38 @@
3388233866
},
3388333867
"path": [
3388433868
{
33885-
"name": "stub_a",
33869+
"description": "The name of the template",
33870+
"name": "name",
3388633871
"required": true,
3388733872
"type": {
3388833873
"kind": "instance_of",
3388933874
"type": {
33890-
"name": "string",
33875+
"name": "Name",
3389133876
"namespace": "internal"
3389233877
}
3389333878
}
3389433879
}
3389533880
],
3389633881
"query": [
3389733882
{
33898-
"name": "stub_b",
33899-
"required": true,
33883+
"name": "master_timeout",
33884+
"required": false,
3390033885
"type": {
3390133886
"kind": "instance_of",
3390233887
"type": {
33903-
"name": "string",
33904-
"namespace": "internal"
33888+
"name": "Time",
33889+
"namespace": "common_options.time_unit"
33890+
}
33891+
}
33892+
},
33893+
{
33894+
"name": "timeout",
33895+
"required": false,
33896+
"type": {
33897+
"kind": "instance_of",
33898+
"type": {
33899+
"name": "Time",
33900+
"namespace": "common_options.time_unit"
3390533901
}
3390633902
}
3390733903
}
@@ -33911,7 +33907,7 @@
3391133907
"inherits": [
3391233908
{
3391333909
"type": {
33914-
"name": "ResponseBase",
33910+
"name": "AcknowledgedResponseBase",
3391533911
"namespace": "common_abstractions.response"
3391633912
}
3391733913
}
@@ -33921,19 +33917,7 @@
3392133917
"name": "ClusterDeleteComponentTemplateResponse",
3392233918
"namespace": "cluster.cluster_delete_component_template"
3392333919
},
33924-
"properties": [
33925-
{
33926-
"name": "stub",
33927-
"required": true,
33928-
"type": {
33929-
"kind": "instance_of",
33930-
"type": {
33931-
"name": "integer",
33932-
"namespace": "internal"
33933-
}
33934-
}
33935-
}
33936-
]
33920+
"properties": []
3393733921
},
3393833922
{
3393933923
"attachedBehaviors": [

output/typescript/types.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,15 +3050,12 @@ export interface ClusterComponentTemplateExistsResponse extends ResponseBase {
30503050
}
30513051

30523052
export interface ClusterDeleteComponentTemplateRequest extends RequestBase {
3053-
stub_a: string
3054-
stub_b: string
3055-
body?: {
3056-
stub_c: string
3057-
}
3053+
name: Name
3054+
master_timeout?: Time
3055+
timeout?: Time
30583056
}
30593057

3060-
export interface ClusterDeleteComponentTemplateResponse extends ResponseBase {
3061-
stub: integer
3058+
export interface ClusterDeleteComponentTemplateResponse extends AcknowledgedResponseBase {
30623059
}
30633060

30643061
export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase {

specification/specs/cluster/cluster_delete_component_template/ClusterDeleteComponentTemplateRequest.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
*/
2525
interface ClusterDeleteComponentTemplateRequest extends RequestBase {
2626
path_parts?: {
27-
stub_a: string
27+
name: Name
2828
}
2929
query_parameters?: {
30-
stub_b: string
31-
}
32-
body?: {
33-
stub_c: string
30+
master_timeout?: Time // Default: 30s
31+
timeout?: Time // Default: 30s
3432
}
33+
body?: {}
3534
}

specification/specs/cluster/cluster_delete_component_template/ClusterDeleteComponentTemplateResponse.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@
1717
* under the License.
1818
*/
1919

20-
class ClusterDeleteComponentTemplateResponse extends ResponseBase {
21-
stub: integer
22-
}
20+
class ClusterDeleteComponentTemplateResponse extends AcknowledgedResponseBase {}

0 commit comments

Comments
 (0)