cloud_memcache.proto 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.memcache.v1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/longrunning/operations.proto";
  21. import "google/protobuf/duration.proto";
  22. import "google/protobuf/field_mask.proto";
  23. import "google/protobuf/timestamp.proto";
  24. import "google/type/dayofweek.proto";
  25. import "google/type/timeofday.proto";
  26. option go_package = "google.golang.org/genproto/googleapis/cloud/memcache/v1;memcache";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "CloudMemcacheProto";
  29. option java_package = "com.google.cloud.memcache.v1";
  30. // Configures and manages Cloud Memorystore for Memcached instances.
  31. //
  32. //
  33. // The `memcache.googleapis.com` service implements the Google Cloud Memorystore
  34. // for Memcached API and defines the following resource model for managing
  35. // Memorystore Memcached (also called Memcached below) instances:
  36. // * The service works with a collection of cloud projects, named: `/projects/*`
  37. // * Each project has a collection of available locations, named: `/locations/*`
  38. // * Each location has a collection of Memcached instances, named:
  39. // `/instances/*`
  40. // * As such, Memcached instances are resources of the form:
  41. // `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
  42. //
  43. // Note that location_id must be a GCP `region`; for example:
  44. // * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
  45. service CloudMemcache {
  46. option (google.api.default_host) = "memcache.googleapis.com";
  47. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  48. // Lists Instances in a given location.
  49. rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
  50. option (google.api.http) = {
  51. get: "/v1/{parent=projects/*/locations/*}/instances"
  52. };
  53. option (google.api.method_signature) = "parent";
  54. }
  55. // Gets details of a single Instance.
  56. rpc GetInstance(GetInstanceRequest) returns (Instance) {
  57. option (google.api.http) = {
  58. get: "/v1/{name=projects/*/locations/*/instances/*}"
  59. };
  60. option (google.api.method_signature) = "name";
  61. }
  62. // Creates a new Instance in a given location.
  63. rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) {
  64. option (google.api.http) = {
  65. post: "/v1/{parent=projects/*/locations/*}/instances"
  66. body: "instance"
  67. };
  68. option (google.api.method_signature) = "parent,instance,instance_id";
  69. option (google.longrunning.operation_info) = {
  70. response_type: "google.cloud.memcache.v1.Instance"
  71. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  72. };
  73. }
  74. // Updates an existing Instance in a given project and location.
  75. rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) {
  76. option (google.api.http) = {
  77. patch: "/v1/{instance.name=projects/*/locations/*/instances/*}"
  78. body: "instance"
  79. };
  80. option (google.api.method_signature) = "instance,update_mask";
  81. option (google.longrunning.operation_info) = {
  82. response_type: "google.cloud.memcache.v1.Instance"
  83. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  84. };
  85. }
  86. // Updates the defined Memcached parameters for an existing instance.
  87. // This method only stages the parameters, it must be followed by
  88. // `ApplyParameters` to apply the parameters to nodes of the Memcached
  89. // instance.
  90. rpc UpdateParameters(UpdateParametersRequest) returns (google.longrunning.Operation) {
  91. option (google.api.http) = {
  92. patch: "/v1/{name=projects/*/locations/*/instances/*}:updateParameters"
  93. body: "*"
  94. };
  95. option (google.api.method_signature) = "name,update_mask,parameters";
  96. option (google.longrunning.operation_info) = {
  97. response_type: "google.cloud.memcache.v1.Instance"
  98. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  99. };
  100. }
  101. // Deletes a single Instance.
  102. rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) {
  103. option (google.api.http) = {
  104. delete: "/v1/{name=projects/*/locations/*/instances/*}"
  105. };
  106. option (google.api.method_signature) = "name";
  107. option (google.longrunning.operation_info) = {
  108. response_type: "google.protobuf.Empty"
  109. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  110. };
  111. }
  112. // `ApplyParameters` restarts the set of specified nodes in order to update
  113. // them to the current set of parameters for the Memcached Instance.
  114. rpc ApplyParameters(ApplyParametersRequest) returns (google.longrunning.Operation) {
  115. option (google.api.http) = {
  116. post: "/v1/{name=projects/*/locations/*/instances/*}:applyParameters"
  117. body: "*"
  118. };
  119. option (google.api.method_signature) = "name,node_ids,apply_all";
  120. option (google.longrunning.operation_info) = {
  121. response_type: "google.cloud.memcache.v1.Instance"
  122. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  123. };
  124. }
  125. // Reschedules upcoming maintenance event.
  126. rpc RescheduleMaintenance(RescheduleMaintenanceRequest) returns (google.longrunning.Operation) {
  127. option (google.api.http) = {
  128. post: "/v1/{instance=projects/*/locations/*/instances/*}:rescheduleMaintenance"
  129. body: "*"
  130. };
  131. option (google.api.method_signature) = "instance, reschedule_type, schedule_time";
  132. option (google.longrunning.operation_info) = {
  133. response_type: "google.cloud.memcache.v1.Instance"
  134. metadata_type: "google.cloud.memcache.v1.OperationMetadata"
  135. };
  136. }
  137. }
  138. // A Memorystore for Memcached instance
  139. message Instance {
  140. option (google.api.resource) = {
  141. type: "memcache.googleapis.com/Instance"
  142. pattern: "projects/{project}/locations/{location}/instances/{instance}"
  143. };
  144. // Different states of a Memcached instance.
  145. enum State {
  146. // State not set.
  147. STATE_UNSPECIFIED = 0;
  148. // Memcached instance is being created.
  149. CREATING = 1;
  150. // Memcached instance has been created and ready to be used.
  151. READY = 2;
  152. // Memcached instance is updating configuration such as maintenance policy
  153. // and schedule.
  154. UPDATING = 3;
  155. // Memcached instance is being deleted.
  156. DELETING = 4;
  157. // Memcached instance is going through maintenance, e.g. data plane rollout.
  158. PERFORMING_MAINTENANCE = 5;
  159. }
  160. // Configuration for a Memcached Node.
  161. message NodeConfig {
  162. // Required. Number of cpus per Memcached node.
  163. int32 cpu_count = 1 [(google.api.field_behavior) = REQUIRED];
  164. // Required. Memory size in MiB for each Memcached node.
  165. int32 memory_size_mb = 2 [(google.api.field_behavior) = REQUIRED];
  166. }
  167. message Node {
  168. // Different states of a Memcached node.
  169. enum State {
  170. // Node state is not set.
  171. STATE_UNSPECIFIED = 0;
  172. // Node is being created.
  173. CREATING = 1;
  174. // Node has been created and ready to be used.
  175. READY = 2;
  176. // Node is being deleted.
  177. DELETING = 3;
  178. // Node is being updated.
  179. UPDATING = 4;
  180. }
  181. // Output only. Identifier of the Memcached node. The node id does not
  182. // include project or location like the Memcached instance name.
  183. string node_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  184. // Output only. Location (GCP Zone) for the Memcached node.
  185. string zone = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  186. // Output only. Current state of the Memcached node.
  187. State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  188. // Output only. Hostname or IP address of the Memcached node used by the
  189. // clients to connect to the Memcached server on this node.
  190. string host = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  191. // Output only. The port number of the Memcached server on this node.
  192. int32 port = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  193. // User defined parameters currently applied to the node.
  194. MemcacheParameters parameters = 6;
  195. }
  196. message InstanceMessage {
  197. enum Code {
  198. // Message Code not set.
  199. CODE_UNSPECIFIED = 0;
  200. // Memcached nodes are distributed unevenly.
  201. ZONE_DISTRIBUTION_UNBALANCED = 1;
  202. }
  203. // A code that correspond to one type of user-facing message.
  204. Code code = 1;
  205. // Message on memcached instance which will be exposed to users.
  206. string message = 2;
  207. }
  208. // Required. Unique name of the resource in this scope including project and
  209. // location using the form:
  210. // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
  211. //
  212. // Note: Memcached instances are managed and addressed at the regional level
  213. // so `location_id` here refers to a Google Cloud region; however, users may
  214. // choose which zones Memcached nodes should be provisioned in within an
  215. // instance. Refer to [zones][google.cloud.memcache.v1.Instance.zones] field for more details.
  216. string name = 1 [(google.api.field_behavior) = REQUIRED];
  217. // User provided name for the instance, which is only used for display
  218. // purposes. Cannot be more than 80 characters.
  219. string display_name = 2;
  220. // Resource labels to represent user-provided metadata.
  221. // Refer to cloud documentation on labels for more details.
  222. // https://cloud.google.com/compute/docs/labeling-resources
  223. map<string, string> labels = 3;
  224. // The full name of the Google Compute Engine
  225. // [network](/compute/docs/networks-and-firewalls#networks) to which the
  226. // instance is connected. If left unspecified, the `default` network
  227. // will be used.
  228. string authorized_network = 4;
  229. // Zones in which Memcached nodes should be provisioned.
  230. // Memcached nodes will be equally distributed across these zones. If not
  231. // provided, the service will by default create nodes in all zones in the
  232. // region for the instance.
  233. repeated string zones = 5;
  234. // Required. Number of nodes in the Memcached instance.
  235. int32 node_count = 6 [(google.api.field_behavior) = REQUIRED];
  236. // Required. Configuration for Memcached nodes.
  237. NodeConfig node_config = 7 [(google.api.field_behavior) = REQUIRED];
  238. // The major version of Memcached software.
  239. // If not provided, latest supported version will be used. Currently the
  240. // latest supported major version is `MEMCACHE_1_5`.
  241. // The minor version will be automatically determined by our system based on
  242. // the latest supported minor version.
  243. MemcacheVersion memcache_version = 9;
  244. // User defined parameters to apply to the memcached process
  245. // on each node.
  246. MemcacheParameters parameters = 11;
  247. // Output only. List of Memcached nodes.
  248. // Refer to [Node][google.cloud.memcache.v1.Instance.Node] message for more details.
  249. repeated Node memcache_nodes = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  250. // Output only. The time the instance was created.
  251. google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  252. // Output only. The time the instance was updated.
  253. google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  254. // Output only. The state of this Memcached instance.
  255. State state = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  256. // Output only. The full version of memcached server running on this instance.
  257. // System automatically determines the full memcached version for an instance
  258. // based on the input MemcacheVersion.
  259. // The full version format will be "memcached-1.5.16".
  260. string memcache_full_version = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
  261. // List of messages that describe the current state of the Memcached instance.
  262. repeated InstanceMessage instance_messages = 19;
  263. // Output only. Endpoint for the Discovery API.
  264. string discovery_endpoint = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
  265. // The maintenance policy for the instance. If not provided,
  266. // the maintenance event will be performed based on Memorystore
  267. // internal rollout schedule.
  268. MaintenancePolicy maintenance_policy = 21;
  269. // Output only. Published maintenance schedule.
  270. MaintenanceSchedule maintenance_schedule = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
  271. }
  272. // Maintenance policy per instance.
  273. message MaintenancePolicy {
  274. // Output only. The time when the policy was created.
  275. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  276. // Output only. The time when the policy was updated.
  277. google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  278. // Description of what this policy is for. Create/Update methods
  279. // return INVALID_ARGUMENT if the length is greater than 512.
  280. string description = 3;
  281. // Required. Maintenance window that is applied to resources covered by this
  282. // policy. Minimum 1. For the current version, the maximum number of
  283. // weekly_maintenance_windows is expected to be one.
  284. repeated WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(google.api.field_behavior) = REQUIRED];
  285. }
  286. // Time window specified for weekly operations.
  287. message WeeklyMaintenanceWindow {
  288. // Required. Allows to define schedule that runs specified day of the week.
  289. google.type.DayOfWeek day = 1 [(google.api.field_behavior) = REQUIRED];
  290. // Required. Start time of the window in UTC.
  291. google.type.TimeOfDay start_time = 2 [(google.api.field_behavior) = REQUIRED];
  292. // Required. Duration of the time window.
  293. google.protobuf.Duration duration = 3 [(google.api.field_behavior) = REQUIRED];
  294. }
  295. // Upcoming maintenance schedule.
  296. message MaintenanceSchedule {
  297. // Output only. The start time of any upcoming scheduled maintenance for this instance.
  298. google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  299. // Output only. The end time of any upcoming scheduled maintenance for this instance.
  300. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  301. // Output only. The deadline that the maintenance schedule start time can not go beyond,
  302. // including reschedule.
  303. google.protobuf.Timestamp schedule_deadline_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  304. }
  305. // Request for [RescheduleMaintenance][google.cloud.memcache.v1.CloudMemcache.RescheduleMaintenance].
  306. message RescheduleMaintenanceRequest {
  307. // Reschedule options.
  308. enum RescheduleType {
  309. // Not set.
  310. RESCHEDULE_TYPE_UNSPECIFIED = 0;
  311. // If the user wants to schedule the maintenance to happen now.
  312. IMMEDIATE = 1;
  313. // If the user wants to use the existing maintenance policy to find the
  314. // next available window.
  315. NEXT_AVAILABLE_WINDOW = 2;
  316. // If the user wants to reschedule the maintenance to a specific time.
  317. SPECIFIC_TIME = 3;
  318. }
  319. // Required. Memcache instance resource name using the form:
  320. // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
  321. // where `location_id` refers to a GCP region.
  322. string instance = 1 [
  323. (google.api.field_behavior) = REQUIRED,
  324. (google.api.resource_reference) = {
  325. type: "memcache.googleapis.com/Instance"
  326. }
  327. ];
  328. // Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
  329. RescheduleType reschedule_type = 2 [(google.api.field_behavior) = REQUIRED];
  330. // Timestamp when the maintenance shall be rescheduled to if
  331. // reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
  332. // example `2012-11-15T16:19:00.094Z`.
  333. google.protobuf.Timestamp schedule_time = 3;
  334. }
  335. // Request for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  336. message ListInstancesRequest {
  337. // Required. The resource name of the instance location using the form:
  338. // `projects/{project_id}/locations/{location_id}`
  339. // where `location_id` refers to a GCP region
  340. string parent = 1 [
  341. (google.api.field_behavior) = REQUIRED,
  342. (google.api.resource_reference) = {
  343. type: "locations.googleapis.com/Location"
  344. }
  345. ];
  346. // The maximum number of items to return.
  347. //
  348. // If not specified, a default value of 1000 will be used by the service.
  349. // Regardless of the `page_size` value, the response may include a partial
  350. // list and a caller should only rely on response's
  351. // [`next_page_token`][google.cloud.memcache.v1.ListInstancesResponse.next_page_token]
  352. // to determine if there are more instances left to be queried.
  353. int32 page_size = 2;
  354. // The `next_page_token` value returned from a previous List request, if any.
  355. string page_token = 3;
  356. // List filter. For example, exclude all Memcached instances with name as
  357. // my-instance by specifying `"name != my-instance"`.
  358. string filter = 4;
  359. // Sort results. Supported values are "name", "name desc" or "" (unsorted).
  360. string order_by = 5;
  361. }
  362. // Response for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances].
  363. message ListInstancesResponse {
  364. // A list of Memcached instances in the project in the specified location,
  365. // or across all locations.
  366. //
  367. // If the `location_id` in the parent field of the request is "-", all regions
  368. // available to the project are queried, and the results aggregated.
  369. repeated Instance instances = 1;
  370. // Token to retrieve the next page of results, or empty if there are no more
  371. // results in the list.
  372. string next_page_token = 2;
  373. // Locations that could not be reached.
  374. repeated string unreachable = 3;
  375. }
  376. // Request for [GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance].
  377. message GetInstanceRequest {
  378. // Required. Memcached instance resource name in the format:
  379. // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
  380. // where `location_id` refers to a GCP region
  381. string name = 1 [
  382. (google.api.field_behavior) = REQUIRED,
  383. (google.api.resource_reference) = {
  384. type: "memcache.googleapis.com/Instance"
  385. }
  386. ];
  387. }
  388. // Request for [CreateInstance][google.cloud.memcache.v1.CloudMemcache.CreateInstance].
  389. message CreateInstanceRequest {
  390. // Required. The resource name of the instance location using the form:
  391. // `projects/{project_id}/locations/{location_id}`
  392. // where `location_id` refers to a GCP region
  393. string parent = 1 [
  394. (google.api.field_behavior) = REQUIRED,
  395. (google.api.resource_reference) = {
  396. type: "locations.googleapis.com/Location"
  397. }
  398. ];
  399. // Required. The logical name of the Memcached instance in the user
  400. // project with the following restrictions:
  401. //
  402. // * Must contain only lowercase letters, numbers, and hyphens.
  403. // * Must start with a letter.
  404. // * Must be between 1-40 characters.
  405. // * Must end with a number or a letter.
  406. // * Must be unique within the user project / location.
  407. //
  408. // If any of the above are not met, the API raises an invalid argument error.
  409. string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
  410. // Required. A Memcached Instance
  411. Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
  412. }
  413. // Request for [UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance].
  414. message UpdateInstanceRequest {
  415. // Required. Mask of fields to update.
  416. //
  417. // * `displayName`
  418. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
  419. // Required. A Memcached Instance.
  420. // Only fields specified in update_mask are updated.
  421. Instance instance = 2 [(google.api.field_behavior) = REQUIRED];
  422. }
  423. // Request for [DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance].
  424. message DeleteInstanceRequest {
  425. // Required. Memcached instance resource name in the format:
  426. // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
  427. // where `location_id` refers to a GCP region
  428. string name = 1 [
  429. (google.api.field_behavior) = REQUIRED,
  430. (google.api.resource_reference) = {
  431. type: "memcache.googleapis.com/Instance"
  432. }
  433. ];
  434. }
  435. // Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters].
  436. message ApplyParametersRequest {
  437. // Required. Resource name of the Memcached instance for which parameter group updates
  438. // should be applied.
  439. string name = 1 [
  440. (google.api.field_behavior) = REQUIRED,
  441. (google.api.resource_reference) = {
  442. type: "memcache.googleapis.com/Instance"
  443. }
  444. ];
  445. // Nodes to which the instance-level parameter group is applied.
  446. repeated string node_ids = 2;
  447. // Whether to apply instance-level parameter group to all nodes. If set to
  448. // true, users are restricted from specifying individual nodes, and
  449. // `ApplyParameters` updates all nodes within the instance.
  450. bool apply_all = 3;
  451. }
  452. // Request for [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters].
  453. message UpdateParametersRequest {
  454. // Required. Resource name of the Memcached instance for which the parameters should be
  455. // updated.
  456. string name = 1 [
  457. (google.api.field_behavior) = REQUIRED,
  458. (google.api.resource_reference) = {
  459. type: "memcache.googleapis.com/Instance"
  460. }
  461. ];
  462. // Required. Mask of fields to update.
  463. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
  464. // The parameters to apply to the instance.
  465. MemcacheParameters parameters = 3;
  466. }
  467. // Memcached versions supported by our service.
  468. enum MemcacheVersion {
  469. MEMCACHE_VERSION_UNSPECIFIED = 0;
  470. // Memcached 1.5 version.
  471. MEMCACHE_1_5 = 1;
  472. }
  473. message MemcacheParameters {
  474. // Output only. The unique ID associated with this set of parameters. Users
  475. // can use this id to determine if the parameters associated with the instance
  476. // differ from the parameters associated with the nodes. A discrepancy between
  477. // parameter ids can inform users that they may need to take action to apply
  478. // parameters on nodes.
  479. string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  480. // User defined set of parameters to use in the memcached process.
  481. map<string, string> params = 3;
  482. }
  483. // Represents the metadata of a long-running operation.
  484. message OperationMetadata {
  485. // Output only. Time when the operation was created.
  486. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  487. // Output only. Time when the operation finished running.
  488. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  489. // Output only. Server-defined resource path for the target of the operation.
  490. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  491. // Output only. Name of the verb executed by the operation.
  492. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  493. // Output only. Human-readable status of the operation, if any.
  494. string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  495. // Output only. Identifies whether the user has requested cancellation
  496. // of the operation. Operations that have successfully been cancelled
  497. // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  498. // corresponding to `Code.CANCELLED`.
  499. bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  500. // Output only. API version used to start the operation.
  501. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  502. }
  503. // Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
  504. message LocationMetadata {
  505. // Output only. The set of available zones in the location. The map is keyed
  506. // by the lowercase ID of each zone, as defined by GCE. These keys can be
  507. // specified in the `zones` field when creating a Memcached instance.
  508. map<string, ZoneMetadata> available_zones = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  509. }
  510. message ZoneMetadata {
  511. }