resource.proto 6.7 KB

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