provider.proto 3.9 KB

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