diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index 0e0703dc1d1..7293b93d906 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -5,7 +5,7 @@ "resourcePath": "/api/v1", "apis": [ { - "path": "/api/v1/namespaces/{namespaces}/bindings", + "path": "/api/v1/namespaces/{namespace}/bindings", "description": "API at /api/v1 version v1", "operations": [ { @@ -33,7 +33,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -99,7 +99,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/componentstatuses", + "path": "/api/v1/namespaces/{namespace}/componentstatuses", "description": "API at /api/v1 version v1", "operations": [ { @@ -151,7 +151,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -174,7 +174,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/componentstatuses/{name}", + "path": "/api/v1/namespaces/{namespace}/componentstatuses/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -194,7 +194,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -292,7 +292,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/endpoints", + "path": "/api/v1/namespaces/{namespace}/endpoints", "description": "API at /api/v1 version v1", "operations": [ { @@ -344,7 +344,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -389,7 +389,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -412,7 +412,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/endpoints", + "path": "/api/v1/watch/namespaces/{namespace}/endpoints", "description": "API at /api/v1 version v1", "operations": [ { @@ -464,7 +464,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -487,7 +487,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/endpoints/{name}", + "path": "/api/v1/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -507,7 +507,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -560,7 +560,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -613,7 +613,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -668,7 +668,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -699,7 +699,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/endpoints/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -751,7 +751,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -953,7 +953,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/events", + "path": "/api/v1/namespaces/{namespace}/events", "description": "API at /api/v1 version v1", "operations": [ { @@ -1005,7 +1005,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1050,7 +1050,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1073,7 +1073,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/events", + "path": "/api/v1/watch/namespaces/{namespace}/events", "description": "API at /api/v1 version v1", "operations": [ { @@ -1125,7 +1125,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1148,7 +1148,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/events/{name}", + "path": "/api/v1/namespaces/{namespace}/events/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -1168,7 +1168,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1221,7 +1221,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1274,7 +1274,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1321,7 +1321,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1352,7 +1352,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/events/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/events/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -1404,7 +1404,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1606,7 +1606,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/limitranges", + "path": "/api/v1/namespaces/{namespace}/limitranges", "description": "API at /api/v1 version v1", "operations": [ { @@ -1658,7 +1658,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1703,7 +1703,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1726,7 +1726,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/limitranges", + "path": "/api/v1/watch/namespaces/{namespace}/limitranges", "description": "API at /api/v1 version v1", "operations": [ { @@ -1778,7 +1778,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1801,7 +1801,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/limitranges/{name}", + "path": "/api/v1/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -1821,7 +1821,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1874,7 +1874,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1927,7 +1927,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1974,7 +1974,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -2005,7 +2005,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/limitranges/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -2057,7 +2057,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3588,7 +3588,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/persistentvolumeclaims", + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1 version v1", "operations": [ { @@ -3640,7 +3640,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3685,7 +3685,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3708,7 +3708,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/persistentvolumeclaims", + "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1 version v1", "operations": [ { @@ -3760,7 +3760,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3783,7 +3783,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/persistentvolumeclaims/{name}", + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -3803,7 +3803,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3856,7 +3856,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3909,7 +3909,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3964,7 +3964,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3995,7 +3995,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/persistentvolumeclaims/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -4047,7 +4047,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4249,7 +4249,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/persistentvolumeclaims/{name}/status", + "path": "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status", "description": "API at /api/v1 version v1", "operations": [ { @@ -4277,7 +4277,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4785,7 +4785,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods", + "path": "/api/v1/namespaces/{namespace}/pods", "description": "API at /api/v1 version v1", "operations": [ { @@ -4837,7 +4837,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4882,7 +4882,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4905,7 +4905,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/pods", + "path": "/api/v1/watch/namespaces/{namespace}/pods", "description": "API at /api/v1 version v1", "operations": [ { @@ -4957,7 +4957,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4980,7 +4980,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -5000,7 +5000,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5053,7 +5053,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5106,7 +5106,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5161,7 +5161,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5192,7 +5192,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -5244,7 +5244,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5275,7 +5275,7 @@ ] }, { - "path": "/api/v1/proxy/namespaces/{namespaces}/pods/{name}/{path:*}", + "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}/{path:*}", "description": "API at /api/v1 version v1", "operations": [ { @@ -5287,7 +5287,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5325,7 +5325,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5363,7 +5363,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5401,7 +5401,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5439,7 +5439,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5477,7 +5477,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5509,7 +5509,7 @@ ] }, { - "path": "/api/v1/proxy/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1/proxy/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -5521,7 +5521,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5551,7 +5551,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5581,7 +5581,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5611,7 +5611,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5641,7 +5641,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5671,7 +5671,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5866,7 +5866,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/binding", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/binding", "description": "API at /api/v1 version v1", "operations": [ { @@ -5894,7 +5894,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5925,7 +5925,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/exec", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/exec", "description": "API at /api/v1 version v1", "operations": [ { @@ -5937,7 +5937,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5961,7 +5961,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/log", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/log", "description": "API at /api/v1 version v1", "operations": [ { @@ -5981,7 +5981,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6012,7 +6012,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/portforward", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/portforward", "description": "API at /api/v1 version v1", "operations": [ { @@ -6024,7 +6024,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6048,7 +6048,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/proxy", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy", "description": "API at /api/v1 version v1", "operations": [ { @@ -6060,7 +6060,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6090,7 +6090,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6120,7 +6120,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6150,7 +6150,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6180,7 +6180,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6210,7 +6210,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6234,7 +6234,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/proxy/{path:*}", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path:*}", "description": "API at /api/v1 version v1", "operations": [ { @@ -6246,7 +6246,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6284,7 +6284,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6322,7 +6322,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6360,7 +6360,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6398,7 +6398,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6436,7 +6436,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6468,7 +6468,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/pods/{name}/status", + "path": "/api/v1/namespaces/{namespace}/pods/{name}/status", "description": "API at /api/v1 version v1", "operations": [ { @@ -6496,7 +6496,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6527,7 +6527,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/podtemplates", + "path": "/api/v1/namespaces/{namespace}/podtemplates", "description": "API at /api/v1 version v1", "operations": [ { @@ -6579,7 +6579,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6624,7 +6624,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6647,7 +6647,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/podtemplates", + "path": "/api/v1/watch/namespaces/{namespace}/podtemplates", "description": "API at /api/v1 version v1", "operations": [ { @@ -6699,7 +6699,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6722,7 +6722,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/podtemplates/{name}", + "path": "/api/v1/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -6742,7 +6742,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6795,7 +6795,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6848,7 +6848,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6903,7 +6903,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6934,7 +6934,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/podtemplates/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -6986,7 +6986,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7188,7 +7188,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/replicationcontrollers", + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1 version v1", "operations": [ { @@ -7240,7 +7240,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7285,7 +7285,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7308,7 +7308,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/replicationcontrollers", + "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1 version v1", "operations": [ { @@ -7360,7 +7360,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7383,7 +7383,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/replicationcontrollers/{name}", + "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -7403,7 +7403,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7456,7 +7456,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7509,7 +7509,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7564,7 +7564,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7595,7 +7595,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/replicationcontrollers/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -7647,7 +7647,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7849,7 +7849,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/resourcequotas", + "path": "/api/v1/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1 version v1", "operations": [ { @@ -7901,7 +7901,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7946,7 +7946,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7969,7 +7969,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/resourcequotas", + "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1 version v1", "operations": [ { @@ -8021,7 +8021,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8044,7 +8044,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/resourcequotas/{name}", + "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -8064,7 +8064,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8117,7 +8117,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8170,7 +8170,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8225,7 +8225,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8256,7 +8256,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/resourcequotas/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -8308,7 +8308,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8510,7 +8510,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/resourcequotas/{name}/status", + "path": "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status", "description": "API at /api/v1 version v1", "operations": [ { @@ -8538,7 +8538,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8569,7 +8569,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/secrets", + "path": "/api/v1/namespaces/{namespace}/secrets", "description": "API at /api/v1 version v1", "operations": [ { @@ -8621,7 +8621,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8666,7 +8666,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8689,7 +8689,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/secrets", + "path": "/api/v1/watch/namespaces/{namespace}/secrets", "description": "API at /api/v1 version v1", "operations": [ { @@ -8741,7 +8741,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8764,7 +8764,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/secrets/{name}", + "path": "/api/v1/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -8784,7 +8784,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8837,7 +8837,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8890,7 +8890,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8945,7 +8945,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8976,7 +8976,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/secrets/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -9028,7 +9028,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9230,7 +9230,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/serviceaccounts", + "path": "/api/v1/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1 version v1", "operations": [ { @@ -9282,7 +9282,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9327,7 +9327,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9350,7 +9350,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/serviceaccounts", + "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1 version v1", "operations": [ { @@ -9402,7 +9402,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9425,7 +9425,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/serviceaccounts/{name}", + "path": "/api/v1/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -9445,7 +9445,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9498,7 +9498,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9551,7 +9551,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9606,7 +9606,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9637,7 +9637,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/serviceaccounts/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -9689,7 +9689,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9891,7 +9891,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/services", + "path": "/api/v1/namespaces/{namespace}/services", "description": "API at /api/v1 version v1", "operations": [ { @@ -9943,7 +9943,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9988,7 +9988,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10011,7 +10011,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/services", + "path": "/api/v1/watch/namespaces/{namespace}/services", "description": "API at /api/v1 version v1", "operations": [ { @@ -10063,7 +10063,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10086,7 +10086,7 @@ ] }, { - "path": "/api/v1/namespaces/{namespaces}/services/{name}", + "path": "/api/v1/namespaces/{namespace}/services/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -10106,7 +10106,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10159,7 +10159,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10212,7 +10212,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10259,7 +10259,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10290,7 +10290,7 @@ ] }, { - "path": "/api/v1/watch/namespaces/{namespaces}/services/{name}", + "path": "/api/v1/watch/namespaces/{namespace}/services/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -10342,7 +10342,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10373,7 +10373,7 @@ ] }, { - "path": "/api/v1/proxy/namespaces/{namespaces}/services/{name}/{path:*}", + "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}/{path:*}", "description": "API at /api/v1 version v1", "operations": [ { @@ -10385,7 +10385,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10423,7 +10423,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10461,7 +10461,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10499,7 +10499,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10537,7 +10537,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10575,7 +10575,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10607,7 +10607,7 @@ ] }, { - "path": "/api/v1/proxy/namespaces/{namespaces}/services/{name}", + "path": "/api/v1/proxy/namespaces/{namespace}/services/{name}", "description": "API at /api/v1 version v1", "operations": [ { @@ -10619,7 +10619,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10649,7 +10649,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10679,7 +10679,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10709,7 +10709,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10739,7 +10739,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10769,7 +10769,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false diff --git a/api/swagger-spec/v1beta3.json b/api/swagger-spec/v1beta3.json index 57c06b748c5..9ca2462a025 100644 --- a/api/swagger-spec/v1beta3.json +++ b/api/swagger-spec/v1beta3.json @@ -5,7 +5,7 @@ "resourcePath": "/api/v1beta3", "apis": [ { - "path": "/api/v1beta3/namespaces/{namespaces}/bindings", + "path": "/api/v1beta3/namespaces/{namespace}/bindings", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -33,7 +33,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -99,7 +99,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/componentstatuses", + "path": "/api/v1beta3/namespaces/{namespace}/componentstatuses", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -151,7 +151,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -174,7 +174,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/componentstatuses/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/componentstatuses/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -194,7 +194,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -292,7 +292,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/endpoints", + "path": "/api/v1beta3/namespaces/{namespace}/endpoints", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -344,7 +344,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -389,7 +389,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -412,7 +412,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/endpoints", + "path": "/api/v1beta3/watch/namespaces/{namespace}/endpoints", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -464,7 +464,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -487,7 +487,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/endpoints/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -507,7 +507,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -560,7 +560,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -613,7 +613,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -668,7 +668,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -699,7 +699,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/endpoints/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/endpoints/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -751,7 +751,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -953,7 +953,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/events", + "path": "/api/v1beta3/namespaces/{namespace}/events", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1005,7 +1005,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1050,7 +1050,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1073,7 +1073,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/events", + "path": "/api/v1beta3/watch/namespaces/{namespace}/events", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1125,7 +1125,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1148,7 +1148,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/events/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/events/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1168,7 +1168,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1221,7 +1221,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1274,7 +1274,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1321,7 +1321,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1352,7 +1352,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/events/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/events/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1404,7 +1404,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1606,7 +1606,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/limitranges", + "path": "/api/v1beta3/namespaces/{namespace}/limitranges", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1658,7 +1658,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1703,7 +1703,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1726,7 +1726,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/limitranges", + "path": "/api/v1beta3/watch/namespaces/{namespace}/limitranges", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1778,7 +1778,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1801,7 +1801,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/limitranges/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -1821,7 +1821,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1874,7 +1874,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1927,7 +1927,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -1974,7 +1974,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -2005,7 +2005,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/limitranges/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/limitranges/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -2057,7 +2057,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3588,7 +3588,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/persistentvolumeclaims", + "path": "/api/v1beta3/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -3640,7 +3640,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3685,7 +3685,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3708,7 +3708,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/persistentvolumeclaims", + "path": "/api/v1beta3/watch/namespaces/{namespace}/persistentvolumeclaims", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -3760,7 +3760,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3783,7 +3783,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/persistentvolumeclaims/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -3803,7 +3803,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3856,7 +3856,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3909,7 +3909,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3964,7 +3964,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -3995,7 +3995,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/persistentvolumeclaims/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/persistentvolumeclaims/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -4047,7 +4047,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4249,7 +4249,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/persistentvolumeclaims/{name}/status", + "path": "/api/v1beta3/namespaces/{namespace}/persistentvolumeclaims/{name}/status", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -4277,7 +4277,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4785,7 +4785,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods", + "path": "/api/v1beta3/namespaces/{namespace}/pods", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -4837,7 +4837,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4882,7 +4882,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4905,7 +4905,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/pods", + "path": "/api/v1beta3/watch/namespaces/{namespace}/pods", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -4957,7 +4957,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -4980,7 +4980,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5000,7 +5000,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5053,7 +5053,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5106,7 +5106,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5161,7 +5161,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5192,7 +5192,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5244,7 +5244,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5275,7 +5275,7 @@ ] }, { - "path": "/api/v1beta3/proxy/namespaces/{namespaces}/pods/{name}/{path:*}", + "path": "/api/v1beta3/proxy/namespaces/{namespace}/pods/{name}/{path:*}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5287,7 +5287,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5325,7 +5325,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5363,7 +5363,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5401,7 +5401,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5439,7 +5439,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5477,7 +5477,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5509,7 +5509,7 @@ ] }, { - "path": "/api/v1beta3/proxy/namespaces/{namespaces}/pods/{name}", + "path": "/api/v1beta3/proxy/namespaces/{namespace}/pods/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5521,7 +5521,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5551,7 +5551,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5581,7 +5581,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5611,7 +5611,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5641,7 +5641,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5671,7 +5671,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5866,7 +5866,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/binding", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/binding", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5894,7 +5894,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5925,7 +5925,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/exec", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/exec", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5937,7 +5937,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -5961,7 +5961,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/log", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/log", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -5981,7 +5981,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6012,7 +6012,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/portforward", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/portforward", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6024,7 +6024,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6048,7 +6048,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/proxy", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/proxy", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6060,7 +6060,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6090,7 +6090,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6120,7 +6120,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6150,7 +6150,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6180,7 +6180,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6210,7 +6210,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6234,7 +6234,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/proxy/{path:*}", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/proxy/{path:*}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6246,7 +6246,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6284,7 +6284,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6322,7 +6322,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6360,7 +6360,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6398,7 +6398,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6436,7 +6436,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6468,7 +6468,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/pods/{name}/status", + "path": "/api/v1beta3/namespaces/{namespace}/pods/{name}/status", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6496,7 +6496,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6527,7 +6527,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/podtemplates", + "path": "/api/v1beta3/namespaces/{namespace}/podtemplates", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6579,7 +6579,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6624,7 +6624,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6647,7 +6647,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/podtemplates", + "path": "/api/v1beta3/watch/namespaces/{namespace}/podtemplates", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6699,7 +6699,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6722,7 +6722,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/podtemplates/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6742,7 +6742,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6795,7 +6795,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6848,7 +6848,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6903,7 +6903,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -6934,7 +6934,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/podtemplates/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/podtemplates/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -6986,7 +6986,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7188,7 +7188,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/replicationcontrollers", + "path": "/api/v1beta3/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -7240,7 +7240,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7285,7 +7285,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7308,7 +7308,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/replicationcontrollers", + "path": "/api/v1beta3/watch/namespaces/{namespace}/replicationcontrollers", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -7360,7 +7360,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7383,7 +7383,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/replicationcontrollers/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -7403,7 +7403,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7456,7 +7456,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7509,7 +7509,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7564,7 +7564,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7595,7 +7595,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/replicationcontrollers/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/replicationcontrollers/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -7647,7 +7647,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7849,7 +7849,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/resourcequotas", + "path": "/api/v1beta3/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -7901,7 +7901,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7946,7 +7946,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -7969,7 +7969,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/resourcequotas", + "path": "/api/v1beta3/watch/namespaces/{namespace}/resourcequotas", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8021,7 +8021,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8044,7 +8044,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/resourcequotas/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8064,7 +8064,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8117,7 +8117,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8170,7 +8170,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8225,7 +8225,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8256,7 +8256,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/resourcequotas/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/resourcequotas/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8308,7 +8308,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8510,7 +8510,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/resourcequotas/{name}/status", + "path": "/api/v1beta3/namespaces/{namespace}/resourcequotas/{name}/status", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8538,7 +8538,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8569,7 +8569,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/secrets", + "path": "/api/v1beta3/namespaces/{namespace}/secrets", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8621,7 +8621,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8666,7 +8666,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8689,7 +8689,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/secrets", + "path": "/api/v1beta3/watch/namespaces/{namespace}/secrets", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8741,7 +8741,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8764,7 +8764,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/secrets/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -8784,7 +8784,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8837,7 +8837,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8890,7 +8890,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8945,7 +8945,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -8976,7 +8976,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/secrets/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/secrets/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9028,7 +9028,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9230,7 +9230,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/serviceaccounts", + "path": "/api/v1beta3/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9282,7 +9282,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9327,7 +9327,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9350,7 +9350,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/serviceaccounts", + "path": "/api/v1beta3/watch/namespaces/{namespace}/serviceaccounts", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9402,7 +9402,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9425,7 +9425,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/serviceaccounts/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9445,7 +9445,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9498,7 +9498,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9551,7 +9551,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9606,7 +9606,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9637,7 +9637,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/serviceaccounts/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/serviceaccounts/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9689,7 +9689,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9891,7 +9891,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/services", + "path": "/api/v1beta3/namespaces/{namespace}/services", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -9943,7 +9943,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -9988,7 +9988,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10011,7 +10011,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/services", + "path": "/api/v1beta3/watch/namespaces/{namespace}/services", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -10063,7 +10063,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10086,7 +10086,7 @@ ] }, { - "path": "/api/v1beta3/namespaces/{namespaces}/services/{name}", + "path": "/api/v1beta3/namespaces/{namespace}/services/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -10106,7 +10106,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10159,7 +10159,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10212,7 +10212,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10259,7 +10259,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10290,7 +10290,7 @@ ] }, { - "path": "/api/v1beta3/watch/namespaces/{namespaces}/services/{name}", + "path": "/api/v1beta3/watch/namespaces/{namespace}/services/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -10342,7 +10342,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10373,7 +10373,7 @@ ] }, { - "path": "/api/v1beta3/proxy/namespaces/{namespaces}/services/{name}/{path:*}", + "path": "/api/v1beta3/proxy/namespaces/{namespace}/services/{name}/{path:*}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -10385,7 +10385,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10423,7 +10423,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10461,7 +10461,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10499,7 +10499,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10537,7 +10537,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10575,7 +10575,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10607,7 +10607,7 @@ ] }, { - "path": "/api/v1beta3/proxy/namespaces/{namespaces}/services/{name}", + "path": "/api/v1beta3/proxy/namespaces/{namespace}/services/{name}", "description": "API at /api/v1beta3 version v1beta3", "operations": [ { @@ -10619,7 +10619,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10649,7 +10649,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10679,7 +10679,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10709,7 +10709,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10739,7 +10739,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false @@ -10769,7 +10769,7 @@ { "type": "string", "paramType": "path", - "name": "namespaces", + "name": "namespace", "description": "object name and auth scope, such as for teams and projects", "required": true, "allowMultiple": false diff --git a/pkg/api/meta/interfaces.go b/pkg/api/meta/interfaces.go index bc741afde36..b5728bd7856 100644 --- a/pkg/api/meta/interfaces.go +++ b/pkg/api/meta/interfaces.go @@ -115,10 +115,8 @@ type RESTScope interface { // ParamName is the optional name of the parameter that should be inserted in the resource url // If empty, no param will be inserted ParamName() string - // ParamPath is a boolean that controls how the parameter is manifested in resource paths - // If true, this parameter is encoded in path (i.e. /{paramName}/{paramValue}) - // If false, this parameter is encoded in query (i.e. ?{paramName}={paramValue}) - ParamPath() bool + // ArgumentName is the optional name that should be used for the variable holding the value. + ArgumentName() string // ParamDescription is the optional description to use to document the parameter in api documentation ParamDescription() string } diff --git a/pkg/api/meta/restmapper.go b/pkg/api/meta/restmapper.go index 55868b52243..512068ee61d 100644 --- a/pkg/api/meta/restmapper.go +++ b/pkg/api/meta/restmapper.go @@ -26,7 +26,7 @@ import ( type restScope struct { name RESTScopeName paramName string - paramPath bool + argumentName string paramDescription string } @@ -36,24 +36,17 @@ func (r *restScope) Name() RESTScopeName { func (r *restScope) ParamName() string { return r.paramName } -func (r *restScope) ParamPath() bool { - return r.paramPath +func (r *restScope) ArgumentName() string { + return r.argumentName } func (r *restScope) ParamDescription() string { return r.paramDescription } -var RESTScopeNamespaceLegacy = &restScope{ - name: RESTScopeNameNamespace, - paramName: "namespace", - paramPath: false, - paramDescription: "object name and auth scope, such as for teams and projects", -} - var RESTScopeNamespace = &restScope{ name: RESTScopeNameNamespace, paramName: "namespaces", - paramPath: true, + argumentName: "namespace", paramDescription: "object name and auth scope, such as for teams and projects", } diff --git a/pkg/apiserver/api_installer.go b/pkg/apiserver/api_installer.go index fde652b9cf6..c939d46b938 100644 --- a/pkg/apiserver/api_installer.go +++ b/pkg/apiserver/api_installer.go @@ -250,7 +250,8 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag actions := []action{} // Get the list of actions for the given scope. - if scope.Name() != meta.RESTScopeNameNamespace { + switch scope.Name() { + case meta.RESTScopeNameRoot: // Handle non-namespace scoped resources like nodes. resourcePath := resource resourceParams := params @@ -283,61 +284,55 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector) actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter) actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer}, isConnecter && connectSubpath) + break + case meta.RESTScopeNameNamespace: + // Handler for standard REST verbs (GET, PUT, POST and DELETE). + namespaceParam := ws.PathParameter(scope.ArgumentName(), scope.ParamDescription()).DataType("string") + namespacedPath := scope.ParamName() + "/{" + scope.ArgumentName() + "}/" + resource + namespaceParams := []*restful.Parameter{namespaceParam} - } else { - // Handle namespace scoped resources like pods. - if scope.ParamPath() { - // Handle the case when namespace is part of the path. - // Handler for standard REST verbs (GET, PUT, POST and DELETE). - namespaceParam := ws.PathParameter(scope.ParamName(), scope.ParamDescription()).DataType("string") - namespacedPath := scope.ParamName() + "/{" + scope.ParamName() + "}/" + resource - namespaceParams := []*restful.Parameter{namespaceParam} - - resourcePath := namespacedPath - resourceParams := namespaceParams - itemPath := namespacedPath + "/{name}" - nameParams := append(namespaceParams, nameParam) - proxyParams := append(nameParams, pathParam) - if hasSubresource { - itemPath = itemPath + "/" + subresource - resourcePath = itemPath - resourceParams = nameParams - } - namer := scopeNaming{scope, a.group.Linker, gpath.Join(a.prefix, itemPath), false} - - // Add actions at the resource path: /api/apiVersion/namespaces/{namespaces}/resource - actions = appendIf(actions, action{"LIST", resourcePath, resourceParams, namer}, isLister) - actions = appendIf(actions, action{"POST", resourcePath, resourceParams, namer}, isCreater) - // DEPRECATED - actions = appendIf(actions, action{"WATCHLIST", "watch/" + resourcePath, resourceParams, namer}, allowWatchList) - - // Add actions at the item path: /api/apiVersion/namespaces/{namespaces}/resource/{name} - actions = appendIf(actions, action{"GET", itemPath, nameParams, namer}, isGetter) - if getSubpath { - actions = appendIf(actions, action{"GET", itemPath + "/{path:*}", proxyParams, namer}, isGetter) - } - actions = appendIf(actions, action{"PUT", itemPath, nameParams, namer}, isUpdater) - actions = appendIf(actions, action{"PATCH", itemPath, nameParams, namer}, isPatcher) - actions = appendIf(actions, action{"DELETE", itemPath, nameParams, namer}, isDeleter) - actions = appendIf(actions, action{"WATCH", "watch/" + itemPath, nameParams, namer}, isWatcher) - actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector) - actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector) - actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter) - actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer}, isConnecter && connectSubpath) - - // list or post across namespace. - // For ex: LIST all pods in all namespaces by sending a LIST request at /api/apiVersion/pods. - // TODO: more strongly type whether a resource allows these actions on "all namespaces" (bulk delete) - if !hasSubresource { - namer = scopeNaming{scope, a.group.Linker, gpath.Join(a.prefix, itemPath), true} - actions = appendIf(actions, action{"LIST", resource, params, namer}, isLister) - actions = appendIf(actions, action{"POST", resource, params, namer}, isCreater) - actions = appendIf(actions, action{"WATCHLIST", "watch/" + resource, params, namer}, allowWatchList) - } - } else { - // Legacy behavior: Namespace as param is no longer supported - return fmt.Errorf("namespace as a parameter is no longer supported") + resourcePath := namespacedPath + resourceParams := namespaceParams + itemPath := namespacedPath + "/{name}" + nameParams := append(namespaceParams, nameParam) + proxyParams := append(nameParams, pathParam) + if hasSubresource { + itemPath = itemPath + "/" + subresource + resourcePath = itemPath + resourceParams = nameParams } + namer := scopeNaming{scope, a.group.Linker, gpath.Join(a.prefix, itemPath), false} + + actions = appendIf(actions, action{"LIST", resourcePath, resourceParams, namer}, isLister) + actions = appendIf(actions, action{"POST", resourcePath, resourceParams, namer}, isCreater) + // DEPRECATED + actions = appendIf(actions, action{"WATCHLIST", "watch/" + resourcePath, resourceParams, namer}, allowWatchList) + + actions = appendIf(actions, action{"GET", itemPath, nameParams, namer}, isGetter) + if getSubpath { + actions = appendIf(actions, action{"GET", itemPath + "/{path:*}", proxyParams, namer}, isGetter) + } + actions = appendIf(actions, action{"PUT", itemPath, nameParams, namer}, isUpdater) + actions = appendIf(actions, action{"PATCH", itemPath, nameParams, namer}, isPatcher) + actions = appendIf(actions, action{"DELETE", itemPath, nameParams, namer}, isDeleter) + actions = appendIf(actions, action{"WATCH", "watch/" + itemPath, nameParams, namer}, isWatcher) + actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath + "/{path:*}", proxyParams, namer}, isRedirector) + actions = appendIf(actions, action{"PROXY", "proxy/" + itemPath, nameParams, namer}, isRedirector) + actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer}, isConnecter) + actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer}, isConnecter && connectSubpath) + + // list or post across namespace. + // For ex: LIST all pods in all namespaces by sending a LIST request at /api/apiVersion/pods. + // TODO: more strongly type whether a resource allows these actions on "all namespaces" (bulk delete) + if !hasSubresource { + namer = scopeNaming{scope, a.group.Linker, gpath.Join(a.prefix, itemPath), true} + actions = appendIf(actions, action{"LIST", resource, params, namer}, isLister) + actions = appendIf(actions, action{"POST", resource, params, namer}, isCreater) + actions = appendIf(actions, action{"WATCHLIST", "watch/" + resource, params, namer}, allowWatchList) + } + break + default: + return fmt.Errorf("unsupported restscope: %s", scope.Name()) } // Create Routes for the actions. @@ -658,7 +653,7 @@ func (n scopeNaming) Namespace(req *restful.Request) (namespace string, err erro if n.allNamespaces { return "", nil } - namespace = req.PathParameter(n.scope.ParamName()) + namespace = req.PathParameter(n.scope.ArgumentName()) if len(namespace) == 0 { // a URL was constructed without the namespace, or this method was invoked // on an object without a namespace path parameter. @@ -694,7 +689,7 @@ func (n scopeNaming) GenerateLink(req *restful.Request, obj runtime.Object) (pat return "", "", errEmptyName } path = strings.Replace(n.itemPath, "{name}", name, 1) - path = strings.Replace(path, "{"+n.scope.ParamName()+"}", namespace, 1) + path = strings.Replace(path, "{"+n.scope.ArgumentName()+"}", namespace, 1) return path, "", nil }