runtime.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.connectors.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/connectors/v1;connectors";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "RuntimeProto";
  21. option java_package = "com.google.cloud.connectors.v1";
  22. // Request message for Connectors.GetRuntimeConfig.
  23. message GetRuntimeConfigRequest {
  24. // Required. Resource name of the form:
  25. // `projects/*/locations/*/runtimeConfig`
  26. string name = 1 [
  27. (google.api.field_behavior) = REQUIRED,
  28. (google.api.resource_reference) = {
  29. type: "connectors.googleapis.com/RuntimeConfig"
  30. }
  31. ];
  32. }
  33. // RuntimeConfig is the singleton resource of each location.
  34. // It includes generic resource configs consumed by control plane and runtime
  35. // plane like: pub/sub topic/subscription resource name, Cloud Storage location
  36. // storing schema etc.
  37. message RuntimeConfig {
  38. option (google.api.resource) = {
  39. type: "connectors.googleapis.com/RuntimeConfig"
  40. pattern: "projects/{project}/locations/{location}/runtimeConfig"
  41. };
  42. // State of the location.
  43. enum State {
  44. // STATE_UNSPECIFIED.
  45. STATE_UNSPECIFIED = 0;
  46. // INACTIVE.
  47. INACTIVE = 1 [deprecated = true];
  48. // ACTIVATING.
  49. ACTIVATING = 2 [deprecated = true];
  50. // ACTIVE.
  51. ACTIVE = 3;
  52. // CREATING.
  53. CREATING = 4;
  54. // DELETING.
  55. DELETING = 5;
  56. // UPDATING.
  57. UPDATING = 6;
  58. }
  59. // Output only. location_id of the runtime location. E.g. "us-west1".
  60. string location_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. Pub/Sub topic for connd to send message.
  62. // E.g. projects/{project-id}/topics/{topic-id}
  63. string connd_topic = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Output only. Pub/Sub subscription for connd to receive message.
  65. // E.g. projects/{project-id}/subscriptions/{topic-id}
  66. string connd_subscription = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  67. // Output only. Pub/Sub topic for control plne to send message.
  68. // communication.
  69. // E.g. projects/{project-id}/topics/{topic-id}
  70. string control_plane_topic = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  71. // Output only. Pub/Sub subscription for control plane to receive message.
  72. // E.g. projects/{project-id}/subscriptions/{topic-id}
  73. string control_plane_subscription = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. The endpoint of the connectors runtime ingress.
  75. string runtime_endpoint = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. The state of the location.
  77. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Output only. The Cloud Storage bucket that stores connector's schema reports.
  79. string schema_gcs_bucket = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  80. // Output only. The name of the Service Directory service name.
  81. string service_directory = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  82. // Output only. Name of the runtimeConfig resource.
  83. // Format: projects/{project}/locations/{location}/runtimeConfig
  84. string name = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  85. }