| Index: generated/googleapis/lib/monitoring/v3.dart
|
| diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart
|
| index 2501c6d2bcce8b5d3d6caaed3990f4842035e519..035e4c105882dea32b1ddf22aaaf3501e7101d75 100644
|
| --- a/generated/googleapis/lib/monitoring/v3.dart
|
| +++ b/generated/googleapis/lib/monitoring/v3.dart
|
| @@ -9,86 +9,88 @@ 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 monitoring/v3';
|
|
|
| -/**
|
| - * Manages your Stackdriver Monitoring data and configurations. Most projects
|
| - * must be associated with a Stackdriver account, with a few exceptions as noted
|
| - * on the individual method pages.
|
| - */
|
| +/// Manages your Stackdriver Monitoring data and configurations. Most projects
|
| +/// must be associated with a Stackdriver account, with a few exceptions as
|
| +/// noted on the individual method pages.
|
| class MonitoringApi {
|
| - /** 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 and write monitoring data for all of your Google and third-party Cloud
|
| - * and API projects
|
| - */
|
| + /// View and write monitoring data for all of your Google and third-party
|
| + /// Cloud and API projects
|
| static const MonitoringScope = "https://www.googleapis.com/auth/monitoring";
|
|
|
| - /**
|
| - * View monitoring data for all of your Google Cloud and third-party projects
|
| - */
|
| - static const MonitoringReadScope = "https://www.googleapis.com/auth/monitoring.read";
|
| -
|
| - /** Publish metric data to your Google Cloud projects */
|
| - static const MonitoringWriteScope = "https://www.googleapis.com/auth/monitoring.write";
|
| + /// View monitoring data for all of your Google Cloud and third-party
|
| + /// projects
|
| + static const MonitoringReadScope =
|
| + "https://www.googleapis.com/auth/monitoring.read";
|
|
|
| + /// Publish metric data to your Google Cloud projects
|
| + static const MonitoringWriteScope =
|
| + "https://www.googleapis.com/auth/monitoring.write";
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
|
|
|
| - MonitoringApi(http.Client client, {core.String rootUrl: "https://monitoring.googleapis.com/", core.String servicePath: ""}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + MonitoringApi(http.Client client,
|
| + {core.String rootUrl: "https://monitoring.googleapis.com/",
|
| + core.String servicePath: ""})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class ProjectsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsCollectdTimeSeriesResourceApi get collectdTimeSeries => new ProjectsCollectdTimeSeriesResourceApi(_requester);
|
| - ProjectsGroupsResourceApi get groups => new ProjectsGroupsResourceApi(_requester);
|
| - ProjectsMetricDescriptorsResourceApi get metricDescriptors => new ProjectsMetricDescriptorsResourceApi(_requester);
|
| - ProjectsMonitoredResourceDescriptorsResourceApi get monitoredResourceDescriptors => new ProjectsMonitoredResourceDescriptorsResourceApi(_requester);
|
| - ProjectsTimeSeriesResourceApi get timeSeries => new ProjectsTimeSeriesResourceApi(_requester);
|
| -
|
| - ProjectsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| + ProjectsCollectdTimeSeriesResourceApi get collectdTimeSeries =>
|
| + new ProjectsCollectdTimeSeriesResourceApi(_requester);
|
| + ProjectsGroupsResourceApi get groups =>
|
| + new ProjectsGroupsResourceApi(_requester);
|
| + ProjectsMetricDescriptorsResourceApi get metricDescriptors =>
|
| + new ProjectsMetricDescriptorsResourceApi(_requester);
|
| + ProjectsMonitoredResourceDescriptorsResourceApi
|
| + get monitoredResourceDescriptors =>
|
| + new ProjectsMonitoredResourceDescriptorsResourceApi(_requester);
|
| + ProjectsTimeSeriesResourceApi get timeSeries =>
|
| + new ProjectsTimeSeriesResourceApi(_requester);
|
| +
|
| + ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
|
| }
|
|
|
| -
|
| class ProjectsCollectdTimeSeriesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsCollectdTimeSeriesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Stackdriver Monitoring Agent only: Creates a new time series.<aside
|
| - * class="caution">This method is only for use by the Stackdriver Monitoring
|
| - * Agent. Use projects.timeSeries.create instead.</aside>
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project in which to create the time series. The format is
|
| - * "projects/PROJECT_ID_OR_NUMBER".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * 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<Empty> create(CreateCollectdTimeSeriesRequest request, core.String name) {
|
| + ProjectsCollectdTimeSeriesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Stackdriver Monitoring Agent only: Creates a new time series.<aside
|
| + /// class="caution">This method is only for use by the Stackdriver Monitoring
|
| + /// Agent. Use projects.timeSeries.create instead.</aside>
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project in which to create the time series. The format is
|
| + /// "projects/PROJECT_ID_OR_NUMBER".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// Completes with a [CreateCollectdTimeSeriesResponse].
|
| + ///
|
| + /// 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<CreateCollectdTimeSeriesResponse> create(
|
| + CreateCollectdTimeSeriesRequest request, core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -103,52 +105,51 @@ class ProjectsCollectdTimeSeriesResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/collectdTimeSeries';
|
| + _url = 'v3/' +
|
| + commons.Escaper.ecapeVariableReserved('$name') +
|
| + '/collectdTimeSeries';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new Empty.fromJson(data));
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new CreateCollectdTimeSeriesResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsGroupsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsGroupsMembersResourceApi get members => new ProjectsGroupsMembersResourceApi(_requester);
|
| -
|
| - ProjectsGroupsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Creates a new group.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project in which to create the group. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * [validateOnly] - If true, validate this request but do not create the
|
| - * group.
|
| - *
|
| - * Completes with a [Group].
|
| - *
|
| - * 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<Group> create(Group request, core.String name, {core.bool validateOnly}) {
|
| + ProjectsGroupsMembersResourceApi get members =>
|
| + new ProjectsGroupsMembersResourceApi(_requester);
|
| +
|
| + ProjectsGroupsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Creates a new group.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project in which to create the group. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// [validateOnly] - If true, validate this request but do not create the
|
| + /// group.
|
| + ///
|
| + /// Completes with a [Group].
|
| + ///
|
| + /// 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<Group> create(Group request, core.String name,
|
| + {core.bool validateOnly}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -168,33 +169,30 @@ class ProjectsGroupsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups';
|
|
|
| - 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 Group.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Deletes an existing group.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The group to delete. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}".
|
| - * Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Deletes an existing group.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The group to delete. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}".
|
| + /// Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// 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<Empty> delete(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -209,33 +207,30 @@ class ProjectsGroupsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - 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 Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Gets a single group.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The group to retrieve. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}".
|
| - * Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| - *
|
| - * Completes with a [Group].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Gets a single group.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The group to retrieve. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}".
|
| + /// Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| + ///
|
| + /// Completes with a [Group].
|
| + ///
|
| + /// 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<Group> get(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -250,60 +245,62 @@ class ProjectsGroupsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - 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 Group.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the existing groups.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project whose groups are to be listed. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * [childrenOfGroup] - A group name:
|
| - * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose
|
| - * parentName field contains the group name. If no groups have this parent,
|
| - * the results are empty.
|
| - *
|
| - * [descendantsOfGroup] - A group name:
|
| - * "projects/{project_id_or_number}/groups/{group_id}". Returns the
|
| - * descendants of the specified group. This is a superset of the results
|
| - * returned by the childrenOfGroup filter, and includes children-of-children,
|
| - * and so forth.
|
| - *
|
| - * [pageToken] - If this field is not empty then it must contain the
|
| - * nextPageToken value returned by a previous call to this method. Using this
|
| - * field causes the method to return additional results from the previous
|
| - * method call.
|
| - *
|
| - * [pageSize] - A positive number that is the maximum number of results to
|
| - * return.
|
| - *
|
| - * [ancestorsOfGroup] - A group name:
|
| - * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that
|
| - * are ancestors of the specified group. The groups are returned in order,
|
| - * starting with the immediate parent and ending with the most distant
|
| - * ancestor. If the specified group has no immediate parent, the results are
|
| - * empty.
|
| - *
|
| - * Completes with a [ListGroupsResponse].
|
| - *
|
| - * 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<ListGroupsResponse> list(core.String name, {core.String childrenOfGroup, core.String descendantsOfGroup, core.String pageToken, core.int pageSize, core.String ancestorsOfGroup}) {
|
| + /// Lists the existing groups.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project whose groups are to be listed. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// [descendantsOfGroup] - A group name:
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". Returns the
|
| + /// descendants of the specified group. This is a superset of the results
|
| + /// returned by the childrenOfGroup filter, and includes
|
| + /// children-of-children, and so forth.
|
| + ///
|
| + /// [pageToken] - If this field is not empty then it must contain the
|
| + /// nextPageToken value returned by a previous call to this method. Using
|
| + /// this field causes the method to return additional results from the
|
| + /// previous method call.
|
| + ///
|
| + /// [pageSize] - A positive number that is the maximum number of results to
|
| + /// return.
|
| + ///
|
| + /// [ancestorsOfGroup] - A group name:
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". Returns groups that
|
| + /// are ancestors of the specified group. The groups are returned in order,
|
| + /// starting with the immediate parent and ending with the most distant
|
| + /// ancestor. If the specified group has no immediate parent, the results are
|
| + /// empty.
|
| + ///
|
| + /// [childrenOfGroup] - A group name:
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose
|
| + /// parentName field contains the group name. If no groups have this parent,
|
| + /// the results are empty.
|
| + ///
|
| + /// Completes with a [ListGroupsResponse].
|
| + ///
|
| + /// 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<ListGroupsResponse> list(core.String name,
|
| + {core.String descendantsOfGroup,
|
| + core.String pageToken,
|
| + core.int pageSize,
|
| + core.String ancestorsOfGroup,
|
| + core.String childrenOfGroup}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -314,9 +311,6 @@ class ProjectsGroupsResourceApi {
|
| if (name == null) {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
| - if (childrenOfGroup != null) {
|
| - _queryParams["childrenOfGroup"] = [childrenOfGroup];
|
| - }
|
| if (descendantsOfGroup != null) {
|
| _queryParams["descendantsOfGroup"] = [descendantsOfGroup];
|
| }
|
| @@ -329,45 +323,47 @@ class ProjectsGroupsResourceApi {
|
| if (ancestorsOfGroup != null) {
|
| _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup];
|
| }
|
| + if (childrenOfGroup != null) {
|
| + _queryParams["childrenOfGroup"] = [childrenOfGroup];
|
| + }
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups';
|
|
|
| - 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 ListGroupsResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing group. You can change any group attributes except name.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - Output only. The name of this group. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}". When creating a group,
|
| - * this field is ignored and a new name is created consisting of the project
|
| - * specified in the call to CreateGroup and a unique {group_id} that is
|
| - * generated automatically.
|
| - * Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| - *
|
| - * [validateOnly] - If true, validate this request but do not update the
|
| - * existing group.
|
| - *
|
| - * Completes with a [Group].
|
| - *
|
| - * 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<Group> update(Group request, core.String name, {core.bool validateOnly}) {
|
| + /// Updates an existing group. You can change any group attributes except
|
| + /// name.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - Output only. The name of this group. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". When creating a
|
| + /// group, this field is ignored and a new name is created consisting of the
|
| + /// project specified in the call to CreateGroup and a unique {group_id} that
|
| + /// is generated automatically.
|
| + /// Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| + ///
|
| + /// [validateOnly] - If true, validate this request but do not update the
|
| + /// existing group.
|
| + ///
|
| + /// Completes with a [Group].
|
| + ///
|
| + /// 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<Group> update(Group request, core.String name,
|
| + {core.bool validateOnly}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -387,63 +383,63 @@ class ProjectsGroupsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Group.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsGroupsMembersResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsGroupsMembersResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Lists the monitored resources that are members of a group.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The group whose members are listed. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}".
|
| - * Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| - *
|
| - * [interval_endTime] - Required. The end of the time interval.
|
| - *
|
| - * [filter] - An optional list filter describing the members to be returned.
|
| - * The filter may reference the type, labels, and metadata of monitored
|
| - * resources that comprise the group. For example, to return only resources
|
| - * representing Compute Engine VM instances, use this filter:
|
| - * resource.type = "gce_instance"
|
| - *
|
| - * [pageToken] - If this field is not empty then it must contain the
|
| - * nextPageToken value returned by a previous call to this method. Using this
|
| - * field causes the method to return additional results from the previous
|
| - * method call.
|
| - *
|
| - * [pageSize] - A positive number that is the maximum number of results to
|
| - * return.
|
| - *
|
| - * [interval_startTime] - Optional. The beginning of the time interval. The
|
| - * default value for the start time is the end time. The start time must not
|
| - * be later than the end time.
|
| - *
|
| - * Completes with a [ListGroupMembersResponse].
|
| - *
|
| - * 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<ListGroupMembersResponse> list(core.String name, {core.String interval_endTime, core.String filter, core.String pageToken, core.int pageSize, core.String interval_startTime}) {
|
| + ProjectsGroupsMembersResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Lists the monitored resources that are members of a group.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The group whose members are listed. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}".
|
| + /// Value must have pattern "^projects/[^/]+/groups/[^/]+$".
|
| + ///
|
| + /// [interval_endTime] - Required. The end of the time interval.
|
| + ///
|
| + /// [filter] - An optional list filter describing the members to be returned.
|
| + /// The filter may reference the type, labels, and metadata of monitored
|
| + /// resources that comprise the group. For example, to return only resources
|
| + /// representing Compute Engine VM instances, use this filter:
|
| + /// resource.type = "gce_instance"
|
| + ///
|
| + /// [pageToken] - If this field is not empty then it must contain the
|
| + /// nextPageToken value returned by a previous call to this method. Using
|
| + /// this field causes the method to return additional results from the
|
| + /// previous method call.
|
| + ///
|
| + /// [pageSize] - A positive number that is the maximum number of results to
|
| + /// return.
|
| + ///
|
| + /// [interval_startTime] - Optional. The beginning of the time interval. The
|
| + /// default value for the start time is the end time. The start time must not
|
| + /// be later than the end time.
|
| + ///
|
| + /// Completes with a [ListGroupMembersResponse].
|
| + ///
|
| + /// 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<ListGroupMembersResponse> list(core.String name,
|
| + {core.String interval_endTime,
|
| + core.String filter,
|
| + core.String pageToken,
|
| + core.int pageSize,
|
| + core.String interval_startTime}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -472,46 +468,43 @@ class ProjectsGroupsMembersResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListGroupMembersResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListGroupMembersResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsMetricDescriptorsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Creates a new metric descriptor. User-created metric descriptors define
|
| - * custom metrics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project on which to execute the request. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * Completes with a [MetricDescriptor].
|
| - *
|
| - * 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<MetricDescriptor> create(MetricDescriptor request, core.String name) {
|
| + ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Creates a new metric descriptor. User-created metric descriptors define
|
| + /// custom metrics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project on which to execute the request. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// Completes with a [MetricDescriptor].
|
| + ///
|
| + /// 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<MetricDescriptor> create(
|
| + MetricDescriptor request, core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -526,37 +519,37 @@ class ProjectsMetricDescriptorsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDescriptors';
|
| + _url = 'v3/' +
|
| + commons.Escaper.ecapeVariableReserved('$name') +
|
| + '/metricDescriptors';
|
|
|
| - 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 MetricDescriptor.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Deletes a metric descriptor. Only user-created custom metrics can be
|
| - * deleted.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The metric descriptor on which to execute the request. The format
|
| - * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An
|
| - * example of {metric_id} is: "custom.googleapis.com/my_test_metric".
|
| - * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$".
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Deletes a metric descriptor. Only user-created custom metrics can be
|
| + /// deleted.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The metric descriptor on which to execute the request. The
|
| + /// format is
|
| + /// "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An
|
| + /// example of {metric_id} is: "custom.googleapis.com/my_test_metric".
|
| + /// Value must have pattern "^projects/[^/]+/metricDescriptors/.+$".
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// 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<Empty> delete(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -571,36 +564,34 @@ class ProjectsMetricDescriptorsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - 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 Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Gets a single metric descriptor. This method does not require a Stackdriver
|
| - * account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The metric descriptor on which to execute the request. The format
|
| - * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An
|
| - * example value of {metric_id} is
|
| - * "compute.googleapis.com/instance/disk/read_bytes_count".
|
| - * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$".
|
| - *
|
| - * Completes with a [MetricDescriptor].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Gets a single metric descriptor. This method does not require a
|
| + /// Stackdriver account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The metric descriptor on which to execute the request. The
|
| + /// format is
|
| + /// "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An
|
| + /// example value of {metric_id} is
|
| + /// "compute.googleapis.com/instance/disk/read_bytes_count".
|
| + /// Value must have pattern "^projects/[^/]+/metricDescriptors/.+$".
|
| + ///
|
| + /// Completes with a [MetricDescriptor].
|
| + ///
|
| + /// 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<MetricDescriptor> get(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -615,49 +606,47 @@ class ProjectsMetricDescriptorsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - 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 MetricDescriptor.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists metric descriptors that match a filter. This method does not require
|
| - * a Stackdriver account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project on which to execute the request. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * [pageToken] - If this field is not empty then it must contain the
|
| - * nextPageToken value returned by a previous call to this method. Using this
|
| - * field causes the method to return additional results from the previous
|
| - * method call.
|
| - *
|
| - * [pageSize] - A positive number that is the maximum number of results to
|
| - * return.
|
| - *
|
| - * [filter] - If this field is empty, all custom and system-defined metric
|
| - * descriptors are returned. Otherwise, the filter specifies which metric
|
| - * descriptors are to be returned. For example, the following filter matches
|
| - * all custom metrics:
|
| - * metric.type = starts_with("custom.googleapis.com/")
|
| - *
|
| - * Completes with a [ListMetricDescriptorsResponse].
|
| - *
|
| - * 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<ListMetricDescriptorsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) {
|
| + /// Lists metric descriptors that match a filter. This method does not
|
| + /// require a Stackdriver account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project on which to execute the request. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// [pageToken] - If this field is not empty then it must contain the
|
| + /// nextPageToken value returned by a previous call to this method. Using
|
| + /// this field causes the method to return additional results from the
|
| + /// previous method call.
|
| + ///
|
| + /// [pageSize] - A positive number that is the maximum number of results to
|
| + /// return.
|
| + ///
|
| + /// [filter] - If this field is empty, all custom and system-defined metric
|
| + /// descriptors are returned. Otherwise, the filter specifies which metric
|
| + /// descriptors are to be returned. For example, the following filter matches
|
| + /// all custom metrics:
|
| + /// metric.type = starts_with("custom.googleapis.com/")
|
| + ///
|
| + /// Completes with a [ListMetricDescriptorsResponse].
|
| + ///
|
| + /// 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<ListMetricDescriptorsResponse> list(core.String name,
|
| + {core.String pageToken, core.int pageSize, core.String filter}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -678,47 +667,45 @@ class ProjectsMetricDescriptorsResourceApi {
|
| _queryParams["filter"] = [filter];
|
| }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDescriptors';
|
| + _url = 'v3/' +
|
| + commons.Escaper.ecapeVariableReserved('$name') +
|
| + '/metricDescriptors';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListMetricDescriptorsResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListMetricDescriptorsResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsMonitoredResourceDescriptorsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Gets a single monitored resource descriptor. This method does not require a
|
| - * Stackdriver account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The monitored resource descriptor to get. The format is
|
| - * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}".
|
| - * The {resource_type} is a predefined type, such as cloudsql_database.
|
| - * Value must have pattern
|
| - * "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$".
|
| - *
|
| - * Completes with a [MonitoredResourceDescriptor].
|
| - *
|
| - * 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.
|
| - */
|
| + ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Gets a single monitored resource descriptor. This method does not require
|
| + /// a Stackdriver account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The monitored resource descriptor to get. The format is
|
| + /// "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}".
|
| + /// The {resource_type} is a predefined type, such as cloudsql_database.
|
| + /// Value must have pattern
|
| + /// "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$".
|
| + ///
|
| + /// Completes with a [MonitoredResourceDescriptor].
|
| + ///
|
| + /// 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<MonitoredResourceDescriptor> get(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -733,49 +720,48 @@ class ProjectsMonitoredResourceDescriptorsResourceApi {
|
|
|
| _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new MonitoredResourceDescriptor.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Lists monitored resource descriptors that match a filter. This method does
|
| - * not require a Stackdriver account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project on which to execute the request. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * [filter] - An optional filter describing the descriptors to be returned.
|
| - * The filter can reference the descriptor's type and labels. For example, the
|
| - * following filter returns only Google Compute Engine descriptors that have
|
| - * an id label:
|
| - * resource.type = starts_with("gce_") AND resource.label:id
|
| - *
|
| - * [pageToken] - If this field is not empty then it must contain the
|
| - * nextPageToken value returned by a previous call to this method. Using this
|
| - * field causes the method to return additional results from the previous
|
| - * method call.
|
| - *
|
| - * [pageSize] - A positive number that is the maximum number of results to
|
| - * return.
|
| - *
|
| - * Completes with a [ListMonitoredResourceDescriptorsResponse].
|
| - *
|
| - * 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<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new MonitoredResourceDescriptor.fromJson(data));
|
| + }
|
| +
|
| + /// Lists monitored resource descriptors that match a filter. This method
|
| + /// does not require a Stackdriver account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project on which to execute the request. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// [pageToken] - If this field is not empty then it must contain the
|
| + /// nextPageToken value returned by a previous call to this method. Using
|
| + /// this field causes the method to return additional results from the
|
| + /// previous method call.
|
| + ///
|
| + /// [pageSize] - A positive number that is the maximum number of results to
|
| + /// return.
|
| + ///
|
| + /// [filter] - An optional filter describing the descriptors to be returned.
|
| + /// The filter can reference the descriptor's type and labels. For example,
|
| + /// the following filter returns only Google Compute Engine descriptors that
|
| + /// have an id label:
|
| + /// resource.type = starts_with("gce_") AND resource.label:id
|
| + ///
|
| + /// Completes with a [ListMonitoredResourceDescriptorsResponse].
|
| + ///
|
| + /// 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<ListMonitoredResourceDescriptorsResponse> list(core.String name,
|
| + {core.String pageToken, core.int pageSize, core.String filter}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -786,60 +772,59 @@ class ProjectsMonitoredResourceDescriptorsResourceApi {
|
| if (name == null) {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| if (pageSize != null) {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| + }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredResourceDescriptors';
|
| + _url = 'v3/' +
|
| + commons.Escaper.ecapeVariableReserved('$name') +
|
| + '/monitoredResourceDescriptors';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListMonitoredResourceDescriptorsResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then(
|
| + (data) => new ListMonitoredResourceDescriptorsResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsTimeSeriesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsTimeSeriesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Creates or adds data to one or more time series. The response is empty if
|
| - * all time series in the request were written. If any time series could not
|
| - * be written, a corresponding failure message is included in the error
|
| - * response.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project on which to execute the request. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * Completes with a [Empty].
|
| - *
|
| - * 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<Empty> create(CreateTimeSeriesRequest request, core.String name) {
|
| + ProjectsTimeSeriesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Creates or adds data to one or more time series. The response is empty if
|
| + /// all time series in the request were written. If any time series could not
|
| + /// be written, a corresponding failure message is included in the error
|
| + /// response.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project on which to execute the request. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// Completes with a [Empty].
|
| + ///
|
| + /// 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<Empty> create(
|
| + CreateTimeSeriesRequest request, core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -854,139 +839,148 @@ class ProjectsTimeSeriesResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries';
|
| + _url =
|
| + 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries';
|
|
|
| - 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 Empty.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists time series that match a filter. This method does not require a
|
| - * Stackdriver account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The project on which to execute the request. The format is
|
| - * "projects/{project_id_or_number}".
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * [pageToken] - If this field is not empty then it must contain the
|
| - * nextPageToken value returned by a previous call to this method. Using this
|
| - * field causes the method to return additional results from the previous
|
| - * method call.
|
| - *
|
| - * [aggregation_perSeriesAligner] - The approach to be used to align
|
| - * individual time series. Not all alignment functions may be applied to all
|
| - * time series, depending on the metric type and value type of the original
|
| - * time series. Alignment may change the metric type or the value type of the
|
| - * time series.Time series data must be aligned in order to perform cross-time
|
| - * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
|
| - * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
|
| - * specified; otherwise, an error is returned.
|
| - * Possible string values are:
|
| - * - "ALIGN_NONE" : A ALIGN_NONE.
|
| - * - "ALIGN_DELTA" : A ALIGN_DELTA.
|
| - * - "ALIGN_RATE" : A ALIGN_RATE.
|
| - * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE.
|
| - * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER.
|
| - * - "ALIGN_MIN" : A ALIGN_MIN.
|
| - * - "ALIGN_MAX" : A ALIGN_MAX.
|
| - * - "ALIGN_MEAN" : A ALIGN_MEAN.
|
| - * - "ALIGN_COUNT" : A ALIGN_COUNT.
|
| - * - "ALIGN_SUM" : A ALIGN_SUM.
|
| - * - "ALIGN_STDDEV" : A ALIGN_STDDEV.
|
| - * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE.
|
| - * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE.
|
| - * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99.
|
| - * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95.
|
| - * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50.
|
| - * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05.
|
| - *
|
| - * [interval_startTime] - Optional. The beginning of the time interval. The
|
| - * default value for the start time is the end time. The start time must not
|
| - * be later than the end time.
|
| - *
|
| - * [view] - Specifies which information is returned about the time series.
|
| - * Possible string values are:
|
| - * - "FULL" : A FULL.
|
| - * - "HEADERS" : A HEADERS.
|
| - *
|
| - * [aggregation_groupByFields] - The set of fields to preserve when
|
| - * crossSeriesReducer is specified. The groupByFields determine how the time
|
| - * series are partitioned into subsets prior to applying the aggregation
|
| - * function. Each subset contains time series that have the same value for
|
| - * each of the grouping fields. Each individual time series is a member of
|
| - * exactly one subset. The crossSeriesReducer is applied to each subset of
|
| - * time series. It is not possible to reduce across different resource types,
|
| - * so this field implicitly contains resource.type. Fields not specified in
|
| - * groupByFields are aggregated away. If groupByFields is not specified and
|
| - * all the time series have the same resource type, then the time series are
|
| - * aggregated into a single output time series. If crossSeriesReducer is not
|
| - * defined, this field is ignored.
|
| - *
|
| - * [interval_endTime] - Required. The end of the time interval.
|
| - *
|
| - * [aggregation_alignmentPeriod] - The alignment period for per-time series
|
| - * alignment. If present, alignmentPeriod must be at least 60 seconds. After
|
| - * per-time series alignment, each time series will contain data points only
|
| - * on the period boundaries. If perSeriesAligner is not specified or equals
|
| - * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified
|
| - * and does not equal ALIGN_NONE, then this field must be defined; otherwise
|
| - * an error is returned.
|
| - *
|
| - * [pageSize] - A positive number that is the maximum number of results to
|
| - * return. When view field sets to FULL, it limits the number of Points server
|
| - * will return; if view field is HEADERS, it limits the number of TimeSeries
|
| - * server will return.
|
| - *
|
| - * [orderBy] - Specifies the order in which the points of the time series
|
| - * should be returned. By default, results are not ordered. Currently, this
|
| - * field must be left blank.
|
| - *
|
| - * [aggregation_crossSeriesReducer] - The approach to be used to combine time
|
| - * series. Not all reducer functions may be applied to all time series,
|
| - * depending on the metric type and the value type of the original time
|
| - * series. Reduction may change the metric type of value type of the time
|
| - * series.Time series data must be aligned in order to perform cross-time
|
| - * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
|
| - * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
|
| - * specified; otherwise, an error is returned.
|
| - * Possible string values are:
|
| - * - "REDUCE_NONE" : A REDUCE_NONE.
|
| - * - "REDUCE_MEAN" : A REDUCE_MEAN.
|
| - * - "REDUCE_MIN" : A REDUCE_MIN.
|
| - * - "REDUCE_MAX" : A REDUCE_MAX.
|
| - * - "REDUCE_SUM" : A REDUCE_SUM.
|
| - * - "REDUCE_STDDEV" : A REDUCE_STDDEV.
|
| - * - "REDUCE_COUNT" : A REDUCE_COUNT.
|
| - * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE.
|
| - * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE.
|
| - * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99.
|
| - * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95.
|
| - * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50.
|
| - * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05.
|
| - *
|
| - * [filter] - A monitoring filter that specifies which time series should be
|
| - * returned. The filter must specify a single metric type, and can
|
| - * additionally specify metric labels and other information. For example:
|
| - * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
| - * metric.label.instance_name = "my-instance-name"
|
| - *
|
| - * Completes with a [ListTimeSeriesResponse].
|
| - *
|
| - * 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<ListTimeSeriesResponse> list(core.String name, {core.String pageToken, core.String aggregation_perSeriesAligner, core.String interval_startTime, core.String view, core.List<core.String> aggregation_groupByFields, core.String interval_endTime, core.String aggregation_alignmentPeriod, core.int pageSize, core.String orderBy, core.String aggregation_crossSeriesReducer, core.String filter}) {
|
| + /// Lists time series that match a filter. This method does not require a
|
| + /// Stackdriver account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The project on which to execute the request. The format is
|
| + /// "projects/{project_id_or_number}".
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// [aggregation_crossSeriesReducer] - The approach to be used to combine
|
| + /// time series. Not all reducer functions may be applied to all time series,
|
| + /// depending on the metric type and the value type of the original time
|
| + /// series. Reduction may change the metric type of value type of the time
|
| + /// series.Time series data must be aligned in order to perform cross-time
|
| + /// series reduction. If crossSeriesReducer is specified, then
|
| + /// perSeriesAligner must be specified and not equal ALIGN_NONE and
|
| + /// alignmentPeriod must be specified; otherwise, an error is returned.
|
| + /// Possible string values are:
|
| + /// - "REDUCE_NONE" : A REDUCE_NONE.
|
| + /// - "REDUCE_MEAN" : A REDUCE_MEAN.
|
| + /// - "REDUCE_MIN" : A REDUCE_MIN.
|
| + /// - "REDUCE_MAX" : A REDUCE_MAX.
|
| + /// - "REDUCE_SUM" : A REDUCE_SUM.
|
| + /// - "REDUCE_STDDEV" : A REDUCE_STDDEV.
|
| + /// - "REDUCE_COUNT" : A REDUCE_COUNT.
|
| + /// - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE.
|
| + /// - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE.
|
| + /// - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99.
|
| + /// - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95.
|
| + /// - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50.
|
| + /// - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05.
|
| + ///
|
| + /// [filter] - A monitoring filter that specifies which time series should be
|
| + /// returned. The filter must specify a single metric type, and can
|
| + /// additionally specify metric labels and other information. For example:
|
| + /// metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
| + /// metric.label.instance_name = "my-instance-name"
|
| + ///
|
| + /// [aggregation_perSeriesAligner] - The approach to be used to align
|
| + /// individual time series. Not all alignment functions may be applied to all
|
| + /// time series, depending on the metric type and value type of the original
|
| + /// time series. Alignment may change the metric type or the value type of
|
| + /// the time series.Time series data must be aligned in order to perform
|
| + /// cross-time series reduction. If crossSeriesReducer is specified, then
|
| + /// perSeriesAligner must be specified and not equal ALIGN_NONE and
|
| + /// alignmentPeriod must be specified; otherwise, an error is returned.
|
| + /// Possible string values are:
|
| + /// - "ALIGN_NONE" : A ALIGN_NONE.
|
| + /// - "ALIGN_DELTA" : A ALIGN_DELTA.
|
| + /// - "ALIGN_RATE" : A ALIGN_RATE.
|
| + /// - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE.
|
| + /// - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER.
|
| + /// - "ALIGN_MIN" : A ALIGN_MIN.
|
| + /// - "ALIGN_MAX" : A ALIGN_MAX.
|
| + /// - "ALIGN_MEAN" : A ALIGN_MEAN.
|
| + /// - "ALIGN_COUNT" : A ALIGN_COUNT.
|
| + /// - "ALIGN_SUM" : A ALIGN_SUM.
|
| + /// - "ALIGN_STDDEV" : A ALIGN_STDDEV.
|
| + /// - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE.
|
| + /// - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE.
|
| + /// - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99.
|
| + /// - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95.
|
| + /// - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50.
|
| + /// - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05.
|
| + ///
|
| + /// [pageToken] - If this field is not empty then it must contain the
|
| + /// nextPageToken value returned by a previous call to this method. Using
|
| + /// this field causes the method to return additional results from the
|
| + /// previous method call.
|
| + ///
|
| + /// [interval_startTime] - Optional. The beginning of the time interval. The
|
| + /// default value for the start time is the end time. The start time must not
|
| + /// be later than the end time.
|
| + ///
|
| + /// [view] - Specifies which information is returned about the time series.
|
| + /// Possible string values are:
|
| + /// - "FULL" : A FULL.
|
| + /// - "HEADERS" : A HEADERS.
|
| + ///
|
| + /// [aggregation_groupByFields] - The set of fields to preserve when
|
| + /// crossSeriesReducer is specified. The groupByFields determine how the time
|
| + /// series are partitioned into subsets prior to applying the aggregation
|
| + /// function. Each subset contains time series that have the same value for
|
| + /// each of the grouping fields. Each individual time series is a member of
|
| + /// exactly one subset. The crossSeriesReducer is applied to each subset of
|
| + /// time series. It is not possible to reduce across different resource
|
| + /// types, so this field implicitly contains resource.type. Fields not
|
| + /// specified in groupByFields are aggregated away. If groupByFields is not
|
| + /// specified and all the time series have the same resource type, then the
|
| + /// time series are aggregated into a single output time series. If
|
| + /// crossSeriesReducer is not defined, this field is ignored.
|
| + ///
|
| + /// [interval_endTime] - Required. The end of the time interval.
|
| + ///
|
| + /// [aggregation_alignmentPeriod] - The alignment period for per-time series
|
| + /// alignment. If present, alignmentPeriod must be at least 60 seconds. After
|
| + /// per-time series alignment, each time series will contain data points only
|
| + /// on the period boundaries. If perSeriesAligner is not specified or equals
|
| + /// ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified
|
| + /// and does not equal ALIGN_NONE, then this field must be defined; otherwise
|
| + /// an error is returned.
|
| + ///
|
| + /// [pageSize] - A positive number that is the maximum number of results to
|
| + /// return. When view field sets to FULL, it limits the number of Points
|
| + /// server will return; if view field is HEADERS, it limits the number of
|
| + /// TimeSeries server will return.
|
| + ///
|
| + /// [orderBy] - Specifies the order in which the points of the time series
|
| + /// should be returned. By default, results are not ordered. Currently, this
|
| + /// field must be left blank.
|
| + ///
|
| + /// Completes with a [ListTimeSeriesResponse].
|
| + ///
|
| + /// 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<ListTimeSeriesResponse> list(core.String name,
|
| + {core.String aggregation_crossSeriesReducer,
|
| + core.String filter,
|
| + core.String aggregation_perSeriesAligner,
|
| + core.String pageToken,
|
| + core.String interval_startTime,
|
| + core.String view,
|
| + core.List<core.String> aggregation_groupByFields,
|
| + core.String interval_endTime,
|
| + core.String aggregation_alignmentPeriod,
|
| + core.int pageSize,
|
| + core.String orderBy}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -997,11 +991,21 @@ class ProjectsTimeSeriesResourceApi {
|
| if (name == null) {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| + if (aggregation_crossSeriesReducer != null) {
|
| + _queryParams["aggregation.crossSeriesReducer"] = [
|
| + aggregation_crossSeriesReducer
|
| + ];
|
| + }
|
| + if (filter != null) {
|
| + _queryParams["filter"] = [filter];
|
| }
|
| if (aggregation_perSeriesAligner != null) {
|
| - _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAligner];
|
| + _queryParams["aggregation.perSeriesAligner"] = [
|
| + aggregation_perSeriesAligner
|
| + ];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| }
|
| if (interval_startTime != null) {
|
| _queryParams["interval.startTime"] = [interval_startTime];
|
| @@ -1016,7 +1020,9 @@ class ProjectsTimeSeriesResourceApi {
|
| _queryParams["interval.endTime"] = [interval_endTime];
|
| }
|
| if (aggregation_alignmentPeriod != null) {
|
| - _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod];
|
| + _queryParams["aggregation.alignmentPeriod"] = [
|
| + aggregation_alignmentPeriod
|
| + ];
|
| }
|
| if (pageSize != null) {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| @@ -1024,50 +1030,42 @@ class ProjectsTimeSeriesResourceApi {
|
| if (orderBy != null) {
|
| _queryParams["orderBy"] = [orderBy];
|
| }
|
| - if (aggregation_crossSeriesReducer != null) {
|
| - _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesReducer];
|
| - }
|
| - if (filter != null) {
|
| - _queryParams["filter"] = [filter];
|
| - }
|
|
|
| - _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries';
|
| + _url =
|
| + 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries';
|
|
|
| - 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 ListTimeSeriesResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/**
|
| - * BucketOptions describes the bucket boundaries used to create a histogram for
|
| - * the distribution. The buckets can be in a linear sequence, an exponential
|
| - * sequence, or each bucket can be specified explicitly. BucketOptions does not
|
| - * include the number of values in each bucket.A bucket has an inclusive lower
|
| - * bound and exclusive upper bound for the values that are counted for that
|
| - * bucket. The upper bound of a bucket must be strictly greater than the lower
|
| - * bound. The sequence of N buckets for a distribution consists of an underflow
|
| - * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and
|
| - * an overflow bucket (number N - 1). The buckets are contiguous: the lower
|
| - * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The
|
| - * buckets span the whole range of finite values: lower bound of the underflow
|
| - * bucket is -infinity and the upper bound of the overflow bucket is +infinity.
|
| - * The finite buckets are so-called because both bounds are finite.
|
| - */
|
| +/// BucketOptions describes the bucket boundaries used to create a histogram
|
| +/// for the distribution. The buckets can be in a linear sequence, an
|
| +/// exponential sequence, or each bucket can be specified explicitly.
|
| +/// BucketOptions does not include the number of values in each bucket.A bucket
|
| +/// has an inclusive lower bound and exclusive upper bound for the values that
|
| +/// are counted for that bucket. The upper bound of a bucket must be strictly
|
| +/// greater than the lower bound. The sequence of N buckets for a distribution
|
| +/// consists of an underflow bucket (number 0), zero or more finite buckets
|
| +/// (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets
|
| +/// are contiguous: the lower bound of bucket i (i > 0) is the same as the
|
| +/// upper bound of bucket i - 1. The buckets span the whole range of finite
|
| +/// values: lower bound of the underflow bucket is -infinity and the upper
|
| +/// bound of the overflow bucket is +infinity. The finite buckets are so-called
|
| +/// because both bounds are finite.
|
| class BucketOptions {
|
| - /** The explicit buckets. */
|
| + /// The explicit buckets.
|
| Explicit explicitBuckets;
|
| - /** The exponential buckets. */
|
| +
|
| + /// The exponential buckets.
|
| Exponential exponentialBuckets;
|
| - /** The linear bucket. */
|
| +
|
| + /// The linear bucket.
|
| Linear linearBuckets;
|
|
|
| BucketOptions();
|
| @@ -1077,7 +1075,8 @@ class BucketOptions {
|
| explicitBuckets = new Explicit.fromJson(_json["explicitBuckets"]);
|
| }
|
| if (_json.containsKey("exponentialBuckets")) {
|
| - exponentialBuckets = new Exponential.fromJson(_json["exponentialBuckets"]);
|
| + exponentialBuckets =
|
| + new Exponential.fromJson(_json["exponentialBuckets"]);
|
| }
|
| if (_json.containsKey("linearBuckets")) {
|
| linearBuckets = new Linear.fromJson(_json["linearBuckets"]);
|
| @@ -1085,7 +1084,8 @@ class BucketOptions {
|
| }
|
|
|
| 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 (explicitBuckets != null) {
|
| _json["explicitBuckets"] = (explicitBuckets).toJson();
|
| }
|
| @@ -1099,29 +1099,32 @@ class BucketOptions {
|
| }
|
| }
|
|
|
| -/**
|
| - * A collection of data points sent from a collectd-based plugin. See the
|
| - * collectd documentation for more information.
|
| - */
|
| +/// A collection of data points sent from a collectd-based plugin. See the
|
| +/// collectd documentation for more information.
|
| class CollectdPayload {
|
| - /** The end time of the interval. */
|
| + /// The end time of the interval.
|
| core.String endTime;
|
| - /** The measurement metadata. Example: "process_id" -> 12345 */
|
| +
|
| + /// The measurement metadata. Example: "process_id" -> 12345
|
| core.Map<core.String, TypedValue> metadata;
|
| - /** The name of the plugin. Example: "disk". */
|
| +
|
| + /// The name of the plugin. Example: "disk".
|
| core.String plugin;
|
| - /** The instance name of the plugin Example: "hdcl". */
|
| +
|
| + /// The instance name of the plugin Example: "hdcl".
|
| core.String pluginInstance;
|
| - /** The start time of the interval. */
|
| +
|
| + /// The start time of the interval.
|
| core.String startTime;
|
| - /** The measurement type. Example: "memory". */
|
| +
|
| + /// The measurement type. Example: "memory".
|
| core.String type;
|
| - /** The measurement type instance. Example: "used". */
|
| +
|
| + /// The measurement type instance. Example: "used".
|
| core.String typeInstance;
|
| - /**
|
| - * The measured values during this time interval. Each value must have a
|
| - * different dataSourceName.
|
| - */
|
| +
|
| + /// The measured values during this time interval. Each value must have a
|
| + /// different dataSourceName.
|
| core.List<CollectdValue> values;
|
|
|
| CollectdPayload();
|
| @@ -1131,7 +1134,10 @@ class CollectdPayload {
|
| endTime = _json["endTime"];
|
| }
|
| if (_json.containsKey("metadata")) {
|
| - metadata = commons.mapMap<core.Map<core.String, core.Object>, TypedValue>(_json["metadata"], (core.Map<core.String, core.Object> item) => new TypedValue.fromJson(item));
|
| + metadata = commons.mapMap<core.Map<core.String, core.Object>, TypedValue>(
|
| + _json["metadata"],
|
| + (core.Map<core.String, core.Object> item) =>
|
| + new TypedValue.fromJson(item));
|
| }
|
| if (_json.containsKey("plugin")) {
|
| plugin = _json["plugin"];
|
| @@ -1149,17 +1155,22 @@ class CollectdPayload {
|
| typeInstance = _json["typeInstance"];
|
| }
|
| if (_json.containsKey("values")) {
|
| - values = _json["values"].map((value) => new CollectdValue.fromJson(value)).toList();
|
| + values = _json["values"]
|
| + .map((value) => new CollectdValue.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 (endTime != null) {
|
| _json["endTime"] = endTime;
|
| }
|
| if (metadata != null) {
|
| - _json["metadata"] = commons.mapMap<TypedValue, core.Map<core.String, core.Object>>(metadata, (TypedValue item) => (item).toJson());
|
| + _json["metadata"] =
|
| + commons.mapMap<TypedValue, core.Map<core.String, core.Object>>(
|
| + metadata, (TypedValue item) => (item).toJson());
|
| }
|
| if (plugin != null) {
|
| _json["plugin"] = plugin;
|
| @@ -1183,29 +1194,75 @@ class CollectdPayload {
|
| }
|
| }
|
|
|
| -/** A single data point from a collectd-based plugin. */
|
| +/// Describes the error status for payloads that were not written.
|
| +class CollectdPayloadError {
|
| + /// Records the error status for the payload. If this field is present, the
|
| + /// partial errors for nested values won't be populated.
|
| + Status error;
|
| +
|
| + /// The zero-based index in
|
| + /// CreateCollectdTimeSeriesRequest.collectd_payloads.
|
| + core.int index;
|
| +
|
| + /// Records the error status for values that were not written due to an
|
| + /// error.Failed payloads for which nothing is written will not include
|
| + /// partial value errors.
|
| + core.List<CollectdValueError> valueErrors;
|
| +
|
| + CollectdPayloadError();
|
| +
|
| + CollectdPayloadError.fromJson(core.Map _json) {
|
| + if (_json.containsKey("error")) {
|
| + error = new Status.fromJson(_json["error"]);
|
| + }
|
| + if (_json.containsKey("index")) {
|
| + index = _json["index"];
|
| + }
|
| + if (_json.containsKey("valueErrors")) {
|
| + valueErrors = _json["valueErrors"]
|
| + .map((value) => new CollectdValueError.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>();
|
| + if (error != null) {
|
| + _json["error"] = (error).toJson();
|
| + }
|
| + if (index != null) {
|
| + _json["index"] = index;
|
| + }
|
| + if (valueErrors != null) {
|
| + _json["valueErrors"] =
|
| + valueErrors.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// A single data point from a collectd-based plugin.
|
| class CollectdValue {
|
| - /**
|
| - * The data source for the collectd value. For example there are two data
|
| - * sources for network measurements: "rx" and "tx".
|
| - */
|
| + /// The data source for the collectd value. For example there are two data
|
| + /// sources for network measurements: "rx" and "tx".
|
| core.String dataSourceName;
|
| - /**
|
| - * The type of measurement.
|
| - * Possible string values are:
|
| - * - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This
|
| - * corresponds to
|
| - * google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.
|
| - * - "GAUGE" : An instantaneous measurement of a varying quantity. This
|
| - * corresponds to google.api.MetricDescriptor.MetricKind.GAUGE.
|
| - * - "COUNTER" : A cumulative value over time. This corresponds to
|
| - * google.api.MetricDescriptor.MetricKind.CUMULATIVE.
|
| - * - "DERIVE" : A rate of change of the measurement.
|
| - * - "ABSOLUTE" : An amount of change since the last measurement interval.
|
| - * This corresponds to google.api.MetricDescriptor.MetricKind.DELTA.
|
| - */
|
| +
|
| + /// The type of measurement.
|
| + /// Possible string values are:
|
| + /// - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This
|
| + /// corresponds to
|
| + /// google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.
|
| + /// - "GAUGE" : An instantaneous measurement of a varying quantity. This
|
| + /// corresponds to google.api.MetricDescriptor.MetricKind.GAUGE.
|
| + /// - "COUNTER" : A cumulative value over time. This corresponds to
|
| + /// google.api.MetricDescriptor.MetricKind.CUMULATIVE.
|
| + /// - "DERIVE" : A rate of change of the measurement.
|
| + /// - "ABSOLUTE" : An amount of change since the last measurement interval.
|
| + /// This corresponds to google.api.MetricDescriptor.MetricKind.DELTA.
|
| core.String dataSourceType;
|
| - /** The measurement value. */
|
| +
|
| + /// The measurement value.
|
| TypedValue value;
|
|
|
| CollectdValue();
|
| @@ -1223,7 +1280,8 @@ class CollectdValue {
|
| }
|
|
|
| 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 (dataSourceName != null) {
|
| _json["dataSourceName"] = dataSourceName;
|
| }
|
| @@ -1237,27 +1295,61 @@ class CollectdValue {
|
| }
|
| }
|
|
|
| -/** The CreateCollectdTimeSeries request. */
|
| +/// Describes the error status for values that were not written.
|
| +class CollectdValueError {
|
| + /// Records the error status for the value.
|
| + Status error;
|
| +
|
| + /// The zero-based index in CollectdPayload.values within the parent
|
| + /// CreateCollectdTimeSeriesRequest.collectd_payloads.
|
| + core.int index;
|
| +
|
| + CollectdValueError();
|
| +
|
| + CollectdValueError.fromJson(core.Map _json) {
|
| + if (_json.containsKey("error")) {
|
| + error = new Status.fromJson(_json["error"]);
|
| + }
|
| + if (_json.containsKey("index")) {
|
| + index = _json["index"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (error != null) {
|
| + _json["error"] = (error).toJson();
|
| + }
|
| + if (index != null) {
|
| + _json["index"] = index;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// The CreateCollectdTimeSeries request.
|
| class CreateCollectdTimeSeriesRequest {
|
| - /**
|
| - * The collectd payloads representing the time series data. You must not
|
| - * include more than a single point for each time series, so no two payloads
|
| - * can have the same values for all of the fields plugin, plugin_instance,
|
| - * type, and type_instance.
|
| - */
|
| + /// The collectd payloads representing the time series data. You must not
|
| + /// include more than a single point for each time series, so no two payloads
|
| + /// can have the same values for all of the fields plugin, plugin_instance,
|
| + /// type, and type_instance.
|
| core.List<CollectdPayload> collectdPayloads;
|
| - /**
|
| - * The version of collectd that collected the data. Example: "5.3.0-192.el6".
|
| - */
|
| +
|
| + /// The version of collectd that collected the data. Example:
|
| + /// "5.3.0-192.el6".
|
| core.String collectdVersion;
|
| - /** The monitored resource associated with the time series. */
|
| +
|
| + /// The monitored resource associated with the time series.
|
| MonitoredResource resource;
|
|
|
| CreateCollectdTimeSeriesRequest();
|
|
|
| CreateCollectdTimeSeriesRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("collectdPayloads")) {
|
| - collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPayload.fromJson(value)).toList();
|
| + collectdPayloads = _json["collectdPayloads"]
|
| + .map((value) => new CollectdPayload.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("collectdVersion")) {
|
| collectdVersion = _json["collectdVersion"];
|
| @@ -1268,9 +1360,11 @@ class CreateCollectdTimeSeriesRequest {
|
| }
|
|
|
| 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 (collectdPayloads != null) {
|
| - _json["collectdPayloads"] = collectdPayloads.map((value) => (value).toJson()).toList();
|
| + _json["collectdPayloads"] =
|
| + collectdPayloads.map((value) => (value).toJson()).toList();
|
| }
|
| if (collectdVersion != null) {
|
| _json["collectdVersion"] = collectdVersion;
|
| @@ -1282,89 +1376,111 @@ class CreateCollectdTimeSeriesRequest {
|
| }
|
| }
|
|
|
| -/** The CreateTimeSeries request. */
|
| +/// The CreateCollectdTimeSeries response.
|
| +class CreateCollectdTimeSeriesResponse {
|
| + /// Records the error status for points that were not written due to an
|
| + /// error.Failed requests for which nothing is written will return an error
|
| + /// response instead.
|
| + core.List<CollectdPayloadError> payloadErrors;
|
| +
|
| + CreateCollectdTimeSeriesResponse();
|
| +
|
| + CreateCollectdTimeSeriesResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("payloadErrors")) {
|
| + payloadErrors = _json["payloadErrors"]
|
| + .map((value) => new CollectdPayloadError.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>();
|
| + if (payloadErrors != null) {
|
| + _json["payloadErrors"] =
|
| + payloadErrors.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// The CreateTimeSeries request.
|
| class CreateTimeSeriesRequest {
|
| - /**
|
| - * The new data to be added to a list of time series. Adds at most one data
|
| - * point to each of several time series. The new data point must be more
|
| - * recent than any other point in its time series. Each TimeSeries value must
|
| - * fully specify a unique time series by supplying all label values for the
|
| - * metric and the monitored resource.
|
| - */
|
| + /// The new data to be added to a list of time series. Adds at most one data
|
| + /// point to each of several time series. The new data point must be more
|
| + /// recent than any other point in its time series. Each TimeSeries value
|
| + /// must fully specify a unique time series by supplying all label values for
|
| + /// the metric and the monitored resource.
|
| core.List<TimeSeries> timeSeries;
|
|
|
| CreateTimeSeriesRequest();
|
|
|
| CreateTimeSeriesRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("timeSeries")) {
|
| - timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(value)).toList();
|
| + timeSeries = _json["timeSeries"]
|
| + .map((value) => new TimeSeries.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 (timeSeries != null) {
|
| - _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList();
|
| + _json["timeSeries"] =
|
| + timeSeries.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * Distribution contains summary statistics for a population of values. It
|
| - * optionally contains a histogram representing the distribution of those values
|
| - * across a set of buckets.The summary statistics are the count, mean, sum of
|
| - * the squared deviation from the mean, the minimum, and the maximum of the set
|
| - * of population of values. The histogram is based on a sequence of buckets and
|
| - * gives a count of values that fall into each bucket. The boundaries of the
|
| - * buckets are given either explicitly or by formulas for buckets of fixed or
|
| - * exponentially increasing widths.Although it is not forbidden, it is generally
|
| - * a bad idea to include non-finite values (infinities or NaNs) in the
|
| - * population of values, as this will render the mean and
|
| - * sum_of_squared_deviation fields meaningless.
|
| - */
|
| +/// Distribution contains summary statistics for a population of values. It
|
| +/// optionally contains a histogram representing the distribution of those
|
| +/// values across a set of buckets.The summary statistics are the count, mean,
|
| +/// sum of the squared deviation from the mean, the minimum, and the maximum of
|
| +/// the set of population of values. The histogram is based on a sequence of
|
| +/// buckets and gives a count of values that fall into each bucket. The
|
| +/// boundaries of the buckets are given either explicitly or by formulas for
|
| +/// buckets of fixed or exponentially increasing widths.Although it is not
|
| +/// forbidden, it is generally a bad idea to include non-finite values
|
| +/// (infinities or NaNs) in the population of values, as this will render the
|
| +/// mean and sum_of_squared_deviation fields meaningless.
|
| class Distribution {
|
| - /**
|
| - * Required in the Stackdriver Monitoring API v3. The values for each bucket
|
| - * specified in bucket_options. The sum of the values in bucketCounts must
|
| - * equal the value in the count field of the Distribution object. The order of
|
| - * the bucket counts follows the numbering schemes described for the three
|
| - * bucket types. The underflow bucket has number 0; the finite buckets, if
|
| - * any, have numbers 1 through N-2; and the overflow bucket has number N-1.
|
| - * The size of bucket_counts must not be greater than N. If the size is less
|
| - * than N, then the remaining buckets are assigned values of zero.
|
| - */
|
| + /// Required in the Stackdriver Monitoring API v3. The values for each bucket
|
| + /// specified in bucket_options. The sum of the values in bucketCounts must
|
| + /// equal the value in the count field of the Distribution object. The order
|
| + /// of the bucket counts follows the numbering schemes described for the
|
| + /// three bucket types. The underflow bucket has number 0; the finite
|
| + /// buckets, if any, have numbers 1 through N-2; and the overflow bucket has
|
| + /// number N-1. The size of bucket_counts must not be greater than N. If the
|
| + /// size is less than N, then the remaining buckets are assigned values of
|
| + /// zero.
|
| core.List<core.String> bucketCounts;
|
| - /**
|
| - * Required in the Stackdriver Monitoring API v3. Defines the histogram bucket
|
| - * boundaries.
|
| - */
|
| +
|
| + /// Required in the Stackdriver Monitoring API v3. Defines the histogram
|
| + /// bucket boundaries.
|
| BucketOptions bucketOptions;
|
| - /**
|
| - * The number of values in the population. Must be non-negative. This value
|
| - * must equal the sum of the values in bucket_counts if a histogram is
|
| - * provided.
|
| - */
|
| +
|
| + /// The number of values in the population. Must be non-negative. This value
|
| + /// must equal the sum of the values in bucket_counts if a histogram is
|
| + /// provided.
|
| core.String count;
|
| - /**
|
| - * The arithmetic mean of the values in the population. If count is zero then
|
| - * this field must be zero.
|
| - */
|
| +
|
| + /// The arithmetic mean of the values in the population. If count is zero
|
| + /// then this field must be zero.
|
| core.double mean;
|
| - /**
|
| - * If specified, contains the range of the population values. The field must
|
| - * not be present if the count is zero. This field is presently ignored by the
|
| - * Stackdriver Monitoring API v3.
|
| - */
|
| +
|
| + /// If specified, contains the range of the population values. The field must
|
| + /// not be present if the count is zero. This field is presently ignored by
|
| + /// the Stackdriver Monitoring API v3.
|
| Range range;
|
| - /**
|
| - * The sum of squared deviations from the mean of the values in the
|
| - * population. For values x_i this is:
|
| - * Sum[i=1..n]((x_i - mean)^2)
|
| - * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
|
| - * describes Welford's method for accumulating this sum in one pass.If count
|
| - * is zero then this field must be zero.
|
| - */
|
| +
|
| + /// The sum of squared deviations from the mean of the values in the
|
| + /// population. For values x_i this is:
|
| + /// Sum[i=1..n]((x_i - mean)^2)
|
| + /// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
|
| + /// describes Welford's method for accumulating this sum in one pass.If count
|
| + /// is zero then this field must be zero.
|
| core.double sumOfSquaredDeviation;
|
|
|
| Distribution();
|
| @@ -1391,7 +1507,8 @@ class Distribution {
|
| }
|
|
|
| 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 (bucketCounts != null) {
|
| _json["bucketCounts"] = bucketCounts;
|
| }
|
| @@ -1414,38 +1531,33 @@ class Distribution {
|
| }
|
| }
|
|
|
| -/**
|
| - * A generic empty message that you can re-use to avoid defining duplicated
|
| - * empty messages in your APIs. A typical example is to use it as the request or
|
| - * the response type of an API method. For instance:
|
| - * service Foo {
|
| - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| - * }
|
| - * The JSON representation for Empty is empty JSON object {}.
|
| - */
|
| +/// A generic empty message that you can re-use to avoid defining duplicated
|
| +/// empty messages in your APIs. A typical example is to use it as the request
|
| +/// or the response type of an API method. For instance:
|
| +/// service Foo {
|
| +/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| +/// }
|
| +/// The JSON representation for Empty is empty JSON object {}.
|
| class Empty {
|
| -
|
| Empty();
|
|
|
| - Empty.fromJson(core.Map _json) {
|
| - }
|
| + Empty.fromJson(core.Map _json) {}
|
|
|
| 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>();
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1
|
| - * (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i <
|
| - * N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must
|
| - * contain at least one element. If bounds has only one element, then there are
|
| - * no finite buckets, and that single element is the common boundary of the
|
| - * overflow and underflow buckets.
|
| - */
|
| +/// Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1
|
| +/// (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i <
|
| +/// N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must
|
| +/// contain at least one element. If bounds has only one element, then there
|
| +/// are no finite buckets, and that single element is the common boundary of
|
| +/// the overflow and underflow buckets.
|
| class Explicit {
|
| - /** The values must be monotonically increasing. */
|
| + /// The values must be monotonically increasing.
|
| core.List<core.double> bounds;
|
|
|
| Explicit();
|
| @@ -1457,7 +1569,8 @@ class Explicit {
|
| }
|
|
|
| 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 (bounds != null) {
|
| _json["bounds"] = bounds;
|
| }
|
| @@ -1465,20 +1578,20 @@ class Explicit {
|
| }
|
| }
|
|
|
| -/**
|
| - * Specifies an exponential sequence of buckets that have a width that is
|
| - * proportional to the value of the lower bound. Each bucket represents a
|
| - * constant relative uncertainty on a specific value in the bucket.There are
|
| - * num_finite_buckets + 2 (= N) buckets. Bucket i has the following
|
| - * boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower
|
| - * bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
| - */
|
| +/// Specifies an exponential sequence of buckets that have a width that is
|
| +/// proportional to the value of the lower bound. Each bucket represents a
|
| +/// constant relative uncertainty on a specific value in the bucket.There are
|
| +/// num_finite_buckets + 2 (= N) buckets. Bucket i has the following
|
| +/// boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower
|
| +/// bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
| class Exponential {
|
| - /** Must be greater than 1. */
|
| + /// Must be greater than 1.
|
| core.double growthFactor;
|
| - /** Must be greater than 0. */
|
| +
|
| + /// Must be greater than 0.
|
| core.int numFiniteBuckets;
|
| - /** Must be greater than 0. */
|
| +
|
| + /// Must be greater than 0.
|
| core.double scale;
|
|
|
| Exponential();
|
| @@ -1496,7 +1609,8 @@ class Exponential {
|
| }
|
|
|
| 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 (growthFactor != null) {
|
| _json["growthFactor"] = growthFactor;
|
| }
|
| @@ -1510,64 +1624,64 @@ class Exponential {
|
| }
|
| }
|
|
|
| -/** A single field of a message type. */
|
| +/// A single field of a message type.
|
| class Field {
|
| - /**
|
| - * The field cardinality.
|
| - * Possible string values are:
|
| - * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality.
|
| - * - "CARDINALITY_OPTIONAL" : For optional fields.
|
| - * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only.
|
| - * - "CARDINALITY_REPEATED" : For repeated fields.
|
| - */
|
| + /// The field cardinality.
|
| + /// Possible string values are:
|
| + /// - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality.
|
| + /// - "CARDINALITY_OPTIONAL" : For optional fields.
|
| + /// - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only.
|
| + /// - "CARDINALITY_REPEATED" : For repeated fields.
|
| core.String cardinality;
|
| - /**
|
| - * The string value of the default value of this field. Proto2 syntax only.
|
| - */
|
| +
|
| + /// The string value of the default value of this field. Proto2 syntax only.
|
| core.String defaultValue;
|
| - /** The field JSON name. */
|
| +
|
| + /// The field JSON name.
|
| core.String jsonName;
|
| - /**
|
| - * The field type.
|
| - * Possible string values are:
|
| - * - "TYPE_UNKNOWN" : Field type unknown.
|
| - * - "TYPE_DOUBLE" : Field type double.
|
| - * - "TYPE_FLOAT" : Field type float.
|
| - * - "TYPE_INT64" : Field type int64.
|
| - * - "TYPE_UINT64" : Field type uint64.
|
| - * - "TYPE_INT32" : Field type int32.
|
| - * - "TYPE_FIXED64" : Field type fixed64.
|
| - * - "TYPE_FIXED32" : Field type fixed32.
|
| - * - "TYPE_BOOL" : Field type bool.
|
| - * - "TYPE_STRING" : Field type string.
|
| - * - "TYPE_GROUP" : Field type group. Proto2 syntax only, and deprecated.
|
| - * - "TYPE_MESSAGE" : Field type message.
|
| - * - "TYPE_BYTES" : Field type bytes.
|
| - * - "TYPE_UINT32" : Field type uint32.
|
| - * - "TYPE_ENUM" : Field type enum.
|
| - * - "TYPE_SFIXED32" : Field type sfixed32.
|
| - * - "TYPE_SFIXED64" : Field type sfixed64.
|
| - * - "TYPE_SINT32" : Field type sint32.
|
| - * - "TYPE_SINT64" : Field type sint64.
|
| - */
|
| +
|
| + /// The field type.
|
| + /// Possible string values are:
|
| + /// - "TYPE_UNKNOWN" : Field type unknown.
|
| + /// - "TYPE_DOUBLE" : Field type double.
|
| + /// - "TYPE_FLOAT" : Field type float.
|
| + /// - "TYPE_INT64" : Field type int64.
|
| + /// - "TYPE_UINT64" : Field type uint64.
|
| + /// - "TYPE_INT32" : Field type int32.
|
| + /// - "TYPE_FIXED64" : Field type fixed64.
|
| + /// - "TYPE_FIXED32" : Field type fixed32.
|
| + /// - "TYPE_BOOL" : Field type bool.
|
| + /// - "TYPE_STRING" : Field type string.
|
| + /// - "TYPE_GROUP" : Field type group. Proto2 syntax only, and deprecated.
|
| + /// - "TYPE_MESSAGE" : Field type message.
|
| + /// - "TYPE_BYTES" : Field type bytes.
|
| + /// - "TYPE_UINT32" : Field type uint32.
|
| + /// - "TYPE_ENUM" : Field type enum.
|
| + /// - "TYPE_SFIXED32" : Field type sfixed32.
|
| + /// - "TYPE_SFIXED64" : Field type sfixed64.
|
| + /// - "TYPE_SINT32" : Field type sint32.
|
| + /// - "TYPE_SINT64" : Field type sint64.
|
| core.String kind;
|
| - /** The field name. */
|
| +
|
| + /// The field name.
|
| core.String name;
|
| - /** The field number. */
|
| +
|
| + /// The field number.
|
| core.int number;
|
| - /**
|
| - * The index of the field type in Type.oneofs, for message or enumeration
|
| - * types. The first type has index 1; zero means the type is not in the list.
|
| - */
|
| +
|
| + /// The index of the field type in Type.oneofs, for message or enumeration
|
| + /// types. The first type has index 1; zero means the type is not in the
|
| + /// list.
|
| core.int oneofIndex;
|
| - /** The protocol buffer options. */
|
| +
|
| + /// The protocol buffer options.
|
| core.List<Option> options;
|
| - /** Whether to use alternative packed wire representation. */
|
| +
|
| + /// Whether to use alternative packed wire representation.
|
| core.bool packed;
|
| - /**
|
| - * The field type URL, without the scheme, for message or enumeration types.
|
| - * Example: "type.googleapis.com/google.protobuf.Timestamp".
|
| - */
|
| +
|
| + /// The field type URL, without the scheme, for message or enumeration types.
|
| + /// Example: "type.googleapis.com/google.protobuf.Timestamp".
|
| core.String typeUrl;
|
|
|
| Field();
|
| @@ -1595,7 +1709,8 @@ class Field {
|
| oneofIndex = _json["oneofIndex"];
|
| }
|
| if (_json.containsKey("options")) {
|
| - options = _json["options"].map((value) => new Option.fromJson(value)).toList();
|
| + options =
|
| + _json["options"].map((value) => new Option.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("packed")) {
|
| packed = _json["packed"];
|
| @@ -1606,7 +1721,8 @@ class Field {
|
| }
|
|
|
| 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 (cardinality != null) {
|
| _json["cardinality"] = cardinality;
|
| }
|
| @@ -1641,54 +1757,49 @@ class Field {
|
| }
|
| }
|
|
|
| -/**
|
| - * The description of a dynamic collection of monitored resources. Each group
|
| - * has a filter that is matched against monitored resources and their associated
|
| - * metadata. If a group's filter matches an available monitored resource, then
|
| - * that resource is a member of that group. Groups can contain any number of
|
| - * monitored resources, and each monitored resource can be a member of any
|
| - * number of groups.Groups can be nested in parent-child hierarchies. The
|
| - * parentName field identifies an optional parent for each group. If a group has
|
| - * a parent, then the only monitored resources available to be matched by the
|
| - * group's filter are the resources contained in the parent group. In other
|
| - * words, a group contains the monitored resources that match its filter and the
|
| - * filters of all the group's ancestors. A group without a parent can contain
|
| - * any monitored resource.For example, consider an infrastructure running a set
|
| - * of instances with two user-defined tags: "environment" and "role". A parent
|
| - * group has a filter, environment="production". A child of that parent group
|
| - * has a filter, role="transcoder". The parent group contains all instances in
|
| - * the production environment, regardless of their roles. The child group
|
| - * contains instances that have the transcoder role and are in the production
|
| - * environment.The monitored resources contained in a group can change at any
|
| - * moment, depending on what resources exist and what filters are associated
|
| - * with the group and its ancestors.
|
| - */
|
| +/// The description of a dynamic collection of monitored resources. Each group
|
| +/// has a filter that is matched against monitored resources and their
|
| +/// associated metadata. If a group's filter matches an available monitored
|
| +/// resource, then that resource is a member of that group. Groups can contain
|
| +/// any number of monitored resources, and each monitored resource can be a
|
| +/// member of any number of groups.Groups can be nested in parent-child
|
| +/// hierarchies. The parentName field identifies an optional parent for each
|
| +/// group. If a group has a parent, then the only monitored resources available
|
| +/// to be matched by the group's filter are the resources contained in the
|
| +/// parent group. In other words, a group contains the monitored resources that
|
| +/// match its filter and the filters of all the group's ancestors. A group
|
| +/// without a parent can contain any monitored resource.For example, consider
|
| +/// an infrastructure running a set of instances with two user-defined tags:
|
| +/// "environment" and "role". A parent group has a filter,
|
| +/// environment="production". A child of that parent group has a filter,
|
| +/// role="transcoder". The parent group contains all instances in the
|
| +/// production environment, regardless of their roles. The child group contains
|
| +/// instances that have the transcoder role and are in the production
|
| +/// environment.The monitored resources contained in a group can change at any
|
| +/// moment, depending on what resources exist and what filters are associated
|
| +/// with the group and its ancestors.
|
| class Group {
|
| - /** A user-assigned name for this group, used only for display purposes. */
|
| + /// A user-assigned name for this group, used only for display purposes.
|
| core.String displayName;
|
| - /**
|
| - * The filter used to determine which monitored resources belong to this
|
| - * group.
|
| - */
|
| +
|
| + /// The filter used to determine which monitored resources belong to this
|
| + /// group.
|
| core.String filter;
|
| - /**
|
| - * If true, the members of this group are considered to be a cluster. The
|
| - * system can perform additional analysis on groups that are clusters.
|
| - */
|
| +
|
| + /// If true, the members of this group are considered to be a cluster. The
|
| + /// system can perform additional analysis on groups that are clusters.
|
| core.bool isCluster;
|
| - /**
|
| - * Output only. The name of this group. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}". When creating a group,
|
| - * this field is ignored and a new name is created consisting of the project
|
| - * specified in the call to CreateGroup and a unique {group_id} that is
|
| - * generated automatically.
|
| - */
|
| +
|
| + /// Output only. The name of this group. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". When creating a
|
| + /// group, this field is ignored and a new name is created consisting of the
|
| + /// project specified in the call to CreateGroup and a unique {group_id} that
|
| + /// is generated automatically.
|
| core.String name;
|
| - /**
|
| - * The name of the group's parent, if it has one. The format is
|
| - * "projects/{project_id_or_number}/groups/{group_id}". For groups with no
|
| - * parent, parentName is the empty string, "".
|
| - */
|
| +
|
| + /// The name of the group's parent, if it has one. The format is
|
| + /// "projects/{project_id_or_number}/groups/{group_id}". For groups with no
|
| + /// parent, parentName is the empty string, "".
|
| core.String parentName;
|
|
|
| Group();
|
| @@ -1712,7 +1823,8 @@ class Group {
|
| }
|
|
|
| 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 (displayName != null) {
|
| _json["displayName"] = displayName;
|
| }
|
| @@ -1732,19 +1844,19 @@ class Group {
|
| }
|
| }
|
|
|
| -/** A description of a label. */
|
| +/// A description of a label.
|
| class LabelDescriptor {
|
| - /** A human-readable description for the label. */
|
| + /// A human-readable description for the label.
|
| core.String description;
|
| - /** The label key. */
|
| +
|
| + /// The label key.
|
| core.String key;
|
| - /**
|
| - * The type of data that can be assigned to the label.
|
| - * Possible string values are:
|
| - * - "STRING" : A variable-length string. This is the default.
|
| - * - "BOOL" : Boolean; true or false.
|
| - * - "INT64" : A 64-bit signed integer.
|
| - */
|
| +
|
| + /// The type of data that can be assigned to the label.
|
| + /// Possible string values are:
|
| + /// - "STRING" : A variable-length string. This is the default.
|
| + /// - "BOOL" : Boolean; true or false.
|
| + /// - "INT64" : A 64-bit signed integer.
|
| core.String valueType;
|
|
|
| LabelDescriptor();
|
| @@ -1762,7 +1874,8 @@ class LabelDescriptor {
|
| }
|
|
|
| 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 (description != null) {
|
| _json["description"] = description;
|
| }
|
| @@ -1776,20 +1889,20 @@ class LabelDescriptor {
|
| }
|
| }
|
|
|
| -/**
|
| - * Specifies a linear sequence of buckets that all have the same width (except
|
| - * overflow and underflow). Each bucket represents a constant absolute
|
| - * uncertainty on the specific value in the bucket.There are num_finite_buckets
|
| - * + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i
|
| - * < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i
|
| - * - 1)).
|
| - */
|
| +/// Specifies a linear sequence of buckets that all have the same width (except
|
| +/// overflow and underflow). Each bucket represents a constant absolute
|
| +/// uncertainty on the specific value in the bucket.There are
|
| +/// num_finite_buckets + 2 (= N) buckets. Bucket i has the following
|
| +/// boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound
|
| +/// (1 <= i < N): offset + (width * (i - 1)).
|
| class Linear {
|
| - /** Must be greater than 0. */
|
| + /// Must be greater than 0.
|
| core.int numFiniteBuckets;
|
| - /** Lower bound of the first bucket. */
|
| +
|
| + /// Lower bound of the first bucket.
|
| core.double offset;
|
| - /** Must be greater than 0. */
|
| +
|
| + /// Must be greater than 0.
|
| core.double width;
|
|
|
| Linear();
|
| @@ -1807,7 +1920,8 @@ class Linear {
|
| }
|
|
|
| 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 (numFiniteBuckets != null) {
|
| _json["numFiniteBuckets"] = numFiniteBuckets;
|
| }
|
| @@ -1821,24 +1935,26 @@ class Linear {
|
| }
|
| }
|
|
|
| -/** The ListGroupMembers response. */
|
| +/// The ListGroupMembers response.
|
| class ListGroupMembersResponse {
|
| - /** A set of monitored resources in the group. */
|
| + /// A set of monitored resources in the group.
|
| core.List<MonitoredResource> members;
|
| - /**
|
| - * If there are more results than have been returned, then this field is set
|
| - * to a non-empty value. To see the additional results, use that value as
|
| - * pageToken in the next call to this method.
|
| - */
|
| +
|
| + /// If there are more results than have been returned, then this field is set
|
| + /// to a non-empty value. To see the additional results, use that value as
|
| + /// pageToken in the next call to this method.
|
| core.String nextPageToken;
|
| - /** The total number of elements matching this request. */
|
| +
|
| + /// The total number of elements matching this request.
|
| core.int totalSize;
|
|
|
| ListGroupMembersResponse();
|
|
|
| ListGroupMembersResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("members")) {
|
| - members = _json["members"].map((value) => new MonitoredResource.fromJson(value)).toList();
|
| + members = _json["members"]
|
| + .map((value) => new MonitoredResource.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("nextPageToken")) {
|
| nextPageToken = _json["nextPageToken"];
|
| @@ -1849,7 +1965,8 @@ class ListGroupMembersResponse {
|
| }
|
|
|
| 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 (members != null) {
|
| _json["members"] = members.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1863,15 +1980,14 @@ class ListGroupMembersResponse {
|
| }
|
| }
|
|
|
| -/** The ListGroups response. */
|
| +/// The ListGroups response.
|
| class ListGroupsResponse {
|
| - /** The groups that match the specified filters. */
|
| + /// The groups that match the specified filters.
|
| core.List<Group> group;
|
| - /**
|
| - * If there are more results than have been returned, then this field is set
|
| - * to a non-empty value. To see the additional results, use that value as
|
| - * pageToken in the next call to this method.
|
| - */
|
| +
|
| + /// If there are more results than have been returned, then this field is set
|
| + /// to a non-empty value. To see the additional results, use that value as
|
| + /// pageToken in the next call to this method.
|
| core.String nextPageToken;
|
|
|
| ListGroupsResponse();
|
| @@ -1886,7 +2002,8 @@ class ListGroupsResponse {
|
| }
|
|
|
| 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 (group != null) {
|
| _json["group"] = group.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1897,25 +2014,24 @@ class ListGroupsResponse {
|
| }
|
| }
|
|
|
| -/** The ListMetricDescriptors response. */
|
| +/// The ListMetricDescriptors response.
|
| class ListMetricDescriptorsResponse {
|
| - /**
|
| - * The metric descriptors that are available to the project and that match the
|
| - * value of filter, if present.
|
| - */
|
| + /// The metric descriptors that are available to the project and that match
|
| + /// the value of filter, if present.
|
| core.List<MetricDescriptor> metricDescriptors;
|
| - /**
|
| - * If there are more results than have been returned, then this field is set
|
| - * to a non-empty value. To see the additional results, use that value as
|
| - * pageToken in the next call to this method.
|
| - */
|
| +
|
| + /// If there are more results than have been returned, then this field is set
|
| + /// to a non-empty value. To see the additional results, use that value as
|
| + /// pageToken in the next call to this method.
|
| core.String nextPageToken;
|
|
|
| ListMetricDescriptorsResponse();
|
|
|
| ListMetricDescriptorsResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("metricDescriptors")) {
|
| - metricDescriptors = _json["metricDescriptors"].map((value) => new MetricDescriptor.fromJson(value)).toList();
|
| + metricDescriptors = _json["metricDescriptors"]
|
| + .map((value) => new MetricDescriptor.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("nextPageToken")) {
|
| nextPageToken = _json["nextPageToken"];
|
| @@ -1923,9 +2039,11 @@ class ListMetricDescriptorsResponse {
|
| }
|
|
|
| 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 (metricDescriptors != null) {
|
| - _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJson()).toList();
|
| + _json["metricDescriptors"] =
|
| + metricDescriptors.map((value) => (value).toJson()).toList();
|
| }
|
| if (nextPageToken != null) {
|
| _json["nextPageToken"] = nextPageToken;
|
| @@ -1934,18 +2052,15 @@ class ListMetricDescriptorsResponse {
|
| }
|
| }
|
|
|
| -/** The ListMonitoredResourceDescriptors response. */
|
| +/// The ListMonitoredResourceDescriptors response.
|
| class ListMonitoredResourceDescriptorsResponse {
|
| - /**
|
| - * If there are more results than have been returned, then this field is set
|
| - * to a non-empty value. To see the additional results, use that value as
|
| - * pageToken in the next call to this method.
|
| - */
|
| + /// If there are more results than have been returned, then this field is set
|
| + /// to a non-empty value. To see the additional results, use that value as
|
| + /// pageToken in the next call to this method.
|
| core.String nextPageToken;
|
| - /**
|
| - * The monitored resource descriptors that are available to this project and
|
| - * that match filter, if present.
|
| - */
|
| +
|
| + /// The monitored resource descriptors that are available to this project and
|
| + /// that match filter, if present.
|
| core.List<MonitoredResourceDescriptor> resourceDescriptors;
|
|
|
| ListMonitoredResourceDescriptorsResponse();
|
| @@ -1955,31 +2070,34 @@ class ListMonitoredResourceDescriptorsResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resourceDescriptors")) {
|
| - resourceDescriptors = _json["resourceDescriptors"].map((value) => new MonitoredResourceDescriptor.fromJson(value)).toList();
|
| + resourceDescriptors = _json["resourceDescriptors"]
|
| + .map((value) => new MonitoredResourceDescriptor.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 (nextPageToken != null) {
|
| _json["nextPageToken"] = nextPageToken;
|
| }
|
| if (resourceDescriptors != null) {
|
| - _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).toJson()).toList();
|
| + _json["resourceDescriptors"] =
|
| + resourceDescriptors.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** The ListTimeSeries response. */
|
| +/// The ListTimeSeries response.
|
| class ListTimeSeriesResponse {
|
| - /**
|
| - * If there are more results than have been returned, then this field is set
|
| - * to a non-empty value. To see the additional results, use that value as
|
| - * pageToken in the next call to this method.
|
| - */
|
| + /// If there are more results than have been returned, then this field is set
|
| + /// to a non-empty value. To see the additional results, use that value as
|
| + /// pageToken in the next call to this method.
|
| core.String nextPageToken;
|
| - /** One or more time series that match the filter included in the request. */
|
| +
|
| + /// One or more time series that match the filter included in the request.
|
| core.List<TimeSeries> timeSeries;
|
|
|
| ListTimeSeriesResponse();
|
| @@ -1989,36 +2107,35 @@ class ListTimeSeriesResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("timeSeries")) {
|
| - timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(value)).toList();
|
| + timeSeries = _json["timeSeries"]
|
| + .map((value) => new TimeSeries.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 (nextPageToken != null) {
|
| _json["nextPageToken"] = nextPageToken;
|
| }
|
| if (timeSeries != null) {
|
| - _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList();
|
| + _json["timeSeries"] =
|
| + timeSeries.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/**
|
| - * A specific metric, identified by specifying values for all of the labels of a
|
| - * MetricDescriptor.
|
| - */
|
| +/// A specific metric, identified by specifying values for all of the labels of
|
| +/// a MetricDescriptor.
|
| class Metric {
|
| - /**
|
| - * The set of label values that uniquely identify this metric. All labels
|
| - * listed in the MetricDescriptor must be assigned values.
|
| - */
|
| + /// The set of label values that uniquely identify this metric. All labels
|
| + /// listed in the MetricDescriptor must be assigned values.
|
| core.Map<core.String, core.String> labels;
|
| - /**
|
| - * An existing metric type, see google.api.MetricDescriptor. For example,
|
| - * custom.googleapis.com/invoice/paid/amount.
|
| - */
|
| +
|
| + /// An existing metric type, see google.api.MetricDescriptor. For example,
|
| + /// custom.googleapis.com/invoice/paid/amount.
|
| core.String type;
|
|
|
| Metric();
|
| @@ -2033,7 +2150,8 @@ class Metric {
|
| }
|
|
|
| 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 (labels != null) {
|
| _json["labels"] = labels;
|
| }
|
| @@ -2044,126 +2162,115 @@ class Metric {
|
| }
|
| }
|
|
|
| -/**
|
| - * Defines a metric type and its schema. Once a metric descriptor is created,
|
| - * deleting or altering it stops data collection and makes the metric type's
|
| - * existing data unusable.
|
| - */
|
| +/// Defines a metric type and its schema. Once a metric descriptor is created,
|
| +/// deleting or altering it stops data collection and makes the metric type's
|
| +/// existing data unusable.
|
| class MetricDescriptor {
|
| - /**
|
| - * A detailed description of the metric, which can be used in documentation.
|
| - */
|
| + /// A detailed description of the metric, which can be used in documentation.
|
| core.String description;
|
| - /**
|
| - * A concise name for the metric, which can be displayed in user interfaces.
|
| - * Use sentence case without an ending period, for example "Request count".
|
| - */
|
| +
|
| + /// A concise name for the metric, which can be displayed in user interfaces.
|
| + /// Use sentence case without an ending period, for example "Request count".
|
| core.String displayName;
|
| - /**
|
| - * The set of labels that can be used to describe a specific instance of this
|
| - * metric type. For example, the
|
| - * appengine.googleapis.com/http/server/response_latencies metric type has a
|
| - * label for the HTTP response code, response_code, so you can look at
|
| - * latencies for successful responses or just for responses that failed.
|
| - */
|
| +
|
| + /// The set of labels that can be used to describe a specific instance of
|
| + /// this metric type. For example, the
|
| + /// appengine.googleapis.com/http/server/response_latencies metric type has a
|
| + /// label for the HTTP response code, response_code, so you can look at
|
| + /// latencies for successful responses or just for responses that failed.
|
| core.List<LabelDescriptor> labels;
|
| - /**
|
| - * Whether the metric records instantaneous values, changes to a value, etc.
|
| - * Some combinations of metric_kind and value_type might not be supported.
|
| - * Possible string values are:
|
| - * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value.
|
| - * - "GAUGE" : An instantaneous measurement of a value.
|
| - * - "DELTA" : The change in a value during a time interval.
|
| - * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative
|
| - * measurements in a time series should have the same start time and
|
| - * increasing end times, until an event resets the cumulative value to zero
|
| - * and sets a new start time for the following points.
|
| - */
|
| +
|
| + /// Whether the metric records instantaneous values, changes to a value, etc.
|
| + /// Some combinations of metric_kind and value_type might not be supported.
|
| + /// Possible string values are:
|
| + /// - "METRIC_KIND_UNSPECIFIED" : Do not use this default value.
|
| + /// - "GAUGE" : An instantaneous measurement of a value.
|
| + /// - "DELTA" : The change in a value during a time interval.
|
| + /// - "CUMULATIVE" : A value accumulated over a time interval. Cumulative
|
| + /// measurements in a time series should have the same start time and
|
| + /// increasing end times, until an event resets the cumulative value to zero
|
| + /// and sets a new start time for the following points.
|
| core.String metricKind;
|
| - /**
|
| - * The resource name of the metric descriptor. Depending on the
|
| - * implementation, the name typically includes: (1) the parent resource name
|
| - * that defines the scope of the metric type or of its data; and (2) the
|
| - * metric's URL-encoded type, which also appears in the type field of this
|
| - * descriptor. For example, following is the resource name of a custom metric
|
| - * within the GCP project my-project-id:
|
| - * "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount"
|
| - */
|
| +
|
| + /// The resource name of the metric descriptor. Depending on the
|
| + /// implementation, the name typically includes: (1) the parent resource name
|
| + /// that defines the scope of the metric type or of its data; and (2) the
|
| + /// metric's URL-encoded type, which also appears in the type field of this
|
| + /// descriptor. For example, following is the resource name of a custom
|
| + /// metric within the GCP project my-project-id:
|
| + /// "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount"
|
| core.String name;
|
| - /**
|
| - * The metric type, including its DNS name prefix. The type is not
|
| - * URL-encoded. All user-defined custom metric types have the DNS name
|
| - * custom.googleapis.com. Metric types should use a natural hierarchical
|
| - * grouping. For example:
|
| - * "custom.googleapis.com/invoice/paid/amount"
|
| - * "appengine.googleapis.com/http/server/response_latencies"
|
| - */
|
| +
|
| + /// The metric type, including its DNS name prefix. The type is not
|
| + /// URL-encoded. All user-defined custom metric types have the DNS name
|
| + /// custom.googleapis.com. Metric types should use a natural hierarchical
|
| + /// grouping. For example:
|
| + /// "custom.googleapis.com/invoice/paid/amount"
|
| + /// "appengine.googleapis.com/http/server/response_latencies"
|
| core.String type;
|
| - /**
|
| - * The unit in which the metric value is reported. It is only applicable if
|
| - * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a
|
| - * subset of The Unified Code for Units of Measure
|
| - * (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)
|
| - * bit bit
|
| - * By byte
|
| - * s second
|
| - * min minute
|
| - * h hour
|
| - * d dayPrefixes (PREFIX)
|
| - * k kilo (10**3)
|
| - * M mega (10**6)
|
| - * G giga (10**9)
|
| - * T tera (10**12)
|
| - * P peta (10**15)
|
| - * E exa (10**18)
|
| - * Z zetta (10**21)
|
| - * Y yotta (10**24)
|
| - * m milli (10**-3)
|
| - * u micro (10**-6)
|
| - * n nano (10**-9)
|
| - * p pico (10**-12)
|
| - * f femto (10**-15)
|
| - * a atto (10**-18)
|
| - * z zepto (10**-21)
|
| - * y yocto (10**-24)
|
| - * Ki kibi (2**10)
|
| - * Mi mebi (2**20)
|
| - * Gi gibi (2**30)
|
| - * Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such
|
| - * as 1/s.The grammar also includes these connectors:
|
| - * / division (as an infix operator, e.g. 1/s).
|
| - * . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit
|
| - * is as follows:
|
| - * Expression = Component { "." Component } { "/" Component } ;
|
| - *
|
| - * Component = [ PREFIX ] UNIT [ Annotation ]
|
| - * | Annotation
|
| - * | "1"
|
| - * ;
|
| - *
|
| - * Annotation = "{" NAME "}" ;
|
| - * Notes:
|
| - * Annotation is just a comment if it follows a UNIT and is equivalent to 1
|
| - * if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s
|
| - * == By/s.
|
| - * NAME is a sequence of non-blank printable ASCII characters not containing
|
| - * '{' or '}'.
|
| - */
|
| +
|
| + /// The unit in which the metric value is reported. It is only applicable if
|
| + /// the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are
|
| + /// a subset of The Unified Code for Units of Measure
|
| + /// (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)
|
| + /// bit bit
|
| + /// By byte
|
| + /// s second
|
| + /// min minute
|
| + /// h hour
|
| + /// d dayPrefixes (PREFIX)
|
| + /// k kilo (10**3)
|
| + /// M mega (10**6)
|
| + /// G giga (10**9)
|
| + /// T tera (10**12)
|
| + /// P peta (10**15)
|
| + /// E exa (10**18)
|
| + /// Z zetta (10**21)
|
| + /// Y yotta (10**24)
|
| + /// m milli (10**-3)
|
| + /// u micro (10**-6)
|
| + /// n nano (10**-9)
|
| + /// p pico (10**-12)
|
| + /// f femto (10**-15)
|
| + /// a atto (10**-18)
|
| + /// z zepto (10**-21)
|
| + /// y yocto (10**-24)
|
| + /// Ki kibi (2**10)
|
| + /// Mi mebi (2**20)
|
| + /// Gi gibi (2**30)
|
| + /// Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such
|
| + /// as 1/s.The grammar also includes these connectors:
|
| + /// / division (as an infix operator, e.g. 1/s).
|
| + /// . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit
|
| + /// is as follows:
|
| + /// Expression = Component { "." Component } { "/" Component } ;
|
| + ///
|
| + /// Component = [ PREFIX ] UNIT [ Annotation ]
|
| + /// | Annotation
|
| + /// | "1"
|
| + /// ;
|
| + ///
|
| + /// Annotation = "{" NAME "}" ;
|
| + /// Notes:
|
| + /// Annotation is just a comment if it follows a UNIT and is equivalent to 1
|
| + /// if it is used alone. For examples, {requests}/s == 1/s,
|
| + /// By{transmitted}/s == By/s.
|
| + /// NAME is a sequence of non-blank printable ASCII characters not
|
| + /// containing '{' or '}'.
|
| core.String unit;
|
| - /**
|
| - * Whether the measurement is an integer, a floating-point number, etc. Some
|
| - * combinations of metric_kind and value_type might not be supported.
|
| - * Possible string values are:
|
| - * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value.
|
| - * - "BOOL" : The value is a boolean. This value type can be used only if the
|
| - * metric kind is GAUGE.
|
| - * - "INT64" : The value is a signed 64-bit integer.
|
| - * - "DOUBLE" : The value is a double precision floating point number.
|
| - * - "STRING" : The value is a text string. This value type can be used only
|
| - * if the metric kind is GAUGE.
|
| - * - "DISTRIBUTION" : The value is a Distribution.
|
| - * - "MONEY" : The value is money.
|
| - */
|
| +
|
| + /// Whether the measurement is an integer, a floating-point number, etc. Some
|
| + /// combinations of metric_kind and value_type might not be supported.
|
| + /// Possible string values are:
|
| + /// - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value.
|
| + /// - "BOOL" : The value is a boolean. This value type can be used only if
|
| + /// the metric kind is GAUGE.
|
| + /// - "INT64" : The value is a signed 64-bit integer.
|
| + /// - "DOUBLE" : The value is a double precision floating point number.
|
| + /// - "STRING" : The value is a text string. This value type can be used only
|
| + /// if the metric kind is GAUGE.
|
| + /// - "DISTRIBUTION" : The value is a Distribution.
|
| + /// - "MONEY" : The value is money.
|
| core.String valueType;
|
|
|
| MetricDescriptor();
|
| @@ -2176,7 +2283,9 @@ class MetricDescriptor {
|
| displayName = _json["displayName"];
|
| }
|
| if (_json.containsKey("labels")) {
|
| - labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value)).toList();
|
| + labels = _json["labels"]
|
| + .map((value) => new LabelDescriptor.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("metricKind")) {
|
| metricKind = _json["metricKind"];
|
| @@ -2196,7 +2305,8 @@ class MetricDescriptor {
|
| }
|
|
|
| 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 (description != null) {
|
| _json["description"] = description;
|
| }
|
| @@ -2225,32 +2335,27 @@ class MetricDescriptor {
|
| }
|
| }
|
|
|
| -/**
|
| - * An object representing a resource that can be used for monitoring, logging,
|
| - * billing, or other purposes. Examples include virtual machine instances,
|
| - * databases, and storage devices such as disks. The type field identifies a
|
| - * MonitoredResourceDescriptor object that describes the resource's schema.
|
| - * Information in the labels field identifies the actual resource and its
|
| - * attributes according to the schema. For example, a particular Compute Engine
|
| - * VM instance could be represented by the following object, because the
|
| - * MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and
|
| - * "zone":
|
| - * { "type": "gce_instance",
|
| - * "labels": { "instance_id": "12345678901234",
|
| - * "zone": "us-central1-a" }}
|
| - */
|
| +/// An object representing a resource that can be used for monitoring, logging,
|
| +/// billing, or other purposes. Examples include virtual machine instances,
|
| +/// databases, and storage devices such as disks. The type field identifies a
|
| +/// MonitoredResourceDescriptor object that describes the resource's schema.
|
| +/// Information in the labels field identifies the actual resource and its
|
| +/// attributes according to the schema. For example, a particular Compute
|
| +/// Engine VM instance could be represented by the following object, because
|
| +/// the MonitoredResourceDescriptor for "gce_instance" has labels "instance_id"
|
| +/// and "zone":
|
| +/// { "type": "gce_instance",
|
| +/// "labels": { "instance_id": "12345678901234",
|
| +/// "zone": "us-central1-a" }}
|
| class MonitoredResource {
|
| - /**
|
| - * Required. Values for all of the labels listed in the associated monitored
|
| - * resource descriptor. For example, Compute Engine VM instances use the
|
| - * labels "project_id", "instance_id", and "zone".
|
| - */
|
| + /// Required. Values for all of the labels listed in the associated monitored
|
| + /// resource descriptor. For example, Compute Engine VM instances use the
|
| + /// labels "project_id", "instance_id", and "zone".
|
| core.Map<core.String, core.String> labels;
|
| - /**
|
| - * Required. The monitored resource type. This field must match the type field
|
| - * of a MonitoredResourceDescriptor object. For example, the type of a Compute
|
| - * Engine VM instance is gce_instance.
|
| - */
|
| +
|
| + /// Required. The monitored resource type. This field must match the type
|
| + /// field of a MonitoredResourceDescriptor object. For example, the type of a
|
| + /// Compute Engine VM instance is gce_instance.
|
| core.String type;
|
|
|
| MonitoredResource();
|
| @@ -2265,7 +2370,8 @@ class MonitoredResource {
|
| }
|
|
|
| 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 (labels != null) {
|
| _json["labels"] = labels;
|
| }
|
| @@ -2276,48 +2382,40 @@ class MonitoredResource {
|
| }
|
| }
|
|
|
| -/**
|
| - * An object that describes the schema of a MonitoredResource object using a
|
| - * type name and a set of labels. For example, the monitored resource descriptor
|
| - * for Google Compute Engine VM instances has a type of "gce_instance" and
|
| - * specifies the use of the labels "instance_id" and "zone" to identify
|
| - * particular VM instances.Different APIs can support different monitored
|
| - * resource types. APIs generally provide a list method that returns the
|
| - * monitored resource descriptors used by the API.
|
| - */
|
| +/// An object that describes the schema of a MonitoredResource object using a
|
| +/// type name and a set of labels. For example, the monitored resource
|
| +/// descriptor for Google Compute Engine VM instances has a type of
|
| +/// "gce_instance" and specifies the use of the labels "instance_id" and "zone"
|
| +/// to identify particular VM instances.Different APIs can support different
|
| +/// monitored resource types. APIs generally provide a list method that returns
|
| +/// the monitored resource descriptors used by the API.
|
| class MonitoredResourceDescriptor {
|
| - /**
|
| - * Optional. A detailed description of the monitored resource type that might
|
| - * be used in documentation.
|
| - */
|
| + /// Optional. A detailed description of the monitored resource type that
|
| + /// might be used in documentation.
|
| core.String description;
|
| - /**
|
| - * Optional. A concise name for the monitored resource type that might be
|
| - * displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
| - * without any article or other determiners. For example, "Google Cloud SQL
|
| - * Database".
|
| - */
|
| +
|
| + /// Optional. A concise name for the monitored resource type that might be
|
| + /// displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
| + /// without any article or other determiners. For example, "Google Cloud SQL
|
| + /// Database".
|
| core.String displayName;
|
| - /**
|
| - * Required. A set of labels used to describe instances of this monitored
|
| - * resource type. For example, an individual Google Cloud SQL database is
|
| - * identified by values for the labels "database_id" and "zone".
|
| - */
|
| +
|
| + /// Required. A set of labels used to describe instances of this monitored
|
| + /// resource type. For example, an individual Google Cloud SQL database is
|
| + /// identified by values for the labels "database_id" and "zone".
|
| core.List<LabelDescriptor> labels;
|
| - /**
|
| - * Optional. The resource name of the monitored resource descriptor:
|
| - * "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is
|
| - * the value of the type field in this object and {project_id} is a project ID
|
| - * that provides API-specific context for accessing the type. APIs that do not
|
| - * use project information can use the resource name format
|
| - * "monitoredResourceDescriptors/{type}".
|
| - */
|
| +
|
| + /// Optional. The resource name of the monitored resource descriptor:
|
| + /// "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type}
|
| + /// is the value of the type field in this object and {project_id} is a
|
| + /// project ID that provides API-specific context for accessing the type.
|
| + /// APIs that do not use project information can use the resource name format
|
| + /// "monitoredResourceDescriptors/{type}".
|
| core.String name;
|
| - /**
|
| - * Required. The monitored resource type. For example, the type
|
| - * "cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
| - * length of this value is 256 characters.
|
| - */
|
| +
|
| + /// Required. The monitored resource type. For example, the type
|
| + /// "cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
| + /// length of this value is 256 characters.
|
| core.String type;
|
|
|
| MonitoredResourceDescriptor();
|
| @@ -2330,7 +2428,9 @@ class MonitoredResourceDescriptor {
|
| displayName = _json["displayName"];
|
| }
|
| if (_json.containsKey("labels")) {
|
| - labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value)).toList();
|
| + labels = _json["labels"]
|
| + .map((value) => new LabelDescriptor.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| @@ -2341,7 +2441,8 @@ class MonitoredResourceDescriptor {
|
| }
|
|
|
| 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 (description != null) {
|
| _json["description"] = description;
|
| }
|
| @@ -2361,27 +2462,22 @@ class MonitoredResourceDescriptor {
|
| }
|
| }
|
|
|
| -/**
|
| - * A protocol buffer option, which can be attached to a message, field,
|
| - * enumeration, etc.
|
| - */
|
| +/// A protocol buffer option, which can be attached to a message, field,
|
| +/// enumeration, etc.
|
| class Option {
|
| - /**
|
| - * The option's name. For protobuf built-in options (options defined in
|
| - * descriptor.proto), this is the short name. For example, "map_entry". For
|
| - * custom options, it should be the fully-qualified name. For example,
|
| - * "google.api.http".
|
| - */
|
| + /// The option's name. For protobuf built-in options (options defined in
|
| + /// descriptor.proto), this is the short name. For example, "map_entry". For
|
| + /// custom options, it should be the fully-qualified name. For example,
|
| + /// "google.api.http".
|
| core.String name;
|
| - /**
|
| - * The option's value packed in an Any message. If the value is a primitive,
|
| - * the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
| - * should be used. If the value is an enum, it should be stored as an int32
|
| - * value using the google.protobuf.Int32Value type.
|
| - *
|
| - * The values for Object must be JSON objects. It can consist of `num`,
|
| - * `String`, `bool` and `null` as well as `Map` and `List` values.
|
| - */
|
| +
|
| + /// The option's value packed in an Any message. If the value is a primitive,
|
| + /// the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
| + /// should be used. If the value is an enum, it should be stored as an int32
|
| + /// value using the google.protobuf.Int32Value type.
|
| + ///
|
| + /// The values for Object must be JSON objects. It can consist of `num`,
|
| + /// `String`, `bool` and `null` as well as `Map` and `List` values.
|
| core.Map<core.String, core.Object> value;
|
|
|
| Option();
|
| @@ -2396,7 +2492,8 @@ class Option {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -2407,20 +2504,19 @@ class Option {
|
| }
|
| }
|
|
|
| -/** A single data point in a time series. */
|
| +/// A single data point in a time series.
|
| class Point {
|
| - /**
|
| - * The time interval to which the data point applies. For GAUGE metrics, only
|
| - * the end time of the interval is used. For DELTA metrics, the start and end
|
| - * time should specify a non-zero interval, with subsequent points specifying
|
| - * contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start
|
| - * and end time should specify a non-zero interval, with subsequent points
|
| - * specifying the same start time and increasing end times, until an event
|
| - * resets the cumulative value to zero and sets a new start time for the
|
| - * following points.
|
| - */
|
| + /// The time interval to which the data point applies. For GAUGE metrics,
|
| + /// only the end time of the interval is used. For DELTA metrics, the start
|
| + /// and end time should specify a non-zero interval, with subsequent points
|
| + /// specifying contiguous and non-overlapping intervals. For CUMULATIVE
|
| + /// metrics, the start and end time should specify a non-zero interval, with
|
| + /// subsequent points specifying the same start time and increasing end
|
| + /// times, until an event resets the cumulative value to zero and sets a new
|
| + /// start time for the following points.
|
| TimeInterval interval;
|
| - /** The value of the data point. */
|
| +
|
| + /// The value of the data point.
|
| TypedValue value;
|
|
|
| Point();
|
| @@ -2435,7 +2531,8 @@ class Point {
|
| }
|
|
|
| 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 (interval != null) {
|
| _json["interval"] = (interval).toJson();
|
| }
|
| @@ -2446,11 +2543,12 @@ class Point {
|
| }
|
| }
|
|
|
| -/** The range of the population values. */
|
| +/// The range of the population values.
|
| class Range {
|
| - /** The maximum of the population values. */
|
| + /// The maximum of the population values.
|
| core.double max;
|
| - /** The minimum of the population values. */
|
| +
|
| + /// The minimum of the population values.
|
| core.double min;
|
|
|
| Range();
|
| @@ -2465,7 +2563,8 @@ class Range {
|
| }
|
|
|
| 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 (max != null) {
|
| _json["max"] = max;
|
| }
|
| @@ -2476,15 +2575,11 @@ class Range {
|
| }
|
| }
|
|
|
| -/**
|
| - * SourceContext represents information about the source of a protobuf element,
|
| - * like the file in which it is defined.
|
| - */
|
| +/// SourceContext represents information about the source of a protobuf
|
| +/// element, like the file in which it is defined.
|
| class SourceContext {
|
| - /**
|
| - * The path-qualified name of the .proto file that contained the associated
|
| - * protobuf element. For example: "google/protobuf/source_context.proto".
|
| - */
|
| + /// The path-qualified name of the .proto file that contained the associated
|
| + /// protobuf element. For example: "google/protobuf/source_context.proto".
|
| core.String fileName;
|
|
|
| SourceContext();
|
| @@ -2496,7 +2591,8 @@ class SourceContext {
|
| }
|
|
|
| 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 (fileName != null) {
|
| _json["fileName"] = fileName;
|
| }
|
| @@ -2504,19 +2600,98 @@ class SourceContext {
|
| }
|
| }
|
|
|
| -/**
|
| - * A time interval extending just after a start time through an end time. If the
|
| - * start time is the same as the end time, then the interval represents a single
|
| - * point in time.
|
| - */
|
| +/// The Status type defines a logical error model that is suitable for
|
| +/// different programming environments, including REST APIs and RPC APIs. It is
|
| +/// used by gRPC (https://github.com/grpc). The error model is designed to be:
|
| +/// Simple to use and understand for most users
|
| +/// Flexible enough to meet unexpected needsOverviewThe Status message contains
|
| +/// three pieces of data: error code, error message, and error details. The
|
| +/// error code should be an enum value of google.rpc.Code, but it may accept
|
| +/// additional error codes if needed. The error message should be a
|
| +/// developer-facing English message that helps developers understand and
|
| +/// resolve the error. If a localized user-facing error message is needed, put
|
| +/// the localized message in the error details or localize it in the client.
|
| +/// The optional error details may contain arbitrary information about the
|
| +/// error. There is a predefined set of error detail types in the package
|
| +/// google.rpc that can be used for common error conditions.Language mappingThe
|
| +/// Status message is the logical representation of the error model, but it is
|
| +/// not necessarily the actual wire format. When the Status message is exposed
|
| +/// in different client libraries and different wire protocols, it can be
|
| +/// mapped differently. For example, it will likely be mapped to some
|
| +/// exceptions in Java, but more likely mapped to some error codes in C.Other
|
| +/// usesThe error model and the Status message can be used in a variety of
|
| +/// environments, either with or without APIs, to provide a consistent
|
| +/// developer experience across different environments.Example uses of this
|
| +/// error model include:
|
| +/// Partial errors. If a service needs to return partial errors to the client,
|
| +/// it may embed the Status in the normal response to indicate the partial
|
| +/// errors.
|
| +/// Workflow errors. A typical workflow has multiple steps. Each step may have
|
| +/// a Status message for error reporting.
|
| +/// Batch operations. If a client uses batch request and batch response, the
|
| +/// Status message should be used directly inside batch response, one for each
|
| +/// error sub-response.
|
| +/// Asynchronous operations. If an API call embeds asynchronous operation
|
| +/// results in its response, the status of those operations should be
|
| +/// represented directly using the Status message.
|
| +/// Logging. If some API errors are stored in logs, the message Status could be
|
| +/// used directly after any stripping needed for security/privacy reasons.
|
| +class Status {
|
| + /// The status code, which should be an enum value of google.rpc.Code.
|
| + core.int code;
|
| +
|
| + /// A list of messages that carry the error details. There is a common set of
|
| + /// message types for APIs to use.
|
| + ///
|
| + /// The values for Object must be JSON objects. It can consist of `num`,
|
| + /// `String`, `bool` and `null` as well as `Map` and `List` values.
|
| + core.List<core.Map<core.String, core.Object>> details;
|
| +
|
| + /// A developer-facing error message, which should be in English. Any
|
| + /// user-facing error message should be localized and sent in the
|
| + /// google.rpc.Status.details field, or localized by the client.
|
| + core.String message;
|
| +
|
| + Status();
|
| +
|
| + Status.fromJson(core.Map _json) {
|
| + if (_json.containsKey("code")) {
|
| + code = _json["code"];
|
| + }
|
| + if (_json.containsKey("details")) {
|
| + details = _json["details"];
|
| + }
|
| + if (_json.containsKey("message")) {
|
| + message = _json["message"];
|
| + }
|
| + }
|
| +
|
| + core.Map<core.String, core.Object> toJson() {
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| + if (code != null) {
|
| + _json["code"] = code;
|
| + }
|
| + if (details != null) {
|
| + _json["details"] = details;
|
| + }
|
| + if (message != null) {
|
| + _json["message"] = message;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/// A time interval extending just after a start time through an end time. If
|
| +/// the start time is the same as the end time, then the interval represents a
|
| +/// single point in time.
|
| class TimeInterval {
|
| - /** Required. The end of the time interval. */
|
| + /// Required. The end of the time interval.
|
| core.String endTime;
|
| - /**
|
| - * Optional. The beginning of the time interval. The default value for the
|
| - * start time is the end time. The start time must not be later than the end
|
| - * time.
|
| - */
|
| +
|
| + /// Optional. The beginning of the time interval. The default value for the
|
| + /// start time is the end time. The start time must not be later than the end
|
| + /// time.
|
| core.String startTime;
|
|
|
| TimeInterval();
|
| @@ -2531,7 +2706,8 @@ class TimeInterval {
|
| }
|
|
|
| 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 (endTime != null) {
|
| _json["endTime"] = endTime;
|
| }
|
| @@ -2542,69 +2718,61 @@ class TimeInterval {
|
| }
|
| }
|
|
|
| -/**
|
| - * A collection of data points that describes the time-varying values of a
|
| - * metric. A time series is identified by a combination of a fully-specified
|
| - * monitored resource and a fully-specified metric. This type is used for both
|
| - * listing and creating time series.
|
| - */
|
| +/// A collection of data points that describes the time-varying values of a
|
| +/// metric. A time series is identified by a combination of a fully-specified
|
| +/// monitored resource and a fully-specified metric. This type is used for both
|
| +/// listing and creating time series.
|
| class TimeSeries {
|
| - /**
|
| - * The associated metric. A fully-specified metric used to identify the time
|
| - * series.
|
| - */
|
| + /// The associated metric. A fully-specified metric used to identify the time
|
| + /// series.
|
| Metric metric;
|
| - /**
|
| - * The metric kind of the time series. When listing time series, this metric
|
| - * kind might be different from the metric kind of the associated metric if
|
| - * this time series is an alignment or reduction of other time series.When
|
| - * creating a time series, this field is optional. If present, it must be the
|
| - * same as the metric kind of the associated metric. If the associated
|
| - * metric's descriptor must be auto-created, then this field specifies the
|
| - * metric kind of the new descriptor and must be either GAUGE (the default) or
|
| - * CUMULATIVE.
|
| - * Possible string values are:
|
| - * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value.
|
| - * - "GAUGE" : An instantaneous measurement of a value.
|
| - * - "DELTA" : The change in a value during a time interval.
|
| - * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative
|
| - * measurements in a time series should have the same start time and
|
| - * increasing end times, until an event resets the cumulative value to zero
|
| - * and sets a new start time for the following points.
|
| - */
|
| +
|
| + /// The metric kind of the time series. When listing time series, this metric
|
| + /// kind might be different from the metric kind of the associated metric if
|
| + /// this time series is an alignment or reduction of other time series.When
|
| + /// creating a time series, this field is optional. If present, it must be
|
| + /// the same as the metric kind of the associated metric. If the associated
|
| + /// metric's descriptor must be auto-created, then this field specifies the
|
| + /// metric kind of the new descriptor and must be either GAUGE (the default)
|
| + /// or CUMULATIVE.
|
| + /// Possible string values are:
|
| + /// - "METRIC_KIND_UNSPECIFIED" : Do not use this default value.
|
| + /// - "GAUGE" : An instantaneous measurement of a value.
|
| + /// - "DELTA" : The change in a value during a time interval.
|
| + /// - "CUMULATIVE" : A value accumulated over a time interval. Cumulative
|
| + /// measurements in a time series should have the same start time and
|
| + /// increasing end times, until an event resets the cumulative value to zero
|
| + /// and sets a new start time for the following points.
|
| core.String metricKind;
|
| - /**
|
| - * The data points of this time series. When listing time series, the order of
|
| - * the points is specified by the list method.When creating a time series,
|
| - * this field must contain exactly one point and the point's type must be the
|
| - * same as the value type of the associated metric. If the associated metric's
|
| - * descriptor must be auto-created, then the value type of the descriptor is
|
| - * determined by the point's type, which must be BOOL, INT64, DOUBLE, or
|
| - * DISTRIBUTION.
|
| - */
|
| +
|
| + /// The data points of this time series. When listing time series, the order
|
| + /// of the points is specified by the list method.When creating a time
|
| + /// series, this field must contain exactly one point and the point's type
|
| + /// must be the same as the value type of the associated metric. If the
|
| + /// associated metric's descriptor must be auto-created, then the value type
|
| + /// of the descriptor is determined by the point's type, which must be BOOL,
|
| + /// INT64, DOUBLE, or DISTRIBUTION.
|
| core.List<Point> points;
|
| - /**
|
| - * The associated monitored resource. Custom metrics can use only certain
|
| - * monitored resource types in their time series data.
|
| - */
|
| +
|
| + /// The associated monitored resource. Custom metrics can use only certain
|
| + /// monitored resource types in their time series data.
|
| MonitoredResource resource;
|
| - /**
|
| - * The value type of the time series. When listing time series, this value
|
| - * type might be different from the value type of the associated metric if
|
| - * this time series is an alignment or reduction of other time series.When
|
| - * creating a time series, this field is optional. If present, it must be the
|
| - * same as the type of the data in the points field.
|
| - * Possible string values are:
|
| - * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value.
|
| - * - "BOOL" : The value is a boolean. This value type can be used only if the
|
| - * metric kind is GAUGE.
|
| - * - "INT64" : The value is a signed 64-bit integer.
|
| - * - "DOUBLE" : The value is a double precision floating point number.
|
| - * - "STRING" : The value is a text string. This value type can be used only
|
| - * if the metric kind is GAUGE.
|
| - * - "DISTRIBUTION" : The value is a Distribution.
|
| - * - "MONEY" : The value is money.
|
| - */
|
| +
|
| + /// The value type of the time series. When listing time series, this value
|
| + /// type might be different from the value type of the associated metric if
|
| + /// this time series is an alignment or reduction of other time series.When
|
| + /// creating a time series, this field is optional. If present, it must be
|
| + /// the same as the type of the data in the points field.
|
| + /// Possible string values are:
|
| + /// - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value.
|
| + /// - "BOOL" : The value is a boolean. This value type can be used only if
|
| + /// the metric kind is GAUGE.
|
| + /// - "INT64" : The value is a signed 64-bit integer.
|
| + /// - "DOUBLE" : The value is a double precision floating point number.
|
| + /// - "STRING" : The value is a text string. This value type can be used only
|
| + /// if the metric kind is GAUGE.
|
| + /// - "DISTRIBUTION" : The value is a Distribution.
|
| + /// - "MONEY" : The value is money.
|
| core.String valueType;
|
|
|
| TimeSeries();
|
| @@ -2617,7 +2785,8 @@ class TimeSeries {
|
| metricKind = _json["metricKind"];
|
| }
|
| if (_json.containsKey("points")) {
|
| - points = _json["points"].map((value) => new Point.fromJson(value)).toList();
|
| + points =
|
| + _json["points"].map((value) => new Point.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("resource")) {
|
| resource = new MonitoredResource.fromJson(_json["resource"]);
|
| @@ -2628,7 +2797,8 @@ class TimeSeries {
|
| }
|
|
|
| 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 (metric != null) {
|
| _json["metric"] = (metric).toJson();
|
| }
|
| @@ -2648,31 +2818,35 @@ class TimeSeries {
|
| }
|
| }
|
|
|
| -/** A protocol buffer message type. */
|
| +/// A protocol buffer message type.
|
| class Type {
|
| - /** The list of fields. */
|
| + /// The list of fields.
|
| core.List<Field> fields;
|
| - /** The fully qualified message name. */
|
| +
|
| + /// The fully qualified message name.
|
| core.String name;
|
| - /** The list of types appearing in oneof definitions in this type. */
|
| +
|
| + /// The list of types appearing in oneof definitions in this type.
|
| core.List<core.String> oneofs;
|
| - /** The protocol buffer options. */
|
| +
|
| + /// The protocol buffer options.
|
| core.List<Option> options;
|
| - /** The source context. */
|
| +
|
| + /// The source context.
|
| SourceContext sourceContext;
|
| - /**
|
| - * The source syntax.
|
| - * Possible string values are:
|
| - * - "SYNTAX_PROTO2" : Syntax proto2.
|
| - * - "SYNTAX_PROTO3" : Syntax proto3.
|
| - */
|
| +
|
| + /// The source syntax.
|
| + /// Possible string values are:
|
| + /// - "SYNTAX_PROTO2" : Syntax proto2.
|
| + /// - "SYNTAX_PROTO3" : Syntax proto3.
|
| core.String syntax;
|
|
|
| Type();
|
|
|
| Type.fromJson(core.Map _json) {
|
| if (_json.containsKey("fields")) {
|
| - fields = _json["fields"].map((value) => new Field.fromJson(value)).toList();
|
| + fields =
|
| + _json["fields"].map((value) => new Field.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| @@ -2681,7 +2855,8 @@ class Type {
|
| oneofs = _json["oneofs"];
|
| }
|
| if (_json.containsKey("options")) {
|
| - options = _json["options"].map((value) => new Option.fromJson(value)).toList();
|
| + options =
|
| + _json["options"].map((value) => new Option.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("sourceContext")) {
|
| sourceContext = new SourceContext.fromJson(_json["sourceContext"]);
|
| @@ -2692,7 +2867,8 @@ class Type {
|
| }
|
|
|
| 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 (fields != null) {
|
| _json["fields"] = fields.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2715,23 +2891,23 @@ class Type {
|
| }
|
| }
|
|
|
| -/** A single strongly-typed value. */
|
| +/// A single strongly-typed value.
|
| class TypedValue {
|
| - /** A Boolean value: true or false. */
|
| + /// A Boolean value: true or false.
|
| core.bool boolValue;
|
| - /** A distribution value. */
|
| +
|
| + /// A distribution value.
|
| Distribution distributionValue;
|
| - /**
|
| - * A 64-bit double-precision floating-point number. Its magnitude is
|
| - * approximately ±10<sup>±300</sup> and it has 16 significant
|
| - * digits of precision.
|
| - */
|
| +
|
| + /// A 64-bit double-precision floating-point number. Its magnitude is
|
| + /// approximately ±10<sup>±300</sup> and it has 16 significant
|
| + /// digits of precision.
|
| core.double doubleValue;
|
| - /**
|
| - * A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
|
| - */
|
| +
|
| + /// A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
|
| core.String int64Value;
|
| - /** A variable-length string value. */
|
| +
|
| + /// A variable-length string value.
|
| core.String stringValue;
|
|
|
| TypedValue();
|
| @@ -2755,7 +2931,8 @@ class TypedValue {
|
| }
|
|
|
| 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 (boolValue != null) {
|
| _json["boolValue"] = boolValue;
|
| }
|
|
|