Add Host Set CUDLR handler and SDK (#290)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-08-21 10:57:30 -07:00
1 parent e423b6589e
commit c4d3414016
16 files changed
+2307 -446

No files matched your search

+127 -30
View File
@@ -1043,13 +1043,6 @@
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
@@ -1068,14 +1061,13 @@
},
"/v1/scopes/*/host-catalogs/{host_catalog_id}/host-sets/{id}:add-hosts": {
"post": {
"summary": "Adds existing Hosts to the Host Set",
"description": "Adds the hosts to this Host Set if possible. All hosts added must be a child of the same host catalog this host set is a child of.",
"summary": "Adds existing Hosts to a Host Set.",
"operationId": "HostSetService_AddHostSetHosts",
"responses": {
"200": {
"description": "A successful response.",
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.services.v1.AddHostSetHostsResponse"
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
@@ -1091,6 +1083,14 @@
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.AddHostSetHostsRequest"
}
}
],
"tags": [
@@ -1100,14 +1100,13 @@
},
"/v1/scopes/*/host-catalogs/{host_catalog_id}/host-sets/{id}:remove-hosts": {
"post": {
"summary": "Removes Hosts from the Host Set",
"description": "Removes the hosts from this Host Set if present. If it is not present then no action is taken and no error is returned.",
"summary": "Removes Hosts from the Host Set.",
"operationId": "HostSetService_RemoveHostSetHosts",
"responses": {
"200": {
"description": "A successful response.",
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.services.v1.RemoveHostSetHostsResponse"
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
@@ -1124,6 +1123,14 @@
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.RemoveHostSetHostsRequest"
}
}
],
"tags": [
@@ -1134,13 +1141,12 @@
"/v1/scopes/*/host-catalogs/{host_catalog_id}/host-sets/{id}:set-hosts": {
"post": {
"summary": "Sets the Hosts on the Host Set.",
"description": "Sets the Hosts on the Host Set, removing any hosts that are not specified in the request.",
"operationId": "HostSetService_SetHostSetHosts",
"responses": {
"200": {
"description": "A successful response.",
"description": "",
"schema": {
"$ref": "#/definitions/controller.api.services.v1.SetHostSetHostsResponse"
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
@@ -1156,6 +1162,14 @@
"in": "path",
"required": true,
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/controller.api.services.v1.SetHostSetHostsRequest"
}
}
],
"tags": [
@@ -2395,26 +2409,27 @@
"version": {
"type": "integer",
"format": "int64",
"description": "The version can be used in subsequent write requests to ensure this resource\nhas not changed and to fail the write if it has.\nOutput only.",
"readOnly": true
"description": "The version can be used in subsequent write requests to ensure this resource\nhas not changed and to fail the write if it has."
},
"type": {
"type": "string",
"title": "The type of the resource, to help differentiate schemas"
},
"size": {
"type": "integer",
"format": "int64",
"description": "The total count of hosts in this host set\nOutput only.",
"readOnly": true
"host_catalog_id": {
"type": "string",
"title": "The host catalog this host set is a part of\nOutput only"
},
"hosts": {
"host_ids": {
"type": "array",
"items": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
"type": "string"
},
"description": "A list of hosts in this host set\nTODO: Figure out if this should be in the basic HostSet view and what\nview to use on the Hosts.\nOutput only.",
"readOnly": true
},
"attributes": {
"type": "object",
"description": "The attributes that are applied for the specific host set type."
}
},
"title": "HostSet is a collection of Hosts created and managed by a HostCatalog"
@@ -2699,8 +2714,35 @@
}
}
},
"controller.api.services.v1.AddHostSetHostsRequest": {
"type": "object",
"properties": {
"host_catalog_id": {
"type": "string"
},
"id": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int64"
},
"host_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of host IDs which will be added to this host set. Each host\nreferenced here must be a child of the same host catalog that this host\nset is a child of."
}
}
},
"controller.api.services.v1.AddHostSetHostsResponse": {
"type": "object"
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
"controller.api.services.v1.AddRoleGrantsRequest": {
"type": "object",
@@ -3216,8 +3258,36 @@
}
}
},
"controller.api.services.v1.RemoveHostSetHostsRequest": {
"type": "object",
"properties": {
"host_catalog_id": {
"type": "string"
},
"id": {
"type": "string",
"description": "This host set's id."
},
"version": {
"type": "integer",
"format": "int64"
},
"host_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of host IDs which should not be in the host set when this request\nreturns."
}
}
},
"controller.api.services.v1.RemoveHostSetHostsResponse": {
"type": "object"
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
"controller.api.services.v1.RemoveRoleGrantsRequest": {
"type": "object",
@@ -3300,8 +3370,35 @@
}
}
},
"controller.api.services.v1.SetHostSetHostsRequest": {
"type": "object",
"properties": {
"host_catalog_id": {
"type": "string"
},
"id": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int64"
},
"host_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of host IDs which will be set on this host set. Each host\nreferenced here must be a child of the same host catalog that this host\nset is a child of."
}
}
},
"controller.api.services.v1.SetHostSetHostsResponse": {
"type": "object"
"type": "object",
"properties": {
"item": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
}
},
"controller.api.services.v1.SetPasswordRequest": {
"type": "object",