OLD | NEW |
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.deploymentmanager.v2; | 3 library googleapis.deploymentmanager.v2; |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 * Gets the access control policy for a resource. May be empty if no such | 214 * Gets the access control policy for a resource. May be empty if no such |
215 * policy or resource exists. | 215 * policy or resource exists. |
216 * | 216 * |
217 * Request parameters: | 217 * Request parameters: |
218 * | 218 * |
219 * [project] - Project ID for this request. | 219 * [project] - Project ID for this request. |
220 * Value must have pattern | 220 * Value must have pattern |
221 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 221 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
222 * | 222 * |
223 * [resource] - Name of the resource for this request. | 223 * [resource] - Name of the resource for this request. |
224 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". | 224 * Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?". |
225 * | 225 * |
226 * Completes with a [Policy]. | 226 * Completes with a [Policy]. |
227 * | 227 * |
228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
229 * error. | 229 * error. |
230 * | 230 * |
231 * If the used [http.Client] completes with an error when making a REST call, | 231 * If the used [http.Client] completes with an error when making a REST call, |
232 * this method will complete with the same error. | 232 * this method will complete with the same error. |
233 */ | 233 */ |
234 async.Future<Policy> getIamPolicy(core.String project, core.String resource) { | 234 async.Future<Policy> getIamPolicy(core.String project, core.String resource) { |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 * | 505 * |
506 * [request] - The metadata request object. | 506 * [request] - The metadata request object. |
507 * | 507 * |
508 * Request parameters: | 508 * Request parameters: |
509 * | 509 * |
510 * [project] - Project ID for this request. | 510 * [project] - Project ID for this request. |
511 * Value must have pattern | 511 * Value must have pattern |
512 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 512 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
513 * | 513 * |
514 * [resource] - Name of the resource for this request. | 514 * [resource] - Name of the resource for this request. |
515 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". | 515 * Value must have pattern "[a-z0-9](?:[-a-z0-9_]{0,61}[a-z0-9])?". |
516 * | 516 * |
517 * Completes with a [Policy]. | 517 * Completes with a [Policy]. |
518 * | 518 * |
519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
520 * error. | 520 * error. |
521 * | 521 * |
522 * If the used [http.Client] completes with an error when making a REST call, | 522 * If the used [http.Client] completes with an error when making a REST call, |
523 * this method will complete with the same error. | 523 * this method will complete with the same error. |
524 */ | 524 */ |
525 async.Future<Policy> setIamPolicy(Policy request, core.String project, core.St
ring resource) { | 525 async.Future<Policy> setIamPolicy(Policy request, core.String project, core.St
ring resource) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 * | 610 * |
611 * [request] - The metadata request object. | 611 * [request] - The metadata request object. |
612 * | 612 * |
613 * Request parameters: | 613 * Request parameters: |
614 * | 614 * |
615 * [project] - Project ID for this request. | 615 * [project] - Project ID for this request. |
616 * Value must have pattern | 616 * Value must have pattern |
617 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". | 617 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
618 * | 618 * |
619 * [resource] - Name of the resource for this request. | 619 * [resource] - Name of the resource for this request. |
620 * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". | 620 * Value must have pattern "(?:[-a-z0-9_]{0,62}[a-z0-9])?". |
621 * | 621 * |
622 * Completes with a [TestPermissionsResponse]. | 622 * Completes with a [TestPermissionsResponse]. |
623 * | 623 * |
624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 624 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
625 * error. | 625 * error. |
626 * | 626 * |
627 * If the used [http.Client] completes with an error when making a REST call, | 627 * If the used [http.Client] completes with an error when making a REST call, |
628 * this method will complete with the same error. | 628 * this method will complete with the same error. |
629 */ | 629 */ |
630 async.Future<TestPermissionsResponse> testIamPermissions(TestPermissionsReques
t request, core.String project, core.String resource) { | 630 async.Future<TestPermissionsResponse> testIamPermissions(TestPermissionsReques
t request, core.String project, core.String resource) { |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 if (exemptedMembers != null) { | 1436 if (exemptedMembers != null) { |
1437 _json["exemptedMembers"] = exemptedMembers; | 1437 _json["exemptedMembers"] = exemptedMembers; |
1438 } | 1438 } |
1439 if (logType != null) { | 1439 if (logType != null) { |
1440 _json["logType"] = logType; | 1440 _json["logType"] = logType; |
1441 } | 1441 } |
1442 return _json; | 1442 return _json; |
1443 } | 1443 } |
1444 } | 1444 } |
1445 | 1445 |
| 1446 /** Authorization-related information used by Cloud Audit Logging. */ |
| 1447 class AuthorizationLoggingOptions { |
| 1448 /** The type of the permission that was checked. */ |
| 1449 core.String permissionType; |
| 1450 |
| 1451 AuthorizationLoggingOptions(); |
| 1452 |
| 1453 AuthorizationLoggingOptions.fromJson(core.Map _json) { |
| 1454 if (_json.containsKey("permissionType")) { |
| 1455 permissionType = _json["permissionType"]; |
| 1456 } |
| 1457 } |
| 1458 |
| 1459 core.Map<core.String, core.Object> toJson() { |
| 1460 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1461 if (permissionType != null) { |
| 1462 _json["permissionType"] = permissionType; |
| 1463 } |
| 1464 return _json; |
| 1465 } |
| 1466 } |
| 1467 |
1446 /** Associates `members` with a `role`. */ | 1468 /** Associates `members` with a `role`. */ |
1447 class Binding { | 1469 class Binding { |
1448 /** | 1470 /** |
1449 * The condition that is associated with this binding. NOTE: an unsatisfied | 1471 * The condition that is associated with this binding. NOTE: an unsatisfied |
1450 * condition will not allow user access via current binding. Different | 1472 * condition will not allow user access via current binding. Different |
1451 * bindings, including their conditions, are examined independently. This | 1473 * bindings, including their conditions, are examined independently. This |
1452 * field is GOOGLE_INTERNAL. | 1474 * field is GOOGLE_INTERNAL. |
1453 */ | 1475 */ |
1454 Expr condition; | 1476 Expr condition; |
1455 /** | 1477 /** |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 return _json; | 2081 return _json; |
2060 } | 2082 } |
2061 } | 2083 } |
2062 | 2084 |
2063 /** Specifies what kind of log the caller must write */ | 2085 /** Specifies what kind of log the caller must write */ |
2064 class LogConfig { | 2086 class LogConfig { |
2065 /** Cloud audit options. */ | 2087 /** Cloud audit options. */ |
2066 LogConfigCloudAuditOptions cloudAudit; | 2088 LogConfigCloudAuditOptions cloudAudit; |
2067 /** Counter options. */ | 2089 /** Counter options. */ |
2068 LogConfigCounterOptions counter; | 2090 LogConfigCounterOptions counter; |
| 2091 /** Data access options. */ |
| 2092 LogConfigDataAccessOptions dataAccess; |
2069 | 2093 |
2070 LogConfig(); | 2094 LogConfig(); |
2071 | 2095 |
2072 LogConfig.fromJson(core.Map _json) { | 2096 LogConfig.fromJson(core.Map _json) { |
2073 if (_json.containsKey("cloudAudit")) { | 2097 if (_json.containsKey("cloudAudit")) { |
2074 cloudAudit = new LogConfigCloudAuditOptions.fromJson(_json["cloudAudit"]); | 2098 cloudAudit = new LogConfigCloudAuditOptions.fromJson(_json["cloudAudit"]); |
2075 } | 2099 } |
2076 if (_json.containsKey("counter")) { | 2100 if (_json.containsKey("counter")) { |
2077 counter = new LogConfigCounterOptions.fromJson(_json["counter"]); | 2101 counter = new LogConfigCounterOptions.fromJson(_json["counter"]); |
2078 } | 2102 } |
| 2103 if (_json.containsKey("dataAccess")) { |
| 2104 dataAccess = new LogConfigDataAccessOptions.fromJson(_json["dataAccess"]); |
| 2105 } |
2079 } | 2106 } |
2080 | 2107 |
2081 core.Map<core.String, core.Object> toJson() { | 2108 core.Map<core.String, core.Object> toJson() { |
2082 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2083 if (cloudAudit != null) { | 2110 if (cloudAudit != null) { |
2084 _json["cloudAudit"] = (cloudAudit).toJson(); | 2111 _json["cloudAudit"] = (cloudAudit).toJson(); |
2085 } | 2112 } |
2086 if (counter != null) { | 2113 if (counter != null) { |
2087 _json["counter"] = (counter).toJson(); | 2114 _json["counter"] = (counter).toJson(); |
2088 } | 2115 } |
| 2116 if (dataAccess != null) { |
| 2117 _json["dataAccess"] = (dataAccess).toJson(); |
| 2118 } |
2089 return _json; | 2119 return _json; |
2090 } | 2120 } |
2091 } | 2121 } |
2092 | 2122 |
2093 /** Write a Cloud Audit log */ | 2123 /** Write a Cloud Audit log */ |
2094 class LogConfigCloudAuditOptions { | 2124 class LogConfigCloudAuditOptions { |
| 2125 /** Information used by the Cloud Audit Logging pipeline. */ |
| 2126 AuthorizationLoggingOptions authorizationLoggingOptions; |
2095 /** The log_name to populate in the Cloud Audit Record. */ | 2127 /** The log_name to populate in the Cloud Audit Record. */ |
2096 core.String logName; | 2128 core.String logName; |
2097 | 2129 |
2098 LogConfigCloudAuditOptions(); | 2130 LogConfigCloudAuditOptions(); |
2099 | 2131 |
2100 LogConfigCloudAuditOptions.fromJson(core.Map _json) { | 2132 LogConfigCloudAuditOptions.fromJson(core.Map _json) { |
| 2133 if (_json.containsKey("authorizationLoggingOptions")) { |
| 2134 authorizationLoggingOptions = new AuthorizationLoggingOptions.fromJson(_js
on["authorizationLoggingOptions"]); |
| 2135 } |
2101 if (_json.containsKey("logName")) { | 2136 if (_json.containsKey("logName")) { |
2102 logName = _json["logName"]; | 2137 logName = _json["logName"]; |
2103 } | 2138 } |
2104 } | 2139 } |
2105 | 2140 |
2106 core.Map<core.String, core.Object> toJson() { | 2141 core.Map<core.String, core.Object> toJson() { |
2107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2142 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2143 if (authorizationLoggingOptions != null) { |
| 2144 _json["authorizationLoggingOptions"] = (authorizationLoggingOptions).toJso
n(); |
| 2145 } |
2108 if (logName != null) { | 2146 if (logName != null) { |
2109 _json["logName"] = logName; | 2147 _json["logName"] = logName; |
2110 } | 2148 } |
2111 return _json; | 2149 return _json; |
2112 } | 2150 } |
2113 } | 2151 } |
2114 | 2152 |
2115 /** Options for counters */ | 2153 /** |
| 2154 * Increment a streamz counter with the specified metric and field names. |
| 2155 * |
| 2156 * Metric names should start with a '/', generally be lowercase-only, and end in |
| 2157 * "_count". Field names should not contain an initial slash. The actual |
| 2158 * exported metric names will have "/iam/policy" prepended. |
| 2159 * |
| 2160 * Field names correspond to IAM request parameters and field values are their |
| 2161 * respective values. |
| 2162 * |
| 2163 * At present the only supported field names are - "iam_principal", |
| 2164 * corresponding to IAMContext.principal; - "" (empty string), resulting in one |
| 2165 * aggretated counter with no field. |
| 2166 * |
| 2167 * Examples: counter { metric: "/debug_access_count" field: "iam_principal" } |
| 2168 * ==> increment counter /iam/policy/backend_debug_access_count |
| 2169 * {iam_principal=[value of IAMContext.principal]} |
| 2170 * |
| 2171 * At this time we do not support: * multiple field names (though this may be |
| 2172 * supported in the future) * decrementing the counter * incrementing it by |
| 2173 * anything other than 1 |
| 2174 */ |
2116 class LogConfigCounterOptions { | 2175 class LogConfigCounterOptions { |
2117 /** The field value to attribute. */ | 2176 /** The field value to attribute. */ |
2118 core.String field; | 2177 core.String field; |
2119 /** The metric to update. */ | 2178 /** The metric to update. */ |
2120 core.String metric; | 2179 core.String metric; |
2121 | 2180 |
2122 LogConfigCounterOptions(); | 2181 LogConfigCounterOptions(); |
2123 | 2182 |
2124 LogConfigCounterOptions.fromJson(core.Map _json) { | 2183 LogConfigCounterOptions.fromJson(core.Map _json) { |
2125 if (_json.containsKey("field")) { | 2184 if (_json.containsKey("field")) { |
2126 field = _json["field"]; | 2185 field = _json["field"]; |
2127 } | 2186 } |
2128 if (_json.containsKey("metric")) { | 2187 if (_json.containsKey("metric")) { |
2129 metric = _json["metric"]; | 2188 metric = _json["metric"]; |
2130 } | 2189 } |
2131 } | 2190 } |
2132 | 2191 |
2133 core.Map<core.String, core.Object> toJson() { | 2192 core.Map<core.String, core.Object> toJson() { |
2134 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2193 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2135 if (field != null) { | 2194 if (field != null) { |
2136 _json["field"] = field; | 2195 _json["field"] = field; |
2137 } | 2196 } |
2138 if (metric != null) { | 2197 if (metric != null) { |
2139 _json["metric"] = metric; | 2198 _json["metric"] = metric; |
2140 } | 2199 } |
2141 return _json; | 2200 return _json; |
2142 } | 2201 } |
2143 } | 2202 } |
2144 | 2203 |
| 2204 /** Write a Data Access (Gin) log */ |
| 2205 class LogConfigDataAccessOptions { |
| 2206 /** |
| 2207 * Whether Gin logging should happen in a fail-closed manner at the caller. |
| 2208 * This is relevant only in the LocalIAM implementation, for now. |
| 2209 */ |
| 2210 core.String logMode; |
| 2211 |
| 2212 LogConfigDataAccessOptions(); |
| 2213 |
| 2214 LogConfigDataAccessOptions.fromJson(core.Map _json) { |
| 2215 if (_json.containsKey("logMode")) { |
| 2216 logMode = _json["logMode"]; |
| 2217 } |
| 2218 } |
| 2219 |
| 2220 core.Map<core.String, core.Object> toJson() { |
| 2221 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2222 if (logMode != null) { |
| 2223 _json["logMode"] = logMode; |
| 2224 } |
| 2225 return _json; |
| 2226 } |
| 2227 } |
| 2228 |
2145 class Manifest { | 2229 class Manifest { |
2146 /** [Output Only] The YAML configuration for this manifest. */ | 2230 /** [Output Only] The YAML configuration for this manifest. */ |
2147 ConfigFile config; | 2231 ConfigFile config; |
2148 /** | 2232 /** |
2149 * [Output Only] The fully-expanded configuration file, including any | 2233 * [Output Only] The fully-expanded configuration file, including any |
2150 * templates and references. | 2234 * templates and references. |
2151 */ | 2235 */ |
2152 core.String expandedConfig; | 2236 core.String expandedConfig; |
2153 /** | 2237 /** |
2154 * [Output Only] Unique identifier for the resource; defined by the server. | 2238 * [Output Only] Unique identifier for the resource; defined by the server. |
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3578 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3579 if (nextPageToken != null) { | 3663 if (nextPageToken != null) { |
3580 _json["nextPageToken"] = nextPageToken; | 3664 _json["nextPageToken"] = nextPageToken; |
3581 } | 3665 } |
3582 if (types != null) { | 3666 if (types != null) { |
3583 _json["types"] = types.map((value) => (value).toJson()).toList(); | 3667 _json["types"] = types.map((value) => (value).toJson()).toList(); |
3584 } | 3668 } |
3585 return _json; | 3669 return _json; |
3586 } | 3670 } |
3587 } | 3671 } |
OLD | NEW |