This commit is contained in:
Jeff Mitchell committed 2020-08-17 11:50:59 -04:00
1 parent 7d133878be
commit 4655f58365
12 files changed
+242 -134

No files matched your search

+231 -14
View File
@@ -65,6 +65,12 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.scopes.v1.Scope"
}
},
{
"name": "scope_id",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
@@ -280,6 +286,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.authmethods.v1.Account"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -399,6 +422,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.authmethods.v1.AuthMethod"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -613,6 +653,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.groups.v1.Group"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -646,6 +703,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GroupMemberIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the group hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -679,6 +744,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GroupMemberIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the group hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -712,6 +785,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GroupMemberIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the group hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -928,6 +1009,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostSet"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -1190,6 +1288,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.Host"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -1276,6 +1391,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.hosts.v1.HostCatalog"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -1411,6 +1543,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.roles.v1.Role"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -1444,6 +1593,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GrantStringsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1477,6 +1634,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.PrincipalIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1510,6 +1675,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GrantStringsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1543,6 +1716,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.PrincipalIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1576,6 +1757,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.GrantStringsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1609,6 +1798,14 @@
"schema": {
"$ref": "#/definitions/controller.api.services.v1.PrincipalIdsMessage"
}
},
{
"name": "version",
"description": "The version ensures the role hasn't changed since it was last retrieved and if\nit has the request will fail.",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
}
],
"tags": [
@@ -1744,6 +1941,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.users.v1.User"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -1829,6 +2043,23 @@
"schema": {
"$ref": "#/definitions/controller.api.resources.scopes.v1.Scope"
}
},
{
"name": "version",
"in": "query",
"required": false,
"type": "integer",
"format": "int64"
},
{
"name": "update_mask",
"in": "query",
"required": false,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"tags": [
@@ -3139,20 +3370,6 @@
},
"title": "Timestamp for storage messages. We've defined a new local type wrapper\nof google.protobuf.Timestamp so we can implement sql.Scanner and sql.Valuer\ninterfaces. See:\nhttps://golang.org/pkg/database/sql/#Scanner\nhttps://golang.org/pkg/database/sql/driver/#Valuer"
},
"google.protobuf.FieldMask": {
"type": "object",
"properties": {
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "The set of field mask paths."
}
},
"description": "paths: \"f.a\"\n paths: \"f.b.d\"\n\nHere `f` represents a field in some root message, `a` and `b`\nfields in the message found in `f`, and `d` a field found in the\nmessage in `f.b`.\n\nField masks are used to specify a subset of fields that should be\nreturned by a get operation or modified by an update operation.\nField masks also have a custom JSON encoding (see below).\n\n# Field Masks in Projections\n\nWhen used in the context of a projection, a response message or\nsub-message is filtered by the API to only contain those fields as\nspecified in the mask. For example, if the mask in the previous\nexample is applied to a response message as follows:\n\n f {\n a : 22\n b {\n d : 1\n x : 2\n }\n y : 13\n }\n z: 8\n\nThe result will not contain specific values for fields x,y and z\n(their value will be set to the default, and omitted in proto text\noutput):\n\n\n f {\n a : 22\n b {\n d : 1\n }\n }\n\nA repeated field is not allowed except at the last position of a\npaths string.\n\nIf a FieldMask object is not present in a get operation, the\noperation applies to all fields (as if a FieldMask of all fields\nhad been specified).\n\nNote that a field mask does not necessarily apply to the\ntop-level response message. In case of a REST get operation, the\nfield mask applies directly to the response, but in case of a REST\nlist operation, the mask instead applies to each individual message\nin the returned resource list. In case of a REST custom method,\nother definitions may be used. Where the mask applies will be\nclearly documented together with its declaration in the API. In\nany case, the effect on the returned resource/resources is required\nbehavior for APIs.\n\n# Field Masks in Update Operations\n\nA field mask in update operations specifies which fields of the\ntargeted resource are going to be updated. The API is required\nto only change the values of the fields as specified in the mask\nand leave the others untouched. If a resource is passed in to\ndescribe the updated values, the API ignores the values of all\nfields not covered by the mask.\n\nIf a repeated field is specified for an update operation, new values will\nbe appended to the existing repeated field in the target resource. Note that\na repeated field is only allowed in the last position of a `paths` string.\n\nIf a sub-message is specified in the last position of the field mask for an\nupdate operation, then new value will be merged into the existing sub-message\nin the target resource.\n\nFor example, given the target message:\n\n f {\n b {\n d: 1\n x: 2\n }\n c: [1]\n }\n\nAnd an update message:\n\n f {\n b {\n d: 10\n }\n c: [2]\n }\n\nthen if the field mask is:\n\n paths: [\"f.b\", \"f.c\"]\n\nthen the result will be:\n\n f {\n b {\n d: 10\n x: 2\n }\n c: [1, 2]\n }\n\nAn implementation may provide options to override this default behavior for\nrepeated and message fields.\n\nIn order to reset a field's value to the default, the field must\nbe in the mask and set to the default value in the provided resource.\nHence, in order to reset all fields of a resource, provide a default\ninstance of the resource and set all fields in the mask, or do\nnot provide a mask as described below.\n\nIf a field mask is not present on update, the operation applies to\nall fields (as if a field mask of all fields has been specified).\nNote that in the presence of schema evolution, this may mean that\nfields the client does not know and has therefore not filled into\nthe request will be reset to their default. If this is unwanted\nbehavior, a specific service may require a client to always specify\na field mask, producing an error if not.\n\nAs with get operations, the location of the resource which\ndescribes the updated values in the request message depends on the\noperation kind. In any case, the effect of the field mask is\nrequired to be honored by the API.\n\n## Considerations for HTTP REST\n\nThe HTTP kind of an update operation which uses a field mask must\nbe set to PATCH instead of PUT in order to satisfy HTTP semantics\n(PUT must only be used for full updates).\n\n# JSON Encoding of Field Masks\n\nIn JSON, a field mask is encoded as a single string where paths are\nseparated by a comma. Fields name in each path are converted\nto/from lower-camel naming conventions.\n\nAs an example, consider the following message declarations:\n\n message Profile {\n User user = 1;\n Photo photo = 2;\n }\n message User {\n string display_name = 1;\n string address = 2;\n }\n\nIn proto a field mask for `Profile` may look as such:\n\n mask {\n paths: \"user.display_name\"\n paths: \"photo\"\n }\n\nIn JSON, the same mask is represented as below:\n\n {\n mask: \"user.displayName,photo\"\n }\n\n# Field Masks and OLine truncated
"title": "`FieldMask` represents a set of symbolic field paths, for example:"
},
"google.protobuf.NullValue": {
"type": "string",
"enum": [