resource.proto 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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.managedidentities.v1beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.ManagedIdentities.V1Beta1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentities/v1beta1;managedidentities";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ResourceProto";
  23. option java_package = "com.google.cloud.managedidentities.v1beta1";
  24. option php_namespace = "Google\\Cloud\\ManagedIdentities\\V1beta1";
  25. option ruby_package = "Google::Cloud::ManagedIdentities::V1beta1";
  26. // Represents a managed Microsoft Active Directory domain.
  27. // If the domain is being changed, it will be placed into the UPDATING state,
  28. // which indicates that the resource is being reconciled. At this point, Get
  29. // will reflect an intermediate state.
  30. message Domain {
  31. option (google.api.resource) = {
  32. type: "managedidentities.googleapis.com/Domain"
  33. pattern: "projects/{project}/locations/{location}/domains/{domain}"
  34. };
  35. // Represents the different states of a managed domain.
  36. enum State {
  37. // Not set.
  38. STATE_UNSPECIFIED = 0;
  39. // The domain is being created.
  40. CREATING = 1;
  41. // The domain has been created and is fully usable.
  42. READY = 2;
  43. // The domain's configuration is being updated.
  44. UPDATING = 3;
  45. // The domain is being deleted.
  46. DELETING = 4;
  47. // The domain is being repaired and may be unusable. Details
  48. // can be found in the `status_message` field.
  49. REPAIRING = 5;
  50. // The domain is undergoing maintenance.
  51. PERFORMING_MAINTENANCE = 6;
  52. // The domain is not serving requests.
  53. UNAVAILABLE = 7;
  54. }
  55. // Output only. The unique name of the domain using the form:
  56. // `projects/{project_id}/locations/global/domains/{domain_name}`.
  57. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  58. // Optional. Resource labels that can contain user-provided metadata.
  59. map<string, string> labels = 2 [(google.api.field_behavior) = OPTIONAL];
  60. // Optional. The full names of the Google Compute Engine
  61. // [networks](/compute/docs/networks-and-firewalls#networks) the domain
  62. // instance is connected to. Networks can be added using UpdateDomain.
  63. // The domain is only available on networks listed in `authorized_networks`.
  64. // If CIDR subnets overlap between networks, domain creation will fail.
  65. repeated string authorized_networks = 3 [(google.api.field_behavior) = OPTIONAL];
  66. // Required. The CIDR range of internal addresses that are reserved for this
  67. // domain. Reserved networks must be /24 or larger. Ranges must be
  68. // unique and non-overlapping with existing subnets in
  69. // [Domain].[authorized_networks].
  70. string reserved_ip_range = 4 [(google.api.field_behavior) = REQUIRED];
  71. // Required. Locations where domain needs to be provisioned.
  72. // [regions][compute/docs/regions-zones/]
  73. // e.g. us-west1 or us-east4
  74. // Service supports up to 4 locations at once. Each location will use a /26
  75. // block.
  76. repeated string locations = 5 [(google.api.field_behavior) = REQUIRED];
  77. // Optional. The name of delegated administrator account used to perform
  78. // Active Directory operations. If not specified, `setupadmin` will be used.
  79. string admin = 6 [(google.api.field_behavior) = OPTIONAL];
  80. // Output only. The fully-qualified domain name of the exposed domain used by
  81. // clients to connect to the service. Similar to what would be chosen for an
  82. // Active Directory set up on an internal network.
  83. string fqdn = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  84. // Output only. The time the instance was created.
  85. google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  86. // Output only. The last update time.
  87. google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  88. // Output only. The current state of this domain.
  89. State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  90. // Output only. Additional information about the current status of this
  91. // domain, if available.
  92. string status_message = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  93. // Output only. The current trusts associated with the domain.
  94. repeated Trust trusts = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  95. }
  96. // Represents a relationship between two domains. This allows a controller in
  97. // one domain to authenticate a user in another domain.
  98. message Trust {
  99. // Represents the different states of a domain trust.
  100. enum State {
  101. // Not set.
  102. STATE_UNSPECIFIED = 0;
  103. // The domain trust is being created.
  104. CREATING = 1;
  105. // The domain trust is being updated.
  106. UPDATING = 2;
  107. // The domain trust is being deleted.
  108. DELETING = 3;
  109. // The domain trust is connected.
  110. CONNECTED = 4;
  111. // The domain trust is disconnected.
  112. DISCONNECTED = 5;
  113. }
  114. // Represents the different inter-forest trust types.
  115. enum TrustType {
  116. // Not set.
  117. TRUST_TYPE_UNSPECIFIED = 0;
  118. // The forest trust.
  119. FOREST = 1;
  120. // The external domain trust.
  121. EXTERNAL = 2;
  122. }
  123. // Represents the direction of trust.
  124. // See
  125. // [System.DirectoryServices.ActiveDirectory.TrustDirection](https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.trustdirection?view=netframework-4.7.2)
  126. // for more information.
  127. enum TrustDirection {
  128. // Not set.
  129. TRUST_DIRECTION_UNSPECIFIED = 0;
  130. // The inbound direction represents the trusting side.
  131. INBOUND = 1;
  132. // The outboud direction represents the trusted side.
  133. OUTBOUND = 2;
  134. // The bidirectional direction represents the trusted / trusting side.
  135. BIDIRECTIONAL = 3;
  136. }
  137. // The fully qualified target domain name which will be in trust with the
  138. // current domain.
  139. string target_domain_name = 1;
  140. // The type of trust represented by the trust resource.
  141. TrustType trust_type = 2;
  142. // The trust direction, which decides if the current domain is trusted,
  143. // trusting, or both.
  144. TrustDirection trust_direction = 3;
  145. // The trust authentication type, which decides whether the trusted side has
  146. // forest/domain wide access or selective access to an approved set of
  147. // resources.
  148. bool selective_authentication = 4;
  149. // The target DNS server IP addresses which can resolve the remote domain
  150. // involved in the trust.
  151. repeated string target_dns_ip_addresses = 5;
  152. // Input only. The trust secret used for the handshake
  153. // with the target domain. It will not be stored.
  154. string trust_handshake_secret = 6 [(google.api.field_behavior) = INPUT_ONLY];
  155. // Output only. The time the instance was created.
  156. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  157. // Output only. The last update time.
  158. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  159. // Output only. The current state of the trust.
  160. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  161. // Output only. Additional information about the current state of the
  162. // trust, if available.
  163. string state_description = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  164. // Output only. The last heartbeat time when the trust was known to be
  165. // connected.
  166. google.protobuf.Timestamp last_trust_heartbeat_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
  167. }