| Index: generated/googleapis/lib/cloudbilling/v1.dart
|
| diff --git a/generated/googleapis/lib/cloudbilling/v1.dart b/generated/googleapis/lib/cloudbilling/v1.dart
|
| index 5154619dad10bb68ba8ba24be9613f984574b22d..b62d20c4f3311e6579a4cc173480fcfc34add741 100644
|
| --- a/generated/googleapis/lib/cloudbilling/v1.dart
|
| +++ b/generated/googleapis/lib/cloudbilling/v1.dart
|
| @@ -9,58 +9,59 @@ 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 cloudbilling/v1';
|
|
|
| -/**
|
| - * Allows developers to manage billing for their Google Cloud Platform projects
|
| - * programmatically.
|
| - */
|
| +/// Allows developers to manage billing for their Google Cloud Platform
|
| +/// projects
|
| +/// programmatically.
|
| class CloudbillingApi {
|
| - /** 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";
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| - BillingAccountsResourceApi get billingAccounts => new BillingAccountsResourceApi(_requester);
|
| + BillingAccountsResourceApi get billingAccounts =>
|
| + new BillingAccountsResourceApi(_requester);
|
| ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
|
| ServicesResourceApi get services => new ServicesResourceApi(_requester);
|
|
|
| - CloudbillingApi(http.Client client, {core.String rootUrl: "https://cloudbilling.googleapis.com/", core.String servicePath: ""}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + CloudbillingApi(http.Client client,
|
| + {core.String rootUrl: "https://cloudbilling.googleapis.com/",
|
| + core.String servicePath: ""})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class BillingAccountsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - BillingAccountsProjectsResourceApi get projects => new BillingAccountsProjectsResourceApi(_requester);
|
| -
|
| - BillingAccountsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Gets information about a billing account. The current authenticated user
|
| - * must be an [owner of the billing
|
| - * account](https://support.google.com/cloud/answer/4430947).
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The resource name of the billing account to retrieve. For example,
|
| - * `billingAccounts/012345-567890-ABCDEF`.
|
| - * Value must have pattern "^billingAccounts/[^/]+$".
|
| - *
|
| - * Completes with a [BillingAccount].
|
| - *
|
| - * 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.
|
| - */
|
| + BillingAccountsProjectsResourceApi get projects =>
|
| + new BillingAccountsProjectsResourceApi(_requester);
|
| +
|
| + BillingAccountsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Gets information about a billing account. The current authenticated user
|
| + /// must be an [owner of the billing
|
| + /// account](https://support.google.com/cloud/answer/4430947).
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The resource name of the billing account to retrieve. For
|
| + /// example,
|
| + /// `billingAccounts/012345-567890-ABCDEF`.
|
| + /// Value must have pattern "^billingAccounts/[^/]+$".
|
| + ///
|
| + /// Completes with a [BillingAccount].
|
| + ///
|
| + /// 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<BillingAccount> get(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -75,40 +76,38 @@ class BillingAccountsResourceApi {
|
|
|
| _url = 'v1/' + 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 BillingAccount.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the billing accounts that the current authenticated user
|
| - * [owns](https://support.google.com/cloud/answer/4430947).
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [pageSize] - Requested page size. The maximum page size is 100; this is
|
| - * also the
|
| - * default.
|
| - *
|
| - * [pageToken] - A token identifying a page of results to return. This should
|
| - * be a
|
| - * `next_page_token` value returned from a previous `ListBillingAccounts`
|
| - * call. If unspecified, the first page of results is returned.
|
| - *
|
| - * Completes with a [ListBillingAccountsResponse].
|
| - *
|
| - * 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<ListBillingAccountsResponse> list({core.int pageSize, core.String pageToken}) {
|
| + /// Lists the billing accounts that the current authenticated user
|
| + /// [owns](https://support.google.com/cloud/answer/4430947).
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [pageSize] - Requested page size. The maximum page size is 100; this is
|
| + /// also the
|
| + /// default.
|
| + ///
|
| + /// [pageToken] - A token identifying a page of results to return. This
|
| + /// should be a
|
| + /// `next_page_token` value returned from a previous `ListBillingAccounts`
|
| + /// call. If unspecified, the first page of results is returned.
|
| + ///
|
| + /// Completes with a [ListBillingAccountsResponse].
|
| + ///
|
| + /// 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<ListBillingAccountsResponse> list(
|
| + {core.int pageSize, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -125,55 +124,52 @@ class BillingAccountsResourceApi {
|
|
|
| _url = 'v1/billingAccounts';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListBillingAccountsResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListBillingAccountsResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class BillingAccountsProjectsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - BillingAccountsProjectsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Lists the projects associated with a billing account. The current
|
| - * authenticated user must be an [owner of the billing
|
| - * account](https://support.google.com/cloud/answer/4430947).
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The resource name of the billing account associated with the
|
| - * projects that
|
| - * you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
| - * Value must have pattern "^billingAccounts/[^/]+$".
|
| - *
|
| - * [pageSize] - Requested page size. The maximum page size is 100; this is
|
| - * also the
|
| - * default.
|
| - *
|
| - * [pageToken] - A token identifying a page of results to be returned. This
|
| - * should be a
|
| - * `next_page_token` value returned from a previous `ListProjectBillingInfo`
|
| - * call. If unspecified, the first page of results is returned.
|
| - *
|
| - * Completes with a [ListProjectBillingInfoResponse].
|
| - *
|
| - * 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<ListProjectBillingInfoResponse> list(core.String name, {core.int pageSize, core.String pageToken}) {
|
| + BillingAccountsProjectsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Lists the projects associated with a billing account. The current
|
| + /// authenticated user must be an [owner of the billing
|
| + /// account](https://support.google.com/cloud/answer/4430947).
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The resource name of the billing account associated with the
|
| + /// projects that
|
| + /// you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
|
| + /// Value must have pattern "^billingAccounts/[^/]+$".
|
| + ///
|
| + /// [pageSize] - Requested page size. The maximum page size is 100; this is
|
| + /// also the
|
| + /// default.
|
| + ///
|
| + /// [pageToken] - A token identifying a page of results to be returned. This
|
| + /// should be a
|
| + /// `next_page_token` value returned from a previous `ListProjectBillingInfo`
|
| + /// call. If unspecified, the first page of results is returned.
|
| + ///
|
| + /// Completes with a [ListProjectBillingInfoResponse].
|
| + ///
|
| + /// 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<ListProjectBillingInfoResponse> list(core.String name,
|
| + {core.int pageSize, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -193,45 +189,42 @@ class BillingAccountsProjectsResourceApi {
|
|
|
| _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/projects';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ListProjectBillingInfoResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ListProjectBillingInfoResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProjectsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProjectsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Gets the billing information for a project. The current authenticated user
|
| - * must have [permission to view the
|
| - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
| - * ).
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The resource name of the project for which billing information is
|
| - * retrieved. For example, `projects/tokyo-rain-123`.
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * Completes with a [ProjectBillingInfo].
|
| - *
|
| - * 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.
|
| - */
|
| + ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Gets the billing information for a project. The current authenticated
|
| + /// user
|
| + /// must have [permission to view the
|
| + /// project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
| + /// ).
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The resource name of the project for which billing information
|
| + /// is
|
| + /// retrieved. For example, `projects/tokyo-rain-123`.
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// Completes with a [ProjectBillingInfo].
|
| + ///
|
| + /// 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<ProjectBillingInfo> getBillingInfo(core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -244,69 +237,74 @@ class ProjectsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/billingInfo';
|
| + _url =
|
| + 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/billingInfo';
|
|
|
| - 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 ProjectBillingInfo.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Sets or updates the billing account associated with a project. You specify
|
| - * the new billing account by setting the `billing_account_name` in the
|
| - * `ProjectBillingInfo` resource to the resource name of a billing account.
|
| - * Associating a project with an open billing account enables billing on the
|
| - * project and allows charges for resource usage. If the project already had a
|
| - * billing account, this method changes the billing account used for resource
|
| - * usage charges.
|
| - *
|
| - * *Note:* Incurred charges that have not yet been reported in the transaction
|
| - * history of the Google Cloud Console may be billed to the new billing
|
| - * account, even if the charge occurred before the new billing account was
|
| - * assigned to the project.
|
| - *
|
| - * The current authenticated user must have ownership privileges for both the
|
| - * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
| - * ) and the [billing
|
| - * account](https://support.google.com/cloud/answer/4430947).
|
| - *
|
| - * You can disable billing on the project by setting the
|
| - * `billing_account_name` field to empty. This action disassociates the
|
| - * current billing account from the project. Any billable activity of your
|
| - * in-use services will stop, and your application could stop functioning as
|
| - * expected. Any unbilled charges to date will be billed to the previously
|
| - * associated account. The current authenticated user must be either an owner
|
| - * of the project or an owner of the billing account for the project.
|
| - *
|
| - * Note that associating a project with a *closed* billing account will have
|
| - * much the same effect as disabling billing on the project: any paid
|
| - * resources used by the project will be shut down. Thus, unless you wish to
|
| - * disable billing, you should always call this method with the name of an
|
| - * *open* billing account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The resource name of the project associated with the billing
|
| - * information
|
| - * that you want to update. For example, `projects/tokyo-rain-123`.
|
| - * Value must have pattern "^projects/[^/]+$".
|
| - *
|
| - * Completes with a [ProjectBillingInfo].
|
| - *
|
| - * 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<ProjectBillingInfo> updateBillingInfo(ProjectBillingInfo request, core.String name) {
|
| + /// Sets or updates the billing account associated with a project. You
|
| + /// specify
|
| + /// the new billing account by setting the `billing_account_name` in the
|
| + /// `ProjectBillingInfo` resource to the resource name of a billing account.
|
| + /// Associating a project with an open billing account enables billing on the
|
| + /// project and allows charges for resource usage. If the project already had
|
| + /// a
|
| + /// billing account, this method changes the billing account used for
|
| + /// resource
|
| + /// usage charges.
|
| + ///
|
| + /// *Note:* Incurred charges that have not yet been reported in the
|
| + /// transaction
|
| + /// history of the Google Cloud Console may be billed to the new billing
|
| + /// account, even if the charge occurred before the new billing account was
|
| + /// assigned to the project.
|
| + ///
|
| + /// The current authenticated user must have ownership privileges for both
|
| + /// the
|
| + /// [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
| + /// ) and the [billing
|
| + /// account](https://support.google.com/cloud/answer/4430947).
|
| + ///
|
| + /// You can disable billing on the project by setting the
|
| + /// `billing_account_name` field to empty. This action disassociates the
|
| + /// current billing account from the project. Any billable activity of your
|
| + /// in-use services will stop, and your application could stop functioning as
|
| + /// expected. Any unbilled charges to date will be billed to the previously
|
| + /// associated account. The current authenticated user must be either an
|
| + /// owner
|
| + /// of the project or an owner of the billing account for the project.
|
| + ///
|
| + /// Note that associating a project with a *closed* billing account will have
|
| + /// much the same effect as disabling billing on the project: any paid
|
| + /// resources used by the project will be shut down. Thus, unless you wish to
|
| + /// disable billing, you should always call this method with the name of an
|
| + /// *open* billing account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The resource name of the project associated with the billing
|
| + /// information
|
| + /// that you want to update. For example, `projects/tokyo-rain-123`.
|
| + /// Value must have pattern "^projects/[^/]+$".
|
| + ///
|
| + /// Completes with a [ProjectBillingInfo].
|
| + ///
|
| + /// 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<ProjectBillingInfo> updateBillingInfo(
|
| + ProjectBillingInfo request, core.String name) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -321,50 +319,46 @@ class ProjectsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/billingInfo';
|
| + _url =
|
| + 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/billingInfo';
|
|
|
| - 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 ProjectBillingInfo.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ServicesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| ServicesSkusResourceApi get skus => new ServicesSkusResourceApi(_requester);
|
|
|
| - ServicesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Lists all public cloud services.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [pageSize] - Requested page size. Defaults to 5000.
|
| - *
|
| - * [pageToken] - A token identifying a page of results to return. This should
|
| - * be a
|
| - * `next_page_token` value returned from a previous `ListServices`
|
| - * call. If unspecified, the first page of results is returned.
|
| - *
|
| - * Completes with a [ListServicesResponse].
|
| - *
|
| - * 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<ListServicesResponse> list({core.int pageSize, core.String pageToken}) {
|
| + ServicesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Lists all public cloud services.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [pageSize] - Requested page size. Defaults to 5000.
|
| + ///
|
| + /// [pageToken] - A token identifying a page of results to return. This
|
| + /// should be a
|
| + /// `next_page_token` value returned from a previous `ListServices`
|
| + /// call. If unspecified, the first page of results is returned.
|
| + ///
|
| + /// Completes with a [ListServicesResponse].
|
| + ///
|
| + /// 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<ListServicesResponse> list(
|
| + {core.int pageSize, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -381,69 +375,68 @@ class ServicesResourceApi {
|
|
|
| _url = 'v1/services';
|
|
|
| - 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 ListServicesResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ServicesSkusResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ServicesSkusResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Lists all publicly available SKUs for a given cloud service.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [parent] - The name of the service.
|
| - * Example: "services/DA34-426B-A397"
|
| - * Value must have pattern "^services/[^/]+$".
|
| - *
|
| - * [currencyCode] - The ISO 4217 currency code for the pricing info in the
|
| - * response proto.
|
| - * Will use the conversion rate as of start_time.
|
| - * Optional. If not specified USD will be used.
|
| - *
|
| - * [endTime] - Optional exclusive end time of the time range for which the
|
| - * pricing
|
| - * versions will be returned. Timestamps in the future are not allowed.
|
| - * Maximum allowable time range is 1 month (31 days). Time range as a whole
|
| - * is optional. If not specified, the latest pricing will be returned (up to
|
| - * 12 hours old at most).
|
| - *
|
| - * [pageSize] - Requested page size. Defaults to 5000.
|
| - *
|
| - * [startTime] - Optional inclusive start time of the time range for which the
|
| - * pricing
|
| - * versions will be returned. Timestamps in the future are not allowed.
|
| - * Maximum allowable time range is 1 month (31 days). Time range as a whole
|
| - * is optional. If not specified, the latest pricing will be returned (up to
|
| - * 12 hours old at most).
|
| - *
|
| - * [pageToken] - A token identifying a page of results to return. This should
|
| - * be a
|
| - * `next_page_token` value returned from a previous `ListSkus`
|
| - * call. If unspecified, the first page of results is returned.
|
| - *
|
| - * Completes with a [ListSkusResponse].
|
| - *
|
| - * 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<ListSkusResponse> list(core.String parent, {core.String currencyCode, core.String endTime, core.int pageSize, core.String startTime, core.String pageToken}) {
|
| + ServicesSkusResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Lists all publicly available SKUs for a given cloud service.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [parent] - The name of the service.
|
| + /// Example: "services/DA34-426B-A397"
|
| + /// Value must have pattern "^services/[^/]+$".
|
| + ///
|
| + /// [currencyCode] - The ISO 4217 currency code for the pricing info in the
|
| + /// response proto.
|
| + /// Will use the conversion rate as of start_time.
|
| + /// Optional. If not specified USD will be used.
|
| + ///
|
| + /// [endTime] - Optional exclusive end time of the time range for which the
|
| + /// pricing
|
| + /// versions will be returned. Timestamps in the future are not allowed.
|
| + /// Maximum allowable time range is 1 month (31 days). Time range as a whole
|
| + /// is optional. If not specified, the latest pricing will be returned (up to
|
| + /// 12 hours old at most).
|
| + ///
|
| + /// [pageSize] - Requested page size. Defaults to 5000.
|
| + ///
|
| + /// [startTime] - Optional inclusive start time of the time range for which
|
| + /// the pricing
|
| + /// versions will be returned. Timestamps in the future are not allowed.
|
| + /// Maximum allowable time range is 1 month (31 days). Time range as a whole
|
| + /// is optional. If not specified, the latest pricing will be returned (up to
|
| + /// 12 hours old at most).
|
| + ///
|
| + /// [pageToken] - A token identifying a page of results to return. This
|
| + /// should be a
|
| + /// `next_page_token` value returned from a previous `ListSkus`
|
| + /// call. If unspecified, the first page of results is returned.
|
| + ///
|
| + /// Completes with a [ListSkusResponse].
|
| + ///
|
| + /// 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<ListSkusResponse> list(core.String parent,
|
| + {core.String currencyCode,
|
| + core.String endTime,
|
| + core.int pageSize,
|
| + core.String startTime,
|
| + core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -472,45 +465,35 @@ class ServicesSkusResourceApi {
|
|
|
| _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/skus';
|
|
|
| - 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 ListSkusResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/**
|
| - * Represents the aggregation level and interval for pricing of a single SKU.
|
| - */
|
| +/// Represents the aggregation level and interval for pricing of a single SKU.
|
| class AggregationInfo {
|
| - /**
|
| - * The number of intervals to aggregate over.
|
| - * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
|
| - * aggregation will be over 14 days.
|
| - */
|
| + /// The number of intervals to aggregate over.
|
| + /// Example: If aggregation_level is "DAILY" and aggregation_count is 14,
|
| + /// aggregation will be over 14 days.
|
| core.int aggregationCount;
|
| - /**
|
| - *
|
| - * Possible string values are:
|
| - * - "AGGREGATION_INTERVAL_UNSPECIFIED"
|
| - * - "DAILY"
|
| - * - "MONTHLY"
|
| - */
|
| +
|
| + ///
|
| + /// Possible string values are:
|
| + /// - "AGGREGATION_INTERVAL_UNSPECIFIED"
|
| + /// - "DAILY"
|
| + /// - "MONTHLY"
|
| core.String aggregationInterval;
|
| - /**
|
| - *
|
| - * Possible string values are:
|
| - * - "AGGREGATION_LEVEL_UNSPECIFIED"
|
| - * - "ACCOUNT"
|
| - * - "PROJECT"
|
| - */
|
| +
|
| + ///
|
| + /// Possible string values are:
|
| + /// - "AGGREGATION_LEVEL_UNSPECIFIED"
|
| + /// - "ACCOUNT"
|
| + /// - "PROJECT"
|
| core.String aggregationLevel;
|
|
|
| AggregationInfo();
|
| @@ -528,7 +511,8 @@ class AggregationInfo {
|
| }
|
|
|
| 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 (aggregationCount != null) {
|
| _json["aggregationCount"] = aggregationCount;
|
| }
|
| @@ -542,29 +526,26 @@ class AggregationInfo {
|
| }
|
| }
|
|
|
| -/**
|
| - * A billing account in [Google Cloud
|
| - * Console](https://console.cloud.google.com/). You can assign a billing account
|
| - * to one or more projects.
|
| - */
|
| +/// A billing account in [Google Cloud
|
| +/// Console](https://console.cloud.google.com/). You can assign a billing
|
| +/// account
|
| +/// to one or more projects.
|
| class BillingAccount {
|
| - /**
|
| - * The display name given to the billing account, such as `My Billing
|
| - * Account`. This name is displayed in the Google Cloud Console.
|
| - */
|
| + /// The display name given to the billing account, such as `My Billing
|
| + /// Account`. This name is displayed in the Google Cloud Console.
|
| core.String displayName;
|
| - /**
|
| - * The resource name of the billing account. The resource name has the form
|
| - * `billingAccounts/{billing_account_id}`. For example,
|
| - * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
| - * billing account `012345-567890-ABCDEF`.
|
| - */
|
| +
|
| + /// The resource name of the billing account. The resource name has the form
|
| + /// `billingAccounts/{billing_account_id}`. For example,
|
| + /// `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
| + /// billing account `012345-567890-ABCDEF`.
|
| core.String name;
|
| - /**
|
| - * True if the billing account is open, and will therefore be charged for any
|
| - * usage on associated projects. False if the billing account is closed, and
|
| - * therefore projects associated with it will be unable to use paid services.
|
| - */
|
| +
|
| + /// True if the billing account is open, and will therefore be charged for
|
| + /// any
|
| + /// usage on associated projects. False if the billing account is closed, and
|
| + /// therefore projects associated with it will be unable to use paid
|
| + /// services.
|
| core.bool open;
|
|
|
| BillingAccount();
|
| @@ -582,7 +563,8 @@ class BillingAccount {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -596,24 +578,21 @@ class BillingAccount {
|
| }
|
| }
|
|
|
| -/** Represents the category hierarchy of a SKU. */
|
| +/// Represents the category hierarchy of a SKU.
|
| class Category {
|
| - /**
|
| - * The type of product the SKU refers to.
|
| - * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
|
| - */
|
| + /// The type of product the SKU refers to.
|
| + /// Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
|
| core.String resourceFamily;
|
| - /**
|
| - * A group classification for related SKUs.
|
| - * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
|
| - */
|
| +
|
| + /// A group classification for related SKUs.
|
| + /// Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
|
| core.String resourceGroup;
|
| - /** The display name of the service this SKU belongs to. */
|
| +
|
| + /// The display name of the service this SKU belongs to.
|
| core.String serviceDisplayName;
|
| - /**
|
| - * Represents how the SKU is consumed.
|
| - * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
|
| - */
|
| +
|
| + /// Represents how the SKU is consumed.
|
| + /// Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
|
| core.String usageType;
|
|
|
| Category();
|
| @@ -634,7 +613,8 @@ class Category {
|
| }
|
|
|
| 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 (resourceFamily != null) {
|
| _json["resourceFamily"] = resourceFamily;
|
| }
|
| @@ -651,22 +631,23 @@ class Category {
|
| }
|
| }
|
|
|
| -/** Response message for `ListBillingAccounts`. */
|
| +/// Response message for `ListBillingAccounts`.
|
| class ListBillingAccountsResponse {
|
| - /** A list of billing accounts. */
|
| + /// A list of billing accounts.
|
| core.List<BillingAccount> billingAccounts;
|
| - /**
|
| - * A token to retrieve the next page of results. To retrieve the next page,
|
| - * call `ListBillingAccounts` again with the `page_token` field set to this
|
| - * value. This field is empty if there are no more results to retrieve.
|
| - */
|
| +
|
| + /// A token to retrieve the next page of results. To retrieve the next page,
|
| + /// call `ListBillingAccounts` again with the `page_token` field set to this
|
| + /// value. This field is empty if there are no more results to retrieve.
|
| core.String nextPageToken;
|
|
|
| ListBillingAccountsResponse();
|
|
|
| ListBillingAccountsResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("billingAccounts")) {
|
| - billingAccounts = _json["billingAccounts"].map((value) => new BillingAccount.fromJson(value)).toList();
|
| + billingAccounts = _json["billingAccounts"]
|
| + .map((value) => new BillingAccount.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("nextPageToken")) {
|
| nextPageToken = _json["nextPageToken"];
|
| @@ -674,9 +655,11 @@ class ListBillingAccountsResponse {
|
| }
|
|
|
| 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 (billingAccounts != null) {
|
| - _json["billingAccounts"] = billingAccounts.map((value) => (value).toJson()).toList();
|
| + _json["billingAccounts"] =
|
| + billingAccounts.map((value) => (value).toJson()).toList();
|
| }
|
| if (nextPageToken != null) {
|
| _json["nextPageToken"] = nextPageToken;
|
| @@ -685,18 +668,16 @@ class ListBillingAccountsResponse {
|
| }
|
| }
|
|
|
| -/** Request message for `ListProjectBillingInfoResponse`. */
|
| +/// Request message for `ListProjectBillingInfoResponse`.
|
| class ListProjectBillingInfoResponse {
|
| - /**
|
| - * A token to retrieve the next page of results. To retrieve the next page,
|
| - * call `ListProjectBillingInfo` again with the `page_token` field set to this
|
| - * value. This field is empty if there are no more results to retrieve.
|
| - */
|
| + /// A token to retrieve the next page of results. To retrieve the next page,
|
| + /// call `ListProjectBillingInfo` again with the `page_token` field set to
|
| + /// this
|
| + /// value. This field is empty if there are no more results to retrieve.
|
| core.String nextPageToken;
|
| - /**
|
| - * A list of `ProjectBillingInfo` resources representing the projects
|
| - * associated with the billing account.
|
| - */
|
| +
|
| + /// A list of `ProjectBillingInfo` resources representing the projects
|
| + /// associated with the billing account.
|
| core.List<ProjectBillingInfo> projectBillingInfo;
|
|
|
| ListProjectBillingInfoResponse();
|
| @@ -706,31 +687,34 @@ class ListProjectBillingInfoResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("projectBillingInfo")) {
|
| - projectBillingInfo = _json["projectBillingInfo"].map((value) => new ProjectBillingInfo.fromJson(value)).toList();
|
| + projectBillingInfo = _json["projectBillingInfo"]
|
| + .map((value) => new ProjectBillingInfo.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 (projectBillingInfo != null) {
|
| - _json["projectBillingInfo"] = projectBillingInfo.map((value) => (value).toJson()).toList();
|
| + _json["projectBillingInfo"] =
|
| + projectBillingInfo.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** Response message for `ListServices`. */
|
| +/// Response message for `ListServices`.
|
| class ListServicesResponse {
|
| - /**
|
| - * A token to retrieve the next page of results. To retrieve the next page,
|
| - * call `ListServices` again with the `page_token` field set to this
|
| - * value. This field is empty if there are no more results to retrieve.
|
| - */
|
| + /// A token to retrieve the next page of results. To retrieve the next page,
|
| + /// call `ListServices` again with the `page_token` field set to this
|
| + /// value. This field is empty if there are no more results to retrieve.
|
| core.String nextPageToken;
|
| - /** A list of services. */
|
| +
|
| + /// A list of services.
|
| core.List<Service> services;
|
|
|
| ListServicesResponse();
|
| @@ -740,12 +724,15 @@ class ListServicesResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("services")) {
|
| - services = _json["services"].map((value) => new Service.fromJson(value)).toList();
|
| + services = _json["services"]
|
| + .map((value) => new Service.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;
|
| }
|
| @@ -756,15 +743,14 @@ class ListServicesResponse {
|
| }
|
| }
|
|
|
| -/** Response message for `ListSkus`. */
|
| +/// Response message for `ListSkus`.
|
| class ListSkusResponse {
|
| - /**
|
| - * A token to retrieve the next page of results. To retrieve the next page,
|
| - * call `ListSkus` again with the `page_token` field set to this
|
| - * value. This field is empty if there are no more results to retrieve.
|
| - */
|
| + /// A token to retrieve the next page of results. To retrieve the next page,
|
| + /// call `ListSkus` again with the `page_token` field set to this
|
| + /// value. This field is empty if there are no more results to retrieve.
|
| core.String nextPageToken;
|
| - /** The list of public SKUs of the given service. */
|
| +
|
| + /// The list of public SKUs of the given service.
|
| core.List<Sku> skus;
|
|
|
| ListSkusResponse();
|
| @@ -779,7 +765,8 @@ class ListSkusResponse {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -790,23 +777,21 @@ class ListSkusResponse {
|
| }
|
| }
|
|
|
| -/** Represents an amount of money with its currency type. */
|
| +/// Represents an amount of money with its currency type.
|
| class Money {
|
| - /** The 3-letter currency code defined in ISO 4217. */
|
| + /// The 3-letter currency code defined in ISO 4217.
|
| core.String currencyCode;
|
| - /**
|
| - * Number of nano (10^-9) units of the amount.
|
| - * The value must be between -999,999,999 and +999,999,999 inclusive.
|
| - * If `units` is positive, `nanos` must be positive or zero.
|
| - * If `units` is zero, `nanos` can be positive, zero, or negative.
|
| - * If `units` is negative, `nanos` must be negative or zero.
|
| - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
| - */
|
| +
|
| + /// Number of nano (10^-9) units of the amount.
|
| + /// The value must be between -999,999,999 and +999,999,999 inclusive.
|
| + /// If `units` is positive, `nanos` must be positive or zero.
|
| + /// If `units` is zero, `nanos` can be positive, zero, or negative.
|
| + /// If `units` is negative, `nanos` must be negative or zero.
|
| + /// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
| core.int nanos;
|
| - /**
|
| - * The whole units of the amount.
|
| - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
| - */
|
| +
|
| + /// The whole units of the amount.
|
| + /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
| core.String units;
|
|
|
| Money();
|
| @@ -824,7 +809,8 @@ class Money {
|
| }
|
|
|
| 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 (currencyCode != null) {
|
| _json["currencyCode"] = currencyCode;
|
| }
|
| @@ -838,63 +824,55 @@ class Money {
|
| }
|
| }
|
|
|
| -/**
|
| - * Expresses a mathematical pricing formula. For Example:-
|
| - *
|
| - * `usage_unit: GBy`
|
| - * `tiered_rates:`
|
| - * `[start_usage_amount: 20, unit_price: $10]`
|
| - * `[start_usage_amount: 100, unit_price: $5]`
|
| - *
|
| - * The above expresses a pricing formula where the first 20GB is free, the
|
| - * next 80GB is priced at $10 per GB followed by $5 per GB for additional
|
| - * usage.
|
| - */
|
| +/// Expresses a mathematical pricing formula. For Example:-
|
| +///
|
| +/// `usage_unit: GBy`
|
| +/// `tiered_rates:`
|
| +/// `[start_usage_amount: 20, unit_price: $10]`
|
| +/// `[start_usage_amount: 100, unit_price: $5]`
|
| +///
|
| +/// The above expresses a pricing formula where the first 20GB is free, the
|
| +/// next 80GB is priced at $10 per GB followed by $5 per GB for additional
|
| +/// usage.
|
| class PricingExpression {
|
| - /**
|
| - * The base unit for the SKU which is the unit used in usage exports.
|
| - * Example: "By"
|
| - */
|
| + /// The base unit for the SKU which is the unit used in usage exports.
|
| + /// Example: "By"
|
| core.String baseUnit;
|
| - /**
|
| - * Conversion factor for converting from price per usage_unit to price per
|
| - * base_unit, and start_usage_amount to start_usage_amount in base_unit.
|
| - * unit_price / base_unit_conversion_factor = price per base_unit.
|
| - * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
|
| - * base_unit.
|
| - */
|
| +
|
| + /// Conversion factor for converting from price per usage_unit to price per
|
| + /// base_unit, and start_usage_amount to start_usage_amount in base_unit.
|
| + /// unit_price / base_unit_conversion_factor = price per base_unit.
|
| + /// start_usage_amount * base_unit_conversion_factor = start_usage_amount in
|
| + /// base_unit.
|
| core.double baseUnitConversionFactor;
|
| - /**
|
| - * The base unit in human readable form.
|
| - * Example: "byte".
|
| - */
|
| +
|
| + /// The base unit in human readable form.
|
| + /// Example: "byte".
|
| core.String baseUnitDescription;
|
| - /**
|
| - * The recommended quantity of units for displaying pricing info. When
|
| - * displaying pricing info it is recommended to display:
|
| - * (unit_price * display_quantity) per display_quantity usage_unit.
|
| - * This field does not affect the pricing formula and is for display purposes
|
| - * only.
|
| - * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
|
| - * the display_quantity is "1000" then the recommended way of displaying the
|
| - * pricing info is "0.10 USD per 1000 GB"
|
| - */
|
| +
|
| + /// The recommended quantity of units for displaying pricing info. When
|
| + /// displaying pricing info it is recommended to display:
|
| + /// (unit_price * display_quantity) per display_quantity usage_unit.
|
| + /// This field does not affect the pricing formula and is for display
|
| + /// purposes
|
| + /// only.
|
| + /// Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
|
| + /// the display_quantity is "1000" then the recommended way of displaying the
|
| + /// pricing info is "0.10 USD per 1000 GB"
|
| core.double displayQuantity;
|
| - /**
|
| - * The list of tiered rates for this pricing. The total cost is computed by
|
| - * applying each of the tiered rates on usage. This repeated list is sorted
|
| - * by ascending order of start_usage_amount.
|
| - */
|
| +
|
| + /// The list of tiered rates for this pricing. The total cost is computed by
|
| + /// applying each of the tiered rates on usage. This repeated list is sorted
|
| + /// by ascending order of start_usage_amount.
|
| core.List<TierRate> tieredRates;
|
| - /**
|
| - * The short hand for unit of usage this pricing is specified in.
|
| - * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
|
| - */
|
| +
|
| + /// The short hand for unit of usage this pricing is specified in.
|
| + /// Example: usage_unit of "GiBy" means that usage is specified in "Gibi
|
| + /// Byte".
|
| core.String usageUnit;
|
| - /**
|
| - * The unit of usage in human readable form.
|
| - * Example: "gibi byte".
|
| - */
|
| +
|
| + /// The unit of usage in human readable form.
|
| + /// Example: "gibi byte".
|
| core.String usageUnitDescription;
|
|
|
| PricingExpression();
|
| @@ -913,7 +891,9 @@ class PricingExpression {
|
| displayQuantity = _json["displayQuantity"];
|
| }
|
| if (_json.containsKey("tieredRates")) {
|
| - tieredRates = _json["tieredRates"].map((value) => new TierRate.fromJson(value)).toList();
|
| + tieredRates = _json["tieredRates"]
|
| + .map((value) => new TierRate.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("usageUnit")) {
|
| usageUnit = _json["usageUnit"];
|
| @@ -924,7 +904,8 @@ class PricingExpression {
|
| }
|
|
|
| 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 (baseUnit != null) {
|
| _json["baseUnit"] = baseUnit;
|
| }
|
| @@ -938,7 +919,8 @@ class PricingExpression {
|
| _json["displayQuantity"] = displayQuantity;
|
| }
|
| if (tieredRates != null) {
|
| - _json["tieredRates"] = tieredRates.map((value) => (value).toJson()).toList();
|
| + _json["tieredRates"] =
|
| + tieredRates.map((value) => (value).toJson()).toList();
|
| }
|
| if (usageUnit != null) {
|
| _json["usageUnit"] = usageUnit;
|
| @@ -950,27 +932,26 @@ class PricingExpression {
|
| }
|
| }
|
|
|
| -/** Represents the pricing information for a SKU at a single point of time. */
|
| +/// Represents the pricing information for a SKU at a single point of time.
|
| class PricingInfo {
|
| - /**
|
| - * Aggregation Info. This can be left unspecified if the pricing expression
|
| - * doesn't require aggregation.
|
| - */
|
| + /// Aggregation Info. This can be left unspecified if the pricing expression
|
| + /// doesn't require aggregation.
|
| AggregationInfo aggregationInfo;
|
| - /**
|
| - * Conversion rate for currency conversion, from USD to the currency specified
|
| - * in the request. If the currency is not specified this defaults to 1.0.
|
| - * Example: USD * currency_conversion_rate = JPY
|
| - */
|
| +
|
| + /// Conversion rate for currency conversion, from USD to the currency
|
| + /// specified
|
| + /// in the request. If the currency is not specified this defaults to 1.0.
|
| + /// Example: USD * currency_conversion_rate = JPY
|
| core.double currencyConversionRate;
|
| - /** The timestamp from which this pricing was effective. */
|
| +
|
| + /// The timestamp from which this pricing was effective.
|
| core.String effectiveTime;
|
| - /** Expresses the pricing formula. See `PricingExpression` for an example. */
|
| +
|
| + /// Expresses the pricing formula. See `PricingExpression` for an example.
|
| PricingExpression pricingExpression;
|
| - /**
|
| - * An optional human readable summary of the pricing information, has a
|
| - * maximum length of 256 characters.
|
| - */
|
| +
|
| + /// An optional human readable summary of the pricing information, has a
|
| + /// maximum length of 256 characters.
|
| core.String summary;
|
|
|
| PricingInfo();
|
| @@ -986,7 +967,8 @@ class PricingInfo {
|
| effectiveTime = _json["effectiveTime"];
|
| }
|
| if (_json.containsKey("pricingExpression")) {
|
| - pricingExpression = new PricingExpression.fromJson(_json["pricingExpression"]);
|
| + pricingExpression =
|
| + new PricingExpression.fromJson(_json["pricingExpression"]);
|
| }
|
| if (_json.containsKey("summary")) {
|
| summary = _json["summary"];
|
| @@ -994,7 +976,8 @@ class PricingInfo {
|
| }
|
|
|
| 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 (aggregationInfo != null) {
|
| _json["aggregationInfo"] = (aggregationInfo).toJson();
|
| }
|
| @@ -1014,36 +997,32 @@ class PricingInfo {
|
| }
|
| }
|
|
|
| -/**
|
| - * Encapsulation of billing information for a Cloud Console project. A project
|
| - * has at most one associated billing account at a time (but a billing account
|
| - * can be assigned to multiple projects).
|
| - */
|
| +/// Encapsulation of billing information for a Cloud Console project. A project
|
| +/// has at most one associated billing account at a time (but a billing account
|
| +/// can be assigned to multiple projects).
|
| class ProjectBillingInfo {
|
| - /**
|
| - * The resource name of the billing account associated with the project, if
|
| - * any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
| - */
|
| + /// The resource name of the billing account associated with the project, if
|
| + /// any. For example, `billingAccounts/012345-567890-ABCDEF`.
|
| core.String billingAccountName;
|
| - /**
|
| - * True if the project is associated with an open billing account, to which
|
| - * usage on the project is charged. False if the project is associated with a
|
| - * closed billing account, or no billing account at all, and therefore cannot
|
| - * use paid services. This field is read-only.
|
| - */
|
| +
|
| + /// True if the project is associated with an open billing account, to which
|
| + /// usage on the project is charged. False if the project is associated with
|
| + /// a
|
| + /// closed billing account, or no billing account at all, and therefore
|
| + /// cannot
|
| + /// use paid services. This field is read-only.
|
| core.bool billingEnabled;
|
| - /**
|
| - * The resource name for the `ProjectBillingInfo`; has the form
|
| - * `projects/{project_id}/billingInfo`. For example, the resource name for the
|
| - * billing information for project `tokyo-rain-123` would be
|
| - * `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
| - */
|
| +
|
| + /// The resource name for the `ProjectBillingInfo`; has the form
|
| + /// `projects/{project_id}/billingInfo`. For example, the resource name for
|
| + /// the
|
| + /// billing information for project `tokyo-rain-123` would be
|
| + /// `projects/tokyo-rain-123/billingInfo`. This field is read-only.
|
| core.String name;
|
| - /**
|
| - * The ID of the project that this `ProjectBillingInfo` represents, such as
|
| - * `tokyo-rain-123`. This is a convenience field so that you don't need to
|
| - * parse the `name` field to obtain a project ID. This field is read-only.
|
| - */
|
| +
|
| + /// The ID of the project that this `ProjectBillingInfo` represents, such as
|
| + /// `tokyo-rain-123`. This is a convenience field so that you don't need to
|
| + /// parse the `name` field to obtain a project ID. This field is read-only.
|
| core.String projectId;
|
|
|
| ProjectBillingInfo();
|
| @@ -1064,7 +1043,8 @@ class ProjectBillingInfo {
|
| }
|
|
|
| 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 (billingAccountName != null) {
|
| _json["billingAccountName"] = billingAccountName;
|
| }
|
| @@ -1081,19 +1061,17 @@ class ProjectBillingInfo {
|
| }
|
| }
|
|
|
| -/** Encapsulates a single service in Google Cloud Platform. */
|
| +/// Encapsulates a single service in Google Cloud Platform.
|
| class Service {
|
| - /** A human readable display name for this service. */
|
| + /// A human readable display name for this service.
|
| core.String displayName;
|
| - /**
|
| - * The resource name for the service.
|
| - * Example: "services/DA34-426B-A397"
|
| - */
|
| +
|
| + /// The resource name for the service.
|
| + /// Example: "services/DA34-426B-A397"
|
| core.String name;
|
| - /**
|
| - * The identifier for the service.
|
| - * Example: "DA34-426B-A397"
|
| - */
|
| +
|
| + /// The identifier for the service.
|
| + /// Example: "DA34-426B-A397"
|
| core.String serviceId;
|
|
|
| Service();
|
| @@ -1111,7 +1089,8 @@ class Service {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -1125,37 +1104,33 @@ class Service {
|
| }
|
| }
|
|
|
| -/** Encapsulates a single SKU in Google Cloud Platform */
|
| +/// Encapsulates a single SKU in Google Cloud Platform
|
| class Sku {
|
| - /** The category hierarchy of this SKU, purely for organizational purpose. */
|
| + /// The category hierarchy of this SKU, purely for organizational purpose.
|
| Category category;
|
| - /**
|
| - * A human readable description of the SKU, has a maximum length of 256
|
| - * characters.
|
| - */
|
| +
|
| + /// A human readable description of the SKU, has a maximum length of 256
|
| + /// characters.
|
| core.String description;
|
| - /**
|
| - * The resource name for the SKU.
|
| - * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
| - */
|
| +
|
| + /// The resource name for the SKU.
|
| + /// Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
|
| core.String name;
|
| - /** A timeline of pricing info for this SKU in chronological order. */
|
| +
|
| + /// A timeline of pricing info for this SKU in chronological order.
|
| core.List<PricingInfo> pricingInfo;
|
| - /**
|
| - * Identifies the service provider.
|
| - * This is 'Google' for first party services in Google Cloud Platform.
|
| - */
|
| +
|
| + /// Identifies the service provider.
|
| + /// This is 'Google' for first party services in Google Cloud Platform.
|
| core.String serviceProviderName;
|
| - /**
|
| - * List of service regions this SKU is offered at.
|
| - * Example: "asia-east1"
|
| - * Service regions can be found at https://cloud.google.com/about/locations/
|
| - */
|
| +
|
| + /// List of service regions this SKU is offered at.
|
| + /// Example: "asia-east1"
|
| + /// Service regions can be found at https://cloud.google.com/about/locations/
|
| core.List<core.String> serviceRegions;
|
| - /**
|
| - * The identifier for the SKU.
|
| - * Example: "AA95-CD31-42FE"
|
| - */
|
| +
|
| + /// The identifier for the SKU.
|
| + /// Example: "AA95-CD31-42FE"
|
| core.String skuId;
|
|
|
| Sku();
|
| @@ -1171,7 +1146,9 @@ class Sku {
|
| name = _json["name"];
|
| }
|
| if (_json.containsKey("pricingInfo")) {
|
| - pricingInfo = _json["pricingInfo"].map((value) => new PricingInfo.fromJson(value)).toList();
|
| + pricingInfo = _json["pricingInfo"]
|
| + .map((value) => new PricingInfo.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("serviceProviderName")) {
|
| serviceProviderName = _json["serviceProviderName"];
|
| @@ -1185,7 +1162,8 @@ class Sku {
|
| }
|
|
|
| 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 (category != null) {
|
| _json["category"] = (category).toJson();
|
| }
|
| @@ -1196,7 +1174,8 @@ class Sku {
|
| _json["name"] = name;
|
| }
|
| if (pricingInfo != null) {
|
| - _json["pricingInfo"] = pricingInfo.map((value) => (value).toJson()).toList();
|
| + _json["pricingInfo"] =
|
| + pricingInfo.map((value) => (value).toJson()).toList();
|
| }
|
| if (serviceProviderName != null) {
|
| _json["serviceProviderName"] = serviceProviderName;
|
| @@ -1211,18 +1190,15 @@ class Sku {
|
| }
|
| }
|
|
|
| -/** The price rate indicating starting usage and its corresponding price. */
|
| +/// The price rate indicating starting usage and its corresponding price.
|
| class TierRate {
|
| - /**
|
| - * Usage is priced at this rate only after this amount.
|
| - * Example: start_usage_amount of 10 indicates that the usage will be priced
|
| - * at the unit_price after the first 10 usage_units.
|
| - */
|
| + /// Usage is priced at this rate only after this amount.
|
| + /// Example: start_usage_amount of 10 indicates that the usage will be priced
|
| + /// at the unit_price after the first 10 usage_units.
|
| core.double startUsageAmount;
|
| - /**
|
| - * The price per unit of usage.
|
| - * Example: unit_price of amount $10 indicates that each unit will cost $10.
|
| - */
|
| +
|
| + /// The price per unit of usage.
|
| + /// Example: unit_price of amount $10 indicates that each unit will cost $10.
|
| Money unitPrice;
|
|
|
| TierRate();
|
| @@ -1237,7 +1213,8 @@ class TierRate {
|
| }
|
|
|
| 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 (startUsageAmount != null) {
|
| _json["startUsageAmount"] = startUsageAmount;
|
| }
|
|
|