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

Unified Diff: generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart
diff --git a/generated/googleapis_beta/lib/deploymentmanager/v2beta1.dart b/generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart
similarity index 53%
copy from generated/googleapis_beta/lib/deploymentmanager/v2beta1.dart
copy to generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart
index 83b013c38a6f7be0c613c0a1973ce705a3bd032c..601e8b002bd45bf7c4305d045a455d4e7c66ceca 100644
--- a/generated/googleapis_beta/lib/deploymentmanager/v2beta1.dart
+++ b/generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart
@@ -1,18 +1,19 @@
// This is a generated file (see the discoveryapis_generator project).
-library googleapis_beta.deploymentmanager.v2beta1;
+library googleapis_beta.deploymentmanager.v2beta2;
import 'dart:core' as core;
import 'dart:async' as async;
import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
+import 'package:crypto/crypto.dart' as crypto;
import 'package:http/http.dart' as http;
export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
ApiRequestError, DetailedApiRequestError;
-const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2beta1';
+const core.String USER_AGENT = 'dart-api-client deploymentmanager/v2beta2';
/**
* The Deployment Manager API allows users to declaratively configure, deploy
@@ -23,6 +24,12 @@ class DeploymentmanagerApi {
static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
/**
+ * MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform
+ * services
+ */
+ static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ /**
* View and manage your Google Cloud Platform management resources and
* deployment status information
*/
@@ -43,7 +50,7 @@ class DeploymentmanagerApi {
ResourcesResourceApi get resources => new ResourcesResourceApi(_requester);
TypesResourceApi get types => new TypesResourceApi(_requester);
- DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "deploymentmanager/v2beta1/projects/"}) :
+ DeploymentmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "deploymentmanager/v2beta2/projects/"}) :
_requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
@@ -55,15 +62,15 @@ class DeploymentsResourceApi {
_requester = client;
/**
- * ! Deletes a deployment and all of the resources in the deployment.
+ * Deletes a deployment and all of the resources in the deployment.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
@@ -102,15 +109,15 @@ class DeploymentsResourceApi {
}
/**
- * ! Gets information about a specific deployment.
+ * Gets information about a specific deployment.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Deployment].
@@ -149,14 +156,14 @@ class DeploymentsResourceApi {
}
/**
- * ! Creates a deployment and all of the resources described by the !
- * deployment manifest.
+ * Creates a deployment and all of the resources described by the deployment
+ * manifest.
*
* [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
@@ -196,21 +203,34 @@ class DeploymentsResourceApi {
}
/**
- * ! Lists all deployments for a given project.
+ * Lists all deployments for a given project.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [maxResults] - ! Maximum count of results to be returned. ! Acceptable
- * values are 0 to 100, inclusive. (Default: 50)
- * Value must be between "0" and "100".
+ * [filter] - Sets a filter expression for filtering listed resources, in the
+ * form filter={expression}. Your {expression} must be in the format:
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING.
+ *
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The COMPARISON_STRING
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field (string, number, boolean). For string fields, the literal value is
+ * interpreted as a regular expression using RE2 syntax. The literal value
+ * must match the entire field.
+ *
+ * For example, filter=name ne example-instance.
+ *
+ * [maxResults] - Maximum count of results to be returned.
+ * Value must be between "0" and "500".
*
- * [pageToken] - ! Specifies a nextPageToken returned by a previous list
- * request. This ! token can be used to request the next page of results from
- * a previous ! list request.
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want
+ * to list the next page of results. Set pageToken to the nextPageToken
+ * returned by a previous list request.
*
* Completes with a [DeploymentsListResponse].
*
@@ -220,7 +240,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<DeploymentsListResponse> list(core.String project, {core.int maxResults, core.String pageToken}) {
+ async.Future<DeploymentsListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -231,6 +251,9 @@ class DeploymentsResourceApi {
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
}
@@ -250,6 +273,160 @@ class DeploymentsResourceApi {
return _response.then((data) => new DeploymentsListResponse.fromJson(data));
}
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest. This method supports patch semantics.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [project] - The project ID for this request.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
+ *
+ * [deployment] - The name of the deployment for this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ *
+ * [createPolicy] - Sets the policy to use for creating new resources.
+ * Possible string values are:
+ * - "ACQUIRE"
+ * - "CREATE_OR_ACQUIRE"
+ *
+ * [deletePolicy] - Sets the policy to use for deleting resources.
+ * Possible string values are:
+ * - "ABANDON"
+ * - "DELETE"
+ *
+ * [updatePolicy] - Sets the policy to use for updating resources.
+ * Possible string values are:
+ * - "PATCH"
+ * - "UPDATE"
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * 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> patch(Deployment request, core.String project, core.String deployment, {core.String createPolicy, core.String deletePolicy, core.String updatePolicy}) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (project == null) {
+ throw new core.ArgumentError("Parameter project is required.");
+ }
+ if (deployment == null) {
+ throw new core.ArgumentError("Parameter deployment is required.");
+ }
+ if (createPolicy != null) {
+ _queryParams["createPolicy"] = [createPolicy];
+ }
+ if (deletePolicy != null) {
+ _queryParams["deletePolicy"] = [deletePolicy];
+ }
+ if (updatePolicy != null) {
+ _queryParams["updatePolicy"] = [updatePolicy];
+ }
+
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment');
+
+ var _response = _requester.request(_url,
+ "PATCH",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
+
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [project] - The project ID for this request.
+ * Value must have pattern
+ * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
+ *
+ * [deployment] - The name of the deployment for this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ *
+ * [createPolicy] - Sets the policy to use for creating new resources.
+ * Possible string values are:
+ * - "ACQUIRE"
+ * - "CREATE_OR_ACQUIRE"
+ *
+ * [deletePolicy] - Sets the policy to use for deleting resources.
+ * Possible string values are:
+ * - "ABANDON"
+ * - "DELETE"
+ *
+ * [updatePolicy] - Sets the policy to use for updating resources.
+ * Possible string values are:
+ * - "PATCH"
+ * - "UPDATE"
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [commons.ApiRequestError] if the API endpoint returned an
+ * error.
+ *
+ * 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> update(Deployment request, core.String project, core.String deployment, {core.String createPolicy, core.String deletePolicy, core.String updatePolicy}) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = commons.DownloadOptions.Metadata;
+ var _body = null;
+
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (project == null) {
+ throw new core.ArgumentError("Parameter project is required.");
+ }
+ if (deployment == null) {
+ throw new core.ArgumentError("Parameter deployment is required.");
+ }
+ if (createPolicy != null) {
+ _queryParams["createPolicy"] = [createPolicy];
+ }
+ if (deletePolicy != null) {
+ _queryParams["deletePolicy"] = [deletePolicy];
+ }
+ if (updatePolicy != null) {
+ _queryParams["updatePolicy"] = [updatePolicy];
+ }
+
+ _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment');
+
+ var _response = _requester.request(_url,
+ "PUT",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
+
}
@@ -260,19 +437,19 @@ class ManifestsResourceApi {
_requester = client;
/**
- * ! Gets information about a specific manifest.
+ * Gets information about a specific manifest.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [manifest] - ! The name of the manifest for this request.
- * Value must have pattern "[-a-z0-9]{1,61}".
+ * [manifest] - The name of the manifest for this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Manifest].
*
@@ -313,24 +490,37 @@ class ManifestsResourceApi {
}
/**
- * ! Lists all manifests for a given deployment.
+ * Lists all manifests for a given deployment.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [maxResults] - ! Maximum count of results to be returned. ! Acceptable
- * values are 0 to 100, inclusive. (Default: 50)
- * Value must be between "0" and "100".
+ * [filter] - Sets a filter expression for filtering listed resources, in the
+ * form filter={expression}. Your {expression} must be in the format:
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING.
+ *
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The COMPARISON_STRING
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field (string, number, boolean). For string fields, the literal value is
+ * interpreted as a regular expression using RE2 syntax. The literal value
+ * must match the entire field.
*
- * [pageToken] - ! Specifies a nextPageToken returned by a previous list
- * request. This ! token can be used to request the next page of results from
- * a previous ! list request.
+ * For example, filter=name ne example-instance.
+ *
+ * [maxResults] - Maximum count of results to be returned.
+ * Value must be between "0" and "500".
+ *
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want
+ * to list the next page of results. Set pageToken to the nextPageToken
+ * returned by a previous list request.
*
* Completes with a [ManifestsListResponse].
*
@@ -340,7 +530,7 @@ class ManifestsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ManifestsListResponse> list(core.String project, core.String deployment, {core.int maxResults, core.String pageToken}) {
+ async.Future<ManifestsListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -354,6 +544,9 @@ class ManifestsResourceApi {
if (deployment == null) {
throw new core.ArgumentError("Parameter deployment is required.");
}
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
}
@@ -383,15 +576,15 @@ class OperationsResourceApi {
_requester = client;
/**
- * ! Gets information about a specific Operation.
+ * Gets information about a specific operation.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [operation] - ! The name of the operation for this request.
+ * [operation] - The name of the operation for this request.
*
* Completes with a [Operation].
*
@@ -429,21 +622,34 @@ class OperationsResourceApi {
}
/**
- * ! Lists all Operations for a project.
+ * Lists all operations for a project.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [maxResults] - ! Maximum count of results to be returned. ! Acceptable
- * values are 0 to 100, inclusive. (Default: 50)
- * Value must be between "0" and "100".
+ * [filter] - Sets a filter expression for filtering listed resources, in the
+ * form filter={expression}. Your {expression} must be in the format:
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING.
*
- * [pageToken] - ! Specifies a nextPageToken returned by a previous list
- * request. This ! token can be used to request the next page of results from
- * a previous ! list request.
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The COMPARISON_STRING
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field (string, number, boolean). For string fields, the literal value is
+ * interpreted as a regular expression using RE2 syntax. The literal value
+ * must match the entire field.
+ *
+ * For example, filter=name ne example-instance.
+ *
+ * [maxResults] - Maximum count of results to be returned.
+ * Value must be between "0" and "500".
+ *
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want
+ * to list the next page of results. Set pageToken to the nextPageToken
+ * returned by a previous list request.
*
* Completes with a [OperationsListResponse].
*
@@ -453,7 +659,7 @@ class OperationsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<OperationsListResponse> list(core.String project, {core.int maxResults, core.String pageToken}) {
+ async.Future<OperationsListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -464,6 +670,9 @@ class OperationsResourceApi {
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
}
@@ -493,19 +702,18 @@ class ResourcesResourceApi {
_requester = client;
/**
- * ! Gets information about a single resource.
+ * Gets information about a single resource.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [resource] - ! The name of the resource for this request.
- * Value must have pattern "[-a-z0-9]{1,61}".
+ * [resource] - The name of the resource for this request.
*
* Completes with a [Resource].
*
@@ -546,24 +754,37 @@ class ResourcesResourceApi {
}
/**
- * ! Lists all resources in a given deployment.
+ * Lists all resources in a given deployment.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [deployment] - ! The name of the deployment for this request.
+ * [deployment] - The name of the deployment for this request.
* Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [maxResults] - ! Maximum count of results to be returned. ! Acceptable
- * values are 0 to 100, inclusive. (Default: 50)
- * Value must be between "0" and "100".
+ * [filter] - Sets a filter expression for filtering listed resources, in the
+ * form filter={expression}. Your {expression} must be in the format:
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING.
+ *
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The COMPARISON_STRING
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field (string, number, boolean). For string fields, the literal value is
+ * interpreted as a regular expression using RE2 syntax. The literal value
+ * must match the entire field.
+ *
+ * For example, filter=name ne example-instance.
*
- * [pageToken] - ! Specifies a nextPageToken returned by a previous list
- * request. This ! token can be used to request the next page of results from
- * a previous ! list request.
+ * [maxResults] - Maximum count of results to be returned.
+ * Value must be between "0" and "500".
+ *
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want
+ * to list the next page of results. Set pageToken to the nextPageToken
+ * returned by a previous list request.
*
* Completes with a [ResourcesListResponse].
*
@@ -573,7 +794,7 @@ class ResourcesResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<ResourcesListResponse> list(core.String project, core.String deployment, {core.int maxResults, core.String pageToken}) {
+ async.Future<ResourcesListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -587,6 +808,9 @@ class ResourcesResourceApi {
if (deployment == null) {
throw new core.ArgumentError("Parameter deployment is required.");
}
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
}
@@ -616,21 +840,34 @@ class TypesResourceApi {
_requester = client;
/**
- * ! Lists all Types for Deployment Manager.
+ * Lists all resource types for Deployment Manager.
*
* Request parameters:
*
- * [project] - ! The project ID for this request.
+ * [project] - The project ID for this request.
* Value must have pattern
* "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))".
*
- * [maxResults] - ! Maximum count of results to be returned. ! Acceptable
- * values are 0 to 100, inclusive. (Default: 50)
- * Value must be between "0" and "100".
+ * [filter] - Sets a filter expression for filtering listed resources, in the
+ * form filter={expression}. Your {expression} must be in the format:
+ * FIELD_NAME COMPARISON_STRING LITERAL_STRING.
+ *
+ * The FIELD_NAME is the name of the field you want to compare. Only atomic
+ * field types are supported (string, number, boolean). The COMPARISON_STRING
+ * must be either eq (equals) or ne (not equals). The LITERAL_STRING is the
+ * string value to filter to. The literal value must be valid for the type of
+ * field (string, number, boolean). For string fields, the literal value is
+ * interpreted as a regular expression using RE2 syntax. The literal value
+ * must match the entire field.
*
- * [pageToken] - ! Specifies a nextPageToken returned by a previous list
- * request. This ! token can be used to request the next page of results from
- * a previous ! list request.
+ * For example, filter=name ne example-instance.
+ *
+ * [maxResults] - Maximum count of results to be returned.
+ * Value must be between "0" and "500".
+ *
+ * [pageToken] - Specifies a page token to use. Use this parameter if you want
+ * to list the next page of results. Set pageToken to the nextPageToken
+ * returned by a previous list request.
*
* Completes with a [TypesListResponse].
*
@@ -640,7 +877,7 @@ class TypesResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<TypesListResponse> list(core.String project, {core.int maxResults, core.String pageToken}) {
+ async.Future<TypesListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -651,6 +888,9 @@ class TypesResourceApi {
if (project == null) {
throw new core.ArgumentError("Parameter project is required.");
}
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
}
@@ -674,28 +914,94 @@ class TypesResourceApi {
-/** Next available tag: 8 */
class Deployment {
- /** ! An optional user-provided description of the deployment. */
+ /** An optional user-provided description of the deployment. */
core.String description;
/**
+ * Specifies a fingerprint for update() requests. A fingerprint is a randomly
+ * generated value that must be provided in update() requests to perform
+ * optimistic locking. This ensures optimistic concurrency so that only one
+ * update can be performed at a time. The fingerprint is initially generated
+ * by Deployment Manager and changes after every request to modify data. To
+ * get the latest fingerprint value, perform a get() request to a deployment.
+ */
+ core.String fingerprint;
+ core.List<core.int> get fingerprintAsBytes {
+ return crypto.CryptoUtils.base64StringToBytes(fingerprint);
+ }
+
+ void set fingerprintAsBytes(core.List<core.int> _bytes) {
+ fingerprint = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
+ }
+ /**
* [Output Only] Unique identifier for the resource; defined by the server.
*/
core.String id;
/**
- * ! [Output Only] URL of the manifest representing the full configuration !
- * of this deployment.
+ * [Output Only] Timestamp when the deployment was created, in RFC3339 text
+ * format .
+ */
+ core.String insertTime;
+ /**
+ * [Input Only] Specifies how Deployment Manager should apply this template.
+ * Possible options are PREVIEW, UPDATE, and CANCEL.
+ *
+ * PREVIEW creates a deployment and creates "shell" resources but does not
+ * actually instantiate these resources. This allows you to preview what your
+ * deployment looks like. You can use this intent to preview updates to
+ * deployments or preview new deployments. You must provide a target.config
+ * with a configuration for this intent. After previewing a deployment, you
+ * can deploy your resources by making a request with the UPDATE intent or you
+ * can CANCEL the preview altogether. Note that the deployment will still
+ * exist after you cancel the preview and you must separately delete this
+ * deployment if you want to remove it.
+ *
+ * UPDATE performs an update to the underlying resources in a deployment. If
+ * you provide a populated target.config field with this request, Deployment
+ * Manager uses that configuration to perform an update. If you had previewed
+ * this update beforehand, and do not supply a target.config or provide an
+ * empty target.config, Deployment Manager uses the last previewed
+ * configuration.
+ *
+ * CANCEL cancels an update that is in PREVIEW or UPDATE but does not undo any
+ * changes already made.
+ */
+ core.String intent;
+ /**
+ * [Output Only] URL of the manifest representing the last manifest that was
+ * successfully deployed.
*/
core.String manifest;
- /** ! The name of the deployment, which must be unique within the project. */
+ /**
+ * Name of the resource; provided by the client when the resource is created.
+ * The name must be 1-63 characters long, and comply with RFC1035.
+ * Specifically, the name must be 1-63 characters long and match the regular
+ * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must
+ * be a lowercase letter, and all following characters must be a dash,
+ * lowercase letter, or digit, except the last character, which cannot be a
+ * dash.
+ */
core.String name;
/**
- * ! [Input Only] The YAML configuration to use in processing this deployment.
- * ! ! When you create a deployment, the server creates a new manifest with
- * the ! given YAML configuration and sets the `manifest` property to the URL
- * of ! the manifest resource.
+ * [Output Only] The current state of the deployment. This can be DEPLOYED,
+ * DEPLOYMENT_FAILED, PREVIEWING, UPDATING, and CANCELING.
+ */
+ core.String state;
+ /**
+ * [Input Only] The parameters that define your deployment, including the
+ * deployment configuration and relevant templates.
+ */
+ TargetConfiguration target;
+ /**
+ * [Output Only] If Deployment Manager is currently updating or previewing an
+ * update to this deployment, the updated configuration appears here.
+ */
+ DeploymentUpdate update;
+ /**
+ * [Output Only] Timestamp when the deployment was updated, in RFC3339 text
+ * format .
*/
- core.String targetConfig;
+ core.String updateTime;
Deployment();
@@ -703,17 +1009,35 @@ class Deployment {
if (_json.containsKey("description")) {
description = _json["description"];
}
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
+ }
if (_json.containsKey("id")) {
id = _json["id"];
}
+ if (_json.containsKey("insertTime")) {
+ insertTime = _json["insertTime"];
+ }
+ if (_json.containsKey("intent")) {
+ intent = _json["intent"];
+ }
if (_json.containsKey("manifest")) {
manifest = _json["manifest"];
}
if (_json.containsKey("name")) {
name = _json["name"];
}
- if (_json.containsKey("targetConfig")) {
- targetConfig = _json["targetConfig"];
+ if (_json.containsKey("state")) {
+ state = _json["state"];
+ }
+ if (_json.containsKey("target")) {
+ target = new TargetConfiguration.fromJson(_json["target"]);
+ }
+ if (_json.containsKey("update")) {
+ update = new DeploymentUpdate.fromJson(_json["update"]);
+ }
+ if (_json.containsKey("updateTime")) {
+ updateTime = _json["updateTime"];
}
}
@@ -722,31 +1046,83 @@ class Deployment {
if (description != null) {
_json["description"] = description;
}
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
+ }
if (id != null) {
_json["id"] = id;
}
+ if (insertTime != null) {
+ _json["insertTime"] = insertTime;
+ }
+ if (intent != null) {
+ _json["intent"] = intent;
+ }
if (manifest != null) {
_json["manifest"] = manifest;
}
if (name != null) {
_json["name"] = name;
}
- if (targetConfig != null) {
- _json["targetConfig"] = targetConfig;
+ if (state != null) {
+ _json["state"] = state;
+ }
+ if (target != null) {
+ _json["target"] = (target).toJson();
+ }
+ if (update != null) {
+ _json["update"] = (update).toJson();
+ }
+ if (updateTime != null) {
+ _json["updateTime"] = updateTime;
+ }
+ return _json;
+ }
+}
+
+class DeploymentUpdate {
+ /**
+ * [Output Only] List of all errors encountered while trying to enact the
+ * update.
+ */
+ core.List<core.String> errors;
+ /**
+ * [Output Only] URL of the manifest representing the update configuration of
+ * this deployment.
+ */
+ core.String manifest;
+
+ DeploymentUpdate();
+
+ DeploymentUpdate.fromJson(core.Map _json) {
+ if (_json.containsKey("errors")) {
+ errors = _json["errors"];
+ }
+ if (_json.containsKey("manifest")) {
+ manifest = _json["manifest"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (errors != null) {
+ _json["errors"] = errors;
+ }
+ if (manifest != null) {
+ _json["manifest"] = manifest;
}
return _json;
}
}
/**
- * ! A response containing a partial list of deployments and a page token used !
- * to build the next request if the request has been truncated. Next available
- * tag: 4
+ * A response containing a partial list of deployments and a page token used to
+ * build the next request if the request has been truncated.
*/
class DeploymentsListResponse {
- /** ! The deployments contained in this response. */
+ /** [Output Only] The deployments contained in this response. */
core.List<Deployment> deployments;
- /** ! A token used to continue a truncated list request. */
+ /** [Output Only] A token used to continue a truncated list request. */
core.String nextPageToken;
DeploymentsListResponse();
@@ -772,15 +1148,40 @@ class DeploymentsListResponse {
}
}
-/** Next available tag: 10 */
+class ImportFile {
+ /** The contents of the file. */
+ core.String content;
+ /** The name of the file. */
+ core.String name;
+
+ ImportFile();
+
+ ImportFile.fromJson(core.Map _json) {
+ if (_json.containsKey("content")) {
+ content = _json["content"];
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (content != null) {
+ _json["content"] = content;
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ return _json;
+ }
+}
+
class Manifest {
- /**
- * v2beta1: YAML with config - described above v2beta2: YAML + templates. !
- * The YAML configuration for this manifest.
- */
+ /** [Output Only] The YAML configuration for this manifest. */
core.String config;
/**
- * ! [Output Only] The fully-expanded configuration file, including any !
+ * [Output Only] The fully-expanded configuration file, including any
* templates and references.
*/
core.String evaluatedConfig;
@@ -788,7 +1189,16 @@ class Manifest {
* [Output Only] Unique identifier for the resource; defined by the server.
*/
core.String id;
- /** ! [Output Only] The name of the manifest. */
+ /** [Output Only] The imported files for this manifest. */
+ core.List<ImportFile> imports;
+ /**
+ * [Output Only] Timestamp when the manifest was created, in RFC3339 text
+ * format.
+ */
+ core.String insertTime;
+ /** [Output Only] The YAML layout for this manifest. */
+ core.String layout;
+ /** [Output Only] The name of the manifest. */
core.String name;
/** [Output Only] Self link for the manifest. */
core.String selfLink;
@@ -805,6 +1215,15 @@ class Manifest {
if (_json.containsKey("id")) {
id = _json["id"];
}
+ if (_json.containsKey("imports")) {
+ imports = _json["imports"].map((value) => new ImportFile.fromJson(value)).toList();
+ }
+ if (_json.containsKey("insertTime")) {
+ insertTime = _json["insertTime"];
+ }
+ if (_json.containsKey("layout")) {
+ layout = _json["layout"];
+ }
if (_json.containsKey("name")) {
name = _json["name"];
}
@@ -824,6 +1243,15 @@ class Manifest {
if (id != null) {
_json["id"] = id;
}
+ if (imports != null) {
+ _json["imports"] = imports.map((value) => (value).toJson()).toList();
+ }
+ if (insertTime != null) {
+ _json["insertTime"] = insertTime;
+ }
+ if (layout != null) {
+ _json["layout"] = layout;
+ }
if (name != null) {
_json["name"] = name;
}
@@ -835,14 +1263,13 @@ class Manifest {
}
/**
- * ! A response containing a partial list of manifests and a page token used !
- * to build the next request if the request has been truncated. Next available
- * tag: 4
+ * A response containing a partial list of manifests and a page token used to
+ * build the next request if the request has been truncated.
*/
class ManifestsListResponse {
- /** ! Manifests contained in this list response. */
+ /** [Output Only] Manifests contained in this list response. */
core.List<Manifest> manifests;
- /** ! A token used to continue a truncated list request. */
+ /** [Output Only] A token used to continue a truncated list request. */
core.String nextPageToken;
ManifestsListResponse();
@@ -869,14 +1296,14 @@ class ManifestsListResponse {
}
class OperationErrorErrors {
- /** ! The error type identifier for this error. */
+ /** [Output Only] The error type identifier for this error. */
core.String code;
/**
- * ! Indicates the field in the request which caused the error. ! This
- * property is optional.
+ * [Output Only] Indicates the field in the request which caused the error.
+ * This property is optional.
*/
core.String location;
- /** ! An optional, human-readable error message. */
+ /** [Output Only] An optional, human-readable error message. */
core.String message;
OperationErrorErrors();
@@ -909,11 +1336,14 @@ class OperationErrorErrors {
}
/**
- * ! [Output Only] If errors occurred during processing of this operation, !
+ * [Output Only] If errors are generated during processing of the operation,
* this field will be populated.
*/
class OperationError {
- /** ! The array of errors encountered while processing this operation. */
+ /**
+ * [Output Only] The array of errors encountered while processing this
+ * operation.
+ */
core.List<OperationErrorErrors> errors;
OperationError();
@@ -934,9 +1364,9 @@ class OperationError {
}
class OperationWarningsData {
- /** ! A key for the warning data. */
+ /** [Output Only] A key for the warning data. */
core.String key;
- /** ! A warning data value corresponding to the key. */
+ /** [Output Only] A warning data value corresponding to the key. */
core.String value;
OperationWarningsData();
@@ -963,16 +1393,11 @@ class OperationWarningsData {
}
class OperationWarnings {
- /**
- * ! The warning type identifier for this warning.
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
- core.Object code;
- /** ! Metadata for this warning in 'key: value' format. */
+ /** [Output Only] The warning type identifier for this warning. */
+ core.String code;
+ /** [Output Only] Metadata for this warning in key: value format. */
core.List<OperationWarningsData> data;
- /** ! Optional human-readable details for this warning. */
+ /** [Output Only] Optional human-readable details for this warning. */
core.String message;
OperationWarnings();
@@ -1004,95 +1429,112 @@ class OperationWarnings {
}
}
-/**
- * ! An operation resource, used to manage asynchronous API requests. Next
- * available tag: 24
- */
+/** An Operation resource, used to manage asynchronous API requests. */
class Operation {
- /** ! [Output Only] Creation timestamp in RFC3339 text format. */
+ /**
+ * [Output Only] An optional identifier specified by the client when the
+ * mutation was initiated. Must be unique for all Operation resources in the
+ * project.
+ */
+ core.String clientOperationId;
+ /** [Output Only] Creation timestamp in RFC3339 text format. */
core.String creationTimestamp;
/**
- * ! [Output Only] The time that this operation was completed. This is in !
- * RFC3339 format.
+ * [Output Only] The time that this operation was completed. This is in
+ * RFC3339 text format.
*/
core.String endTime;
/**
- * ! [Output Only] If errors occurred during processing of this operation, !
+ * [Output Only] If errors are generated during processing of the operation,
* this field will be populated.
*/
OperationError error;
/**
- * ! [Output Only] If operation fails, the HTTP error message returned, ! e.g.
- * NOT FOUND.
+ * [Output Only] If the operation fails, this field contains the HTTP error
+ * message that was returned, such as NOT FOUND.
*/
core.String httpErrorMessage;
/**
- * ! [Output Only] If operation fails, the HTTP error status code returned, !
- * e.g. 404.
+ * [Output Only] If the operation fails, this field contains the HTTP error
+ * message that was returned, such as 404.
*/
core.int httpErrorStatusCode;
/**
- * ! [Output Only] Unique identifier for the resource; defined by the server.
+ * [Output Only] Unique identifier for the resource; defined by the server.
*/
core.String id;
/**
- * ! [Output Only] The time that this operation was requested. ! This is in
- * RFC 3339 format.
+ * [Output Only] The time that this operation was requested. This is in
+ * RFC3339 text format.
*/
core.String insertTime;
- /** ! [Output Only] Name of the operation. */
+ /**
+ * [Output Only] Type of the resource. Always compute#Operation for Operation
+ * resources.
+ */
+ core.String kind;
+ /** [Output Only] Name of the resource. */
core.String name;
/**
- * ! [Output Only] Type of the operation. Examples include "insert", or !
- * "delete"
+ * [Output Only] Type of the operation, such as insert, update, and delete.
*/
core.String operationType;
/**
- * ! [Output Only] An optional progress indicator that ranges from 0 to 100. !
- * There is no requirement that this be linear or support any granularity ! of
- * operations. This should not be used to guess at when the operation will !
- * be complete. This number should be monotonically increasing as the !
- * operation progresses.
+ * [Output Only] An optional progress indicator that ranges from 0 to 100.
+ * There is no requirement that this be linear or support any granularity of
+ * operations. This should not be used to guess at when the operation will be
+ * complete. This number should monotonically increase as the operation
+ * progresses.
*/
core.int progress;
- /** [Output Only] Self link for the manifest. */
+ /**
+ * [Output Only] URL of the region where the operation resides. Only
+ * applicable for regional resources.
+ */
+ core.String region;
+ /** [Output Only] Server defined URL for the resource. */
core.String selfLink;
/**
- * ! [Output Only] The time that this operation was started by the server. !
- * This is in RFC 3339 format.
+ * [Output Only] The time that this operation was started by the server. This
+ * is in RFC3339 text format.
*/
core.String startTime;
/**
- * ! [Output Only] Status of the operation. Can be one of the following: !
- * "PENDING", "RUNNING", or "DONE".
+ * [Output Only] Status of the operation. Can be one of the following:
+ * PENDING, RUNNING, or DONE.
*/
core.String status;
/**
- * ! [Output Only] An optional textual description of the current status of !
- * the operation.
+ * [Output Only] An optional textual description of the current status of the
+ * operation.
*/
core.String statusMessage;
/**
- * ! [Output Only] Unique target id which identifies a particular !
- * incarnation of the target.
+ * [Output Only] Unique target ID which identifies a particular incarnation of
+ * the target.
*/
core.String targetId;
- /** ! [Output Only] URL of the resource the operation is mutating. */
+ /** [Output Only] URL of the resource the operation is mutating. */
core.String targetLink;
/**
- * ! [Output Only] User who requested the operation, for example !
- * "user@example.com"
+ * [Output Only] User who requested the operation, for example:
+ * user@example.com.
*/
core.String user;
/**
- * ! [Output Only] If warning messages generated during processing of this !
+ * [Output Only] If warning messages are generated during processing of the
* operation, this field will be populated.
*/
core.List<OperationWarnings> warnings;
+ /** [Output Only] URL of the zone where the operation resides. */
+ core.String zone;
Operation();
Operation.fromJson(core.Map _json) {
+ if (_json.containsKey("clientOperationId")) {
+ clientOperationId = _json["clientOperationId"];
+ }
if (_json.containsKey("creationTimestamp")) {
creationTimestamp = _json["creationTimestamp"];
}
@@ -1114,6 +1556,9 @@ class Operation {
if (_json.containsKey("insertTime")) {
insertTime = _json["insertTime"];
}
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
if (_json.containsKey("name")) {
name = _json["name"];
}
@@ -1123,6 +1568,9 @@ class Operation {
if (_json.containsKey("progress")) {
progress = _json["progress"];
}
+ if (_json.containsKey("region")) {
+ region = _json["region"];
+ }
if (_json.containsKey("selfLink")) {
selfLink = _json["selfLink"];
}
@@ -1147,10 +1595,16 @@ class Operation {
if (_json.containsKey("warnings")) {
warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson(value)).toList();
}
+ if (_json.containsKey("zone")) {
+ zone = _json["zone"];
+ }
}
core.Map toJson() {
var _json = new core.Map();
+ if (clientOperationId != null) {
+ _json["clientOperationId"] = clientOperationId;
+ }
if (creationTimestamp != null) {
_json["creationTimestamp"] = creationTimestamp;
}
@@ -1172,6 +1626,9 @@ class Operation {
if (insertTime != null) {
_json["insertTime"] = insertTime;
}
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
if (name != null) {
_json["name"] = name;
}
@@ -1181,6 +1638,9 @@ class Operation {
if (progress != null) {
_json["progress"] = progress;
}
+ if (region != null) {
+ _json["region"] = region;
+ }
if (selfLink != null) {
_json["selfLink"] = selfLink;
}
@@ -1205,19 +1665,21 @@ class Operation {
if (warnings != null) {
_json["warnings"] = warnings.map((value) => (value).toJson()).toList();
}
+ if (zone != null) {
+ _json["zone"] = zone;
+ }
return _json;
}
}
/**
- * ! A response containing a partial list of operations and a page token used !
- * to build the next request if the request has been truncated. Next available
- * tag: 4
+ * A response containing a partial list of operations and a page token used to
+ * build the next request if the request has been truncated.
*/
class OperationsListResponse {
- /** ! A token used to continue a truncated list request. */
+ /** [Output Only] A token used to continue a truncated list request. */
core.String nextPageToken;
- /** ! Operations contained in this list response. */
+ /** [Output Only] Operations contained in this list response. */
core.List<Operation> operations;
OperationsListResponse();
@@ -1243,46 +1705,64 @@ class OperationsListResponse {
}
}
-/** Next available tag: 12 */
class Resource {
- /** ! [Output Only] A list of any errors that occurred during deployment. */
- core.List<core.String> errors;
+ /**
+ * [Output Only] The evaluated properties of the resource with references
+ * expanded. Returned as serialized YAML.
+ */
+ core.String finalProperties;
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*/
core.String id;
- /** ! [Output Only] The intended state of the resource. */
- core.String intent;
/**
- * ! [Output Only] URL of the manifest representing the current configuration
- * ! of this resource.
+ * [Output Only] Timestamp when the resource was created or acquired, in
+ * RFC3339 text format .
+ */
+ core.String insertTime;
+ /**
+ * [Output Only] URL of the manifest representing the current configuration of
+ * this resource.
*/
core.String manifest;
/**
- * ! [Output Only] The name of the resource as it appears in the YAML config.
+ * [Output Only] The name of the resource as it appears in the YAML config.
*/
core.String name;
- /** ! [Output Only] The state of the resource. */
- core.String state;
/**
- * ! [Output Only] The type of the resource, for example !
- * ?compute.v1.instance?, or ?replicaPools.v1beta2.instanceGroupManager?
+ * [Output Only] The current properties of the resource before any references
+ * have been filled in. Returned as serialized YAML.
+ */
+ core.String properties;
+ /**
+ * [Output Only] The type of the resource, for example compute.v1.instance, or
+ * replicaPools.v1beta2.instanceGroupManager.
*/
core.String type;
- /** ! [Output Only] The URL of the actual resource. */
+ /**
+ * [Output Only] If Deployment Manager is currently updating or previewing an
+ * update to this resource, the updated configuration appears here.
+ */
+ ResourceUpdate update;
+ /**
+ * [Output Only] Timestamp when the resource was updated, in RFC3339 text
+ * format .
+ */
+ core.String updateTime;
+ /** [Output Only] The URL of the actual resource. */
core.String url;
Resource();
Resource.fromJson(core.Map _json) {
- if (_json.containsKey("errors")) {
- errors = _json["errors"];
+ if (_json.containsKey("finalProperties")) {
+ finalProperties = _json["finalProperties"];
}
if (_json.containsKey("id")) {
id = _json["id"];
}
- if (_json.containsKey("intent")) {
- intent = _json["intent"];
+ if (_json.containsKey("insertTime")) {
+ insertTime = _json["insertTime"];
}
if (_json.containsKey("manifest")) {
manifest = _json["manifest"];
@@ -1290,12 +1770,18 @@ class Resource {
if (_json.containsKey("name")) {
name = _json["name"];
}
- if (_json.containsKey("state")) {
- state = _json["state"];
+ if (_json.containsKey("properties")) {
+ properties = _json["properties"];
}
if (_json.containsKey("type")) {
type = _json["type"];
}
+ if (_json.containsKey("update")) {
+ update = new ResourceUpdate.fromJson(_json["update"]);
+ }
+ if (_json.containsKey("updateTime")) {
+ updateTime = _json["updateTime"];
+ }
if (_json.containsKey("url")) {
url = _json["url"];
}
@@ -1303,14 +1789,14 @@ class Resource {
core.Map toJson() {
var _json = new core.Map();
- if (errors != null) {
- _json["errors"] = errors;
+ if (finalProperties != null) {
+ _json["finalProperties"] = finalProperties;
}
if (id != null) {
_json["id"] = id;
}
- if (intent != null) {
- _json["intent"] = intent;
+ if (insertTime != null) {
+ _json["insertTime"] = insertTime;
}
if (manifest != null) {
_json["manifest"] = manifest;
@@ -1318,12 +1804,18 @@ class Resource {
if (name != null) {
_json["name"] = name;
}
- if (state != null) {
- _json["state"] = state;
+ if (properties != null) {
+ _json["properties"] = properties;
}
if (type != null) {
_json["type"] = type;
}
+ if (update != null) {
+ _json["update"] = (update).toJson();
+ }
+ if (updateTime != null) {
+ _json["updateTime"] = updateTime;
+ }
if (url != null) {
_json["url"] = url;
}
@@ -1331,15 +1823,87 @@ class Resource {
}
}
+class ResourceUpdate {
+ /**
+ * [Output Only] List of all errors encountered while trying to enact
+ * update.intent.
+ */
+ core.List<core.String> errors;
+ /**
+ * [Output Only] The expanded properties of the resource with reference values
+ * expanded. Returned as serialized YAML.
+ */
+ core.String finalProperties;
+ /** [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. */
+ core.String intent;
+ /**
+ * [Output Only] URL of the manifest representing the update configuration of
+ * this resource.
+ */
+ core.String manifest;
+ /**
+ * [Output Only] The set of updated properties for this resource, before
+ * references are expanded. Returned as serialized YAML.
+ */
+ core.String properties;
+ /** [Output Only] The state of the resource. */
+ core.String state;
+
+ ResourceUpdate();
+
+ ResourceUpdate.fromJson(core.Map _json) {
+ if (_json.containsKey("errors")) {
+ errors = _json["errors"];
+ }
+ if (_json.containsKey("finalProperties")) {
+ finalProperties = _json["finalProperties"];
+ }
+ if (_json.containsKey("intent")) {
+ intent = _json["intent"];
+ }
+ if (_json.containsKey("manifest")) {
+ manifest = _json["manifest"];
+ }
+ if (_json.containsKey("properties")) {
+ properties = _json["properties"];
+ }
+ if (_json.containsKey("state")) {
+ state = _json["state"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (errors != null) {
+ _json["errors"] = errors;
+ }
+ if (finalProperties != null) {
+ _json["finalProperties"] = finalProperties;
+ }
+ if (intent != null) {
+ _json["intent"] = intent;
+ }
+ if (manifest != null) {
+ _json["manifest"] = manifest;
+ }
+ if (properties != null) {
+ _json["properties"] = properties;
+ }
+ if (state != null) {
+ _json["state"] = state;
+ }
+ return _json;
+ }
+}
+
/**
- * ! A response containing a partial list of resources and a page token used !
- * to build the next request if the request has been truncated. Next available
- * tag: 4
+ * A response containing a partial list of resources and a page token used to
+ * build the next request if the request has been truncated.
*/
class ResourcesListResponse {
- /** ! A token used to continue a truncated list request. */
+ /** A token used to continue a truncated list request. */
core.String nextPageToken;
- /** ! Resources contained in this list response. */
+ /** Resources contained in this list response. */
core.List<Resource> resources;
ResourcesListResponse();
@@ -1365,9 +1929,42 @@ class ResourcesListResponse {
}
}
-/** ! A type supported by Deployment Manager. Next available tag: 4 */
+class TargetConfiguration {
+ /** The configuration to use for this deployment. */
+ core.String config;
+ /**
+ * Specifies any files to import for this configuration. This can be used to
+ * import templates or other files. For example, you might import a text file
+ * in order to use the file in a template.
+ */
+ core.List<ImportFile> imports;
+
+ TargetConfiguration();
+
+ TargetConfiguration.fromJson(core.Map _json) {
+ if (_json.containsKey("config")) {
+ config = _json["config"];
+ }
+ if (_json.containsKey("imports")) {
+ imports = _json["imports"].map((value) => new ImportFile.fromJson(value)).toList();
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (config != null) {
+ _json["config"] = config;
+ }
+ if (imports != null) {
+ _json["imports"] = imports.map((value) => (value).toJson()).toList();
+ }
+ return _json;
+ }
+}
+
+/** A resource type supported by Deployment Manager. */
class Type {
- /** ! Name of the type. */
+ /** Name of the type. */
core.String name;
Type();
@@ -1387,17 +1984,21 @@ class Type {
}
}
-/**
- * ! A response that returns all Types supported by Deployment Manager Next
- * available tag: 3
- */
+/** A response that returns all Types supported by Deployment Manager */
class TypesListResponse {
- /** ! Types supported by Deployment Manager */
+ /** A token used to continue a truncated list request. */
+ core.String nextPageToken;
+ /**
+ * [Output Only] A list of resource types supported by Deployment Manager.
+ */
core.List<Type> types;
TypesListResponse();
TypesListResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("nextPageToken")) {
+ nextPageToken = _json["nextPageToken"];
+ }
if (_json.containsKey("types")) {
types = _json["types"].map((value) => new Type.fromJson(value)).toList();
}
@@ -1405,6 +2006,9 @@ class TypesListResponse {
core.Map toJson() {
var _json = new core.Map();
+ if (nextPageToken != null) {
+ _json["nextPageToken"] = nextPageToken;
+ }
if (types != null) {
_json["types"] = types.map((value) => (value).toJson()).toList();
}

Powered by Google App Engine
This is Rietveld 408576698