mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-29 23:55:52 +01:00
502 lines
24 KiB
JSON
502 lines
24 KiB
JSON
{
|
|
"auth": {
|
|
"oauth2": {
|
|
"scopes": {
|
|
"https://www.googleapis.com/auth/cloud-platform": {
|
|
"description": "View and manage your data across Google Cloud Platform services"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"basePath": "",
|
|
"baseUrl": "https://firebaseml.googleapis.com/",
|
|
"batchPath": "batch",
|
|
"canonicalName": "Firebase ML",
|
|
"description": "Access custom machine learning models hosted via Firebase ML.",
|
|
"discoveryVersion": "v1",
|
|
"documentationLink": "https://firebase.google.com",
|
|
"fullyEncodeReservedExpansion": true,
|
|
"icons": {
|
|
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
|
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
|
},
|
|
"id": "firebaseml:v1beta2",
|
|
"kind": "discovery#restDescription",
|
|
"mtlsRootUrl": "https://firebaseml.mtls.googleapis.com/",
|
|
"name": "firebaseml",
|
|
"ownerDomain": "google.com",
|
|
"ownerName": "Google",
|
|
"parameters": {
|
|
"$.xgafv": {
|
|
"description": "V1 error format.",
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"access_token": {
|
|
"description": "OAuth access token.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"default": "json",
|
|
"description": "Data format for response.",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
],
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"callback": {
|
|
"description": "JSONP",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"default": "true",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"location": "query",
|
|
"type": "boolean"
|
|
},
|
|
"quotaUser": {
|
|
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"uploadType": {
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"upload_protocol": {
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"protocol": "rest",
|
|
"resources": {
|
|
"projects": {
|
|
"resources": {
|
|
"models": {
|
|
"methods": {
|
|
"create": {
|
|
"description": "Creates a model in Firebase ML.\nThe longrunning operation will eventually return a Model",
|
|
"flatPath": "v1beta2/projects/{projectsId}/models",
|
|
"httpMethod": "POST",
|
|
"id": "firebaseml.projects.models.create",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"parent": {
|
|
"description": "Required. The parent project resource where the model is to be created.\nThe parent must have the form `projects/{project_id}`",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+parent}/models",
|
|
"request": {
|
|
"$ref": "Model"
|
|
},
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"delete": {
|
|
"description": "Deletes a model",
|
|
"flatPath": "v1beta2/projects/{projectsId}/models/{modelsId}",
|
|
"httpMethod": "DELETE",
|
|
"id": "firebaseml.projects.models.delete",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The name of the model to delete.\nThe name must have the form `projects/{project_id}/models/{model_id}`",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/models/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+name}",
|
|
"response": {
|
|
"$ref": "Empty"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"get": {
|
|
"description": "Gets a model resource.",
|
|
"flatPath": "v1beta2/projects/{projectsId}/models/{modelsId}",
|
|
"httpMethod": "GET",
|
|
"id": "firebaseml.projects.models.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The name of the model to get.\nThe name must have the form `projects/{project_id}/models/{model_id}`",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/models/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+name}",
|
|
"response": {
|
|
"$ref": "Model"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "Lists the models",
|
|
"flatPath": "v1beta2/projects/{projectsId}/models",
|
|
"httpMethod": "GET",
|
|
"id": "firebaseml.projects.models.list",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"description": "A filter for the list\ne.g. 'tags: abc' to list models which are tagged with \"abc\"",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "The maximum number of items to return",
|
|
"format": "int32",
|
|
"location": "query",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "The next_page_token value returned from a previous List request, if any.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"description": "Required. The name of the parent to list models for.\nThe parent must have the form `projects/{project_id}'",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+parent}/models",
|
|
"response": {
|
|
"$ref": "ListModelsResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"patch": {
|
|
"description": "Updates a model. The longrunning operation will eventually return a Model.",
|
|
"flatPath": "v1beta2/projects/{projectsId}/models/{modelsId}",
|
|
"httpMethod": "PATCH",
|
|
"id": "firebaseml.projects.models.patch",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The resource name of the Model.\nModel names have the form `projects/{project_id}/models/{model_id}`\nThe name is ignored when creating a model.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/models/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"updateMask": {
|
|
"description": "The update mask",
|
|
"format": "google-fieldmask",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+name}",
|
|
"request": {
|
|
"$ref": "Model"
|
|
},
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"operations": {
|
|
"methods": {
|
|
"get": {
|
|
"description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
|
|
"flatPath": "v1beta2/projects/{projectsId}/operations/{operationsId}",
|
|
"httpMethod": "GET",
|
|
"id": "firebaseml.projects.operations.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The name of the operation resource.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/operations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v1beta2/{+name}",
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"revision": "20200708",
|
|
"rootUrl": "https://firebaseml.googleapis.com/",
|
|
"schemas": {
|
|
"Empty": {
|
|
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
|
|
"id": "Empty",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"ListModelsResponse": {
|
|
"description": "The response for list models",
|
|
"id": "ListModelsResponse",
|
|
"properties": {
|
|
"models": {
|
|
"description": "The list of models",
|
|
"items": {
|
|
"$ref": "Model"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextPageToken": {
|
|
"description": "Token to retrieve the next page of results, or empty if there are no\nmore results in the list.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Model": {
|
|
"description": "An ML model hosted in Firebase ML",
|
|
"id": "Model",
|
|
"properties": {
|
|
"activeOperations": {
|
|
"description": "Output only. Lists operation ids associated with this model whose status is NOT done.",
|
|
"items": {
|
|
"$ref": "Operation"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"createTime": {
|
|
"description": "Output only. Timestamp when this model was created in Firebase ML.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
},
|
|
"displayName": {
|
|
"description": "Required. The name of the model to create. The name can be up to 32 characters long\nand can consist only of ASCII Latin letters A-Z and a-z, underscores(_)\nand ASCII digits 0-9. It must start with a letter.",
|
|
"type": "string"
|
|
},
|
|
"etag": {
|
|
"description": "Output only. See RFC7232\nhttps://tools.ietf.org/html/rfc7232#section-2.3",
|
|
"type": "string"
|
|
},
|
|
"modelHash": {
|
|
"description": "Output only. The model_hash will change if a new file is available for download.",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The resource name of the Model.\nModel names have the form `projects/{project_id}/models/{model_id}`\nThe name is ignored when creating a model.",
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"$ref": "ModelState",
|
|
"description": "State common to all model types.\nIncludes publishing and validation information."
|
|
},
|
|
"tags": {
|
|
"description": "User defined tags which can be used to group/filter models during listing",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"tfliteModel": {
|
|
"$ref": "TfLiteModel",
|
|
"description": "A TFLite Model"
|
|
},
|
|
"updateTime": {
|
|
"description": "Output only. Timestamp when this model was updated in Firebase ML.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ModelOperationMetadata": {
|
|
"description": "This is returned in the longrunning operations\nfor create/update.",
|
|
"id": "ModelOperationMetadata",
|
|
"properties": {
|
|
"basicOperationStatus": {
|
|
"enum": [
|
|
"BASIC_OPERATION_STATUS_UNSPECIFIED",
|
|
"BASIC_OPERATION_STATUS_UPLOADING",
|
|
"BASIC_OPERATION_STATUS_VERIFYING"
|
|
],
|
|
"enumDescriptions": [
|
|
"The status is unspecified",
|
|
"The model file is being uploaded",
|
|
"The model file is being verified"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name of the model we are creating/updating\nThe name must have the form `projects/{project_id}/models/{model_id}`",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ModelState": {
|
|
"description": "State common to all model types.\nIncludes publishing and validation information.",
|
|
"id": "ModelState",
|
|
"properties": {
|
|
"published": {
|
|
"description": "Indicates if this model has been published.",
|
|
"type": "boolean"
|
|
},
|
|
"validationError": {
|
|
"$ref": "Status",
|
|
"description": "Output only. Indicates the latest validation error on the model if any.\nA model may have validation errors if there were problems during\nthe model creation/update.\ne.g. in the case of a TfLiteModel, if a tflite model file was\nmissing or in the wrong format.\nThis field will be empty for valid models."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Operation": {
|
|
"description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
|
|
"id": "Operation",
|
|
"properties": {
|
|
"done": {
|
|
"description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
|
|
"type": "boolean"
|
|
},
|
|
"error": {
|
|
"$ref": "Status",
|
|
"description": "The error result of the operation in case of failure or cancellation."
|
|
},
|
|
"metadata": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should be a resource name ending with `operations/{unique_id}`.",
|
|
"type": "string"
|
|
},
|
|
"response": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Status": {
|
|
"description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).",
|
|
"id": "Status",
|
|
"properties": {
|
|
"code": {
|
|
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"details": {
|
|
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
|
|
"items": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"message": {
|
|
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"TfLiteModel": {
|
|
"description": "Information that is specific to TfLite models.",
|
|
"id": "TfLiteModel",
|
|
"properties": {
|
|
"gcsTfliteUri": {
|
|
"description": "The TfLite file containing the model. (Stored in Google Cloud).\nThe gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite\nNote: If you update the file in the original location, it is\nnecessary to call UpdateModel for ML to pick up and validate the\nupdated file.",
|
|
"type": "string"
|
|
},
|
|
"sizeBytes": {
|
|
"description": "Output only. The size of the TFLite model",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"servicePath": "",
|
|
"title": "Firebase ML API",
|
|
"version": "v1beta2",
|
|
"version_module": true
|
|
} |