service.proto 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. // Copyright 2021 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.gkehub.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/cloud/gkehub/v1/feature.proto";
  21. import "google/cloud/gkehub/v1/membership.proto";
  22. import "google/longrunning/operations.proto";
  23. import "google/protobuf/field_mask.proto";
  24. import "google/protobuf/timestamp.proto";
  25. option csharp_namespace = "Google.Cloud.GkeHub.V1";
  26. option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "ServiceProto";
  29. option java_package = "com.google.cloud.gkehub.v1";
  30. option php_namespace = "Google\\Cloud\\GkeHub\\V1";
  31. option ruby_package = "Google::Cloud::GkeHub::V1";
  32. // The GKE Hub service handles the registration of many Kubernetes clusters to
  33. // Google Cloud, and the management of multi-cluster features over those
  34. // clusters.
  35. //
  36. // The GKE Hub service operates on the following resources:
  37. //
  38. // * [Membership][google.cloud.gkehub.v1.Membership]
  39. // * [Feature][google.cloud.gkehub.v1.Feature]
  40. //
  41. // GKE Hub is currently only available in the global region.
  42. //
  43. // **Membership management may be non-trivial:** it is recommended to use one
  44. // of the Google-provided client libraries or tools where possible when working
  45. // with Membership resources.
  46. service GkeHub {
  47. option (google.api.default_host) = "gkehub.googleapis.com";
  48. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  49. // Lists Memberships in a given project and location.
  50. rpc ListMemberships(ListMembershipsRequest) returns (ListMembershipsResponse) {
  51. option (google.api.http) = {
  52. get: "/v1/{parent=projects/*/locations/*}/memberships"
  53. };
  54. option (google.api.method_signature) = "parent";
  55. }
  56. // Lists Features in a given project and location.
  57. rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) {
  58. option (google.api.http) = {
  59. get: "/v1/{parent=projects/*/locations/*}/features"
  60. };
  61. option (google.api.method_signature) = "parent";
  62. }
  63. // Gets the details of a Membership.
  64. rpc GetMembership(GetMembershipRequest) returns (Membership) {
  65. option (google.api.http) = {
  66. get: "/v1/{name=projects/*/locations/*/memberships/*}"
  67. };
  68. option (google.api.method_signature) = "name";
  69. }
  70. // Gets details of a single Feature.
  71. rpc GetFeature(GetFeatureRequest) returns (Feature) {
  72. option (google.api.http) = {
  73. get: "/v1/{name=projects/*/locations/*/features/*}"
  74. };
  75. option (google.api.method_signature) = "name";
  76. }
  77. // Creates a new Membership.
  78. //
  79. // **This is currently only supported for GKE clusters on Google Cloud**.
  80. // To register other clusters, follow the instructions at
  81. // https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
  82. rpc CreateMembership(CreateMembershipRequest) returns (google.longrunning.Operation) {
  83. option (google.api.http) = {
  84. post: "/v1/{parent=projects/*/locations/*}/memberships"
  85. body: "resource"
  86. };
  87. option (google.api.method_signature) = "parent,resource,membership_id";
  88. option (google.longrunning.operation_info) = {
  89. response_type: "Membership"
  90. metadata_type: "OperationMetadata"
  91. };
  92. }
  93. // Adds a new Feature.
  94. rpc CreateFeature(CreateFeatureRequest) returns (google.longrunning.Operation) {
  95. option (google.api.http) = {
  96. post: "/v1/{parent=projects/*/locations/*}/features"
  97. body: "resource"
  98. };
  99. option (google.api.method_signature) = "parent,resource,feature_id";
  100. option (google.longrunning.operation_info) = {
  101. response_type: "Feature"
  102. metadata_type: "OperationMetadata"
  103. };
  104. }
  105. // Removes a Membership.
  106. //
  107. // **This is currently only supported for GKE clusters on Google Cloud**.
  108. // To unregister other clusters, follow the instructions at
  109. // https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
  110. rpc DeleteMembership(DeleteMembershipRequest) returns (google.longrunning.Operation) {
  111. option (google.api.http) = {
  112. delete: "/v1/{name=projects/*/locations/*/memberships/*}"
  113. };
  114. option (google.api.method_signature) = "name";
  115. option (google.longrunning.operation_info) = {
  116. response_type: "google.protobuf.Empty"
  117. metadata_type: "OperationMetadata"
  118. };
  119. }
  120. // Removes a Feature.
  121. rpc DeleteFeature(DeleteFeatureRequest) returns (google.longrunning.Operation) {
  122. option (google.api.http) = {
  123. delete: "/v1/{name=projects/*/locations/*/features/*}"
  124. };
  125. option (google.api.method_signature) = "name";
  126. option (google.longrunning.operation_info) = {
  127. response_type: "google.protobuf.Empty"
  128. metadata_type: "OperationMetadata"
  129. };
  130. }
  131. // Updates an existing Membership.
  132. rpc UpdateMembership(UpdateMembershipRequest) returns (google.longrunning.Operation) {
  133. option (google.api.http) = {
  134. patch: "/v1/{name=projects/*/locations/*/memberships/*}"
  135. body: "resource"
  136. };
  137. option (google.api.method_signature) = "name,resource,update_mask";
  138. option (google.longrunning.operation_info) = {
  139. response_type: "Membership"
  140. metadata_type: "OperationMetadata"
  141. };
  142. }
  143. // Updates an existing Feature.
  144. rpc UpdateFeature(UpdateFeatureRequest) returns (google.longrunning.Operation) {
  145. option (google.api.http) = {
  146. patch: "/v1/{name=projects/*/locations/*/features/*}"
  147. body: "resource"
  148. };
  149. option (google.api.method_signature) = "name,resource,update_mask";
  150. option (google.longrunning.operation_info) = {
  151. response_type: "Feature"
  152. metadata_type: "OperationMetadata"
  153. };
  154. }
  155. // Generates the manifest for deployment of the GKE connect agent.
  156. //
  157. // **This method is used internally by Google-provided libraries.**
  158. // Most clients should not need to call this method directly.
  159. rpc GenerateConnectManifest(GenerateConnectManifestRequest) returns (GenerateConnectManifestResponse) {
  160. option (google.api.http) = {
  161. get: "/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest"
  162. };
  163. }
  164. }
  165. // Request message for `GkeHub.ListMemberships` method.
  166. message ListMembershipsRequest {
  167. // Required. The parent (project and location) where the Memberships will be listed.
  168. // Specified in the format `projects/*/locations/*`.
  169. string parent = 1 [
  170. (google.api.field_behavior) = REQUIRED,
  171. (google.api.resource_reference) = {
  172. child_type: "gkehub.googleapis.com/Membership"
  173. }
  174. ];
  175. // Optional. When requesting a 'page' of resources, `page_size` specifies number of
  176. // resources to return. If unspecified or set to 0, all resources will
  177. // be returned.
  178. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
  179. // Optional. Token returned by previous call to `ListMemberships` which
  180. // specifies the position in the list from where to continue listing the
  181. // resources.
  182. string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
  183. // Optional. Lists Memberships that match the filter expression, following the syntax
  184. // outlined in https://google.aip.dev/160.
  185. //
  186. // Examples:
  187. //
  188. // - Name is `bar` in project `foo-proj` and location `global`:
  189. //
  190. // name = "projects/foo-proj/locations/global/membership/bar"
  191. //
  192. // - Memberships that have a label called `foo`:
  193. //
  194. // labels.foo:*
  195. //
  196. // - Memberships that have a label called `foo` whose value is `bar`:
  197. //
  198. // labels.foo = bar
  199. //
  200. // - Memberships in the CREATING state:
  201. //
  202. // state = CREATING
  203. string filter = 4 [(google.api.field_behavior) = OPTIONAL];
  204. // Optional. One or more fields to compare and use to sort the output.
  205. // See https://google.aip.dev/132#ordering.
  206. string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
  207. }
  208. // Response message for the `GkeHub.ListMemberships` method.
  209. message ListMembershipsResponse {
  210. // The list of matching Memberships.
  211. repeated Membership resources = 1;
  212. // A token to request the next page of resources from the
  213. // `ListMemberships` method. The value of an empty string means that
  214. // there are no more resources to return.
  215. string next_page_token = 2;
  216. // List of locations that could not be reached while fetching this list.
  217. repeated string unreachable = 3;
  218. }
  219. // Request message for `GkeHub.GetMembership` method.
  220. message GetMembershipRequest {
  221. // Required. The Membership resource name in the format
  222. // `projects/*/locations/*/memberships/*`.
  223. string name = 1 [
  224. (google.api.field_behavior) = REQUIRED,
  225. (google.api.resource_reference) = {
  226. type: "gkehub.googleapis.com/Membership"
  227. }
  228. ];
  229. }
  230. // Request message for the `GkeHub.CreateMembership` method.
  231. message CreateMembershipRequest {
  232. // Required. The parent (project and location) where the Memberships will be created.
  233. // Specified in the format `projects/*/locations/*`.
  234. string parent = 1 [
  235. (google.api.field_behavior) = REQUIRED,
  236. (google.api.resource_reference) = {
  237. child_type: "gkehub.googleapis.com/Membership"
  238. }
  239. ];
  240. // Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
  241. // 1123 compliant DNS label:
  242. //
  243. // 1. At most 63 characters in length
  244. // 2. It must consist of lower case alphanumeric characters or `-`
  245. // 3. It must start and end with an alphanumeric character
  246. //
  247. // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
  248. // with a maximum length of 63 characters.
  249. string membership_id = 2 [(google.api.field_behavior) = REQUIRED];
  250. // Required. The membership to create.
  251. Membership resource = 3 [(google.api.field_behavior) = REQUIRED];
  252. // Optional. A request ID to identify requests. Specify a unique request ID
  253. // so that if you must retry your request, the server will know to ignore
  254. // the request if it has already been completed. The server will guarantee
  255. // that for at least 60 minutes after the first request.
  256. //
  257. // For example, consider a situation where you make an initial request and
  258. // the request times out. If you make the request again with the same request
  259. // ID, the server can check if original operation with the same request ID
  260. // was received, and if so, will ignore the second request. This prevents
  261. // clients from accidentally creating duplicate commitments.
  262. //
  263. // The request ID must be a valid UUID with the exception that zero UUID is
  264. // not supported (00000000-0000-0000-0000-000000000000).
  265. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  266. }
  267. // Request message for `GkeHub.DeleteMembership` method.
  268. message DeleteMembershipRequest {
  269. // Required. The Membership resource name in the format
  270. // `projects/*/locations/*/memberships/*`.
  271. string name = 1 [
  272. (google.api.field_behavior) = REQUIRED,
  273. (google.api.resource_reference) = {
  274. type: "gkehub.googleapis.com/Membership"
  275. }
  276. ];
  277. // Optional. A request ID to identify requests. Specify a unique request ID
  278. // so that if you must retry your request, the server will know to ignore
  279. // the request if it has already been completed. The server will guarantee
  280. // that for at least 60 minutes after the first request.
  281. //
  282. // For example, consider a situation where you make an initial request and
  283. // the request times out. If you make the request again with the same request
  284. // ID, the server can check if original operation with the same request ID
  285. // was received, and if so, will ignore the second request. This prevents
  286. // clients from accidentally creating duplicate commitments.
  287. //
  288. // The request ID must be a valid UUID with the exception that zero UUID is
  289. // not supported (00000000-0000-0000-0000-000000000000).
  290. string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
  291. }
  292. // Request message for `GkeHub.UpdateMembership` method.
  293. message UpdateMembershipRequest {
  294. // Required. The Membership resource name in the format
  295. // `projects/*/locations/*/memberships/*`.
  296. string name = 1 [
  297. (google.api.field_behavior) = REQUIRED,
  298. (google.api.resource_reference) = {
  299. type: "gkehub.googleapis.com/Membership"
  300. }
  301. ];
  302. // Required. Mask of fields to update.
  303. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
  304. // Required. Only fields specified in update_mask are updated.
  305. // If you specify a field in the update_mask but don't specify its value here
  306. // that field will be deleted.
  307. // If you are updating a map field, set the value of a key to null or empty
  308. // string to delete the key from the map. It's not possible to update a key's
  309. // value to the empty string.
  310. // If you specify the update_mask to be a special path "*", fully replaces all
  311. // user-modifiable fields to match `resource`.
  312. Membership resource = 3 [(google.api.field_behavior) = REQUIRED];
  313. // Optional. A request ID to identify requests. Specify a unique request ID
  314. // so that if you must retry your request, the server will know to ignore
  315. // the request if it has already been completed. The server will guarantee
  316. // that for at least 60 minutes after the first request.
  317. //
  318. // For example, consider a situation where you make an initial request and
  319. // the request times out. If you make the request again with the same request
  320. // ID, the server can check if original operation with the same request ID
  321. // was received, and if so, will ignore the second request. This prevents
  322. // clients from accidentally creating duplicate commitments.
  323. //
  324. // The request ID must be a valid UUID with the exception that zero UUID is
  325. // not supported (00000000-0000-0000-0000-000000000000).
  326. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  327. }
  328. // Request message for `GkeHub.GenerateConnectManifest`
  329. // method.
  330. // .
  331. message GenerateConnectManifestRequest {
  332. // Required. The Membership resource name the Agent will associate with, in the format
  333. // `projects/*/locations/*/memberships/*`.
  334. string name = 1 [
  335. (google.api.field_behavior) = REQUIRED,
  336. (google.api.resource_reference) = {
  337. type: "gkehub.googleapis.com/Membership"
  338. }
  339. ];
  340. // Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
  341. //
  342. // The Connect Agent is authorized automatically when run in the default
  343. // namespace. Otherwise, explicit authorization must be granted with an
  344. // additional IAM binding.
  345. string namespace = 2 [(google.api.field_behavior) = OPTIONAL];
  346. // Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
  347. // requires the use of a proxy. Format must be in the form
  348. // `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
  349. // supported by the proxy. This will direct the connect agent's outbound
  350. // traffic through a HTTP(S) proxy.
  351. bytes proxy = 3 [(google.api.field_behavior) = OPTIONAL];
  352. // Optional. The Connect agent version to use. Defaults to the most current version.
  353. string version = 4 [(google.api.field_behavior) = OPTIONAL];
  354. // Optional. If true, generate the resources for upgrade only. Some resources
  355. // generated only for installation (e.g. secrets) will be excluded.
  356. bool is_upgrade = 5 [(google.api.field_behavior) = OPTIONAL];
  357. // Optional. The registry to fetch the connect agent image from. Defaults to
  358. // gcr.io/gkeconnect.
  359. string registry = 6 [(google.api.field_behavior) = OPTIONAL];
  360. // Optional. The image pull secret content for the registry, if not public.
  361. bytes image_pull_secret_content = 7 [(google.api.field_behavior) = OPTIONAL];
  362. }
  363. // GenerateConnectManifestResponse contains manifest information for
  364. // installing/upgrading a Connect agent.
  365. message GenerateConnectManifestResponse {
  366. // The ordered list of Kubernetes resources that need to be applied to the
  367. // cluster for GKE Connect agent installation/upgrade.
  368. repeated ConnectAgentResource manifest = 1;
  369. }
  370. // ConnectAgentResource represents a Kubernetes resource manifest for Connect
  371. // Agent deployment.
  372. message ConnectAgentResource {
  373. // Kubernetes type of the resource.
  374. TypeMeta type = 1;
  375. // YAML manifest of the resource.
  376. string manifest = 2;
  377. }
  378. // TypeMeta is the type information needed for content unmarshalling of
  379. // Kubernetes resources in the manifest.
  380. message TypeMeta {
  381. // Kind of the resource (e.g. Deployment).
  382. string kind = 1;
  383. // APIVersion of the resource (e.g. v1).
  384. string api_version = 2;
  385. }
  386. // Request message for `GkeHub.ListFeatures` method.
  387. message ListFeaturesRequest {
  388. // Required. The parent (project and location) where the Features will be listed.
  389. // Specified in the format `projects/*/locations/*`.
  390. string parent = 1 [
  391. (google.api.resource_reference) = {
  392. child_type: "gkehub.googleapis.com/Feature"
  393. }
  394. ];
  395. // When requesting a 'page' of resources, `page_size` specifies number of
  396. // resources to return. If unspecified or set to 0, all resources will
  397. // be returned.
  398. int32 page_size = 2;
  399. // Token returned by previous call to `ListFeatures` which
  400. // specifies the position in the list from where to continue listing the
  401. // resources.
  402. string page_token = 3;
  403. // Lists Features that match the filter expression, following the syntax
  404. // outlined in https://google.aip.dev/160.
  405. //
  406. // Examples:
  407. //
  408. // - Feature with the name "servicemesh" in project "foo-proj":
  409. //
  410. // name = "projects/foo-proj/locations/global/features/servicemesh"
  411. //
  412. // - Features that have a label called `foo`:
  413. //
  414. // labels.foo:*
  415. //
  416. // - Features that have a label called `foo` whose value is `bar`:
  417. //
  418. // labels.foo = bar
  419. string filter = 4;
  420. // One or more fields to compare and use to sort the output.
  421. // See https://google.aip.dev/132#ordering.
  422. string order_by = 5;
  423. }
  424. // Response message for the `GkeHub.ListFeatures` method.
  425. message ListFeaturesResponse {
  426. // The list of matching Features
  427. repeated Feature resources = 1;
  428. // A token to request the next page of resources from the
  429. // `ListFeatures` method. The value of an empty string means
  430. // that there are no more resources to return.
  431. string next_page_token = 2;
  432. }
  433. // Request message for `GkeHub.GetFeature` method.
  434. message GetFeatureRequest {
  435. // Required. The Feature resource name in the format
  436. // `projects/*/locations/*/features/*`
  437. string name = 1 [
  438. (google.api.resource_reference) = {
  439. type: "gkehub.googleapis.com/Feature"
  440. }
  441. ];
  442. }
  443. // Request message for the `GkeHub.CreateFeature` method.
  444. message CreateFeatureRequest {
  445. // Required. The parent (project and location) where the Feature will be created.
  446. // Specified in the format `projects/*/locations/*`.
  447. string parent = 1 [
  448. (google.api.resource_reference) = {
  449. child_type: "gkehub.googleapis.com/Feature"
  450. }
  451. ];
  452. // The ID of the feature to create.
  453. string feature_id = 2;
  454. // The Feature resource to create.
  455. Feature resource = 3;
  456. // Optional. A request ID to identify requests. Specify a unique request ID
  457. // so that if you must retry your request, the server will know to ignore
  458. // the request if it has already been completed. The server will guarantee
  459. // that for at least 60 minutes after the first request.
  460. //
  461. // For example, consider a situation where you make an initial request and
  462. // the request times out. If you make the request again with the same request
  463. // ID, the server can check if original operation with the same request ID
  464. // was received, and if so, will ignore the second request. This prevents
  465. // clients from accidentally creating duplicate commitments.
  466. //
  467. // The request ID must be a valid UUID with the exception that zero UUID is
  468. // not supported (00000000-0000-0000-0000-000000000000).
  469. string request_id = 4;
  470. }
  471. // Request message for `GkeHub.DeleteFeature` method.
  472. message DeleteFeatureRequest {
  473. // Required. The Feature resource name in the format
  474. // `projects/*/locations/*/features/*`.
  475. string name = 1 [
  476. (google.api.resource_reference) = {
  477. type: "gkehub.googleapis.com/Feature"
  478. }
  479. ];
  480. // If set to true, the delete will ignore any outstanding resources for
  481. // this Feature (that is, `FeatureState.has_resources` is set to true). These
  482. // resources will NOT be cleaned up or modified in any way.
  483. bool force = 2;
  484. // Optional. A request ID to identify requests. Specify a unique request ID
  485. // so that if you must retry your request, the server will know to ignore
  486. // the request if it has already been completed. The server will guarantee
  487. // that for at least 60 minutes after the first request.
  488. //
  489. // For example, consider a situation where you make an initial request and
  490. // the request times out. If you make the request again with the same request
  491. // ID, the server can check if original operation with the same request ID
  492. // was received, and if so, will ignore the second request. This prevents
  493. // clients from accidentally creating duplicate commitments.
  494. //
  495. // The request ID must be a valid UUID with the exception that zero UUID is
  496. // not supported (00000000-0000-0000-0000-000000000000).
  497. string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
  498. }
  499. // Request message for `GkeHub.UpdateFeature` method.
  500. message UpdateFeatureRequest {
  501. // Required. The Feature resource name in the format
  502. // `projects/*/locations/*/features/*`.
  503. string name = 1 [
  504. (google.api.resource_reference) = {
  505. type: "gkehub.googleapis.com/Feature"
  506. }
  507. ];
  508. // Mask of fields to update.
  509. google.protobuf.FieldMask update_mask = 2;
  510. // Only fields specified in update_mask are updated.
  511. // If you specify a field in the update_mask but don't specify its value here
  512. // that field will be deleted.
  513. // If you are updating a map field, set the value of a key to null or empty
  514. // string to delete the key from the map. It's not possible to update a key's
  515. // value to the empty string.
  516. // If you specify the update_mask to be a special path "*", fully replaces all
  517. // user-modifiable fields to match `resource`.
  518. Feature resource = 3;
  519. // Optional. A request ID to identify requests. Specify a unique request ID
  520. // so that if you must retry your request, the server will know to ignore
  521. // the request if it has already been completed. The server will guarantee
  522. // that for at least 60 minutes after the first request.
  523. //
  524. // For example, consider a situation where you make an initial request and
  525. // the request times out. If you make the request again with the same request
  526. // ID, the server can check if original operation with the same request ID
  527. // was received, and if so, will ignore the second request. This prevents
  528. // clients from accidentally creating duplicate commitments.
  529. //
  530. // The request ID must be a valid UUID with the exception that zero UUID is
  531. // not supported (00000000-0000-0000-0000-000000000000).
  532. string request_id = 4;
  533. }
  534. // Represents the metadata of the long-running operation.
  535. message OperationMetadata {
  536. // Output only. The time the operation was created.
  537. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  538. // Output only. The time the operation finished running.
  539. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  540. // Output only. Server-defined resource path for the target of the operation.
  541. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  542. // Output only. Name of the verb executed by the operation.
  543. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  544. // Output only. Human-readable status of the operation, if any.
  545. string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  546. // Output only. Identifies whether the user has requested cancellation
  547. // of the operation. Operations that have successfully been cancelled
  548. // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  549. // corresponding to `Code.CANCELLED`.
  550. bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  551. // Output only. API version used to start the operation.
  552. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  553. }