connector.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. import "google/cloud/connectors/v1/common.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/connectors/v1;connectors";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ConnectorProto";
  23. option java_package = "com.google.cloud.connectors.v1";
  24. // Connectors indicates a specific connector type, e.x. Salesforce, SAP etc.
  25. message Connector {
  26. option (google.api.resource) = {
  27. type: "connectors.googleapis.com/Connector"
  28. pattern: "projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}"
  29. };
  30. // Output only. Resource name of the Connector.
  31. // Format:
  32. // projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}
  33. // Only global location is supported for Connector resource.
  34. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // Output only. Created time.
  36. google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  37. // Output only. Updated time.
  38. google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  39. // Output only. Resource labels to represent user-provided metadata.
  40. // Refer to cloud documentation on labels for more details.
  41. // https://cloud.google.com/compute/docs/labeling-resources
  42. map<string, string> labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  43. // Output only. Link to documentation page.
  44. string documentation_uri = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // Output only. Link to external page.
  46. string external_uri = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // Output only. Description of the resource.
  48. string description = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. Cloud storage location of icons etc consumed by UI.
  50. string web_assets_location = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // Output only. Display name.
  52. string display_name = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Output only. Flag to mark the version indicating the launch stage.
  54. LaunchStage launch_stage = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. }
  56. // Request message for Connectors.GetConnector.
  57. message GetConnectorRequest {
  58. // Required. Resource name of the form:
  59. // `projects/*/locations/*/providers/*/connectors/*`
  60. // Only global location is supported for Connector resource.
  61. string name = 1 [
  62. (google.api.field_behavior) = REQUIRED,
  63. (google.api.resource_reference) = {
  64. type: "connectors.googleapis.com/Connector"
  65. }
  66. ];
  67. }
  68. // Request message for Connectors.ListConnectors.
  69. message ListConnectorsRequest {
  70. // Required. Parent resource of the connectors, of the form:
  71. // `projects/*/locations/*/providers/*`
  72. // Only global location is supported for Connector resource.
  73. string parent = 1 [
  74. (google.api.field_behavior) = REQUIRED,
  75. (google.api.resource_reference) = {
  76. type: "connectors.googleapis.com/Provider"
  77. }
  78. ];
  79. // Page size.
  80. int32 page_size = 2;
  81. // Page token.
  82. string page_token = 3;
  83. }
  84. // Response message for Connectors.ListConnectors.
  85. message ListConnectorsResponse {
  86. // A list of connectors.
  87. repeated Connector connectors = 1;
  88. // Next page token.
  89. string next_page_token = 2;
  90. // Locations that could not be reached.
  91. repeated string unreachable = 3;
  92. }