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

Unified Diff: generated/googleapis_beta/lib/resourceviews/v1beta2.dart

Issue 612053002: Api roll 2: 2014-09-29 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed more review comments Created 6 years, 3 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/resourceviews/v1beta2.dart
diff --git a/generated/googleapis_beta/lib/autoscaler/v1beta2.dart b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
similarity index 51%
copy from generated/googleapis_beta/lib/autoscaler/v1beta2.dart
copy to generated/googleapis_beta/lib/resourceviews/v1beta2.dart
index 3440ba5092a230f541c556948038136761f669b2..25eb1223c22c31be3316301c031bc943cb242e41 100644
--- a/generated/googleapis_beta/lib/autoscaler/v1beta2.dart
+++ b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
@@ -1,4 +1,4 @@
-library googleapis_beta.autoscaler.v1beta2;
+library googleapis_beta.resourceviews.v1beta2;
import "dart:core" as core;
import "dart:collection" as collection;
@@ -14,44 +14,63 @@ export '../common/common.dart' show ApiRequestError;
export '../common/common.dart' show DetailedApiRequestError;
/**
- * The Google Compute Engine Autoscaler API provides autoscaling for groups of
- * Cloud VMs.
+ * The Resource View API allows users to create and manage logical sets of
+ * Google Compute Engine instances.
*/
-class AutoscalerApi {
+class ResourceviewsApi {
+ /** View and manage your data across Google Cloud Platform services */
+ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
+
/** View and manage your Google Compute Engine resources */
static const ComputeScope = "https://www.googleapis.com/auth/compute";
/** View your Google Compute Engine resources */
static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.readonly";
+ /**
+ * View and manage your Google Cloud Platform management resources and
+ * deployment status information
+ */
+ static const NdevCloudmanScope = "https://www.googleapis.com/auth/ndev.cloudman";
+
+ /**
+ * View your Google Cloud Platform management resources and deployment status
+ * information
+ */
+ static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev.cloudman.readonly";
+
final common_internal.ApiRequester _requester;
- AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requester);
ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(_requester);
+ ZoneViewsResourceApi get zoneViews => new ZoneViewsResourceApi(_requester);
- AutoscalerApi(http.Client client) :
- _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "autoscaler/v1beta2/");
+ ResourceviewsApi(http.Client client) :
+ _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "resourceviews/v1beta2/projects/");
}
/** Not documented yet. */
-class AutoscalersResourceApi {
+class ZoneOperationsResourceApi {
final common_internal.ApiRequester _requester;
- AutoscalersResourceApi(common_internal.ApiRequester client) :
+ ZoneOperationsResourceApi(common_internal.ApiRequester client) :
_requester = client;
/**
- * Deletes the specified Autoscaler resource.
+ * Retrieves the specified zone-specific operation resource.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
+ * [project] - Name of the project scoping 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])?))".
*
- * [zone] - Zone name of Autoscaler resource.
+ * [zone] - Name of the zone scoping this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
- * [autoscaler] - Name of the Autoscaler resource.
+ * [operation] - Name of the operation resource to return.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
*
* Completes with a [Operation].
*
@@ -61,7 +80,7 @@ class AutoscalersResourceApi {
* 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 zone, core.String autoscaler) {
+ async.Future<Operation> get(core.String project, core.String zone, core.String operation) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -75,15 +94,15 @@ class AutoscalersResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (autoscaler == null) {
- throw new core.ArgumentError("Parameter autoscaler is required.");
+ if (operation == null) {
+ throw new core.ArgumentError("Parameter operation is required.");
}
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + common_internal.Escaper.ecapeVariable('$autoscaler');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
var _response = _requester.request(_url,
- "DELETE",
+ "GET",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
@@ -93,17 +112,28 @@ class AutoscalersResourceApi {
}
/**
- * Gets the specified Autoscaler resource.
+ * Retrieves the list of operation resources contained within the specified
+ * zone.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
+ * [project] - Name of the project scoping 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])?))".
+ *
+ * [zone] - Name of the zone scoping this request.
+ * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ *
+ * [filter] - Optional. Filter expression for filtering listed resources.
*
- * [zone] - Zone name of Autoscaler resource.
+ * [maxResults] - Optional. Maximum count of results to be returned. Maximum
+ * value is 500 and default value is 500.
+ * Value must be between "0" and "500".
*
- * [autoscaler] - Name of the Autoscaler resource.
+ * [pageToken] - Optional. Tag returned by a previous list request truncated
+ * by maxResults. Used to continue a previous list request.
*
- * Completes with a [Autoscaler].
+ * Completes with a [OperationList].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -111,7 +141,7 @@ class AutoscalersResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<Autoscaler> get(core.String project, core.String zone, core.String autoscaler) {
+ async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -125,12 +155,18 @@ class AutoscalersResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (autoscaler == null) {
- throw new core.ArgumentError("Parameter autoscaler is required.");
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
+ if (maxResults != null) {
+ _queryParams["maxResults"] = ["${maxResults}"];
+ }
+ if (pageToken != null) {
+ _queryParams["pageToken"] = [pageToken];
}
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + common_internal.Escaper.ecapeVariable('$autoscaler');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations';
var _response = _requester.request(_url,
"GET",
@@ -139,19 +175,31 @@ class AutoscalersResourceApi {
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new Autoscaler.fromJson(data));
+ return _response.then((data) => new OperationList.fromJson(data));
}
+}
+
+
+/** Not documented yet. */
+class ZoneViewsResourceApi {
+ final common_internal.ApiRequester _requester;
+
+ ZoneViewsResourceApi(common_internal.ApiRequester client) :
+ _requester = client;
+
/**
- * Adds new Autoscaler resource.
+ * Add resources to the view.
*
* [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
+ * [project] - The project name of the resource view.
*
- * [zone] - Zone name of Autoscaler resource.
+ * [zone] - The zone name of the resource view.
+ *
+ * [resourceView] - The name of the resource view.
*
* Completes with a [Operation].
*
@@ -161,7 +209,7 @@ class AutoscalersResourceApi {
* 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> insert(Autoscaler request, core.String project, core.String zone) {
+ async.Future<Operation> addResources(ZoneViewsAddResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -178,9 +226,12 @@ class AutoscalersResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
+ }
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/addResources';
var _response = _requester.request(_url,
"POST",
@@ -193,22 +244,17 @@ class AutoscalersResourceApi {
}
/**
- * Lists all Autoscaler resources in this zone.
+ * Delete a resource view.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
- *
- * [zone] - Zone name of Autoscaler resource.
- *
- * [filter] - null
+ * [project] - The project name of the resource view.
*
- * [maxResults] - null
- * Value must be between "0" and "500".
+ * [zone] - The zone name of the resource view.
*
- * [pageToken] - null
+ * [resourceView] - The name of the resource view.
*
- * Completes with a [AutoscalerListResponse].
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -216,7 +262,7 @@ class AutoscalersResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<AutoscalerListResponse> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ async.Future<Operation> delete(core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -230,44 +276,35 @@ class AutoscalersResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (filter != null) {
- _queryParams["filter"] = [filter];
- }
- if (maxResults != null) {
- _queryParams["maxResults"] = ["${maxResults}"];
- }
- if (pageToken != null) {
- _queryParams["pageToken"] = [pageToken];
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView');
var _response = _requester.request(_url,
- "GET",
+ "DELETE",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new AutoscalerListResponse.fromJson(data));
+ return _response.then((data) => new Operation.fromJson(data));
}
/**
- * Update the entire content of the Autoscaler resource. This method supports
- * patch semantics.
- *
- * [request] - The metadata request object.
+ * Get the information of a zonal resource view.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
+ * [project] - The project name of the resource view.
*
- * [zone] - Zone name of Autoscaler resource.
+ * [zone] - The zone name of the resource view.
*
- * [autoscaler] - Name of the Autoscaler resource.
+ * [resourceView] - The name of the resource view.
*
- * Completes with a [Operation].
+ * Completes with a [ResourceView].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -275,7 +312,7 @@ class AutoscalersResourceApi {
* 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(Autoscaler request, core.String project, core.String zone, core.String autoscaler) {
+ async.Future<ResourceView> get(core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -283,46 +320,44 @@ class AutoscalersResourceApi {
var _downloadOptions = common.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 (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (autoscaler == null) {
- throw new core.ArgumentError("Parameter autoscaler is required.");
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + common_internal.Escaper.ecapeVariable('$autoscaler');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView');
var _response = _requester.request(_url,
- "PATCH",
+ "GET",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new Operation.fromJson(data));
+ return _response.then((data) => new ResourceView.fromJson(data));
}
/**
- * Update the entire content of the Autoscaler resource.
- *
- * [request] - The metadata request object.
+ * Get the service information of a resource view or a resource.
*
* Request parameters:
*
- * [project] - Project ID of Autoscaler resource.
+ * [project] - The project name of the resource view.
*
- * [zone] - Zone name of Autoscaler resource.
+ * [zone] - The zone name of the resource view.
*
- * [autoscaler] - Name of the Autoscaler resource.
+ * [resourceView] - The name of the resource view.
*
- * Completes with a [Operation].
+ * [resourceName] - The name of the resource if user wants to get the service
+ * information of the resource.
+ *
+ * Completes with a [ZoneViewsGetServiceResponse].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -330,7 +365,7 @@ class AutoscalersResourceApi {
* 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(Autoscaler request, core.String project, core.String zone, core.String autoscaler) {
+ async.Future<ZoneViewsGetServiceResponse> getService(core.String project, core.String zone, core.String resourceView, {core.String resourceName}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -338,56 +373,44 @@ class AutoscalersResourceApi {
var _downloadOptions = common.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 (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (autoscaler == null) {
- throw new core.ArgumentError("Parameter autoscaler is required.");
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
+ }
+ if (resourceName != null) {
+ _queryParams["resourceName"] = [resourceName];
}
- _url = 'projects/' + common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/autoscalers/' + common_internal.Escaper.ecapeVariable('$autoscaler');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/getService';
var _response = _requester.request(_url,
- "PUT",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new Operation.fromJson(data));
+ return _response.then((data) => new ZoneViewsGetServiceResponse.fromJson(data));
}
-}
-
-
-/** Not documented yet. */
-class ZoneOperationsResourceApi {
- final common_internal.ApiRequester _requester;
-
- ZoneOperationsResourceApi(common_internal.ApiRequester client) :
- _requester = client;
-
/**
- * Deletes the specified zone-specific operation resource.
+ * Create a resource view.
+ *
+ * [request] - The metadata request object.
*
* Request parameters:
*
- * [project] - null
- * 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])?))".
+ * [project] - The project name of the resource view.
*
- * [zone] - null
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ * [zone] - The zone name of the resource view.
*
- * [operation] - null
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ * Completes with a [Operation].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -395,7 +418,7 @@ class ZoneOperationsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future delete(core.String project, core.String zone, core.String operation) {
+ async.Future<Operation> insert(ResourceView request, core.String project, core.String zone) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -403,46 +426,47 @@ class ZoneOperationsResourceApi {
var _downloadOptions = common.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 (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (operation == null) {
- throw new core.ArgumentError("Parameter operation is required.");
- }
- _downloadOptions = null;
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews';
var _response = _requester.request(_url,
- "DELETE",
+ "POST",
body: _body,
queryParams: _queryParams,
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => null);
+ return _response.then((data) => new Operation.fromJson(data));
}
/**
- * Retrieves the specified zone-specific operation resource.
+ * List resource views.
*
* Request parameters:
*
- * [project] - null
- * 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])?))".
+ * [project] - The project name of the resource view.
*
- * [zone] - null
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ * [zone] - The zone name of the resource view.
*
- * [operation] - null
- * 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 5000, inclusive. (Default: 5000)
+ * Value must be between "0" and "5000".
*
- * Completes with a [Operation].
+ * [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.
+ *
+ * Completes with a [ZoneViewsList].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -450,7 +474,7 @@ class ZoneOperationsResourceApi {
* 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> get(core.String project, core.String zone, core.String operation) {
+ async.Future<ZoneViewsList> list(core.String project, core.String zone, {core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -464,12 +488,15 @@ class ZoneOperationsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (operation == null) {
- throw new core.ArgumentError("Parameter operation is required.");
+ if (maxResults != null) {
+ _queryParams["maxResults"] = ["${maxResults}"];
+ }
+ if (pageToken != null) {
+ _queryParams["pageToken"] = [pageToken];
}
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations/' + common_internal.Escaper.ecapeVariable('$operation');
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews';
var _response = _requester.request(_url,
"GET",
@@ -478,30 +505,47 @@ class ZoneOperationsResourceApi {
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new Operation.fromJson(data));
+ return _response.then((data) => new ZoneViewsList.fromJson(data));
}
/**
- * Retrieves the list of operation resources contained within the specified
- * zone.
+ * List the resources of the resource view.
*
* Request parameters:
*
- * [project] - null
- * 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])?))".
+ * [project] - The project name of the resource view.
*
- * [zone] - null
- * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?".
+ * [zone] - The zone name of the resource view.
*
- * [filter] - null
+ * [resourceView] - The name of the resource view.
*
- * [maxResults] - null
- * Value must be between "0" and "500".
+ * [format] - The requested format of the return value. It can be URL or
+ * URL_PORT. A JSON object will be included in the response based on the
+ * format. The default format is NONE, which results in no JSON in the
+ * response.
+ * Possible string values are:
+ * - "NONE"
+ * - "URL"
+ * - "URL_PORT"
*
- * [pageToken] - null
+ * [listState] - The state of the instance to list. By default, it lists all
+ * instances.
+ * Possible string values are:
+ * - "ALL"
+ * - "RUNNING"
*
- * Completes with a [OperationList].
+ * [maxResults] - Maximum count of results to be returned. Acceptable values
+ * are 0 to 5000, inclusive. (Default: 5000)
+ * Value must be between "0" and "5000".
+ *
+ * [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.
+ *
+ * [serviceName] - The service name to return in the response. It is optional
+ * and if it is not set, all the service end points will be returned.
+ *
+ * Completes with a [ZoneViewsListResourcesResponse].
*
* Completes with a [common.ApiRequestError] if the API endpoint returned an
* error.
@@ -509,7 +553,7 @@ class ZoneOperationsResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ async.Future<ZoneViewsListResourcesResponse> listResources(core.String project, core.String zone, core.String resourceView, {core.String format, core.String listState, core.int maxResults, core.String pageToken, core.String serviceName}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -523,8 +567,14 @@ class ZoneOperationsResourceApi {
if (zone == null) {
throw new core.ArgumentError("Parameter zone is required.");
}
- if (filter != null) {
- _queryParams["filter"] = [filter];
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
+ }
+ if (format != null) {
+ _queryParams["format"] = [format];
+ }
+ if (listState != null) {
+ _queryParams["listState"] = [listState];
}
if (maxResults != null) {
_queryParams["maxResults"] = ["${maxResults}"];
@@ -532,9 +582,12 @@ class ZoneOperationsResourceApi {
if (pageToken != null) {
_queryParams["pageToken"] = [pageToken];
}
+ if (serviceName != null) {
+ _queryParams["serviceName"] = [serviceName];
+ }
- _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/operations';
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/resources';
var _response = _requester.request(_url,
"GET",
@@ -543,333 +596,185 @@ class ZoneOperationsResourceApi {
uploadOptions: _uploadOptions,
uploadMedia: _uploadMedia,
downloadOptions: _downloadOptions);
- return _response.then((data) => new OperationList.fromJson(data));
+ return _response.then((data) => new ZoneViewsListResourcesResponse.fromJson(data));
}
-}
+ /**
+ * Remove resources from the view.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [project] - The project name of the resource view.
+ *
+ * [zone] - The zone name of the resource view.
+ *
+ * [resourceView] - The name of the resource view.
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [common.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> removeResources(ZoneViewsRemoveResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = common.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 (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
+ }
-/** Cloud Autoscaler resource. */
-class Autoscaler {
- /** Configuration parameters for autoscaling algorithm. */
- AutoscalingPolicy autoscalingPolicy;
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/removeResources';
- /** [Output Only] Creation timestamp in RFC3339 text format. */
- core.String creationTimestamp;
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
/**
- * An optional textual description of the resource provided by the client.
+ * Update the service information of a resource view or a resource.
+ *
+ * [request] - The metadata request object.
+ *
+ * Request parameters:
+ *
+ * [project] - The project name of the resource view.
+ *
+ * [zone] - The zone name of the resource view.
+ *
+ * [resourceView] - The name of the resource view.
+ *
+ * Completes with a [Operation].
+ *
+ * Completes with a [common.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.
*/
- core.String description;
+ async.Future<Operation> setService(ZoneViewsSetServiceRequest request, core.String project, core.String zone, core.String resourceView) {
+ var _url = null;
+ var _queryParams = new core.Map();
+ var _uploadMedia = null;
+ var _uploadOptions = null;
+ var _downloadOptions = common.DownloadOptions.Metadata;
+ var _body = null;
- /**
- * [Output Only] Unique identifier for the resource; defined by the server.
- */
- core.String id;
+ if (request != null) {
+ _body = convert.JSON.encode((request).toJson());
+ }
+ if (project == null) {
+ throw new core.ArgumentError("Parameter project is required.");
+ }
+ if (zone == null) {
+ throw new core.ArgumentError("Parameter zone is required.");
+ }
+ if (resourceView == null) {
+ throw new core.ArgumentError("Parameter resourceView is required.");
+ }
- /** Type of resource. */
- core.String kind;
- /** Name of the Autoscaler resource. Must be unique per project and zone. */
- core.String name;
+ _url = common_internal.Escaper.ecapeVariable('$project') + '/zones/' + common_internal.Escaper.ecapeVariable('$zone') + '/resourceViews/' + common_internal.Escaper.ecapeVariable('$resourceView') + '/setService';
- /** [Output Only] A self-link to the Autoscaler configuration resource. */
- core.String selfLink;
+ var _response = _requester.request(_url,
+ "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response.then((data) => new Operation.fromJson(data));
+ }
- /**
- * URL to the entity which will be autoscaled. Currently the only supported
- * value is ReplicaPool?s URL. Note: it is illegal to specify multiple
- * Autoscalers for the same target.
- */
- core.String target;
+}
- Autoscaler();
- Autoscaler.fromJson(core.Map _json) {
- if (_json.containsKey("autoscalingPolicy")) {
- autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolicy"]);
- }
- if (_json.containsKey("creationTimestamp")) {
- creationTimestamp = _json["creationTimestamp"];
+/** The Label to be applied to the resource views. */
+class Label {
+ /** Key of the label. */
+ core.String key;
+
+ /** Value of the label. */
+ core.String value;
+
+
+ Label();
+
+ Label.fromJson(core.Map _json) {
+ if (_json.containsKey("key")) {
+ key = _json["key"];
}
- if (_json.containsKey("description")) {
- description = _json["description"];
- }
- if (_json.containsKey("id")) {
- id = _json["id"];
- }
- if (_json.containsKey("kind")) {
- kind = _json["kind"];
- }
- if (_json.containsKey("name")) {
- name = _json["name"];
- }
- if (_json.containsKey("selfLink")) {
- selfLink = _json["selfLink"];
- }
- if (_json.containsKey("target")) {
- target = _json["target"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (autoscalingPolicy != null) {
- _json["autoscalingPolicy"] = (autoscalingPolicy).toJson();
- }
- if (creationTimestamp != null) {
- _json["creationTimestamp"] = creationTimestamp;
- }
- if (description != null) {
- _json["description"] = description;
- }
- if (id != null) {
- _json["id"] = id;
- }
- if (kind != null) {
- _json["kind"] = kind;
- }
- if (name != null) {
- _json["name"] = name;
- }
- if (selfLink != null) {
- _json["selfLink"] = selfLink;
- }
- if (target != null) {
- _json["target"] = target;
- }
- return _json;
- }
-}
-
-
-/** Not documented yet. */
-class AutoscalerListResponse {
- /** Autoscaler resources. */
- core.List<Autoscaler> items;
-
- /** Type of resource. */
- core.String kind;
-
- /** [Output only] A token used to continue a truncated list request. */
- core.String nextPageToken;
-
-
- AutoscalerListResponse();
-
- AutoscalerListResponse.fromJson(core.Map _json) {
- if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toList();
- }
- if (_json.containsKey("kind")) {
- kind = _json["kind"];
- }
- if (_json.containsKey("nextPageToken")) {
- nextPageToken = _json["nextPageToken"];
- }
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (items != null) {
- _json["items"] = items.map((value) => (value).toJson()).toList();
- }
- if (kind != null) {
- _json["kind"] = kind;
- }
- if (nextPageToken != null) {
- _json["nextPageToken"] = nextPageToken;
- }
- return _json;
- }
-}
-
-
-/** Cloud Autoscaler policy. */
-class AutoscalingPolicy {
- /**
- * The number of seconds that the Autoscaler should wait between two
- * succeeding changes to the number of virtual machines. You should define an
- * interval that is at least as long as the initialization time of a virtual
- * machine and the time it may take for replica pool to create the virtual
- * machine. The default is 60 seconds.
- */
- core.int coolDownPeriodSec;
-
- /**
- * Exactly one utilization policy should be provided. Configuration parameters
- * of CPU based autoscaling policy.
- */
- AutoscalingPolicyCpuUtilization cpuUtilization;
-
- /** Configuration parameters of autoscaling based on custom metric. */
- core.List<AutoscalingPolicyCustomMetricUtilization> customMetricUtilizations;
-
- /** Configuration parameters of autoscaling based on load balancer. */
- AutoscalingPolicyLoadBalancingUtilization loadBalancingUtilization;
-
- /** The maximum number of replicas that the Autoscaler can scale up to. */
- core.int maxNumReplicas;
-
- /** The minimum number of replicas that the Autoscaler can scale down to. */
- core.int minNumReplicas;
-
-
- AutoscalingPolicy();
-
- AutoscalingPolicy.fromJson(core.Map _json) {
- if (_json.containsKey("coolDownPeriodSec")) {
- coolDownPeriodSec = _json["coolDownPeriodSec"];
- }
- if (_json.containsKey("cpuUtilization")) {
- cpuUtilization = new AutoscalingPolicyCpuUtilization.fromJson(_json["cpuUtilization"]);
- }
- if (_json.containsKey("customMetricUtilizations")) {
- customMetricUtilizations = _json["customMetricUtilizations"].map((value) => new AutoscalingPolicyCustomMetricUtilization.fromJson(value)).toList();
- }
- if (_json.containsKey("loadBalancingUtilization")) {
- loadBalancingUtilization = new AutoscalingPolicyLoadBalancingUtilization.fromJson(_json["loadBalancingUtilization"]);
- }
- if (_json.containsKey("maxNumReplicas")) {
- maxNumReplicas = _json["maxNumReplicas"];
- }
- if (_json.containsKey("minNumReplicas")) {
- minNumReplicas = _json["minNumReplicas"];
+ if (_json.containsKey("value")) {
+ value = _json["value"];
}
}
core.Map toJson() {
var _json = new core.Map();
- if (coolDownPeriodSec != null) {
- _json["coolDownPeriodSec"] = coolDownPeriodSec;
- }
- if (cpuUtilization != null) {
- _json["cpuUtilization"] = (cpuUtilization).toJson();
- }
- if (customMetricUtilizations != null) {
- _json["customMetricUtilizations"] = customMetricUtilizations.map((value) => (value).toJson()).toList();
- }
- if (loadBalancingUtilization != null) {
- _json["loadBalancingUtilization"] = (loadBalancingUtilization).toJson();
- }
- if (maxNumReplicas != null) {
- _json["maxNumReplicas"] = maxNumReplicas;
- }
- if (minNumReplicas != null) {
- _json["minNumReplicas"] = minNumReplicas;
- }
- return _json;
- }
-}
-
-
-/** CPU utilization policy. */
-class AutoscalingPolicyCpuUtilization {
- /**
- * The target utilization that the Autoscaler should maintain. It is
- * represented as a fraction of used cores. For example: 6 cores used in
- * 8-core VM are represented here as 0.75. Must be a float value between (0,
- * 1]. If not defined, the default is 0.8.
- */
- core.double utilizationTarget;
-
-
- AutoscalingPolicyCpuUtilization();
-
- AutoscalingPolicyCpuUtilization.fromJson(core.Map _json) {
- if (_json.containsKey("utilizationTarget")) {
- utilizationTarget = _json["utilizationTarget"];
+ if (key != null) {
+ _json["key"] = key;
}
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (utilizationTarget != null) {
- _json["utilizationTarget"] = utilizationTarget;
+ if (value != null) {
+ _json["value"] = value;
}
return _json;
}
}
-/** Custom utilization metric policy. */
-class AutoscalingPolicyCustomMetricUtilization {
- /**
- * Identifier of the metric. It should be a Cloud Monitoring metric. The
- * metric can not have negative values. The metric should be an utilization
- * metric (increasing number of VMs handling requests x times should reduce
- * average value of the metric roughly x times). For example you could use:
- * compute.googleapis.com/instance/network/received_bytes_count.
- */
- core.String metric;
-
- /**
- * Target value of the metric which Autoscaler should maintain. Must be a
- * positive value.
- */
- core.double utilizationTarget;
+/**
+ * The list response item that contains the resource and end points information.
+ */
+class ListResourceResponseItem {
+ /** The list of service end points on the resource. */
+ core.Map<core.String, core.List<core.int>> endpoints;
- /** Defines type in which utilization_target is expressed. */
- core.String utilizationTargetType;
+ /** The full URL of the resource. */
+ core.String resource;
- AutoscalingPolicyCustomMetricUtilization();
+ ListResourceResponseItem();
- AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) {
- if (_json.containsKey("metric")) {
- metric = _json["metric"];
- }
- if (_json.containsKey("utilizationTarget")) {
- utilizationTarget = _json["utilizationTarget"];
+ ListResourceResponseItem.fromJson(core.Map _json) {
+ if (_json.containsKey("endpoints")) {
+ endpoints = _json["endpoints"];
}
- if (_json.containsKey("utilizationTargetType")) {
- utilizationTargetType = _json["utilizationTargetType"];
+ if (_json.containsKey("resource")) {
+ resource = _json["resource"];
}
}
core.Map toJson() {
var _json = new core.Map();
- if (metric != null) {
- _json["metric"] = metric;
- }
- if (utilizationTarget != null) {
- _json["utilizationTarget"] = utilizationTarget;
- }
- if (utilizationTargetType != null) {
- _json["utilizationTargetType"] = utilizationTargetType;
- }
- return _json;
- }
-}
-
-
-/** Load balancing utilization policy. */
-class AutoscalingPolicyLoadBalancingUtilization {
- /**
- * Fraction of backend capacity utilization (set in HTTP load balancing
- * configuration) that Autoscaler should maintain. Must be a positive float
- * value. If not defined, the default is 0.8. For example if your
- * maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set
- * at 10 and you would like to keep number of instances such that each
- * instance receives 7 QPS on average, set this to 0.7.
- */
- core.double utilizationTarget;
-
-
- AutoscalingPolicyLoadBalancingUtilization();
-
- AutoscalingPolicyLoadBalancingUtilization.fromJson(core.Map _json) {
- if (_json.containsKey("utilizationTarget")) {
- utilizationTarget = _json["utilizationTarget"];
+ if (endpoints != null) {
+ _json["endpoints"] = endpoints;
}
- }
-
- core.Map toJson() {
- var _json = new core.Map();
- if (utilizationTarget != null) {
- _json["utilizationTarget"] = utilizationTarget;
+ if (resource != null) {
+ _json["resource"] = resource;
}
return _json;
}
@@ -878,13 +783,16 @@ class AutoscalingPolicyLoadBalancingUtilization {
/** Not documented yet. */
class OperationErrorErrors {
- /** Not documented yet. */
+ /** [Output Only] The error type identifier for this error. */
core.String code;
- /** Not documented yet. */
+ /**
+ * [Output Only] Indicates the field in the request which caused the error.
+ * This property is optional.
+ */
core.String location;
- /** Not documented yet. */
+ /** [Output Only] An optional, human-readable error message. */
core.String message;
@@ -918,9 +826,15 @@ class OperationErrorErrors {
}
-/** Not documented yet. */
+/**
+ * [Output Only] If errors occurred during processing of this operation, this
+ * field will be populated.
+ */
class OperationError {
- /** Not documented yet. */
+ /**
+ * [Output Only] The array of errors encountered while processing this
+ * operation.
+ */
core.List<OperationErrorErrors> errors;
@@ -944,10 +858,10 @@ class OperationError {
/** Not documented yet. */
class OperationWarningsData {
- /** Not documented yet. */
+ /** [Output Only] Metadata key for this warning. */
core.String key;
- /** Not documented yet. */
+ /** [Output Only] Metadata value for this warning. */
core.String value;
@@ -977,13 +891,13 @@ class OperationWarningsData {
/** Not documented yet. */
class OperationWarnings {
- /** Not documented yet. */
+ /** [Output only] The warning type identifier for this warning. */
core.String code;
- /** Not documented yet. */
+ /** [Output only] Metadata for this warning in key:value format. */
core.List<OperationWarningsData> data;
- /** Not documented yet. */
+ /** [Output only] Optional human-readable details for this warning. */
core.String message;
@@ -1017,72 +931,120 @@ class OperationWarnings {
}
-/** Not documented yet. */
+/** An operation resource, used to manage asynchronous API requests. */
class Operation {
- /** Not documented yet. */
+ /**
+ * [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;
- /** Not documented yet. */
+ /**
+ * [Output Only] The time that this operation was requested, in RFC3339 text
+ * format.
+ */
core.String creationTimestamp;
- /** Not documented yet. */
+ /**
+ * [Output Only] The time that this operation was completed, in RFC3339 text
+ * format.
+ */
core.String endTime;
- /** Not documented yet. */
+ /**
+ * [Output Only] If errors occurred during processing of this operation, this
+ * field will be populated.
+ */
OperationError error;
- /** Not documented yet. */
+ /** [Output only] If operation fails, the HTTP error message returned. */
core.String httpErrorMessage;
- /** Not documented yet. */
+ /** [Output only] If operation fails, the HTTP error status code returned. */
core.int httpErrorStatusCode;
- /** Not documented yet. */
+ /**
+ * [Output Only] Unique identifier for the resource, generated by the server.
+ */
core.String id;
- /** Not documented yet. */
+ /**
+ * [Output Only] The time that this operation was requested, in RFC3339 text
+ * format.
+ */
core.String insertTime;
- /** Type of the resource. */
+ /** [Output only] Type of the resource. */
core.String kind;
- /** Not documented yet. */
+ /** [Output Only] Name of the resource. */
core.String name;
- /** Not documented yet. */
+ /**
+ * [Output only] Type of the operation. Operations include insert, update, and
+ * delete.
+ */
core.String operationType;
- /** Not documented yet. */
+ /**
+ * [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.
+ */
core.int progress;
- /** Not documented yet. */
+ /**
+ * [Output Only] URL of the region where the operation resides. Only available
+ * when performing regional operations.
+ */
core.String region;
- /** Not documented yet. */
+ /** [Output Only] Server-defined fully-qualified URL for this resource. */
core.String selfLink;
- /** Not documented yet. */
+ /**
+ * [Output Only] The time that this operation was started by the server, in
+ * RFC3339 text format.
+ */
core.String startTime;
- /** Not documented yet. */
+ /** [Output Only] Status of the operation. */
core.String status;
- /** Not documented yet. */
+ /**
+ * [Output Only] An optional textual description of the current status of the
+ * operation.
+ */
core.String statusMessage;
- /** Not documented yet. */
+ /**
+ * [Output Only] Unique target ID which identifies a particular incarnation of
+ * the target.
+ */
core.String targetId;
- /** Not documented yet. */
+ /** [Output only] URL of the resource the operation is mutating. */
core.String targetLink;
- /** Not documented yet. */
+ /**
+ * [Output Only] User who requested the operation, for example:
+ * user@example.com.
+ */
core.String user;
- /** Not documented yet. */
+ /**
+ * [Output Only] If there are issues with this operation, a warning is
+ * returned.
+ */
core.List<OperationWarnings> warnings;
- /** Not documented yet. */
+ /**
+ * [Output Only] URL of the zone where the operation resides. Only available
+ * when performing per-zone operations.
+ */
core.String zone;
@@ -1232,19 +1194,21 @@ class Operation {
/** Not documented yet. */
class OperationList {
- /** Not documented yet. */
+ /**
+ * Unique identifier for the resource; defined by the server (output only).
+ */
core.String id;
- /** Not documented yet. */
+ /** The operation resources. */
core.List<Operation> items;
/** Type of resource. */
core.String kind;
- /** Not documented yet. */
+ /** A token used to continue a truncated list request (output only). */
core.String nextPageToken;
- /** Not documented yet. */
+ /** Server defined URL for this resource (output only). */
core.String selfLink;
@@ -1290,3 +1254,387 @@ class OperationList {
}
+/** The resource view object. */
+class ResourceView {
+ /** The creation time of the resource view. */
+ core.String creationTimestamp;
+
+ /** The detailed description of the resource view. */
+ core.String description;
+
+ /** Services endpoint information. */
+ core.List<ServiceEndpoint> endpoints;
+
+ /** The fingerprint of the service endpoint information. */
+ core.String fingerprint;
+
+ /** [Output Only] The ID of the resource view. */
+ core.String id;
+
+ /** Type of the resource. */
+ core.String kind;
+
+ /** The labels for events. */
+ core.List<Label> labels;
+
+ /** The name of the resource view. */
+ core.String name;
+
+ /**
+ * The URL of a Compute Engine network to which the resources in the view
+ * belong.
+ */
+ core.String network;
+
+ /** A list of all resources in the resource view. */
+ core.List<core.String> resources;
+
+ /** [Output Only] A self-link to the resource view. */
+ core.String selfLink;
+
+ /** The total number of resources in the resource view. */
+ core.int size;
+
+
+ ResourceView();
+
+ ResourceView.fromJson(core.Map _json) {
+ if (_json.containsKey("creationTimestamp")) {
+ creationTimestamp = _json["creationTimestamp"];
+ }
+ if (_json.containsKey("description")) {
+ description = _json["description"];
+ }
+ if (_json.containsKey("endpoints")) {
+ endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
+ }
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
+ }
+ if (_json.containsKey("id")) {
+ id = _json["id"];
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("labels")) {
+ labels = _json["labels"].map((value) => new Label.fromJson(value)).toList();
+ }
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("network")) {
+ network = _json["network"];
+ }
+ if (_json.containsKey("resources")) {
+ resources = _json["resources"];
+ }
+ if (_json.containsKey("selfLink")) {
+ selfLink = _json["selfLink"];
+ }
+ if (_json.containsKey("size")) {
+ size = _json["size"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (creationTimestamp != null) {
+ _json["creationTimestamp"] = creationTimestamp;
+ }
+ if (description != null) {
+ _json["description"] = description;
+ }
+ if (endpoints != null) {
+ _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
+ }
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
+ }
+ if (id != null) {
+ _json["id"] = id;
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (labels != null) {
+ _json["labels"] = labels.map((value) => (value).toJson()).toList();
+ }
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (network != null) {
+ _json["network"] = network;
+ }
+ if (resources != null) {
+ _json["resources"] = resources;
+ }
+ if (selfLink != null) {
+ _json["selfLink"] = selfLink;
+ }
+ if (size != null) {
+ _json["size"] = size;
+ }
+ return _json;
+ }
+}
+
+
+/** The service endpoint that may be started in a VM. */
+class ServiceEndpoint {
+ /** The name of the service endpoint. */
+ core.String name;
+
+ /** The port of the service endpoint. */
+ core.int port;
+
+
+ ServiceEndpoint();
+
+ ServiceEndpoint.fromJson(core.Map _json) {
+ if (_json.containsKey("name")) {
+ name = _json["name"];
+ }
+ if (_json.containsKey("port")) {
+ port = _json["port"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (name != null) {
+ _json["name"] = name;
+ }
+ if (port != null) {
+ _json["port"] = port;
+ }
+ return _json;
+ }
+}
+
+
+/** The request to add resources to the resource view. */
+class ZoneViewsAddResourcesRequest {
+ /** The list of resources to be added. */
+ core.List<core.String> resources;
+
+
+ ZoneViewsAddResourcesRequest();
+
+ ZoneViewsAddResourcesRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("resources")) {
+ resources = _json["resources"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (resources != null) {
+ _json["resources"] = resources;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class ZoneViewsGetServiceResponse {
+ /** The service information. */
+ core.List<ServiceEndpoint> endpoints;
+
+ /** The fingerprint of the service information. */
+ core.String fingerprint;
+
+
+ ZoneViewsGetServiceResponse();
+
+ ZoneViewsGetServiceResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("endpoints")) {
+ endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
+ }
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (endpoints != null) {
+ _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
+ }
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
+ }
+ return _json;
+ }
+}
+
+
+/** The response to a list request. */
+class ZoneViewsList {
+ /** The result that contains all resource views that meet the criteria. */
+ core.List<ResourceView> items;
+
+ /** Type of resource. */
+ core.String kind;
+
+ /** A token used for pagination. */
+ core.String nextPageToken;
+
+ /** Server defined URL for this resource (output only). */
+ core.String selfLink;
+
+
+ ZoneViewsList();
+
+ ZoneViewsList.fromJson(core.Map _json) {
+ if (_json.containsKey("items")) {
+ items = _json["items"].map((value) => new ResourceView.fromJson(value)).toList();
+ }
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("nextPageToken")) {
+ nextPageToken = _json["nextPageToken"];
+ }
+ if (_json.containsKey("selfLink")) {
+ selfLink = _json["selfLink"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (items != null) {
+ _json["items"] = items.map((value) => (value).toJson()).toList();
+ }
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (nextPageToken != null) {
+ _json["nextPageToken"] = nextPageToken;
+ }
+ if (selfLink != null) {
+ _json["selfLink"] = selfLink;
+ }
+ return _json;
+ }
+}
+
+
+/** The response to a list resource request. */
+class ZoneViewsListResourcesResponse {
+ /** The formatted JSON that is requested by the user. */
+ core.List<ListResourceResponseItem> items;
+
+ /**
+ * The URL of a Compute Engine network to which the resources in the view
+ * belong.
+ */
+ core.String network;
+
+ /** A token used for pagination. */
+ core.String nextPageToken;
+
+
+ ZoneViewsListResourcesResponse();
+
+ ZoneViewsListResourcesResponse.fromJson(core.Map _json) {
+ if (_json.containsKey("items")) {
+ items = _json["items"].map((value) => new ListResourceResponseItem.fromJson(value)).toList();
+ }
+ if (_json.containsKey("network")) {
+ network = _json["network"];
+ }
+ if (_json.containsKey("nextPageToken")) {
+ nextPageToken = _json["nextPageToken"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (items != null) {
+ _json["items"] = items.map((value) => (value).toJson()).toList();
+ }
+ if (network != null) {
+ _json["network"] = network;
+ }
+ if (nextPageToken != null) {
+ _json["nextPageToken"] = nextPageToken;
+ }
+ return _json;
+ }
+}
+
+
+/** The request to remove resources from the resource view. */
+class ZoneViewsRemoveResourcesRequest {
+ /** The list of resources to be removed. */
+ core.List<core.String> resources;
+
+
+ ZoneViewsRemoveResourcesRequest();
+
+ ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("resources")) {
+ resources = _json["resources"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (resources != null) {
+ _json["resources"] = resources;
+ }
+ return _json;
+ }
+}
+
+
+/** Not documented yet. */
+class ZoneViewsSetServiceRequest {
+ /** The service information to be updated. */
+ core.List<ServiceEndpoint> endpoints;
+
+ /**
+ * Fingerprint of the service information; a hash of the contents. This field
+ * is used for optimistic locking when updating the service entries.
+ */
+ core.String fingerprint;
+
+ /**
+ * The name of the resource if user wants to update the service information of
+ * the resource.
+ */
+ core.String resourceName;
+
+
+ ZoneViewsSetServiceRequest();
+
+ ZoneViewsSetServiceRequest.fromJson(core.Map _json) {
+ if (_json.containsKey("endpoints")) {
+ endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
+ }
+ if (_json.containsKey("fingerprint")) {
+ fingerprint = _json["fingerprint"];
+ }
+ if (_json.containsKey("resourceName")) {
+ resourceName = _json["resourceName"];
+ }
+ }
+
+ core.Map toJson() {
+ var _json = new core.Map();
+ if (endpoints != null) {
+ _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
+ }
+ if (fingerprint != null) {
+ _json["fingerprint"] = fingerprint;
+ }
+ if (resourceName != null) {
+ _json["resourceName"] = resourceName;
+ }
+ return _json;
+ }
+}
+
+
« no previous file with comments | « generated/googleapis_beta/lib/genomics/v1beta.dart ('k') | generated/googleapis_beta/lib/src/common_internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698