mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Bump version to 1.0.9; update JSON schemas; add new APIs
This commit is contained in:
@@ -193,7 +193,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "Required. The resource name of the instance location using the form:\n `projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region",
|
||||
"description": "Required. The resource name of the instance location using the form:\n `projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
||||
"required": true,
|
||||
@@ -221,7 +221,7 @@
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region",
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
|
||||
"required": true,
|
||||
@@ -236,6 +236,62 @@
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"export": {
|
||||
"description": "Export Redis instance data into a Redis RDB format file in Cloud Storage.\n\nRedis will continue serving during this operation.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.",
|
||||
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:export",
|
||||
"httpMethod": "POST",
|
||||
"id": "redis.projects.locations.instances.export",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1beta1/{+name}:export",
|
||||
"request": {
|
||||
"$ref": "ExportInstanceRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"failover": {
|
||||
"description": "Initiates a failover of the master node to current replica node for a\nspecific STANDARD tier Cloud Memorystore for Redis instance.",
|
||||
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:failover",
|
||||
"httpMethod": "POST",
|
||||
"id": "redis.projects.locations.instances.failover",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1beta1/{+name}:failover",
|
||||
"request": {
|
||||
"$ref": "FailoverInstanceRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Gets the details of a specific Redis instance.",
|
||||
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}",
|
||||
@@ -246,7 +302,7 @@
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region",
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
|
||||
"required": true,
|
||||
@@ -261,6 +317,34 @@
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"import": {
|
||||
"description": "Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.\n\nRedis may stop serving during this operation. Instance state will be\nIMPORTING for entire operation. When complete, the instance will contain\nonly data from the imported file.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.",
|
||||
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:import",
|
||||
"httpMethod": "POST",
|
||||
"id": "redis.projects.locations.instances.import",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "Required. Redis instance resource name using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1beta1/{+name}:import",
|
||||
"request": {
|
||||
"$ref": "ImportInstanceRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists all Redis instances owned by a project in either the specified\nlocation (region) or all locations.\n\nThe location should have the following format:\n* `projects/{project_id}/locations/{location_id}`\n\nIf `location_id` is specified as `-` (wildcard), then all regions\navailable to the project are queried, and the results are aggregated.",
|
||||
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/instances",
|
||||
@@ -282,7 +366,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"parent": {
|
||||
"description": "Required. The resource name of the instance location using the form:\n `projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region",
|
||||
"description": "Required. The resource name of the instance location using the form:\n `projects/{project_id}/locations/{location_id}`\nwhere `location_id` refers to a GCP region.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
||||
"required": true,
|
||||
@@ -458,7 +542,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20190327",
|
||||
"revision": "20190628",
|
||||
"rootUrl": "https://redis.googleapis.com/",
|
||||
"schemas": {
|
||||
"Empty": {
|
||||
@@ -467,6 +551,60 @@
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"ExportInstanceRequest": {
|
||||
"description": "Request for Export.",
|
||||
"id": "ExportInstanceRequest",
|
||||
"properties": {
|
||||
"outputConfig": {
|
||||
"$ref": "OutputConfig",
|
||||
"description": "Required. Specify data to be exported."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"FailoverInstanceRequest": {
|
||||
"description": "Request for Failover.",
|
||||
"id": "FailoverInstanceRequest",
|
||||
"properties": {
|
||||
"dataProtectionMode": {
|
||||
"description": "Optional. Available data protection modes that the user can choose. If it's\nunspecified, data protection mode will be LIMITED_DATA_LOSS by default.",
|
||||
"enum": [
|
||||
"DATA_PROTECTION_MODE_UNSPECIFIED",
|
||||
"LIMITED_DATA_LOSS",
|
||||
"FORCE_DATA_LOSS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Defaults to LIMITED_DATA_LOSS if a data protection mode is not\nspecified.",
|
||||
"Instance failover will be protected with data loss control. More\nspecifically, the failover will only be performed if the current\nreplication offset diff between master and replica is under a certain\nthreshold.",
|
||||
"Instance failover will be performed without data loss control."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GcsDestination": {
|
||||
"description": "The Cloud Storage location for the output content",
|
||||
"id": "GcsDestination",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"description": "Required. Data destination URI (e.g.\n'gs://my_bucket/my_object'). Existing files will be overwritten.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GcsSource": {
|
||||
"description": "The Cloud Storage location for the input content",
|
||||
"id": "GcsSource",
|
||||
"properties": {
|
||||
"uri": {
|
||||
"description": "Required. Source data URI. (e.g. 'gs://my_bucket/my_object').",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GoogleCloudCommonOperationMetadata": {
|
||||
"description": "Represents the metadata of the long-running operation.",
|
||||
"id": "GoogleCloudCommonOperationMetadata",
|
||||
@@ -524,6 +662,28 @@
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"ImportInstanceRequest": {
|
||||
"description": "Request for Import.",
|
||||
"id": "ImportInstanceRequest",
|
||||
"properties": {
|
||||
"inputConfig": {
|
||||
"$ref": "InputConfig",
|
||||
"description": "Required. Specify data to be imported."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"InputConfig": {
|
||||
"description": "The input content",
|
||||
"id": "InputConfig",
|
||||
"properties": {
|
||||
"gcsSource": {
|
||||
"$ref": "GcsSource",
|
||||
"description": "Google Cloud Storage location where input content is located."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Instance": {
|
||||
"description": "A Google Cloud Redis instance.",
|
||||
"id": "Instance",
|
||||
@@ -573,6 +733,10 @@
|
||||
"description": "Required. Unique name of the resource in this scope including project and\nlocation using the form:\n `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n\nNote: Redis instances are managed and addressed at regional level so\nlocation_id here refers to a GCP region; however, users may choose which\nspecific zone (or collection of zones for cross-zone instances) an instance\nshould be provisioned in. Refer to [location_id] and\n[alternative_location_id] fields for more details.",
|
||||
"type": "string"
|
||||
},
|
||||
"persistenceIamIdentity": {
|
||||
"description": "Output only. Cloud IAM identity used by import / export operations to\ntransfer data to/from Cloud Storage. Format is\n\"serviceAccount:<service_account_email>\". The value may change over time\nfor a given instance so should be checked before each import/export\noperation.",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
"description": "Output only. The port number of the exposed Redis endpoint.",
|
||||
"format": "int32",
|
||||
@@ -586,7 +750,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"redisVersion": {
|
||||
"description": "Optional. The version of Redis software.\nIf not provided, latest supported version will be used. Updating the\nversion will perform an upgrade/downgrade to the new version. Currently,\nthe supported values are:\n\n * `REDIS_4_0` for Redis 4.0 compatibility\n * `REDIS_3_2` for Redis 3.2 compatibility",
|
||||
"description": "Optional. The version of Redis software.\nIf not provided, latest supported version will be used. Updating the\nversion will perform an upgrade/downgrade to the new version. Currently,\nthe supported values are:\n\n * `REDIS_4_0` for Redis 4.0 compatibility (default)\n * `REDIS_3_2` for Redis 3.2 compatibility",
|
||||
"type": "string"
|
||||
},
|
||||
"reservedIpRange": {
|
||||
@@ -756,7 +920,7 @@
|
||||
"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 have the format of `operations/some/unique/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": {
|
||||
@@ -770,8 +934,19 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"OutputConfig": {
|
||||
"description": "The output content",
|
||||
"id": "OutputConfig",
|
||||
"properties": {
|
||||
"gcsDestination": {
|
||||
"$ref": "GcsDestination",
|
||||
"description": "Google Cloud Storage destination for output content."
|
||||
}
|
||||
},
|
||||
"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). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error\nmessage, and error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user