connectors_service.proto 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/cloud/connectors/v1/connection.proto";
  19. import "google/cloud/connectors/v1/connector.proto";
  20. import "google/cloud/connectors/v1/connector_version.proto";
  21. import "google/cloud/connectors/v1/provider.proto";
  22. import "google/cloud/connectors/v1/runtime.proto";
  23. import "google/longrunning/operations.proto";
  24. option go_package = "google.golang.org/genproto/googleapis/cloud/connectors/v1;connectors";
  25. option java_multiple_files = true;
  26. option java_outer_classname = "ConnectorsServiceProto";
  27. option java_package = "com.google.cloud.connectors.v1";
  28. // Connectors is the interface for managing Connectors.
  29. service Connectors {
  30. option (google.api.default_host) = "connectors.googleapis.com";
  31. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  32. // Lists Connections in a given project and location.
  33. rpc ListConnections(ListConnectionsRequest) returns (ListConnectionsResponse) {
  34. option (google.api.http) = {
  35. get: "/v1/{parent=projects/*/locations/*}/connections"
  36. };
  37. option (google.api.method_signature) = "parent";
  38. }
  39. // Gets details of a single Connection.
  40. rpc GetConnection(GetConnectionRequest) returns (Connection) {
  41. option (google.api.http) = {
  42. get: "/v1/{name=projects/*/locations/*/connections/*}"
  43. };
  44. option (google.api.method_signature) = "name";
  45. }
  46. // Creates a new Connection in a given project and location.
  47. rpc CreateConnection(CreateConnectionRequest) returns (google.longrunning.Operation) {
  48. option (google.api.http) = {
  49. post: "/v1/{parent=projects/*/locations/*}/connections"
  50. body: "connection"
  51. };
  52. option (google.api.method_signature) = "parent,connection,connection_id";
  53. option (google.longrunning.operation_info) = {
  54. response_type: "Connection"
  55. metadata_type: "OperationMetadata"
  56. };
  57. }
  58. // Updates the parameters of a single Connection.
  59. rpc UpdateConnection(UpdateConnectionRequest) returns (google.longrunning.Operation) {
  60. option (google.api.http) = {
  61. patch: "/v1/{connection.name=projects/*/locations/*/connections/*}"
  62. body: "connection"
  63. };
  64. option (google.api.method_signature) = "connection,update_mask";
  65. option (google.longrunning.operation_info) = {
  66. response_type: "Connection"
  67. metadata_type: "OperationMetadata"
  68. };
  69. }
  70. // Deletes a single Connection.
  71. rpc DeleteConnection(DeleteConnectionRequest) returns (google.longrunning.Operation) {
  72. option (google.api.http) = {
  73. delete: "/v1/{name=projects/*/locations/*/connections/*}"
  74. };
  75. option (google.api.method_signature) = "name";
  76. option (google.longrunning.operation_info) = {
  77. response_type: "google.protobuf.Empty"
  78. metadata_type: "OperationMetadata"
  79. };
  80. }
  81. // Lists Providers in a given project and location.
  82. rpc ListProviders(ListProvidersRequest) returns (ListProvidersResponse) {
  83. option (google.api.http) = {
  84. get: "/v1/{parent=projects/*/locations/*}/providers"
  85. };
  86. option (google.api.method_signature) = "parent";
  87. }
  88. // Gets details of a provider.
  89. rpc GetProvider(GetProviderRequest) returns (Provider) {
  90. option (google.api.http) = {
  91. get: "/v1/{name=projects/*/locations/*/providers/*}"
  92. };
  93. option (google.api.method_signature) = "name";
  94. }
  95. // Lists Connectors in a given project and location.
  96. rpc ListConnectors(ListConnectorsRequest) returns (ListConnectorsResponse) {
  97. option (google.api.http) = {
  98. get: "/v1/{parent=projects/*/locations/*/providers/*}/connectors"
  99. };
  100. option (google.api.method_signature) = "parent";
  101. }
  102. // Gets details of a single Connector.
  103. rpc GetConnector(GetConnectorRequest) returns (Connector) {
  104. option (google.api.http) = {
  105. get: "/v1/{name=projects/*/locations/*/providers/*/connectors/*}"
  106. };
  107. option (google.api.method_signature) = "name";
  108. }
  109. // Lists Connector Versions in a given project and location.
  110. rpc ListConnectorVersions(ListConnectorVersionsRequest) returns (ListConnectorVersionsResponse) {
  111. option (google.api.http) = {
  112. get: "/v1/{parent=projects/*/locations/*/providers/*/connectors/*}/versions"
  113. };
  114. option (google.api.method_signature) = "parent";
  115. }
  116. // Gets details of a single connector version.
  117. rpc GetConnectorVersion(GetConnectorVersionRequest) returns (ConnectorVersion) {
  118. option (google.api.http) = {
  119. get: "/v1/{name=projects/*/locations/*/providers/*/connectors/*/versions/*}"
  120. };
  121. option (google.api.method_signature) = "name";
  122. }
  123. // Gets schema metadata of a connection.
  124. // SchemaMetadata is a singleton resource for each connection.
  125. rpc GetConnectionSchemaMetadata(GetConnectionSchemaMetadataRequest) returns (ConnectionSchemaMetadata) {
  126. option (google.api.http) = {
  127. get: "/v1/{name=projects/*/locations/*/connections/*/connectionSchemaMetadata}"
  128. };
  129. option (google.api.method_signature) = "name";
  130. }
  131. // List schema of a runtime entities filtered by entity name.
  132. rpc ListRuntimeEntitySchemas(ListRuntimeEntitySchemasRequest) returns (ListRuntimeEntitySchemasResponse) {
  133. option (google.api.http) = {
  134. get: "/v1/{parent=projects/*/locations/*/connections/*}/runtimeEntitySchemas"
  135. };
  136. option (google.api.method_signature) = "parent";
  137. }
  138. // List schema of a runtime actions filtered by action name.
  139. rpc ListRuntimeActionSchemas(ListRuntimeActionSchemasRequest) returns (ListRuntimeActionSchemasResponse) {
  140. option (google.api.http) = {
  141. get: "/v1/{parent=projects/*/locations/*/connections/*}/runtimeActionSchemas"
  142. };
  143. option (google.api.method_signature) = "parent";
  144. }
  145. // Gets the runtimeConfig of a location.
  146. // RuntimeConfig is a singleton resource for each location.
  147. rpc GetRuntimeConfig(GetRuntimeConfigRequest) returns (RuntimeConfig) {
  148. option (google.api.http) = {
  149. get: "/v1/{name=projects/*/locations/*/runtimeConfig}"
  150. };
  151. option (google.api.method_signature) = "name";
  152. }
  153. }