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

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

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 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/resourceviews/v1beta2.dart b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
index a9d1707c383b0a4841108ea93e92c905f70c7754..cedbaeead963e6c6af5a9c60786fbed7191ed5e9 100644
--- a/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
+++ b/generated/googleapis_beta/lib/resourceviews/v1beta2.dart
@@ -9,81 +9,80 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client resourceviews/v1beta2';
-/**
- * The Resource View API allows users to create and manage logical sets of
- * Google Compute Engine instances.
- */
+/// The Resource View API allows users to create and manage logical sets of
+/// Google Compute Engine instances.
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 data across Google Cloud Platform services
+ static const CloudPlatformScope =
+ "https://www.googleapis.com/auth/cloud-platform";
- /** View your data across Google Cloud Platform services */
- static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /// 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 Compute Engine resources */
+ /// 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 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";
+ /// 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 commons.ApiRequester _requester;
- ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(_requester);
+ ZoneOperationsResourceApi get zoneOperations =>
+ new ZoneOperationsResourceApi(_requester);
ZoneViewsResourceApi get zoneViews => new ZoneViewsResourceApi(_requester);
- ResourceviewsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "resourceviews/v1beta2/projects/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ ResourceviewsApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "resourceviews/v1beta2/projects/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class ZoneOperationsResourceApi {
final commons.ApiRequester _requester;
- ZoneOperationsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Retrieves the specified zone-specific operation resource.
- *
- * Request parameters:
- *
- * [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])?".
- *
- * [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].
- *
- * 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> get(core.String project, core.String zone, core.String operation) {
+ ZoneOperationsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Retrieves the specified zone-specific operation resource.
+ ///
+ /// Request parameters:
+ ///
+ /// [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])?".
+ ///
+ /// [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].
+ ///
+ /// 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> get(
+ core.String project, core.String zone, core.String operation) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -101,49 +100,51 @@ class ZoneOperationsResourceApi {
throw new core.ArgumentError("Parameter operation is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/operations/' +
+ commons.Escaper.ecapeVariable('$operation');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * Retrieves the list of operation resources contained within the specified
- * zone.
- *
- * Request parameters:
- *
- * [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.
- *
- * [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".
- *
- * [pageToken] - Optional. Tag returned by a previous list request truncated
- * by maxResults. Used to continue a previous list request.
- *
- * Completes with a [OperationList].
- *
- * 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<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) {
+ /// Retrieves the list of operation resources contained within the specified
+ /// zone.
+ ///
+ /// Request parameters:
+ ///
+ /// [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.
+ ///
+ /// [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".
+ ///
+ /// [pageToken] - Optional. Tag returned by a previous list request truncated
+ /// by maxResults. Used to continue a previous list request.
+ ///
+ /// Completes with a [OperationList].
+ ///
+ /// 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<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;
@@ -167,49 +168,47 @@ class ZoneOperationsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/operations';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/operations';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new OperationList.fromJson(data));
}
-
}
-
class ZoneViewsResourceApi {
final commons.ApiRequester _requester;
- ZoneViewsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Add resources to 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 [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> addResources(ZoneViewsAddResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
+ ZoneViewsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Add resources to 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 [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> addResources(ZoneViewsAddResourcesRequest request,
+ core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -230,38 +229,41 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView') + '/addResources';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView') +
+ '/addResources';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * Delete a resource view.
- *
- * 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 [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> delete(core.String project, core.String zone, core.String resourceView) {
+ /// Delete a resource view.
+ ///
+ /// 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 [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> delete(
+ core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -279,38 +281,40 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * Get the information of a zonal resource view.
- *
- * 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 [ResourceView].
- *
- * 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<ResourceView> get(core.String project, core.String zone, core.String resourceView) {
+ /// Get the information of a zonal resource view.
+ ///
+ /// 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 [ResourceView].
+ ///
+ /// 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<ResourceView> get(
+ core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -328,41 +332,44 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ResourceView.fromJson(data));
}
- /**
- * Get the service information of a resource view or a resource.
- *
- * 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.
- *
- * [resourceName] - The name of the resource if user wants to get the service
- * information of the resource.
- *
- * Completes with a [ZoneViewsGetServiceResponse].
- *
- * 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<ZoneViewsGetServiceResponse> getService(core.String project, core.String zone, core.String resourceView, {core.String resourceName}) {
+ /// Get the service information of a resource view or a resource.
+ ///
+ /// 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.
+ ///
+ /// [resourceName] - The name of the resource if user wants to get the
+ /// service information of the resource.
+ ///
+ /// Completes with a [ZoneViewsGetServiceResponse].
+ ///
+ /// 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<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;
@@ -383,38 +390,42 @@ class ZoneViewsResourceApi {
_queryParams["resourceName"] = [resourceName];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView') + '/getService';
-
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ZoneViewsGetServiceResponse.fromJson(data));
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView') +
+ '/getService';
+
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ZoneViewsGetServiceResponse.fromJson(data));
}
- /**
- * Create a resource view.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project name of the resource view.
- *
- * [zone] - The zone name of the resource view.
- *
- * 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> insert(ResourceView request, core.String project, core.String zone) {
+ /// Create a resource view.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project name of the resource view.
+ ///
+ /// [zone] - The zone name of the resource view.
+ ///
+ /// 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> insert(
+ ResourceView request, core.String project, core.String zone) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -432,44 +443,45 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter zone is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * List resource views.
- *
- * Request parameters:
- *
- * [project] - The project name of the resource view.
- *
- * [zone] - The zone name of the resource view.
- *
- * [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.
- *
- * Completes with a [ZoneViewsList].
- *
- * 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<ZoneViewsList> list(core.String project, core.String zone, {core.int maxResults, core.String pageToken}) {
+ /// List resource views.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project name of the resource view.
+ ///
+ /// [zone] - The zone name of the resource view.
+ ///
+ /// [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.
+ ///
+ /// Completes with a [ZoneViewsList].
+ ///
+ /// 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<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;
@@ -490,64 +502,71 @@ class ZoneViewsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ZoneViewsList.fromJson(data));
}
- /**
- * List the resources of the resource view.
- *
- * 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.
- *
- * [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"
- *
- * [listState] - The state of the instance to list. By default, it lists all
- * instances.
- * Possible string values are:
- * - "ALL"
- * - "RUNNING"
- *
- * [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 [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<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}) {
+ /// List the resources of the resource view.
+ ///
+ /// 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.
+ ///
+ /// [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"
+ ///
+ /// [listState] - The state of the instance to list. By default, it lists all
+ /// instances.
+ /// Possible string values are:
+ /// - "ALL"
+ /// - "RUNNING"
+ ///
+ /// [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 [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<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;
@@ -580,40 +599,47 @@ class ZoneViewsResourceApi {
_queryParams["serviceName"] = [serviceName];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView') + '/resources';
-
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ZoneViewsListResourcesResponse.fromJson(data));
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView') +
+ '/resources';
+
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ 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 [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> removeResources(ZoneViewsRemoveResourcesRequest request, core.String project, core.String zone, core.String resourceView) {
+ /// 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 [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> removeResources(
+ ZoneViewsRemoveResourcesRequest request,
+ core.String project,
+ core.String zone,
+ core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -634,40 +660,43 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView') + '/removeResources';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView') +
+ '/removeResources';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * 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 [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> setService(ZoneViewsSetServiceRequest request, core.String project, core.String zone, core.String resourceView) {
+ /// 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 [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> setService(ZoneViewsSetServiceRequest request,
+ core.String project, core.String zone, core.String resourceView) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -688,27 +717,29 @@ class ZoneViewsResourceApi {
throw new core.ArgumentError("Parameter resourceView is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/resourceViews/' + commons.Escaper.ecapeVariable('$resourceView') + '/setService';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/zones/' +
+ commons.Escaper.ecapeVariable('$zone') +
+ '/resourceViews/' +
+ commons.Escaper.ecapeVariable('$resourceView') +
+ '/setService';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
-
}
-
-
-/** The Label to be applied to the resource views. */
+/// The Label to be applied to the resource views.
class Label {
- /** Key of the label. */
+ /// Key of the label.
core.String key;
- /** Value of the label. */
+
+ /// Value of the label.
core.String value;
Label();
@@ -723,7 +754,8 @@ class Label {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (key != null) {
_json["key"] = key;
}
@@ -734,13 +766,13 @@ class Label {
}
}
-/**
- * The list response item that contains the resource and end points information.
- */
+/// The list response item that contains the resource and end points
+/// information.
class ListResourceResponseItem {
- /** The list of service end points on the resource. */
+ /// The list of service end points on the resource.
core.Map<core.String, core.List<core.int>> endpoints;
- /** The full URL of the resource. */
+
+ /// The full URL of the resource.
core.String resource;
ListResourceResponseItem();
@@ -755,7 +787,8 @@ class ListResourceResponseItem {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (endpoints != null) {
_json["endpoints"] = endpoints;
}
@@ -767,14 +800,14 @@ class ListResourceResponseItem {
}
class OperationErrorErrors {
- /** [Output Only] The error type identifier for this error. */
+ /// [Output Only] The error type identifier for this error.
core.String code;
- /**
- * [Output Only] 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;
- /** [Output Only] An optional, human-readable error message. */
+
+ /// [Output Only] An optional, human-readable error message.
core.String message;
OperationErrorErrors();
@@ -792,7 +825,8 @@ class OperationErrorErrors {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (code != null) {
_json["code"] = code;
}
@@ -806,27 +840,26 @@ class OperationErrorErrors {
}
}
-/**
- * [Output Only] If errors occurred during processing of this operation, this
- * field will be populated.
- */
+/// [Output Only] If errors occurred during processing of this operation, this
+/// field will be populated.
class OperationError {
- /**
- * [Output Only] 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();
OperationError.fromJson(core.Map _json) {
if (_json.containsKey("errors")) {
- errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(value)).toList();
+ errors = _json["errors"]
+ .map((value) => new OperationErrorErrors.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (errors != null) {
_json["errors"] = errors.map((value) => (value).toJson()).toList();
}
@@ -835,9 +868,10 @@ class OperationError {
}
class OperationWarningsData {
- /** [Output Only] Metadata key for this warning. */
+ /// [Output Only] Metadata key for this warning.
core.String key;
- /** [Output Only] Metadata value for this warning. */
+
+ /// [Output Only] Metadata value for this warning.
core.String value;
OperationWarningsData();
@@ -852,7 +886,8 @@ class OperationWarningsData {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (key != null) {
_json["key"] = key;
}
@@ -864,11 +899,13 @@ class OperationWarningsData {
}
class OperationWarnings {
- /** [Output only] The warning type identifier for this warning. */
+ /// [Output only] The warning type identifier for this warning.
core.String code;
- /** [Output only] Metadata for this warning in key:value format. */
+
+ /// [Output only] Metadata for this warning in key:value format.
core.List<OperationWarningsData> data;
- /** [Output only] Optional human-readable details for this warning. */
+
+ /// [Output only] Optional human-readable details for this warning.
core.String message;
OperationWarnings();
@@ -878,7 +915,9 @@ class OperationWarnings {
code = _json["code"];
}
if (_json.containsKey("data")) {
- data = _json["data"].map((value) => new OperationWarningsData.fromJson(value)).toList();
+ data = _json["data"]
+ .map((value) => new OperationWarningsData.fromJson(value))
+ .toList();
}
if (_json.containsKey("message")) {
message = _json["message"];
@@ -886,7 +925,8 @@ class OperationWarnings {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (code != null) {
_json["code"] = code;
}
@@ -900,99 +940,91 @@ class OperationWarnings {
}
}
-/** An operation resource, used to manage asynchronous API requests. */
+/// An operation resource, used to manage asynchronous API requests.
class Operation {
- /**
- * [Output only] An optional identifier specified by the client when the
- * mutation was initiated. Must be unique for all operation resources in the
- * project.
- */
+ /// [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] The time that this operation was requested, in RFC3339 text
- * format.
- */
+
+ /// [Output Only] The time that this operation was requested, in RFC3339 text
+ /// format.
core.String creationTimestamp;
- /**
- * [Output Only] The time that this operation was completed, in RFC3339 text
- * format.
- */
+
+ /// [Output Only] The time that this operation was completed, in RFC3339 text
+ /// format.
core.String endTime;
- /**
- * [Output Only] If errors occurred during processing of this operation, this
- * field will be populated.
- */
+
+ /// [Output Only] If errors occurred during processing of this operation,
+ /// this field will be populated.
OperationError error;
- /** [Output only] If operation fails, the HTTP error message returned. */
+
+ /// [Output only] If operation fails, the HTTP error message returned.
core.String httpErrorMessage;
- /** [Output only] If operation fails, the HTTP error status code returned. */
+
+ /// [Output only] If operation fails, the HTTP error status code returned.
core.int httpErrorStatusCode;
- /**
- * [Output Only] Unique identifier for the resource, generated by the server.
- */
+
+ /// [Output Only] Unique identifier for the resource, generated by the
+ /// server.
core.String id;
- /**
- * [Output Only] The time that this operation was requested, in RFC3339 text
- * format.
- */
+
+ /// [Output Only] The time that this operation was requested, in RFC3339 text
+ /// format.
core.String insertTime;
- /** [Output only] Type of the resource. */
+
+ /// [Output only] Type of the resource.
core.String kind;
- /** [Output Only] Name of the resource. */
+
+ /// [Output Only] Name of the resource.
core.String name;
- /**
- * [Output only] Type of the operation. Operations include insert, update, and
- * delete.
- */
+
+ /// [Output only] Type of the operation. Operations include 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 be monotonically increasing as the
+ /// operation progresses.
core.int progress;
- /**
- * [Output Only] URL of the region where the operation resides. Only available
- * when performing regional operations.
- */
+
+ /// [Output Only] URL of the region where the operation resides. Only
+ /// available when performing regional operations.
core.String region;
- /** [Output Only] Server-defined fully-qualified URL for this resource. */
+
+ /// [Output Only] Server-defined fully-qualified URL for this resource.
core.String selfLink;
- /**
- * [Output Only] The time that this operation was started by the server, in
- * RFC3339 text format.
- */
+
+ /// [Output Only] The time that this operation was started by the server, in
+ /// RFC3339 text format.
core.String startTime;
- /** [Output Only] Status of the operation. */
+
+ /// [Output Only] Status of the operation.
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 there are issues with this operation, a warning is
- * returned.
- */
+
+ /// [Output Only] If there are issues with this operation, a warning is
+ /// returned.
core.List<OperationWarnings> warnings;
- /**
- * [Output Only] URL of the zone where the operation resides. Only available
- * when performing per-zone operations.
- */
+
+ /// [Output Only] URL of the zone where the operation resides. Only available
+ /// when performing per-zone operations.
core.String zone;
Operation();
@@ -1059,7 +1091,9 @@ class Operation {
user = _json["user"];
}
if (_json.containsKey("warnings")) {
- warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson(value)).toList();
+ warnings = _json["warnings"]
+ .map((value) => new OperationWarnings.fromJson(value))
+ .toList();
}
if (_json.containsKey("zone")) {
zone = _json["zone"];
@@ -1067,7 +1101,8 @@ class Operation {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (clientOperationId != null) {
_json["clientOperationId"] = clientOperationId;
}
@@ -1139,17 +1174,19 @@ class Operation {
}
class OperationList {
- /**
- * Unique identifier for the resource; defined by the server (output only).
- */
+ /// Unique identifier for the resource; defined by the server (output only).
core.String id;
- /** The operation resources. */
+
+ /// The operation resources.
core.List<Operation> items;
- /** Type of resource. */
+
+ /// Type of resource.
core.String kind;
- /** A token used to continue a truncated list request (output only). */
+
+ /// A token used to continue a truncated list request (output only).
core.String nextPageToken;
- /** Server defined URL for this resource (output only). */
+
+ /// Server defined URL for this resource (output only).
core.String selfLink;
OperationList();
@@ -1159,7 +1196,8 @@ class OperationList {
id = _json["id"];
}
if (_json.containsKey("items")) {
- items = _json["items"].map((value) => new Operation.fromJson(value)).toList();
+ items =
+ _json["items"].map((value) => new Operation.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -1173,7 +1211,8 @@ class OperationList {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -1193,34 +1232,43 @@ class OperationList {
}
}
-/** The resource view object. */
+/// The resource view object.
class ResourceView {
- /** The creation time of the resource view. */
+ /// The creation time of the resource view.
core.String creationTimestamp;
- /** The detailed description of the resource view. */
+
+ /// The detailed description of the resource view.
core.String description;
- /** Services endpoint information. */
+
+ /// Services endpoint information.
core.List<ServiceEndpoint> endpoints;
- /** The fingerprint of the service endpoint information. */
+
+ /// The fingerprint of the service endpoint information.
core.String fingerprint;
- /** [Output Only] The ID of the resource view. */
+
+ /// [Output Only] The ID of the resource view.
core.String id;
- /** Type of the resource. */
+
+ /// Type of the resource.
core.String kind;
- /** The labels for events. */
+
+ /// The labels for events.
core.List<Label> labels;
- /** The name of the resource view. */
+
+ /// The name of the resource view.
core.String name;
- /**
- * The URL of a Compute Engine network to which the resources in the view
- * belong.
- */
+
+ /// 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. */
+
+ /// A list of all resources in the resource view.
core.List<core.String> resources;
- /** [Output Only] A self-link to the resource view. */
+
+ /// [Output Only] A self-link to the resource view.
core.String selfLink;
- /** The total number of resources in the resource view. */
+
+ /// The total number of resources in the resource view.
core.int size;
ResourceView();
@@ -1233,7 +1281,9 @@ class ResourceView {
description = _json["description"];
}
if (_json.containsKey("endpoints")) {
- endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson(value)).toList();
+ endpoints = _json["endpoints"]
+ .map((value) => new ServiceEndpoint.fromJson(value))
+ .toList();
}
if (_json.containsKey("fingerprint")) {
fingerprint = _json["fingerprint"];
@@ -1245,7 +1295,8 @@ class ResourceView {
kind = _json["kind"];
}
if (_json.containsKey("labels")) {
- labels = _json["labels"].map((value) => new Label.fromJson(value)).toList();
+ labels =
+ _json["labels"].map((value) => new Label.fromJson(value)).toList();
}
if (_json.containsKey("name")) {
name = _json["name"];
@@ -1265,7 +1316,8 @@ class ResourceView {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (creationTimestamp != null) {
_json["creationTimestamp"] = creationTimestamp;
}
@@ -1306,11 +1358,12 @@ class ResourceView {
}
}
-/** The service endpoint that may be started in a VM. */
+/// The service endpoint that may be started in a VM.
class ServiceEndpoint {
- /** The name of the service endpoint. */
+ /// The name of the service endpoint.
core.String name;
- /** The port of the service endpoint. */
+
+ /// The port of the service endpoint.
core.int port;
ServiceEndpoint();
@@ -1325,7 +1378,8 @@ class ServiceEndpoint {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (name != null) {
_json["name"] = name;
}
@@ -1336,9 +1390,9 @@ class ServiceEndpoint {
}
}
-/** The request to add resources to the resource view. */
+/// The request to add resources to the resource view.
class ZoneViewsAddResourcesRequest {
- /** The list of resources to be added. */
+ /// The list of resources to be added.
core.List<core.String> resources;
ZoneViewsAddResourcesRequest();
@@ -1350,7 +1404,8 @@ class ZoneViewsAddResourcesRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (resources != null) {
_json["resources"] = resources;
}
@@ -1359,16 +1414,19 @@ class ZoneViewsAddResourcesRequest {
}
class ZoneViewsGetServiceResponse {
- /** The service information. */
+ /// The service information.
core.List<ServiceEndpoint> endpoints;
- /** The fingerprint of the service information. */
+
+ /// 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();
+ endpoints = _json["endpoints"]
+ .map((value) => new ServiceEndpoint.fromJson(value))
+ .toList();
}
if (_json.containsKey("fingerprint")) {
fingerprint = _json["fingerprint"];
@@ -1376,7 +1434,8 @@ class ZoneViewsGetServiceResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (endpoints != null) {
_json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
}
@@ -1387,22 +1446,27 @@ class ZoneViewsGetServiceResponse {
}
}
-/** The response to a list request. */
+/// The response to a list request.
class ZoneViewsList {
- /** The result that contains all resource views that meet the criteria. */
+ /// The result that contains all resource views that meet the criteria.
core.List<ResourceView> items;
- /** Type of resource. */
+
+ /// Type of resource.
core.String kind;
- /** A token used for pagination. */
+
+ /// A token used for pagination.
core.String nextPageToken;
- /** Server defined URL for this resource (output only). */
+
+ /// 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();
+ items = _json["items"]
+ .map((value) => new ResourceView.fromJson(value))
+ .toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -1416,7 +1480,8 @@ class ZoneViewsList {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -1433,23 +1498,25 @@ class ZoneViewsList {
}
}
-/** The response to a list resource request. */
+/// The response to a list resource request.
class ZoneViewsListResourcesResponse {
- /** The formatted JSON that is requested by the user. */
+ /// 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.
- */
+
+ /// The URL of a Compute Engine network to which the resources in the view
+ /// belong.
core.String network;
- /** A token used for pagination. */
+
+ /// 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();
+ items = _json["items"]
+ .map((value) => new ListResourceResponseItem.fromJson(value))
+ .toList();
}
if (_json.containsKey("network")) {
network = _json["network"];
@@ -1460,7 +1527,8 @@ class ZoneViewsListResourcesResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (items != null) {
_json["items"] = items.map((value) => (value).toJson()).toList();
}
@@ -1474,9 +1542,9 @@ class ZoneViewsListResourcesResponse {
}
}
-/** The request to remove resources from the resource view. */
+/// The request to remove resources from the resource view.
class ZoneViewsRemoveResourcesRequest {
- /** The list of resources to be removed. */
+ /// The list of resources to be removed.
core.List<core.String> resources;
ZoneViewsRemoveResourcesRequest();
@@ -1488,7 +1556,8 @@ class ZoneViewsRemoveResourcesRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (resources != null) {
_json["resources"] = resources;
}
@@ -1497,24 +1566,24 @@ class ZoneViewsRemoveResourcesRequest {
}
class ZoneViewsSetServiceRequest {
- /** The service information to be updated. */
+ /// 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.
- */
+
+ /// 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.
- */
+
+ /// 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();
+ endpoints = _json["endpoints"]
+ .map((value) => new ServiceEndpoint.fromJson(value))
+ .toList();
}
if (_json.containsKey("fingerprint")) {
fingerprint = _json["fingerprint"];
@@ -1525,7 +1594,8 @@ class ZoneViewsSetServiceRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (endpoints != null) {
_json["endpoints"] = endpoints.map((value) => (value).toJson()).toList();
}
« no previous file with comments | « generated/googleapis_beta/lib/resourceviews/v1beta1.dart ('k') | generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698