blob: 11708afec2ebd75579709c31ac88c8cec1158cf6 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="managedidentities_v1alpha1.html">Managed Service for Microsoft Active Directory API</a> . <a href="managedidentities_v1alpha1.projects.html">projects</a> . <a href="managedidentities_v1alpha1.projects.locations.html">locations</a> . <a href="managedidentities_v1alpha1.projects.locations.global_.html">global_</a> . <a href="managedidentities_v1alpha1.projects.locations.global_.domains.html">domains</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070078 <code><a href="managedidentities_v1alpha1.projects.locations.global_.domains.sqlIntegrations.html">sqlIntegrations()</a></code>
79</p>
80<p class="firstline">Returns the sqlIntegrations Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070083 <code><a href="#attachTrust">attachTrust(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084<p class="firstline">Adds AD trust in a given domain. Operation</p>
85<p class="toc_element">
86 <code><a href="#close">close()</a></code></p>
87<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070088<p class="toc_element">
89 <code><a href="#create">create(parent, body=None, domainName=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090<p class="firstline">Creates a Microsoft AD Domain in a given project. Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070091<p class="toc_element">
92 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093<p class="firstline">Deletes identified domain. Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070094<p class="toc_element">
95 <code><a href="#detachTrust">detachTrust(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096<p class="firstline">Removes identified trust. Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070097<p class="toc_element">
98 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
99<p class="firstline">Gets details of a single Domain.</p>
100<p class="toc_element">
101 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700103<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800104 <code><a href="#list">list(parent, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700105<p class="firstline">Lists Domains in a given project.</p>
106<p class="toc_element">
107 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
108<p class="firstline">Retrieves the next page of results.</p>
109<p class="toc_element">
110 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<p class="firstline">Updates the metadata and configuration of a specified domain. Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700112<p class="toc_element">
113 <code><a href="#reconfigureTrust">reconfigureTrust(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114<p class="firstline">Updates the dns conditional forwarder. Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700115<p class="toc_element">
116 <code><a href="#resetAdminPassword">resetAdminPassword(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117<p class="firstline">Resets managed identities admin password identified by managed_identities_admin_name</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700118<p class="toc_element">
119 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700121<p class="toc_element">
122 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123<p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700124<p class="toc_element">
125 <code><a href="#validateTrust">validateTrust(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700126<p class="firstline">Validate the trust state Operation</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700127<h3>Method Details</h3>
128<div class="method">
129 <code class="details" id="attachTrust">attachTrust(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130 <pre>Adds AD trust in a given domain. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700131
132Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700133 name: string, The resource domain name, project name and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 body: object, The request body.
135 The object takes the form of:
136
137{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 &quot;trust&quot;: { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10) # The domain trust resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700139 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;A String&quot;,
142 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800143 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
144 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
145 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
146 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
147 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
150 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
151 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 },
153 }
154
155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
159
160Returns:
161 An object of the form:
162
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700163 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800164 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
166 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800167 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700168 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
169 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 {
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 ],
176 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800177 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
178 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
180 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 }</pre>
182</div>
183
184<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 <code class="details" id="close">close()</code>
186 <pre>Close httplib2 connections.</pre>
187</div>
188
189<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 <code class="details" id="create">create(parent, body=None, domainName=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700191 <pre>Creates a Microsoft AD Domain in a given project. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700192
193Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 parent: string, Resource project name and location using the form: `projects/{project_id}/locations/global` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 body: object, The request body.
196 The object takes the form of:
197
198{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800199 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this domain, if available.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700200 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this domain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 &quot;locations&quot;: [ # Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.
202 &quot;A String&quot;,
203 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800204 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time. Synthetic field is populated automatically by CCFE.
205 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created. Synthetic field is populated automatically by CCFE. go/ccfe-synthetic-field-user-guide
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800207 &quot;authorizedNetworks&quot;: [ # Optional. The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Network can be added using UpdateDomain later. Domain is only available on network part of authorized_networks. Caller needs to make sure that CIDR subnets do not overlap between networks, else domain creation will fail.
208 &quot;A String&quot;,
209 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata
211 &quot;a_key&quot;: &quot;A String&quot;,
212 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800213 &quot;trusts&quot;: [ # Output only. The current trusts associated with the domain.
214 { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10)
215 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
216 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
217 &quot;A String&quot;,
218 ],
219 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
220 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
221 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
222 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
223 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
224 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
225 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
226 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
227 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
228 },
229 ],
230 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. Fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory that is set up on an internal network.
231 &quot;managedIdentitiesAdminName&quot;: &quot;A String&quot;, # Optional. Name of customer-visible admin used to perform Active Directory operations. If not specified `setupadmin` would be used.
232 &quot;name&quot;: &quot;A String&quot;, # Output only. Unique name of the domain in this scope including projects and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700233}
Bu Sun Kim65020912020-05-20 12:08:20 -0700234
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 domainName: string, The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions: * Must contain only lowercase letters, numbers, periods and hyphens. * Must start with a letter. * Must contain between 2-64 characters. * Must end with a number or a letter. * Must not start with period. * Must be unique within the project. * First segement length (mydomain form example above) shouldn&#x27;t exceed 15 chars. * The last segment cannot be fully numeric.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
240
241Returns:
242 An object of the form:
243
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700244 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800245 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700246 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
247 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800248 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700249 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
250 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700251 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700252 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 {
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
255 },
256 ],
257 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800258 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
259 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
261 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 }</pre>
263</div>
264
265<div class="method">
266 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700267 <pre>Deletes identified domain. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700268
269Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 name: string, Domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 x__xgafv: string, V1 error format.
272 Allowed values
273 1 - v1 error format
274 2 - v2 error format
275
276Returns:
277 An object of the form:
278
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700279 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800280 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700281 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
282 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800283 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700284 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
285 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700286 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700287 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 {
289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
290 },
291 ],
292 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800293 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
294 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="detachTrust">detachTrust(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700302 <pre>Removes identified trust. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700303
304Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700305 name: string, The resource domain name, project name, and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 body: object, The request body.
307 The object takes the form of:
308
309{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700310 &quot;trust&quot;: { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10) # The domain trust resource to removed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700311 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700312 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;A String&quot;,
314 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800315 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
316 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
317 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
318 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
319 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700320 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800321 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
322 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
323 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 },
325 }
326
327 x__xgafv: string, V1 error format.
328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
331
332Returns:
333 An object of the form:
334
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700335 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800336 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700337 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
338 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800339 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
341 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700342 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700343 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 {
345 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
346 },
347 ],
348 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800349 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
350 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
352 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 }</pre>
354</div>
355
356<div class="method">
357 <code class="details" id="get">get(name, x__xgafv=None)</code>
358 <pre>Gets details of a single Domain.
359
360Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 name: string, Domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 x__xgafv: string, V1 error format.
363 Allowed values
364 1 - v1 error format
365 2 - v2 error format
366
367Returns:
368 An object of the form:
369
370 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800371 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this domain, if available.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700372 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this domain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700373 &quot;locations&quot;: [ # Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.
374 &quot;A String&quot;,
375 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800376 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time. Synthetic field is populated automatically by CCFE.
377 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700378 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created. Synthetic field is populated automatically by CCFE. go/ccfe-synthetic-field-user-guide
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800379 &quot;authorizedNetworks&quot;: [ # Optional. The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Network can be added using UpdateDomain later. Domain is only available on network part of authorized_networks. Caller needs to make sure that CIDR subnets do not overlap between networks, else domain creation will fail.
380 &quot;A String&quot;,
381 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata
383 &quot;a_key&quot;: &quot;A String&quot;,
384 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800385 &quot;trusts&quot;: [ # Output only. The current trusts associated with the domain.
386 { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10)
387 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
388 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
389 &quot;A String&quot;,
390 ],
391 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
392 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
393 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
394 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
395 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
396 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
397 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
398 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
399 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
400 },
401 ],
402 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. Fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory that is set up on an internal network.
403 &quot;managedIdentitiesAdminName&quot;: &quot;A String&quot;, # Optional. Name of customer-visible admin used to perform Active Directory operations. If not specified `setupadmin` would be used.
404 &quot;name&quot;: &quot;A String&quot;, # Output only. Unique name of the domain in this scope including projects and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 }</pre>
406</div>
407
408<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700409 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
410 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
411
412Args:
413 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
414 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
415 x__xgafv: string, V1 error format.
416 Allowed values
417 1 - v1 error format
418 2 - v2 error format
419
420Returns:
421 An object of the form:
422
423 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700424 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
425 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
426 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800427 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700428 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700429 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800430 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700431 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
432 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
433 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700434 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
435 &quot;A String&quot;,
436 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800437 &quot;bindingId&quot;: &quot;A String&quot;,
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700438 },
439 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800440 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700441 }</pre>
442</div>
443
444<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800445 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 <pre>Lists Domains in a given project.
447
448Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700449 parent: string, Required. The resource name of the domain location using the form: `projects/{project_id}/locations/global` (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800450 pageSize: integer, If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response&#x27;s next_page_token to determine if there are more instances left to be queried.
451 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700452 filter: string, Optional. Filter specifying constraints of a list operation. For example, `Domain.fqdn=&quot;mydomain.myorginization&quot;`.
453 orderBy: string, Optional. Specifies the ordering of results following syntax at https://cloud.google.com/apis/design/design_patterns#sorting_order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700454 x__xgafv: string, V1 error format.
455 Allowed values
456 1 - v1 error format
457 2 - v2 error format
458
459Returns:
460 An object of the form:
461
462 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700463 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800464 &quot;unreachable&quot;: [ # Locations that could not be reached.
465 &quot;A String&quot;,
466 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;domains&quot;: [ # A list of Managed Identities Service domains in the project.
468 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800469 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this domain, if available.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this domain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 &quot;locations&quot;: [ # Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.
472 &quot;A String&quot;,
473 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800474 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time. Synthetic field is populated automatically by CCFE.
475 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700476 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created. Synthetic field is populated automatically by CCFE. go/ccfe-synthetic-field-user-guide
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800477 &quot;authorizedNetworks&quot;: [ # Optional. The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Network can be added using UpdateDomain later. Domain is only available on network part of authorized_networks. Caller needs to make sure that CIDR subnets do not overlap between networks, else domain creation will fail.
478 &quot;A String&quot;,
479 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700480 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata
481 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800483 &quot;trusts&quot;: [ # Output only. The current trusts associated with the domain.
484 { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10)
485 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
486 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
487 &quot;A String&quot;,
488 ],
489 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
490 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
491 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
492 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
493 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
494 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
495 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
496 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
497 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
498 },
499 ],
500 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. Fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory that is set up on an internal network.
501 &quot;managedIdentitiesAdminName&quot;: &quot;A String&quot;, # Optional. Name of customer-visible admin used to perform Active Directory operations. If not specified `setupadmin` would be used.
502 &quot;name&quot;: &quot;A String&quot;, # Output only. Unique name of the domain in this scope including projects and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700503 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 }</pre>
506</div>
507
508<div class="method">
509 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
510 <pre>Retrieves the next page of results.
511
512Args:
513 previous_request: The request for the previous page. (required)
514 previous_response: The response from the request for the previous page. (required)
515
516Returns:
517 A request object that you can call &#x27;execute()&#x27; on to request the next
518 page. Returns None if there are no more items in the collection.
519 </pre>
520</div>
521
522<div class="method">
523 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700524 <pre>Updates the metadata and configuration of a specified domain. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700525
526Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700527 name: string, Output only. Unique name of the domain in this scope including projects and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 body: object, The request body.
529 The object takes the form of:
530
531{
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800532 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this domain, if available.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700533 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this domain.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700534 &quot;locations&quot;: [ # Required. Locations where domain needs to be provisioned. regions e.g. us-west1 or us-east4 Service supports up to 4 locations at once. Each location will use a /26 block.
535 &quot;A String&quot;,
536 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800537 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time. Synthetic field is populated automatically by CCFE.
538 &quot;reservedIpRange&quot;: &quot;A String&quot;, # Required. The CIDR range of internal addresses that are reserved for this domain. Reserved networks must be /24 or larger. Ranges must be unique and non-overlapping with existing subnets in [Domain].[authorized_networks].
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700539 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created. Synthetic field is populated automatically by CCFE. go/ccfe-synthetic-field-user-guide
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800540 &quot;authorizedNetworks&quot;: [ # Optional. The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Network can be added using UpdateDomain later. Domain is only available on network part of authorized_networks. Caller needs to make sure that CIDR subnets do not overlap between networks, else domain creation will fail.
541 &quot;A String&quot;,
542 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700543 &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata
544 &quot;a_key&quot;: &quot;A String&quot;,
545 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800546 &quot;trusts&quot;: [ # Output only. The current trusts associated with the domain.
547 { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10)
548 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
549 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
550 &quot;A String&quot;,
551 ],
552 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
553 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
554 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
555 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
556 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
557 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
558 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
559 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
560 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
561 },
562 ],
563 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. Fully-qualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory that is set up on an internal network.
564 &quot;managedIdentitiesAdminName&quot;: &quot;A String&quot;, # Optional. Name of customer-visible admin used to perform Active Directory operations. If not specified `setupadmin` would be used.
565 &quot;name&quot;: &quot;A String&quot;, # Output only. Unique name of the domain in this scope including projects and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700566}
Bu Sun Kim65020912020-05-20 12:08:20 -0700567
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700568 updateMask: string, Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Domain: * `labels` * `locations` * `authorized_networks` * `audit_logs_enabled`
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 x__xgafv: string, V1 error format.
570 Allowed values
571 1 - v1 error format
572 2 - v2 error format
573
574Returns:
575 An object of the form:
576
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700577 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800578 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700579 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
580 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800581 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700582 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
583 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700584 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700585 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 {
587 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
588 },
589 ],
590 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800591 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
592 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
594 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 }</pre>
596</div>
597
598<div class="method">
599 <code class="details" id="reconfigureTrust">reconfigureTrust(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700600 <pre>Updates the dns conditional forwarder. Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700601
602Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700603 name: string, The resource domain name, project name and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700604 body: object, The request body.
605 The object takes the form of:
606
607{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700608 &quot;trust&quot;: { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10) # The domain trust resource with updated dns conditional forwarder.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700609 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700610 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &quot;A String&quot;,
612 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800613 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
614 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
615 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
616 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
617 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700618 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800619 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
620 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
621 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 },
623 }
624
625 x__xgafv: string, V1 error format.
626 Allowed values
627 1 - v1 error format
628 2 - v2 error format
629
630Returns:
631 An object of the form:
632
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700633 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800634 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700635 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
636 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800637 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700638 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
639 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700640 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700641 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700642 {
643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
644 },
645 ],
646 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800647 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
648 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
650 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700651 }</pre>
652</div>
653
654<div class="method">
655 <code class="details" id="resetAdminPassword">resetAdminPassword(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700656 <pre>Resets managed identities admin password identified by managed_identities_admin_name
Bu Sun Kim65020912020-05-20 12:08:20 -0700657
658Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700659 name: string, The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 body: object, The request body.
661 The object takes the form of:
662
663{
664 }
665
666 x__xgafv: string, V1 error format.
667 Allowed values
668 1 - v1 error format
669 2 - v2 error format
670
671Returns:
672 An object of the form:
673
674 {
675 &quot;password&quot;: &quot;A String&quot;, # A random password. See admin for more information.
676 }</pre>
677</div>
678
679<div class="method">
680 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700681 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Bu Sun Kim65020912020-05-20 12:08:20 -0700682
683Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700684 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 body: object, The request body.
686 The object takes the form of:
687
688{ # Request message for `SetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700689 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700690 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
691 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim65020912020-05-20 12:08:20 -0700692 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800693 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700694 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700695 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800696 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700697 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
698 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
699 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700700 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;A String&quot;,
702 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800703 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 },
705 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800706 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 },
708 }
709
710 x__xgafv: string, V1 error format.
711 Allowed values
712 1 - v1 error format
713 2 - v2 error format
714
715Returns:
716 An object of the form:
717
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700718 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700719 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
720 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800722 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700723 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700724 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800725 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700726 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
727 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
728 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700729 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;A String&quot;,
731 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800732 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 },
734 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800735 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 }</pre>
737</div>
738
739<div class="method">
740 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700741 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700742
743Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700744 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 body: object, The request body.
746 The object takes the form of:
747
748{ # Request message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 &quot;A String&quot;,
751 ],
752 }
753
754 x__xgafv: string, V1 error format.
755 Allowed values
756 1 - v1 error format
757 2 - v2 error format
758
759Returns:
760 An object of the form:
761
762 { # Response message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;A String&quot;,
765 ],
766 }</pre>
767</div>
768
769<div class="method">
770 <code class="details" id="validateTrust">validateTrust(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700771 <pre>Validate the trust state Operation
Bu Sun Kim65020912020-05-20 12:08:20 -0700772
773Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700774 name: string, The resource domain name, project name, and location using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 body: object, The request body.
776 The object takes the form of:
777
778{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700779 &quot;trust&quot;: { # Represents a relationship between two domains which makes it possible for users in one domain to be authenticated by a dc in another domain. Refer https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc731335(v%3dws.10) # The domain trust to validate trust state for.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700780 &quot;lastKnownTrustConnectedHeartbeatTime&quot;: &quot;A String&quot;, # Output only. The last heartbeat time when the trust was known to be connected.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700781 &quot;targetDnsIpAddresses&quot;: [ # The target dns server ip addresses which can resolve the remote domain involved in trust.
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;A String&quot;,
783 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800784 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of this trust, if available.
785 &quot;trustType&quot;: &quot;A String&quot;, # The type of trust represented by the trust resource.
786 &quot;selectiveAuthentication&quot;: True or False, # The trust authentication type which decides whether the trusted side has forest/domain wide access or selective access to approved set of resources.
787 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
788 &quot;trustHandshakeSecret&quot;: &quot;A String&quot;, # Input only, and will not be stored. The trust secret used for handshake with target domain.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700789 &quot;targetDomainName&quot;: &quot;A String&quot;, # The fully qualified target domain name which will be in trust with current domain.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800790 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this trust.
791 &quot;trustDirection&quot;: &quot;A String&quot;, # The trust direction decides the current domain is trusted, trusting or both.
792 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 },
794 }
795
796 x__xgafv: string, V1 error format.
797 Allowed values
798 1 - v1 error format
799 2 - v2 error format
800
801Returns:
802 An object of the form:
803
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700804 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800805 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700806 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
807 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800808 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700809 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
810 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700811 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700812 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 {
814 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
815 },
816 ],
817 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800818 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
819 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
821 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 }</pre>
823</div>
824
825</body></html>