Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: generated/googleapis/lib/cloudresourcemanager/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/cloudkms/v1.dart ('k') | generated/googleapis/lib/cloudtrace/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.cloudresourcemanager.v1; 3 library googleapis.cloudresourcemanager.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 * must be granted the owner role using the Cloud Platform Console and must 1644 * must be granted the owner role using the Cloud Platform Console and must
1645 * explicitly accept the invitation. 1645 * explicitly accept the invitation.
1646 * 1646 *
1647 * + Invitations to grant the owner role cannot be sent using 1647 * + Invitations to grant the owner role cannot be sent using
1648 * `setIamPolicy()`; 1648 * `setIamPolicy()`;
1649 * they must be sent only using the Cloud Platform Console. 1649 * they must be sent only using the Cloud Platform Console.
1650 * 1650 *
1651 * + Membership changes that leave the project without any owners that have 1651 * + Membership changes that leave the project without any owners that have
1652 * accepted the Terms of Service (ToS) will be rejected. 1652 * accepted the Terms of Service (ToS) will be rejected.
1653 * 1653 *
1654 * + There must be at least one owner who has accepted the Terms of 1654 * + If the project is not part of an organization, there must be at least
1655 * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to 1655 * one owner who has accepted the Terms of Service (ToS) agreement in the
1656 * remove the last ToS-accepted owner from the policy will fail. This 1656 * policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
1657 * restriction also applies to legacy projects that no longer have owners 1657 * from the policy will fail. This restriction also applies to legacy
1658 * who have accepted the ToS. Edits to IAM policies will be rejected until 1658 * projects that no longer have owners who have accepted the ToS. Edits to
1659 * the lack of a ToS-accepting owner is rectified. 1659 * IAM policies will be rejected until the lack of a ToS-accepting owner is
1660 * rectified.
1660 * 1661 *
1661 * + Calling this method requires enabling the App Engine Admin API. 1662 * + Calling this method requires enabling the App Engine Admin API.
1662 * 1663 *
1663 * Note: Removing service accounts from policies or changing their roles 1664 * Note: Removing service accounts from policies or changing their roles
1664 * can render services completely inoperable. It is important to understand 1665 * can render services completely inoperable. It is important to understand
1665 * how the service account is being used before removing or updating its 1666 * how the service account is being used before removing or updating its
1666 * roles. 1667 * roles.
1667 * 1668 *
1668 * [request] - The metadata request object. 1669 * [request] - The metadata request object.
1669 * 1670 *
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 ResourceId resourceId; 1915 ResourceId resourceId;
1915 1916
1916 Ancestor(); 1917 Ancestor();
1917 1918
1918 Ancestor.fromJson(core.Map _json) { 1919 Ancestor.fromJson(core.Map _json) {
1919 if (_json.containsKey("resourceId")) { 1920 if (_json.containsKey("resourceId")) {
1920 resourceId = new ResourceId.fromJson(_json["resourceId"]); 1921 resourceId = new ResourceId.fromJson(_json["resourceId"]);
1921 } 1922 }
1922 } 1923 }
1923 1924
1924 core.Map toJson() { 1925 core.Map<core.String, core.Object> toJson() {
1925 var _json = new core.Map(); 1926 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1926 if (resourceId != null) { 1927 if (resourceId != null) {
1927 _json["resourceId"] = (resourceId).toJson(); 1928 _json["resourceId"] = (resourceId).toJson();
1928 } 1929 }
1929 return _json; 1930 return _json;
1930 } 1931 }
1931 } 1932 }
1932 1933
1933 /** 1934 /**
1934 * Specifies the audit configuration for a service. 1935 * Specifies the audit configuration for a service.
1935 * The configuration determines which permission types are logged, and what 1936 * The configuration determines which permission types are logged, and what
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 2001
2001 AuditConfig.fromJson(core.Map _json) { 2002 AuditConfig.fromJson(core.Map _json) {
2002 if (_json.containsKey("auditLogConfigs")) { 2003 if (_json.containsKey("auditLogConfigs")) {
2003 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList(); 2004 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList();
2004 } 2005 }
2005 if (_json.containsKey("service")) { 2006 if (_json.containsKey("service")) {
2006 service = _json["service"]; 2007 service = _json["service"];
2007 } 2008 }
2008 } 2009 }
2009 2010
2010 core.Map toJson() { 2011 core.Map<core.String, core.Object> toJson() {
2011 var _json = new core.Map(); 2012 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2012 if (auditLogConfigs != null) { 2013 if (auditLogConfigs != null) {
2013 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList(); 2014 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList();
2014 } 2015 }
2015 if (service != null) { 2016 if (service != null) {
2016 _json["service"] = service; 2017 _json["service"] = service;
2017 } 2018 }
2018 return _json; 2019 return _json;
2019 } 2020 }
2020 } 2021 }
2021 2022
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 2062
2062 AuditLogConfig.fromJson(core.Map _json) { 2063 AuditLogConfig.fromJson(core.Map _json) {
2063 if (_json.containsKey("exemptedMembers")) { 2064 if (_json.containsKey("exemptedMembers")) {
2064 exemptedMembers = _json["exemptedMembers"]; 2065 exemptedMembers = _json["exemptedMembers"];
2065 } 2066 }
2066 if (_json.containsKey("logType")) { 2067 if (_json.containsKey("logType")) {
2067 logType = _json["logType"]; 2068 logType = _json["logType"];
2068 } 2069 }
2069 } 2070 }
2070 2071
2071 core.Map toJson() { 2072 core.Map<core.String, core.Object> toJson() {
2072 var _json = new core.Map(); 2073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2073 if (exemptedMembers != null) { 2074 if (exemptedMembers != null) {
2074 _json["exemptedMembers"] = exemptedMembers; 2075 _json["exemptedMembers"] = exemptedMembers;
2075 } 2076 }
2076 if (logType != null) { 2077 if (logType != null) {
2077 _json["logType"] = logType; 2078 _json["logType"] = logType;
2078 } 2079 }
2079 return _json; 2080 return _json;
2080 } 2081 }
2081 } 2082 }
2082 2083
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 2119
2119 Binding.fromJson(core.Map _json) { 2120 Binding.fromJson(core.Map _json) {
2120 if (_json.containsKey("members")) { 2121 if (_json.containsKey("members")) {
2121 members = _json["members"]; 2122 members = _json["members"];
2122 } 2123 }
2123 if (_json.containsKey("role")) { 2124 if (_json.containsKey("role")) {
2124 role = _json["role"]; 2125 role = _json["role"];
2125 } 2126 }
2126 } 2127 }
2127 2128
2128 core.Map toJson() { 2129 core.Map<core.String, core.Object> toJson() {
2129 var _json = new core.Map(); 2130 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2130 if (members != null) { 2131 if (members != null) {
2131 _json["members"] = members; 2132 _json["members"] = members;
2132 } 2133 }
2133 if (role != null) { 2134 if (role != null) {
2134 _json["role"] = role; 2135 _json["role"] = role;
2135 } 2136 }
2136 return _json; 2137 return _json;
2137 } 2138 }
2138 } 2139 }
2139 2140
2140 /** 2141 /**
2141 * A `Constraint` that is either enforced or not. 2142 * A `Constraint` that is either enforced or not.
2142 * 2143 *
2143 * For example a constraint `constraints/compute.disableSerialPortAccess`. 2144 * For example a constraint `constraints/compute.disableSerialPortAccess`.
2144 * If it is enforced on a VM instance, serial port connections will not be 2145 * If it is enforced on a VM instance, serial port connections will not be
2145 * opened to that instance. 2146 * opened to that instance.
2146 */ 2147 */
2147 class BooleanConstraint { 2148 class BooleanConstraint {
2148 2149
2149 BooleanConstraint(); 2150 BooleanConstraint();
2150 2151
2151 BooleanConstraint.fromJson(core.Map _json) { 2152 BooleanConstraint.fromJson(core.Map _json) {
2152 } 2153 }
2153 2154
2154 core.Map toJson() { 2155 core.Map<core.String, core.Object> toJson() {
2155 var _json = new core.Map(); 2156 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2156 return _json; 2157 return _json;
2157 } 2158 }
2158 } 2159 }
2159 2160
2160 /** 2161 /**
2161 * Used in `policy_type` to specify how `boolean_policy` will behave at this 2162 * Used in `policy_type` to specify how `boolean_policy` will behave at this
2162 * resource. 2163 * resource.
2163 */ 2164 */
2164 class BooleanPolicy { 2165 class BooleanPolicy {
2165 /** 2166 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 core.bool enforced; 2212 core.bool enforced;
2212 2213
2213 BooleanPolicy(); 2214 BooleanPolicy();
2214 2215
2215 BooleanPolicy.fromJson(core.Map _json) { 2216 BooleanPolicy.fromJson(core.Map _json) {
2216 if (_json.containsKey("enforced")) { 2217 if (_json.containsKey("enforced")) {
2217 enforced = _json["enforced"]; 2218 enforced = _json["enforced"];
2218 } 2219 }
2219 } 2220 }
2220 2221
2221 core.Map toJson() { 2222 core.Map<core.String, core.Object> toJson() {
2222 var _json = new core.Map(); 2223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2223 if (enforced != null) { 2224 if (enforced != null) {
2224 _json["enforced"] = enforced; 2225 _json["enforced"] = enforced;
2225 } 2226 }
2226 return _json; 2227 return _json;
2227 } 2228 }
2228 } 2229 }
2229 2230
2230 /** The request sent to the ClearOrgPolicy method. */ 2231 /** The request sent to the ClearOrgPolicy method. */
2231 class ClearOrgPolicyRequest { 2232 class ClearOrgPolicyRequest {
2232 /** Name of the `Constraint` of the `Policy` to clear. */ 2233 /** Name of the `Constraint` of the `Policy` to clear. */
(...skipping 15 matching lines...) Expand all
2248 2249
2249 ClearOrgPolicyRequest.fromJson(core.Map _json) { 2250 ClearOrgPolicyRequest.fromJson(core.Map _json) {
2250 if (_json.containsKey("constraint")) { 2251 if (_json.containsKey("constraint")) {
2251 constraint = _json["constraint"]; 2252 constraint = _json["constraint"];
2252 } 2253 }
2253 if (_json.containsKey("etag")) { 2254 if (_json.containsKey("etag")) {
2254 etag = _json["etag"]; 2255 etag = _json["etag"];
2255 } 2256 }
2256 } 2257 }
2257 2258
2258 core.Map toJson() { 2259 core.Map<core.String, core.Object> toJson() {
2259 var _json = new core.Map(); 2260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2260 if (constraint != null) { 2261 if (constraint != null) {
2261 _json["constraint"] = constraint; 2262 _json["constraint"] = constraint;
2262 } 2263 }
2263 if (etag != null) { 2264 if (etag != null) {
2264 _json["etag"] = etag; 2265 _json["etag"] = etag;
2265 } 2266 }
2266 return _json; 2267 return _json;
2267 } 2268 }
2268 } 2269 }
2269 2270
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 listConstraint = new ListConstraint.fromJson(_json["listConstraint"]); 2341 listConstraint = new ListConstraint.fromJson(_json["listConstraint"]);
2341 } 2342 }
2342 if (_json.containsKey("name")) { 2343 if (_json.containsKey("name")) {
2343 name = _json["name"]; 2344 name = _json["name"];
2344 } 2345 }
2345 if (_json.containsKey("version")) { 2346 if (_json.containsKey("version")) {
2346 version = _json["version"]; 2347 version = _json["version"];
2347 } 2348 }
2348 } 2349 }
2349 2350
2350 core.Map toJson() { 2351 core.Map<core.String, core.Object> toJson() {
2351 var _json = new core.Map(); 2352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2352 if (booleanConstraint != null) { 2353 if (booleanConstraint != null) {
2353 _json["booleanConstraint"] = (booleanConstraint).toJson(); 2354 _json["booleanConstraint"] = (booleanConstraint).toJson();
2354 } 2355 }
2355 if (constraintDefault != null) { 2356 if (constraintDefault != null) {
2356 _json["constraintDefault"] = constraintDefault; 2357 _json["constraintDefault"] = constraintDefault;
2357 } 2358 }
2358 if (description != null) { 2359 if (description != null) {
2359 _json["description"] = description; 2360 _json["description"] = description;
2360 } 2361 }
2361 if (displayName != null) { 2362 if (displayName != null) {
(...skipping 23 matching lines...) Expand all
2385 * 2386 *
2386 * The JSON representation for `Empty` is empty JSON object `{}`. 2387 * The JSON representation for `Empty` is empty JSON object `{}`.
2387 */ 2388 */
2388 class Empty { 2389 class Empty {
2389 2390
2390 Empty(); 2391 Empty();
2391 2392
2392 Empty.fromJson(core.Map _json) { 2393 Empty.fromJson(core.Map _json) {
2393 } 2394 }
2394 2395
2395 core.Map toJson() { 2396 core.Map<core.String, core.Object> toJson() {
2396 var _json = new core.Map(); 2397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2397 return _json; 2398 return _json;
2398 } 2399 }
2399 } 2400 }
2400 2401
2401 /** Metadata describing a long running folder operation */ 2402 /** Metadata describing a long running folder operation */
2402 class FolderOperation { 2403 class FolderOperation {
2403 /** 2404 /**
2404 * The resource name of the folder or organization we are either creating 2405 * The resource name of the folder or organization we are either creating
2405 * the folder under or moving the folder to. 2406 * the folder under or moving the folder to.
2406 */ 2407 */
(...skipping 24 matching lines...) Expand all
2431 displayName = _json["displayName"]; 2432 displayName = _json["displayName"];
2432 } 2433 }
2433 if (_json.containsKey("operationType")) { 2434 if (_json.containsKey("operationType")) {
2434 operationType = _json["operationType"]; 2435 operationType = _json["operationType"];
2435 } 2436 }
2436 if (_json.containsKey("sourceParent")) { 2437 if (_json.containsKey("sourceParent")) {
2437 sourceParent = _json["sourceParent"]; 2438 sourceParent = _json["sourceParent"];
2438 } 2439 }
2439 } 2440 }
2440 2441
2441 core.Map toJson() { 2442 core.Map<core.String, core.Object> toJson() {
2442 var _json = new core.Map(); 2443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2443 if (destinationParent != null) { 2444 if (destinationParent != null) {
2444 _json["destinationParent"] = destinationParent; 2445 _json["destinationParent"] = destinationParent;
2445 } 2446 }
2446 if (displayName != null) { 2447 if (displayName != null) {
2447 _json["displayName"] = displayName; 2448 _json["displayName"] = displayName;
2448 } 2449 }
2449 if (operationType != null) { 2450 if (operationType != null) {
2450 _json["operationType"] = operationType; 2451 _json["operationType"] = operationType;
2451 } 2452 }
2452 if (sourceParent != null) { 2453 if (sourceParent != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 core.String errorMessageId; 2487 core.String errorMessageId;
2487 2488
2488 FolderOperationError(); 2489 FolderOperationError();
2489 2490
2490 FolderOperationError.fromJson(core.Map _json) { 2491 FolderOperationError.fromJson(core.Map _json) {
2491 if (_json.containsKey("errorMessageId")) { 2492 if (_json.containsKey("errorMessageId")) {
2492 errorMessageId = _json["errorMessageId"]; 2493 errorMessageId = _json["errorMessageId"];
2493 } 2494 }
2494 } 2495 }
2495 2496
2496 core.Map toJson() { 2497 core.Map<core.String, core.Object> toJson() {
2497 var _json = new core.Map(); 2498 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2498 if (errorMessageId != null) { 2499 if (errorMessageId != null) {
2499 _json["errorMessageId"] = errorMessageId; 2500 _json["errorMessageId"] = errorMessageId;
2500 } 2501 }
2501 return _json; 2502 return _json;
2502 } 2503 }
2503 } 2504 }
2504 2505
2505 /** 2506 /**
2506 * The request sent to the 2507 * The request sent to the
2507 * GetAncestry 2508 * GetAncestry
2508 * method. 2509 * method.
2509 */ 2510 */
2510 class GetAncestryRequest { 2511 class GetAncestryRequest {
2511 2512
2512 GetAncestryRequest(); 2513 GetAncestryRequest();
2513 2514
2514 GetAncestryRequest.fromJson(core.Map _json) { 2515 GetAncestryRequest.fromJson(core.Map _json) {
2515 } 2516 }
2516 2517
2517 core.Map toJson() { 2518 core.Map<core.String, core.Object> toJson() {
2518 var _json = new core.Map(); 2519 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2519 return _json; 2520 return _json;
2520 } 2521 }
2521 } 2522 }
2522 2523
2523 /** Response from the GetAncestry method. */ 2524 /** Response from the GetAncestry method. */
2524 class GetAncestryResponse { 2525 class GetAncestryResponse {
2525 /** 2526 /**
2526 * Ancestors are ordered from bottom to top of the resource hierarchy. The 2527 * Ancestors are ordered from bottom to top of the resource hierarchy. The
2527 * first ancestor is the project itself, followed by the project's parent, 2528 * first ancestor is the project itself, followed by the project's parent,
2528 * etc. 2529 * etc.
2529 */ 2530 */
2530 core.List<Ancestor> ancestor; 2531 core.List<Ancestor> ancestor;
2531 2532
2532 GetAncestryResponse(); 2533 GetAncestryResponse();
2533 2534
2534 GetAncestryResponse.fromJson(core.Map _json) { 2535 GetAncestryResponse.fromJson(core.Map _json) {
2535 if (_json.containsKey("ancestor")) { 2536 if (_json.containsKey("ancestor")) {
2536 ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)). toList(); 2537 ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)). toList();
2537 } 2538 }
2538 } 2539 }
2539 2540
2540 core.Map toJson() { 2541 core.Map<core.String, core.Object> toJson() {
2541 var _json = new core.Map(); 2542 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2542 if (ancestor != null) { 2543 if (ancestor != null) {
2543 _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); 2544 _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList();
2544 } 2545 }
2545 return _json; 2546 return _json;
2546 } 2547 }
2547 } 2548 }
2548 2549
2549 /** The request sent to the GetEffectiveOrgPolicy method. */ 2550 /** The request sent to the GetEffectiveOrgPolicy method. */
2550 class GetEffectiveOrgPolicyRequest { 2551 class GetEffectiveOrgPolicyRequest {
2551 /** The name of the `Constraint` to compute the effective `Policy`. */ 2552 /** The name of the `Constraint` to compute the effective `Policy`. */
2552 core.String constraint; 2553 core.String constraint;
2553 2554
2554 GetEffectiveOrgPolicyRequest(); 2555 GetEffectiveOrgPolicyRequest();
2555 2556
2556 GetEffectiveOrgPolicyRequest.fromJson(core.Map _json) { 2557 GetEffectiveOrgPolicyRequest.fromJson(core.Map _json) {
2557 if (_json.containsKey("constraint")) { 2558 if (_json.containsKey("constraint")) {
2558 constraint = _json["constraint"]; 2559 constraint = _json["constraint"];
2559 } 2560 }
2560 } 2561 }
2561 2562
2562 core.Map toJson() { 2563 core.Map<core.String, core.Object> toJson() {
2563 var _json = new core.Map(); 2564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2564 if (constraint != null) { 2565 if (constraint != null) {
2565 _json["constraint"] = constraint; 2566 _json["constraint"] = constraint;
2566 } 2567 }
2567 return _json; 2568 return _json;
2568 } 2569 }
2569 } 2570 }
2570 2571
2571 /** Request message for `GetIamPolicy` method. */ 2572 /** Request message for `GetIamPolicy` method. */
2572 class GetIamPolicyRequest { 2573 class GetIamPolicyRequest {
2573 2574
2574 GetIamPolicyRequest(); 2575 GetIamPolicyRequest();
2575 2576
2576 GetIamPolicyRequest.fromJson(core.Map _json) { 2577 GetIamPolicyRequest.fromJson(core.Map _json) {
2577 } 2578 }
2578 2579
2579 core.Map toJson() { 2580 core.Map<core.String, core.Object> toJson() {
2580 var _json = new core.Map(); 2581 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2581 return _json; 2582 return _json;
2582 } 2583 }
2583 } 2584 }
2584 2585
2585 /** The request sent to the GetOrgPolicy method. */ 2586 /** The request sent to the GetOrgPolicy method. */
2586 class GetOrgPolicyRequest { 2587 class GetOrgPolicyRequest {
2587 /** Name of the `Constraint` to get the `Policy`. */ 2588 /** Name of the `Constraint` to get the `Policy`. */
2588 core.String constraint; 2589 core.String constraint;
2589 2590
2590 GetOrgPolicyRequest(); 2591 GetOrgPolicyRequest();
2591 2592
2592 GetOrgPolicyRequest.fromJson(core.Map _json) { 2593 GetOrgPolicyRequest.fromJson(core.Map _json) {
2593 if (_json.containsKey("constraint")) { 2594 if (_json.containsKey("constraint")) {
2594 constraint = _json["constraint"]; 2595 constraint = _json["constraint"];
2595 } 2596 }
2596 } 2597 }
2597 2598
2598 core.Map toJson() { 2599 core.Map<core.String, core.Object> toJson() {
2599 var _json = new core.Map(); 2600 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2600 if (constraint != null) { 2601 if (constraint != null) {
2601 _json["constraint"] = constraint; 2602 _json["constraint"] = constraint;
2602 } 2603 }
2603 return _json; 2604 return _json;
2604 } 2605 }
2605 } 2606 }
2606 2607
2607 /** 2608 /**
2608 * A Lien represents an encumbrance on the actions that can be performed on a 2609 * A Lien represents an encumbrance on the actions that can be performed on a
2609 * resource. 2610 * resource.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 parent = _json["parent"]; 2667 parent = _json["parent"];
2667 } 2668 }
2668 if (_json.containsKey("reason")) { 2669 if (_json.containsKey("reason")) {
2669 reason = _json["reason"]; 2670 reason = _json["reason"];
2670 } 2671 }
2671 if (_json.containsKey("restrictions")) { 2672 if (_json.containsKey("restrictions")) {
2672 restrictions = _json["restrictions"]; 2673 restrictions = _json["restrictions"];
2673 } 2674 }
2674 } 2675 }
2675 2676
2676 core.Map toJson() { 2677 core.Map<core.String, core.Object> toJson() {
2677 var _json = new core.Map(); 2678 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2678 if (createTime != null) { 2679 if (createTime != null) {
2679 _json["createTime"] = createTime; 2680 _json["createTime"] = createTime;
2680 } 2681 }
2681 if (name != null) { 2682 if (name != null) {
2682 _json["name"] = name; 2683 _json["name"] = name;
2683 } 2684 }
2684 if (origin != null) { 2685 if (origin != null) {
2685 _json["origin"] = origin; 2686 _json["origin"] = origin;
2686 } 2687 }
2687 if (parent != null) { 2688 if (parent != null) {
(...skipping 30 matching lines...) Expand all
2718 2719
2719 ListAvailableOrgPolicyConstraintsRequest.fromJson(core.Map _json) { 2720 ListAvailableOrgPolicyConstraintsRequest.fromJson(core.Map _json) {
2720 if (_json.containsKey("pageSize")) { 2721 if (_json.containsKey("pageSize")) {
2721 pageSize = _json["pageSize"]; 2722 pageSize = _json["pageSize"];
2722 } 2723 }
2723 if (_json.containsKey("pageToken")) { 2724 if (_json.containsKey("pageToken")) {
2724 pageToken = _json["pageToken"]; 2725 pageToken = _json["pageToken"];
2725 } 2726 }
2726 } 2727 }
2727 2728
2728 core.Map toJson() { 2729 core.Map<core.String, core.Object> toJson() {
2729 var _json = new core.Map(); 2730 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2730 if (pageSize != null) { 2731 if (pageSize != null) {
2731 _json["pageSize"] = pageSize; 2732 _json["pageSize"] = pageSize;
2732 } 2733 }
2733 if (pageToken != null) { 2734 if (pageToken != null) {
2734 _json["pageToken"] = pageToken; 2735 _json["pageToken"] = pageToken;
2735 } 2736 }
2736 return _json; 2737 return _json;
2737 } 2738 }
2738 } 2739 }
2739 2740
(...skipping 15 matching lines...) Expand all
2755 2756
2756 ListAvailableOrgPolicyConstraintsResponse.fromJson(core.Map _json) { 2757 ListAvailableOrgPolicyConstraintsResponse.fromJson(core.Map _json) {
2757 if (_json.containsKey("constraints")) { 2758 if (_json.containsKey("constraints")) {
2758 constraints = _json["constraints"].map((value) => new Constraint.fromJson( value)).toList(); 2759 constraints = _json["constraints"].map((value) => new Constraint.fromJson( value)).toList();
2759 } 2760 }
2760 if (_json.containsKey("nextPageToken")) { 2761 if (_json.containsKey("nextPageToken")) {
2761 nextPageToken = _json["nextPageToken"]; 2762 nextPageToken = _json["nextPageToken"];
2762 } 2763 }
2763 } 2764 }
2764 2765
2765 core.Map toJson() { 2766 core.Map<core.String, core.Object> toJson() {
2766 var _json = new core.Map(); 2767 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2767 if (constraints != null) { 2768 if (constraints != null) {
2768 _json["constraints"] = constraints.map((value) => (value).toJson()).toList (); 2769 _json["constraints"] = constraints.map((value) => (value).toJson()).toList ();
2769 } 2770 }
2770 if (nextPageToken != null) { 2771 if (nextPageToken != null) {
2771 _json["nextPageToken"] = nextPageToken; 2772 _json["nextPageToken"] = nextPageToken;
2772 } 2773 }
2773 return _json; 2774 return _json;
2774 } 2775 }
2775 } 2776 }
2776 2777
2777 /** 2778 /**
2778 * A `Constraint` that allows or disallows a list of string values, which are 2779 * A `Constraint` that allows or disallows a list of string values, which are
2779 * configured by an Organization's policy administrator with a `Policy`. 2780 * configured by an Organization's policy administrator with a `Policy`.
2780 */ 2781 */
2781 class ListConstraint { 2782 class ListConstraint {
2782 /** 2783 /**
2783 * Optional. The Google Cloud Console will try to default to a configuration 2784 * Optional. The Google Cloud Console will try to default to a configuration
2784 * that matches the value specified in this `Constraint`. 2785 * that matches the value specified in this `Constraint`.
2785 */ 2786 */
2786 core.String suggestedValue; 2787 core.String suggestedValue;
2787 2788
2788 ListConstraint(); 2789 ListConstraint();
2789 2790
2790 ListConstraint.fromJson(core.Map _json) { 2791 ListConstraint.fromJson(core.Map _json) {
2791 if (_json.containsKey("suggestedValue")) { 2792 if (_json.containsKey("suggestedValue")) {
2792 suggestedValue = _json["suggestedValue"]; 2793 suggestedValue = _json["suggestedValue"];
2793 } 2794 }
2794 } 2795 }
2795 2796
2796 core.Map toJson() { 2797 core.Map<core.String, core.Object> toJson() {
2797 var _json = new core.Map(); 2798 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2798 if (suggestedValue != null) { 2799 if (suggestedValue != null) {
2799 _json["suggestedValue"] = suggestedValue; 2800 _json["suggestedValue"] = suggestedValue;
2800 } 2801 }
2801 return _json; 2802 return _json;
2802 } 2803 }
2803 } 2804 }
2804 2805
2805 /** The response message for Liens.ListLiens. */ 2806 /** The response message for Liens.ListLiens. */
2806 class ListLiensResponse { 2807 class ListLiensResponse {
2807 /** A list of Liens. */ 2808 /** A list of Liens. */
2808 core.List<Lien> liens; 2809 core.List<Lien> liens;
2809 /** 2810 /**
2810 * Token to retrieve the next page of results, or empty if there are no more 2811 * Token to retrieve the next page of results, or empty if there are no more
2811 * results in the list. 2812 * results in the list.
2812 */ 2813 */
2813 core.String nextPageToken; 2814 core.String nextPageToken;
2814 2815
2815 ListLiensResponse(); 2816 ListLiensResponse();
2816 2817
2817 ListLiensResponse.fromJson(core.Map _json) { 2818 ListLiensResponse.fromJson(core.Map _json) {
2818 if (_json.containsKey("liens")) { 2819 if (_json.containsKey("liens")) {
2819 liens = _json["liens"].map((value) => new Lien.fromJson(value)).toList(); 2820 liens = _json["liens"].map((value) => new Lien.fromJson(value)).toList();
2820 } 2821 }
2821 if (_json.containsKey("nextPageToken")) { 2822 if (_json.containsKey("nextPageToken")) {
2822 nextPageToken = _json["nextPageToken"]; 2823 nextPageToken = _json["nextPageToken"];
2823 } 2824 }
2824 } 2825 }
2825 2826
2826 core.Map toJson() { 2827 core.Map<core.String, core.Object> toJson() {
2827 var _json = new core.Map(); 2828 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2828 if (liens != null) { 2829 if (liens != null) {
2829 _json["liens"] = liens.map((value) => (value).toJson()).toList(); 2830 _json["liens"] = liens.map((value) => (value).toJson()).toList();
2830 } 2831 }
2831 if (nextPageToken != null) { 2832 if (nextPageToken != null) {
2832 _json["nextPageToken"] = nextPageToken; 2833 _json["nextPageToken"] = nextPageToken;
2833 } 2834 }
2834 return _json; 2835 return _json;
2835 } 2836 }
2836 } 2837 }
2837 2838
(...skipping 15 matching lines...) Expand all
2853 2854
2854 ListOrgPoliciesRequest.fromJson(core.Map _json) { 2855 ListOrgPoliciesRequest.fromJson(core.Map _json) {
2855 if (_json.containsKey("pageSize")) { 2856 if (_json.containsKey("pageSize")) {
2856 pageSize = _json["pageSize"]; 2857 pageSize = _json["pageSize"];
2857 } 2858 }
2858 if (_json.containsKey("pageToken")) { 2859 if (_json.containsKey("pageToken")) {
2859 pageToken = _json["pageToken"]; 2860 pageToken = _json["pageToken"];
2860 } 2861 }
2861 } 2862 }
2862 2863
2863 core.Map toJson() { 2864 core.Map<core.String, core.Object> toJson() {
2864 var _json = new core.Map(); 2865 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2865 if (pageSize != null) { 2866 if (pageSize != null) {
2866 _json["pageSize"] = pageSize; 2867 _json["pageSize"] = pageSize;
2867 } 2868 }
2868 if (pageToken != null) { 2869 if (pageToken != null) {
2869 _json["pageToken"] = pageToken; 2870 _json["pageToken"] = pageToken;
2870 } 2871 }
2871 return _json; 2872 return _json;
2872 } 2873 }
2873 } 2874 }
2874 2875
(...skipping 17 matching lines...) Expand all
2892 2893
2893 ListOrgPoliciesResponse.fromJson(core.Map _json) { 2894 ListOrgPoliciesResponse.fromJson(core.Map _json) {
2894 if (_json.containsKey("nextPageToken")) { 2895 if (_json.containsKey("nextPageToken")) {
2895 nextPageToken = _json["nextPageToken"]; 2896 nextPageToken = _json["nextPageToken"];
2896 } 2897 }
2897 if (_json.containsKey("policies")) { 2898 if (_json.containsKey("policies")) {
2898 policies = _json["policies"].map((value) => new OrgPolicy.fromJson(value)) .toList(); 2899 policies = _json["policies"].map((value) => new OrgPolicy.fromJson(value)) .toList();
2899 } 2900 }
2900 } 2901 }
2901 2902
2902 core.Map toJson() { 2903 core.Map<core.String, core.Object> toJson() {
2903 var _json = new core.Map(); 2904 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2904 if (nextPageToken != null) { 2905 if (nextPageToken != null) {
2905 _json["nextPageToken"] = nextPageToken; 2906 _json["nextPageToken"] = nextPageToken;
2906 } 2907 }
2907 if (policies != null) { 2908 if (policies != null) {
2908 _json["policies"] = policies.map((value) => (value).toJson()).toList(); 2909 _json["policies"] = policies.map((value) => (value).toJson()).toList();
2909 } 2910 }
2910 return _json; 2911 return _json;
2911 } 2912 }
2912 } 2913 }
2913 2914
(...skipping 13 matching lines...) Expand all
2927 /** 2928 /**
2928 * The policy all_values state. 2929 * The policy all_values state.
2929 * Possible string values are: 2930 * Possible string values are:
2930 * - "ALL_VALUES_UNSPECIFIED" : Indicates that either allowed_values or 2931 * - "ALL_VALUES_UNSPECIFIED" : Indicates that either allowed_values or
2931 * denied_values must be set. 2932 * denied_values must be set.
2932 * - "ALLOW" : A policy with this set allows all values. 2933 * - "ALLOW" : A policy with this set allows all values.
2933 * - "DENY" : A policy with this set denies all values. 2934 * - "DENY" : A policy with this set denies all values.
2934 */ 2935 */
2935 core.String allValues; 2936 core.String allValues;
2936 /** 2937 /**
2937 * List of values allowed at this resource. an only be set if no values are 2938 * List of values allowed at this resource. Can only be set if no values
2938 * set for `denied_values` and `all_values` is set to 2939 * are set for `denied_values` and `all_values` is set to
2939 * `ALL_VALUES_UNSPECIFIED`. 2940 * `ALL_VALUES_UNSPECIFIED`.
2940 */ 2941 */
2941 core.List<core.String> allowedValues; 2942 core.List<core.String> allowedValues;
2942 /** 2943 /**
2943 * List of values denied at this resource. Can only be set if no values are 2944 * List of values denied at this resource. Can only be set if no values are
2944 * set for `allowed_values` and `all_values` is set to 2945 * set for `allowed_values` and `all_values` is set to
2945 * `ALL_VALUES_UNSPECIFIED`. 2946 * `ALL_VALUES_UNSPECIFIED`.
2946 */ 2947 */
2947 core.List<core.String> deniedValues; 2948 core.List<core.String> deniedValues;
2948 /** 2949 /**
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 deniedValues = _json["deniedValues"]; 3052 deniedValues = _json["deniedValues"];
3052 } 3053 }
3053 if (_json.containsKey("inheritFromParent")) { 3054 if (_json.containsKey("inheritFromParent")) {
3054 inheritFromParent = _json["inheritFromParent"]; 3055 inheritFromParent = _json["inheritFromParent"];
3055 } 3056 }
3056 if (_json.containsKey("suggestedValue")) { 3057 if (_json.containsKey("suggestedValue")) {
3057 suggestedValue = _json["suggestedValue"]; 3058 suggestedValue = _json["suggestedValue"];
3058 } 3059 }
3059 } 3060 }
3060 3061
3061 core.Map toJson() { 3062 core.Map<core.String, core.Object> toJson() {
3062 var _json = new core.Map(); 3063 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3063 if (allValues != null) { 3064 if (allValues != null) {
3064 _json["allValues"] = allValues; 3065 _json["allValues"] = allValues;
3065 } 3066 }
3066 if (allowedValues != null) { 3067 if (allowedValues != null) {
3067 _json["allowedValues"] = allowedValues; 3068 _json["allowedValues"] = allowedValues;
3068 } 3069 }
3069 if (deniedValues != null) { 3070 if (deniedValues != null) {
3070 _json["deniedValues"] = deniedValues; 3071 _json["deniedValues"] = deniedValues;
3071 } 3072 }
3072 if (inheritFromParent != null) { 3073 if (inheritFromParent != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 3114
3114 ListProjectsResponse.fromJson(core.Map _json) { 3115 ListProjectsResponse.fromJson(core.Map _json) {
3115 if (_json.containsKey("nextPageToken")) { 3116 if (_json.containsKey("nextPageToken")) {
3116 nextPageToken = _json["nextPageToken"]; 3117 nextPageToken = _json["nextPageToken"];
3117 } 3118 }
3118 if (_json.containsKey("projects")) { 3119 if (_json.containsKey("projects")) {
3119 projects = _json["projects"].map((value) => new Project.fromJson(value)).t oList(); 3120 projects = _json["projects"].map((value) => new Project.fromJson(value)).t oList();
3120 } 3121 }
3121 } 3122 }
3122 3123
3123 core.Map toJson() { 3124 core.Map<core.String, core.Object> toJson() {
3124 var _json = new core.Map(); 3125 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3125 if (nextPageToken != null) { 3126 if (nextPageToken != null) {
3126 _json["nextPageToken"] = nextPageToken; 3127 _json["nextPageToken"] = nextPageToken;
3127 } 3128 }
3128 if (projects != null) { 3129 if (projects != null) {
3129 _json["projects"] = projects.map((value) => (value).toJson()).toList(); 3130 _json["projects"] = projects.map((value) => (value).toJson()).toList();
3130 } 3131 }
3131 return _json; 3132 return _json;
3132 } 3133 }
3133 } 3134 }
3134 3135
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
3189 metadata = _json["metadata"]; 3190 metadata = _json["metadata"];
3190 } 3191 }
3191 if (_json.containsKey("name")) { 3192 if (_json.containsKey("name")) {
3192 name = _json["name"]; 3193 name = _json["name"];
3193 } 3194 }
3194 if (_json.containsKey("response")) { 3195 if (_json.containsKey("response")) {
3195 response = _json["response"]; 3196 response = _json["response"];
3196 } 3197 }
3197 } 3198 }
3198 3199
3199 core.Map toJson() { 3200 core.Map<core.String, core.Object> toJson() {
3200 var _json = new core.Map(); 3201 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3201 if (done != null) { 3202 if (done != null) {
3202 _json["done"] = done; 3203 _json["done"] = done;
3203 } 3204 }
3204 if (error != null) { 3205 if (error != null) {
3205 _json["error"] = (error).toJson(); 3206 _json["error"] = (error).toJson();
3206 } 3207 }
3207 if (metadata != null) { 3208 if (metadata != null) {
3208 _json["metadata"] = metadata; 3209 _json["metadata"] = metadata;
3209 } 3210 }
3210 if (name != null) { 3211 if (name != null) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
3292 restoreDefault = new RestoreDefault.fromJson(_json["restoreDefault"]); 3293 restoreDefault = new RestoreDefault.fromJson(_json["restoreDefault"]);
3293 } 3294 }
3294 if (_json.containsKey("updateTime")) { 3295 if (_json.containsKey("updateTime")) {
3295 updateTime = _json["updateTime"]; 3296 updateTime = _json["updateTime"];
3296 } 3297 }
3297 if (_json.containsKey("version")) { 3298 if (_json.containsKey("version")) {
3298 version = _json["version"]; 3299 version = _json["version"];
3299 } 3300 }
3300 } 3301 }
3301 3302
3302 core.Map toJson() { 3303 core.Map<core.String, core.Object> toJson() {
3303 var _json = new core.Map(); 3304 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3304 if (booleanPolicy != null) { 3305 if (booleanPolicy != null) {
3305 _json["booleanPolicy"] = (booleanPolicy).toJson(); 3306 _json["booleanPolicy"] = (booleanPolicy).toJson();
3306 } 3307 }
3307 if (constraint != null) { 3308 if (constraint != null) {
3308 _json["constraint"] = constraint; 3309 _json["constraint"] = constraint;
3309 } 3310 }
3310 if (etag != null) { 3311 if (etag != null) {
3311 _json["etag"] = etag; 3312 _json["etag"] = etag;
3312 } 3313 }
3313 if (listPolicy != null) { 3314 if (listPolicy != null) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 lifecycleState = _json["lifecycleState"]; 3381 lifecycleState = _json["lifecycleState"];
3381 } 3382 }
3382 if (_json.containsKey("name")) { 3383 if (_json.containsKey("name")) {
3383 name = _json["name"]; 3384 name = _json["name"];
3384 } 3385 }
3385 if (_json.containsKey("owner")) { 3386 if (_json.containsKey("owner")) {
3386 owner = new OrganizationOwner.fromJson(_json["owner"]); 3387 owner = new OrganizationOwner.fromJson(_json["owner"]);
3387 } 3388 }
3388 } 3389 }
3389 3390
3390 core.Map toJson() { 3391 core.Map<core.String, core.Object> toJson() {
3391 var _json = new core.Map(); 3392 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3392 if (creationTime != null) { 3393 if (creationTime != null) {
3393 _json["creationTime"] = creationTime; 3394 _json["creationTime"] = creationTime;
3394 } 3395 }
3395 if (displayName != null) { 3396 if (displayName != null) {
3396 _json["displayName"] = displayName; 3397 _json["displayName"] = displayName;
3397 } 3398 }
3398 if (lifecycleState != null) { 3399 if (lifecycleState != null) {
3399 _json["lifecycleState"] = lifecycleState; 3400 _json["lifecycleState"] = lifecycleState;
3400 } 3401 }
3401 if (name != null) { 3402 if (name != null) {
(...skipping 17 matching lines...) Expand all
3419 core.String directoryCustomerId; 3420 core.String directoryCustomerId;
3420 3421
3421 OrganizationOwner(); 3422 OrganizationOwner();
3422 3423
3423 OrganizationOwner.fromJson(core.Map _json) { 3424 OrganizationOwner.fromJson(core.Map _json) {
3424 if (_json.containsKey("directoryCustomerId")) { 3425 if (_json.containsKey("directoryCustomerId")) {
3425 directoryCustomerId = _json["directoryCustomerId"]; 3426 directoryCustomerId = _json["directoryCustomerId"];
3426 } 3427 }
3427 } 3428 }
3428 3429
3429 core.Map toJson() { 3430 core.Map<core.String, core.Object> toJson() {
3430 var _json = new core.Map(); 3431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3431 if (directoryCustomerId != null) { 3432 if (directoryCustomerId != null) {
3432 _json["directoryCustomerId"] = directoryCustomerId; 3433 _json["directoryCustomerId"] = directoryCustomerId;
3433 } 3434 }
3434 return _json; 3435 return _json;
3435 } 3436 }
3436 } 3437 }
3437 3438
3438 /** 3439 /**
3439 * Defines an Identity and Access Management (IAM) policy. It is used to 3440 * Defines an Identity and Access Management (IAM) policy. It is used to
3440 * specify access control policies for Cloud Platform resources. 3441 * specify access control policies for Cloud Platform resources.
(...skipping 25 matching lines...) Expand all
3466 * } 3467 * }
3467 * 3468 *
3468 * For a description of IAM and its features, see the 3469 * For a description of IAM and its features, see the
3469 * [IAM developer's guide](https://cloud.google.com/iam). 3470 * [IAM developer's guide](https://cloud.google.com/iam).
3470 */ 3471 */
3471 class Policy { 3472 class Policy {
3472 /** Specifies cloud audit logging configuration for this policy. */ 3473 /** Specifies cloud audit logging configuration for this policy. */
3473 core.List<AuditConfig> auditConfigs; 3474 core.List<AuditConfig> auditConfigs;
3474 /** 3475 /**
3475 * Associates a list of `members` to a `role`. 3476 * Associates a list of `members` to a `role`.
3476 * Multiple `bindings` must not be specified for the same `role`.
3477 * `bindings` with no members will result in an error. 3477 * `bindings` with no members will result in an error.
3478 */ 3478 */
3479 core.List<Binding> bindings; 3479 core.List<Binding> bindings;
3480 /** 3480 /**
3481 * `etag` is used for optimistic concurrency control as a way to help 3481 * `etag` is used for optimistic concurrency control as a way to help
3482 * prevent simultaneous updates of a policy from overwriting each other. 3482 * prevent simultaneous updates of a policy from overwriting each other.
3483 * It is strongly suggested that systems make use of the `etag` in the 3483 * It is strongly suggested that systems make use of the `etag` in the
3484 * read-modify-write cycle to perform policy updates in order to avoid race 3484 * read-modify-write cycle to perform policy updates in order to avoid race
3485 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 3485 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
3486 * systems are expected to put that etag in the request to `setIamPolicy` to 3486 * systems are expected to put that etag in the request to `setIamPolicy` to
(...skipping 23 matching lines...) Expand all
3510 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList(); 3510 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
3511 } 3511 }
3512 if (_json.containsKey("etag")) { 3512 if (_json.containsKey("etag")) {
3513 etag = _json["etag"]; 3513 etag = _json["etag"];
3514 } 3514 }
3515 if (_json.containsKey("version")) { 3515 if (_json.containsKey("version")) {
3516 version = _json["version"]; 3516 version = _json["version"];
3517 } 3517 }
3518 } 3518 }
3519 3519
3520 core.Map toJson() { 3520 core.Map<core.String, core.Object> toJson() {
3521 var _json = new core.Map(); 3521 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3522 if (auditConfigs != null) { 3522 if (auditConfigs != null) {
3523 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st(); 3523 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st();
3524 } 3524 }
3525 if (bindings != null) { 3525 if (bindings != null) {
3526 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 3526 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
3527 } 3527 }
3528 if (etag != null) { 3528 if (etag != null) {
3529 _json["etag"] = etag; 3529 _json["etag"] = etag;
3530 } 3530 }
3531 if (version != null) { 3531 if (version != null) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3641 parent = new ResourceId.fromJson(_json["parent"]); 3641 parent = new ResourceId.fromJson(_json["parent"]);
3642 } 3642 }
3643 if (_json.containsKey("projectId")) { 3643 if (_json.containsKey("projectId")) {
3644 projectId = _json["projectId"]; 3644 projectId = _json["projectId"];
3645 } 3645 }
3646 if (_json.containsKey("projectNumber")) { 3646 if (_json.containsKey("projectNumber")) {
3647 projectNumber = _json["projectNumber"]; 3647 projectNumber = _json["projectNumber"];
3648 } 3648 }
3649 } 3649 }
3650 3650
3651 core.Map toJson() { 3651 core.Map<core.String, core.Object> toJson() {
3652 var _json = new core.Map(); 3652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3653 if (createTime != null) { 3653 if (createTime != null) {
3654 _json["createTime"] = createTime; 3654 _json["createTime"] = createTime;
3655 } 3655 }
3656 if (labels != null) { 3656 if (labels != null) {
3657 _json["labels"] = labels; 3657 _json["labels"] = labels;
3658 } 3658 }
3659 if (lifecycleState != null) { 3659 if (lifecycleState != null) {
3660 _json["lifecycleState"] = lifecycleState; 3660 _json["lifecycleState"] = lifecycleState;
3661 } 3661 }
3662 if (name != null) { 3662 if (name != null) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
3699 createTime = _json["createTime"]; 3699 createTime = _json["createTime"];
3700 } 3700 }
3701 if (_json.containsKey("gettable")) { 3701 if (_json.containsKey("gettable")) {
3702 gettable = _json["gettable"]; 3702 gettable = _json["gettable"];
3703 } 3703 }
3704 if (_json.containsKey("ready")) { 3704 if (_json.containsKey("ready")) {
3705 ready = _json["ready"]; 3705 ready = _json["ready"];
3706 } 3706 }
3707 } 3707 }
3708 3708
3709 core.Map toJson() { 3709 core.Map<core.String, core.Object> toJson() {
3710 var _json = new core.Map(); 3710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3711 if (createTime != null) { 3711 if (createTime != null) {
3712 _json["createTime"] = createTime; 3712 _json["createTime"] = createTime;
3713 } 3713 }
3714 if (gettable != null) { 3714 if (gettable != null) {
3715 _json["gettable"] = gettable; 3715 _json["gettable"] = gettable;
3716 } 3716 }
3717 if (ready != null) { 3717 if (ready != null) {
3718 _json["ready"] = ready; 3718 _json["ready"] = ready;
3719 } 3719 }
3720 return _json; 3720 return _json;
(...skipping 22 matching lines...) Expand all
3743 3743
3744 ResourceId.fromJson(core.Map _json) { 3744 ResourceId.fromJson(core.Map _json) {
3745 if (_json.containsKey("id")) { 3745 if (_json.containsKey("id")) {
3746 id = _json["id"]; 3746 id = _json["id"];
3747 } 3747 }
3748 if (_json.containsKey("type")) { 3748 if (_json.containsKey("type")) {
3749 type = _json["type"]; 3749 type = _json["type"];
3750 } 3750 }
3751 } 3751 }
3752 3752
3753 core.Map toJson() { 3753 core.Map<core.String, core.Object> toJson() {
3754 var _json = new core.Map(); 3754 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3755 if (id != null) { 3755 if (id != null) {
3756 _json["id"] = id; 3756 _json["id"] = id;
3757 } 3757 }
3758 if (type != null) { 3758 if (type != null) {
3759 _json["type"] = type; 3759 _json["type"] = type;
3760 } 3760 }
3761 return _json; 3761 return _json;
3762 } 3762 }
3763 } 3763 }
3764 3764
(...skipping 11 matching lines...) Expand all
3776 * enforcement of the `Constraint` for only those projects, allowing those 3776 * enforcement of the `Constraint` for only those projects, allowing those
3777 * projects to have all services activated. 3777 * projects to have all services activated.
3778 */ 3778 */
3779 class RestoreDefault { 3779 class RestoreDefault {
3780 3780
3781 RestoreDefault(); 3781 RestoreDefault();
3782 3782
3783 RestoreDefault.fromJson(core.Map _json) { 3783 RestoreDefault.fromJson(core.Map _json) {
3784 } 3784 }
3785 3785
3786 core.Map toJson() { 3786 core.Map<core.String, core.Object> toJson() {
3787 var _json = new core.Map(); 3787 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3788 return _json; 3788 return _json;
3789 } 3789 }
3790 } 3790 }
3791 3791
3792 /** The request sent to the `SearchOrganizations` method. */ 3792 /** The request sent to the `SearchOrganizations` method. */
3793 class SearchOrganizationsRequest { 3793 class SearchOrganizationsRequest {
3794 /** 3794 /**
3795 * An optional query string used to filter the Organizations to return in 3795 * An optional query string used to filter the Organizations to return in
3796 * the response. Filter rules are case-insensitive. 3796 * the response. Filter rules are case-insensitive.
3797 * 3797 *
(...skipping 29 matching lines...) Expand all
3827 filter = _json["filter"]; 3827 filter = _json["filter"];
3828 } 3828 }
3829 if (_json.containsKey("pageSize")) { 3829 if (_json.containsKey("pageSize")) {
3830 pageSize = _json["pageSize"]; 3830 pageSize = _json["pageSize"];
3831 } 3831 }
3832 if (_json.containsKey("pageToken")) { 3832 if (_json.containsKey("pageToken")) {
3833 pageToken = _json["pageToken"]; 3833 pageToken = _json["pageToken"];
3834 } 3834 }
3835 } 3835 }
3836 3836
3837 core.Map toJson() { 3837 core.Map<core.String, core.Object> toJson() {
3838 var _json = new core.Map(); 3838 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3839 if (filter != null) { 3839 if (filter != null) {
3840 _json["filter"] = filter; 3840 _json["filter"] = filter;
3841 } 3841 }
3842 if (pageSize != null) { 3842 if (pageSize != null) {
3843 _json["pageSize"] = pageSize; 3843 _json["pageSize"] = pageSize;
3844 } 3844 }
3845 if (pageToken != null) { 3845 if (pageToken != null) {
3846 _json["pageToken"] = pageToken; 3846 _json["pageToken"] = pageToken;
3847 } 3847 }
3848 return _json; 3848 return _json;
(...skipping 20 matching lines...) Expand all
3869 3869
3870 SearchOrganizationsResponse.fromJson(core.Map _json) { 3870 SearchOrganizationsResponse.fromJson(core.Map _json) {
3871 if (_json.containsKey("nextPageToken")) { 3871 if (_json.containsKey("nextPageToken")) {
3872 nextPageToken = _json["nextPageToken"]; 3872 nextPageToken = _json["nextPageToken"];
3873 } 3873 }
3874 if (_json.containsKey("organizations")) { 3874 if (_json.containsKey("organizations")) {
3875 organizations = _json["organizations"].map((value) => new Organization.fro mJson(value)).toList(); 3875 organizations = _json["organizations"].map((value) => new Organization.fro mJson(value)).toList();
3876 } 3876 }
3877 } 3877 }
3878 3878
3879 core.Map toJson() { 3879 core.Map<core.String, core.Object> toJson() {
3880 var _json = new core.Map(); 3880 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3881 if (nextPageToken != null) { 3881 if (nextPageToken != null) {
3882 _json["nextPageToken"] = nextPageToken; 3882 _json["nextPageToken"] = nextPageToken;
3883 } 3883 }
3884 if (organizations != null) { 3884 if (organizations != null) {
3885 _json["organizations"] = organizations.map((value) => (value).toJson()).to List(); 3885 _json["organizations"] = organizations.map((value) => (value).toJson()).to List();
3886 } 3886 }
3887 return _json; 3887 return _json;
3888 } 3888 }
3889 } 3889 }
3890 3890
(...skipping 19 matching lines...) Expand all
3910 3910
3911 SetIamPolicyRequest.fromJson(core.Map _json) { 3911 SetIamPolicyRequest.fromJson(core.Map _json) {
3912 if (_json.containsKey("policy")) { 3912 if (_json.containsKey("policy")) {
3913 policy = new Policy.fromJson(_json["policy"]); 3913 policy = new Policy.fromJson(_json["policy"]);
3914 } 3914 }
3915 if (_json.containsKey("updateMask")) { 3915 if (_json.containsKey("updateMask")) {
3916 updateMask = _json["updateMask"]; 3916 updateMask = _json["updateMask"];
3917 } 3917 }
3918 } 3918 }
3919 3919
3920 core.Map toJson() { 3920 core.Map<core.String, core.Object> toJson() {
3921 var _json = new core.Map(); 3921 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3922 if (policy != null) { 3922 if (policy != null) {
3923 _json["policy"] = (policy).toJson(); 3923 _json["policy"] = (policy).toJson();
3924 } 3924 }
3925 if (updateMask != null) { 3925 if (updateMask != null) {
3926 _json["updateMask"] = updateMask; 3926 _json["updateMask"] = updateMask;
3927 } 3927 }
3928 return _json; 3928 return _json;
3929 } 3929 }
3930 } 3930 }
3931 3931
3932 /** The request sent to the SetOrgPolicyRequest method. */ 3932 /** The request sent to the SetOrgPolicyRequest method. */
3933 class SetOrgPolicyRequest { 3933 class SetOrgPolicyRequest {
3934 /** `Policy` to set on the resource. */ 3934 /** `Policy` to set on the resource. */
3935 OrgPolicy policy; 3935 OrgPolicy policy;
3936 3936
3937 SetOrgPolicyRequest(); 3937 SetOrgPolicyRequest();
3938 3938
3939 SetOrgPolicyRequest.fromJson(core.Map _json) { 3939 SetOrgPolicyRequest.fromJson(core.Map _json) {
3940 if (_json.containsKey("policy")) { 3940 if (_json.containsKey("policy")) {
3941 policy = new OrgPolicy.fromJson(_json["policy"]); 3941 policy = new OrgPolicy.fromJson(_json["policy"]);
3942 } 3942 }
3943 } 3943 }
3944 3944
3945 core.Map toJson() { 3945 core.Map<core.String, core.Object> toJson() {
3946 var _json = new core.Map(); 3946 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3947 if (policy != null) { 3947 if (policy != null) {
3948 _json["policy"] = (policy).toJson(); 3948 _json["policy"] = (policy).toJson();
3949 } 3949 }
3950 return _json; 3950 return _json;
3951 } 3951 }
3952 } 3952 }
3953 3953
3954 /** 3954 /**
3955 * The `Status` type defines a logical error model that is suitable for 3955 * The `Status` type defines a logical error model that is suitable for
3956 * different 3956 * different
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
4032 code = _json["code"]; 4032 code = _json["code"];
4033 } 4033 }
4034 if (_json.containsKey("details")) { 4034 if (_json.containsKey("details")) {
4035 details = _json["details"]; 4035 details = _json["details"];
4036 } 4036 }
4037 if (_json.containsKey("message")) { 4037 if (_json.containsKey("message")) {
4038 message = _json["message"]; 4038 message = _json["message"];
4039 } 4039 }
4040 } 4040 }
4041 4041
4042 core.Map toJson() { 4042 core.Map<core.String, core.Object> toJson() {
4043 var _json = new core.Map(); 4043 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4044 if (code != null) { 4044 if (code != null) {
4045 _json["code"] = code; 4045 _json["code"] = code;
4046 } 4046 }
4047 if (details != null) { 4047 if (details != null) {
4048 _json["details"] = details; 4048 _json["details"] = details;
4049 } 4049 }
4050 if (message != null) { 4050 if (message != null) {
4051 _json["message"] = message; 4051 _json["message"] = message;
4052 } 4052 }
4053 return _json; 4053 return _json;
(...skipping 11 matching lines...) Expand all
4065 core.List<core.String> permissions; 4065 core.List<core.String> permissions;
4066 4066
4067 TestIamPermissionsRequest(); 4067 TestIamPermissionsRequest();
4068 4068
4069 TestIamPermissionsRequest.fromJson(core.Map _json) { 4069 TestIamPermissionsRequest.fromJson(core.Map _json) {
4070 if (_json.containsKey("permissions")) { 4070 if (_json.containsKey("permissions")) {
4071 permissions = _json["permissions"]; 4071 permissions = _json["permissions"];
4072 } 4072 }
4073 } 4073 }
4074 4074
4075 core.Map toJson() { 4075 core.Map<core.String, core.Object> toJson() {
4076 var _json = new core.Map(); 4076 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4077 if (permissions != null) { 4077 if (permissions != null) {
4078 _json["permissions"] = permissions; 4078 _json["permissions"] = permissions;
4079 } 4079 }
4080 return _json; 4080 return _json;
4081 } 4081 }
4082 } 4082 }
4083 4083
4084 /** Response message for `TestIamPermissions` method. */ 4084 /** Response message for `TestIamPermissions` method. */
4085 class TestIamPermissionsResponse { 4085 class TestIamPermissionsResponse {
4086 /** 4086 /**
4087 * A subset of `TestPermissionsRequest.permissions` that the caller is 4087 * A subset of `TestPermissionsRequest.permissions` that the caller is
4088 * allowed. 4088 * allowed.
4089 */ 4089 */
4090 core.List<core.String> permissions; 4090 core.List<core.String> permissions;
4091 4091
4092 TestIamPermissionsResponse(); 4092 TestIamPermissionsResponse();
4093 4093
4094 TestIamPermissionsResponse.fromJson(core.Map _json) { 4094 TestIamPermissionsResponse.fromJson(core.Map _json) {
4095 if (_json.containsKey("permissions")) { 4095 if (_json.containsKey("permissions")) {
4096 permissions = _json["permissions"]; 4096 permissions = _json["permissions"];
4097 } 4097 }
4098 } 4098 }
4099 4099
4100 core.Map toJson() { 4100 core.Map<core.String, core.Object> toJson() {
4101 var _json = new core.Map(); 4101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4102 if (permissions != null) { 4102 if (permissions != null) {
4103 _json["permissions"] = permissions; 4103 _json["permissions"] = permissions;
4104 } 4104 }
4105 return _json; 4105 return _json;
4106 } 4106 }
4107 } 4107 }
4108 4108
4109 /** 4109 /**
4110 * The request sent to the UndeleteProject 4110 * The request sent to the UndeleteProject
4111 * method. 4111 * method.
4112 */ 4112 */
4113 class UndeleteProjectRequest { 4113 class UndeleteProjectRequest {
4114 4114
4115 UndeleteProjectRequest(); 4115 UndeleteProjectRequest();
4116 4116
4117 UndeleteProjectRequest.fromJson(core.Map _json) { 4117 UndeleteProjectRequest.fromJson(core.Map _json) {
4118 } 4118 }
4119 4119
4120 core.Map toJson() { 4120 core.Map<core.String, core.Object> toJson() {
4121 var _json = new core.Map(); 4121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4122 return _json; 4122 return _json;
4123 } 4123 }
4124 } 4124 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/cloudkms/v1.dart ('k') | generated/googleapis/lib/cloudtrace/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698