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

Unified Diff: generated/googleapis/lib/deploymentmanager/v2.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/datastore/v1.dart ('k') | generated/googleapis/lib/dfareporting/v2_4.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/deploymentmanager/v2.dart
diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart
index 2c7949ce0de7d7dce227b480744bbf25daf35a49..5295d7fa71be64b0ab9a8669909d4f2962ddd0e8 100644
--- a/generated/googleapis/lib/deploymentmanager/v2.dart
+++ b/generated/googleapis/lib/deploymentmanager/v2.dart
@@ -120,6 +120,11 @@ class DeploymentsResourceApi {
* [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
+ * [deletePolicy] - Sets the policy to use for deleting resources.
+ * Possible string values are:
+ * - "ABANDON"
+ * - "DELETE"
+ *
* Completes with a [Operation].
*
* Completes with a [commons.ApiRequestError] if the API endpoint returned an
@@ -128,7 +133,7 @@ class DeploymentsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<Operation> delete(core.String project, core.String deployment) {
+ async.Future<Operation> delete(core.String project, core.String deployment, {core.String deletePolicy}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -142,6 +147,9 @@ class DeploymentsResourceApi {
if (deployment == null) {
throw new core.ArgumentError("Parameter deployment is required.");
}
+ if (deletePolicy != null) {
+ _queryParams["deletePolicy"] = [deletePolicy];
+ }
_url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment');
@@ -1332,10 +1340,12 @@ class TypesResourceApi {
/**
- * Enables "data access" audit logging for a service and specifies a list of
- * members that are log-exempted.
+ * Provides the configuration for non-admin_activity logging for a service.
+ * Controls exemptions and specific log sub-types.
*/
class AuditConfig {
+ /** The configuration for each type of logging */
+ core.List<AuditLogConfig> auditLogConfigs;
/**
* Specifies the identities that are exempted from "data access" audit logging
* for the `service` specified above. Follows the same format of
@@ -1343,15 +1353,18 @@ class AuditConfig {
*/
core.List<core.String> exemptedMembers;
/**
- * Specifies a service that will be enabled for "data access" audit logging.
- * For example, `resourcemanager`, `storage`, `compute`. `allServices` is a
- * special value that covers all services.
+ * Specifies a service that will be enabled for audit logging. For example,
+ * `resourcemanager`, `storage`, `compute`. `allServices` is a special value
+ * that covers all services.
*/
core.String service;
AuditConfig();
AuditConfig.fromJson(core.Map _json) {
+ if (_json.containsKey("auditLogConfigs")) {
+ auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConfig.fromJson(value)).toList();
+ }
if (_json.containsKey("exemptedMembers")) {
exemptedMembers = _json["exemptedMembers"];
}
@@ -1362,6 +1375,9 @@ class AuditConfig {
core.Map toJson() {
var _json = new core.Map();
+ if (auditLogConfigs != null) {
+ _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList();
+ }
if (exemptedMembers != null) {
_json["exemptedMembers"] = exemptedMembers;
}
@@ -1372,6 +1388,39 @@ class AuditConfig {
}
}
+/** Provides the configuration for a sub-type of logging. */
+class AuditLogConfig {
+ /**
+ * Specifies the identities that are exempted from this type of logging
+ * Follows the same format of Binding.members.
+ */
+ core.List<core.String> exemptedMembers;
+ /** The log type that this config enables. */
+ core.String logType;
+
+ AuditLogConfig();
+
+ AuditLogConfig.fromJson(core.Map _json) {
+ if (_json.containsKey("exemptedMembers")) {
+ exemptedMembers = _json["exemptedMembers"];
+ }
+ if (_json.containsKey("logType")) {
+ logType = _json["logType"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (exemptedMembers != null) {
+ _json["exemptedMembers"] = exemptedMembers;
+ }
+ if (logType != null) {
+ _json["logType"] = logType;
+ }
+ return _json;
+ }
+}
+
/** Associates `members` with a `role`. */
class Binding {
/**
« no previous file with comments | « generated/googleapis/lib/datastore/v1.dart ('k') | generated/googleapis/lib/dfareporting/v2_4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698