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

Unified Diff: generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
diff --git a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
index b09075f6fc3e42947c1eb830f2a180678277178f..6cb05933ddaa745b5f2c6c5693202ba1fbde33c3 100644
--- a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
+++ b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
@@ -9,88 +9,89 @@ 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 runtimeconfig/v1beta1';
-/**
- * The Runtime Configurator allows you to dynamically configure and expose
- * variables through Google Cloud Platform. In addition, you can also set
- * Watchers and Waiters that will watch for changes to your data and return
- * based on certain conditions.
- */
+/// The Runtime Configurator allows you to dynamically configure and expose
+/// variables through Google Cloud Platform. In addition, you can also set
+/// Watchers and Waiters that will watch for changes to your data and return
+/// based on certain conditions.
class RuntimeconfigApi {
- /** View and manage your data across Google Cloud Platform services */
- static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
-
- /** Manage your Google Cloud Platform services' runtime configuration */
- static const CloudruntimeconfigScope = "https://www.googleapis.com/auth/cloudruntimeconfig";
+ /// View and manage your data across Google Cloud Platform services
+ static const CloudPlatformScope =
+ "https://www.googleapis.com/auth/cloud-platform";
+ /// Manage your Google Cloud Platform services' runtime configuration
+ static const CloudruntimeconfigScope =
+ "https://www.googleapis.com/auth/cloudruntimeconfig";
final commons.ApiRequester _requester;
ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
- RuntimeconfigApi(http.Client client, {core.String rootUrl: "https://runtimeconfig.googleapis.com/", core.String servicePath: ""}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ RuntimeconfigApi(http.Client client,
+ {core.String rootUrl: "https://runtimeconfig.googleapis.com/",
+ core.String servicePath: ""})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class ProjectsResourceApi {
final commons.ApiRequester _requester;
- ProjectsConfigsResourceApi get configs => new ProjectsConfigsResourceApi(_requester);
+ ProjectsConfigsResourceApi get configs =>
+ new ProjectsConfigsResourceApi(_requester);
- ProjectsResourceApi(commons.ApiRequester client) :
- _requester = client;
+ ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
}
-
class ProjectsConfigsResourceApi {
final commons.ApiRequester _requester;
- ProjectsConfigsOperationsResourceApi get operations => new ProjectsConfigsOperationsResourceApi(_requester);
- ProjectsConfigsVariablesResourceApi get variables => new ProjectsConfigsVariablesResourceApi(_requester);
- ProjectsConfigsWaitersResourceApi get waiters => new ProjectsConfigsWaitersResourceApi(_requester);
-
- ProjectsConfigsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a new RuntimeConfig resource. The configuration name must be
- * unique within project.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [parent] - The [project
- * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
- * for this request, in the format `projects/[PROJECT_ID]`.
- * Value must have pattern "^projects/[^/]+$".
- *
- * [requestId] - An optional but recommended unique `request_id`. If the
- * server
- * receives two `create()` requests with the same
- * `request_id`, then the second request will be ignored and the
- * first resource created and stored in the backend is returned.
- * Empty `request_id` fields are ignored.
- *
- * It is responsibility of the client to ensure uniqueness of the
- * `request_id` strings.
- *
- * `request_id` strings are limited to 64 characters.
- *
- * Completes with a [RuntimeConfig].
- *
- * 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<RuntimeConfig> create(RuntimeConfig request, core.String parent, {core.String requestId}) {
+ ProjectsConfigsOperationsResourceApi get operations =>
+ new ProjectsConfigsOperationsResourceApi(_requester);
+ ProjectsConfigsVariablesResourceApi get variables =>
+ new ProjectsConfigsVariablesResourceApi(_requester);
+ ProjectsConfigsWaitersResourceApi get waiters =>
+ new ProjectsConfigsWaitersResourceApi(_requester);
+
+ ProjectsConfigsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Creates a new RuntimeConfig resource. The configuration name must be
+ /// unique within project.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The [project
+ /// ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
+ /// for this request, in the format `projects/[PROJECT_ID]`.
+ /// Value must have pattern "^projects/[^/]+$".
+ ///
+ /// [requestId] - An optional but recommended unique `request_id`. If the
+ /// server
+ /// receives two `create()` requests with the same
+ /// `request_id`, then the second request will be ignored and the
+ /// first resource created and stored in the backend is returned.
+ /// Empty `request_id` fields are ignored.
+ ///
+ /// It is responsibility of the client to ensure uniqueness of the
+ /// `request_id` strings.
+ ///
+ /// `request_id` strings are limited to 64 characters.
+ ///
+ /// Completes with a [RuntimeConfig].
+ ///
+ /// 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<RuntimeConfig> create(RuntimeConfig request, core.String parent,
+ {core.String requestId}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -108,36 +109,35 @@ class ProjectsConfigsResourceApi {
_queryParams["requestId"] = [requestId];
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/configs';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/configs';
- 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 RuntimeConfig.fromJson(data));
}
- /**
- * Deletes a RuntimeConfig resource.
- *
- * Request parameters:
- *
- * [name] - The RuntimeConfig resource to delete, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * 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 RuntimeConfig resource.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The RuntimeConfig resource to delete, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// 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();
@@ -152,34 +152,32 @@ class ProjectsConfigsResourceApi {
_url = 'v1beta1/' + 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 information about a RuntimeConfig resource.
- *
- * Request parameters:
- *
- * [name] - The name of the RuntimeConfig resource to retrieve, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * Completes with a [RuntimeConfig].
- *
- * 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 information about a RuntimeConfig resource.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the RuntimeConfig resource to retrieve, in the
+ /// format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// Completes with a [RuntimeConfig].
+ ///
+ /// 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<RuntimeConfig> get(core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -194,36 +192,33 @@ class ProjectsConfigsResourceApi {
_url = 'v1beta1/' + 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 RuntimeConfig.fromJson(data));
}
- /**
- * Gets the access control policy for a resource.
- * Returns an empty policy if the resource exists and does not have a policy
- * set.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy is being
- * requested.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * Completes with a [Policy].
- *
- * 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 the access control policy for a resource.
+ /// Returns an empty policy if the resource exists and does not have a policy
+ /// set.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy is being
+ /// requested.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// Completes with a [Policy].
+ ///
+ /// 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<Policy> getIamPolicy(core.String resource) {
var _url = null;
var _queryParams = new core.Map();
@@ -236,45 +231,45 @@ class ProjectsConfigsResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':getIamPolicy';
- 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 Policy.fromJson(data));
}
- /**
- * Lists all the RuntimeConfig resources within project.
- *
- * Request parameters:
- *
- * [parent] - The [project
- * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
- * for this request, in the format `projects/[PROJECT_ID]`.
- * Value must have pattern "^projects/[^/]+$".
- *
- * [pageSize] - Specifies the number of results to return per page. If there
- * are fewer
- * elements than the specified number, returns all elements.
- *
- * [pageToken] - Specifies a page token to use. Set `pageToken` to a
- * `nextPageToken`
- * returned by a previous list request to get the next page of results.
- *
- * Completes with a [ListConfigsResponse].
- *
- * 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<ListConfigsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
+ /// Lists all the RuntimeConfig resources within project.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The [project
+ /// ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848)
+ /// for this request, in the format `projects/[PROJECT_ID]`.
+ /// Value must have pattern "^projects/[^/]+$".
+ ///
+ /// [pageSize] - Specifies the number of results to return per page. If there
+ /// are fewer
+ /// elements than the specified number, returns all elements.
+ ///
+ /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
+ /// `nextPageToken`
+ /// returned by a previous list request to get the next page of results.
+ ///
+ /// Completes with a [ListConfigsResponse].
+ ///
+ /// 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<ListConfigsResponse> list(core.String parent,
+ {core.int pageSize, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -292,40 +287,40 @@ class ProjectsConfigsResourceApi {
_queryParams["pageToken"] = [pageToken];
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/configs';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/configs';
- 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 ListConfigsResponse.fromJson(data));
}
- /**
- * Sets the access control policy on the specified resource. Replaces any
- * existing policy.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy is being
- * specified.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * Completes with a [Policy].
- *
- * 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<Policy> setIamPolicy(SetIamPolicyRequest request, core.String resource) {
+ /// Sets the access control policy on the specified resource. Replaces any
+ /// existing policy.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy is being
+ /// specified.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// Completes with a [Policy].
+ ///
+ /// 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<Policy> setIamPolicy(
+ SetIamPolicyRequest request, core.String resource) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -340,45 +335,46 @@ class ProjectsConfigsResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':setIamPolicy';
- 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 Policy.fromJson(data));
}
- /**
- * Returns permissions that a caller has on the specified resource.
- * If the resource does not exist, this will return an empty set of
- * permissions, not a NOT_FOUND error.
- *
- * Note: This operation is designed to be used for building permission-aware
- * UIs and command-line tools, not for authorization checking. This operation
- * may "fail open" without warning.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy detail is being
- * requested.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * Completes with a [TestIamPermissionsResponse].
- *
- * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) {
+ /// Returns permissions that a caller has on the specified resource.
+ /// If the resource does not exist, this will return an empty set of
+ /// permissions, not a NOT_FOUND error.
+ ///
+ /// Note: This operation is designed to be used for building permission-aware
+ /// UIs and command-line tools, not for authorization checking. This
+ /// operation
+ /// may "fail open" without warning.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy detail is being
+ /// requested.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// Completes with a [TestIamPermissionsResponse].
+ ///
+ /// 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<TestIamPermissionsResponse> testIamPermissions(
+ TestIamPermissionsRequest request, core.String resource) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -393,38 +389,39 @@ class ProjectsConfigsResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':testIamPermissions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new TestIamPermissionsResponse.fromJson(data));
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new TestIamPermissionsResponse.fromJson(data));
}
- /**
- * Updates a RuntimeConfig resource. The configuration must exist beforehand.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [name] - The name of the RuntimeConfig resource to update, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * Completes with a [RuntimeConfig].
- *
- * 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.
- */
+ /// Updates a RuntimeConfig resource. The configuration must exist
+ /// beforehand.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the RuntimeConfig resource to update, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// Completes with a [RuntimeConfig].
+ ///
+ /// 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<RuntimeConfig> update(RuntimeConfig request, core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -442,43 +439,39 @@ class ProjectsConfigsResourceApi {
_url = 'v1beta1/' + 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 RuntimeConfig.fromJson(data));
}
-
}
-
class ProjectsConfigsOperationsResourceApi {
final commons.ApiRequester _requester;
- ProjectsConfigsOperationsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Gets the latest state of a long-running operation. Clients can use this
- * method to poll the operation result at intervals as recommended by the API
- * service.
- *
- * Request parameters:
- *
- * [name] - The name of the operation resource.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
- *
- * Completes with a [Operation].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ProjectsConfigsOperationsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Gets the latest state of a long-running operation. Clients can use this
+ /// method to poll the operation result at intervals as recommended by the
+ /// API
+ /// service.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the operation resource.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
+ ///
+ /// Completes with a [Operation].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Operation> get(core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -493,43 +486,42 @@ class ProjectsConfigsOperationsResourceApi {
_url = 'v1beta1/' + 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 Operation.fromJson(data));
}
- /**
- * Returns permissions that a caller has on the specified resource.
- * If the resource does not exist, this will return an empty set of
- * permissions, not a NOT_FOUND error.
- *
- * Note: This operation is designed to be used for building permission-aware
- * UIs and command-line tools, not for authorization checking. This operation
- * may "fail open" without warning.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy detail is being
- * requested.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
- *
- * Completes with a [TestIamPermissionsResponse].
- *
- * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) {
+ /// Returns permissions that a caller has on the specified resource.
+ /// If the resource does not exist, this will return an empty set of
+ /// permissions, not a NOT_FOUND error.
+ ///
+ /// Note: This operation is designed to be used for building permission-aware
+ /// UIs and command-line tools, not for authorization checking. This
+ /// operation
+ /// may "fail open" without warning.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy detail is being
+ /// requested.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$".
+ ///
+ /// Completes with a [TestIamPermissionsResponse].
+ ///
+ /// 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<TestIamPermissionsResponse> testIamPermissions(
+ TestIamPermissionsRequest request, core.String resource) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -544,69 +536,69 @@ class ProjectsConfigsOperationsResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':testIamPermissions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new TestIamPermissionsResponse.fromJson(data));
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new TestIamPermissionsResponse.fromJson(data));
}
-
}
-
class ProjectsConfigsVariablesResourceApi {
final commons.ApiRequester _requester;
- ProjectsConfigsVariablesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a variable within the given configuration. You cannot create
- * a variable with a name that is a prefix of an existing variable name, or a
- * name that has an existing variable name as a prefix.
- *
- * To learn more about creating a variable, read the
- * [Setting and Getting
- * Data](/deployment-manager/runtime-configurator/set-and-get-variables)
- * documentation.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [parent] - The path to the RutimeConfig resource that this variable should
- * belong to.
- * The configuration must exist beforehand; the path must by in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * [requestId] - An optional but recommended unique `request_id`. If the
- * server
- * receives two `create()` requests with the same
- * `request_id`, then the second request will be ignored and the
- * first resource created and stored in the backend is returned.
- * Empty `request_id` fields are ignored.
- *
- * It is responsibility of the client to ensure uniqueness of the
- * `request_id` strings.
- *
- * `request_id` strings are limited to 64 characters.
- *
- * Completes with a [Variable].
- *
- * 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<Variable> create(Variable request, core.String parent, {core.String requestId}) {
+ ProjectsConfigsVariablesResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a variable within the given configuration. You cannot create
+ /// a variable with a name that is a prefix of an existing variable name, or
+ /// a
+ /// name that has an existing variable name as a prefix.
+ ///
+ /// To learn more about creating a variable, read the
+ /// [Setting and Getting
+ /// Data](/deployment-manager/runtime-configurator/set-and-get-variables)
+ /// documentation.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The path to the RutimeConfig resource that this variable
+ /// should belong to.
+ /// The configuration must exist beforehand; the path must be in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// [requestId] - An optional but recommended unique `request_id`. If the
+ /// server
+ /// receives two `create()` requests with the same
+ /// `request_id`, then the second request will be ignored and the
+ /// first resource created and stored in the backend is returned.
+ /// Empty `request_id` fields are ignored.
+ ///
+ /// It is responsibility of the client to ensure uniqueness of the
+ /// `request_id` strings.
+ ///
+ /// `request_id` strings are limited to 64 characters.
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// 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<Variable> create(Variable request, core.String parent,
+ {core.String requestId}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -624,45 +616,44 @@ class ProjectsConfigsVariablesResourceApi {
_queryParams["requestId"] = [requestId];
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/variables';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/variables';
- 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 Variable.fromJson(data));
}
- /**
- * Deletes a variable or multiple variables.
- *
- * If you specify a variable name, then that variable is deleted. If you
- * specify a prefix and `recursive` is true, then all variables with that
- * prefix are deleted. You must set a `recursive` to true if you delete
- * variables by prefix.
- *
- * Request parameters:
- *
- * [name] - The name of the variable to delete, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
- *
- * [recursive] - Set to `true` to recursively delete multiple variables with
- * the same
- * prefix.
- *
- * 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 variable or multiple variables.
+ ///
+ /// If you specify a variable name, then that variable is deleted. If you
+ /// specify a prefix and `recursive` is true, then all variables with that
+ /// prefix are deleted. You must set a `recursive` to true if you delete
+ /// variables by prefix.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the variable to delete, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
+ ///
+ /// [recursive] - Set to `true` to recursively delete multiple variables with
+ /// the same
+ /// prefix.
+ ///
+ /// 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, {core.bool recursive}) {
var _url = null;
var _queryParams = new core.Map();
@@ -680,34 +671,31 @@ class ProjectsConfigsVariablesResourceApi {
_url = 'v1beta1/' + 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 information about a single variable.
- *
- * Request parameters:
- *
- * [name] - The name of the variable to return, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
- *
- * Completes with a [Variable].
- *
- * 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 information about a single variable.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the variable to return, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// 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<Variable> get(core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -722,59 +710,62 @@ class ProjectsConfigsVariablesResourceApi {
_url = 'v1beta1/' + 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 Variable.fromJson(data));
}
- /**
- * Lists variables within given a configuration, matching any provided
- * filters.
- * This only lists variable names, not the values, unless `return_values` is
- * true, in which case only variables that user has IAM permission to
- * GetVariable
- * will be returned.
- *
- * Request parameters:
- *
- * [parent] - The path to the RuntimeConfig resource for which you want to
- * list variables.
- * The configuration must exist beforehand; the path must by in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * [pageSize] - Specifies the number of results to return per page. If there
- * are fewer
- * elements than the specified number, returns all elements.
- *
- * [filter] - Filters variables by matching the specified filter. For example:
- *
- * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`.
- *
- * [returnValues] - The flag indicates whether the user wants to return values
- * of variables.
- * If true, then only those variables that user has IAM GetVariable permission
- * will be returned along with their values.
- *
- * [pageToken] - Specifies a page token to use. Set `pageToken` to a
- * `nextPageToken`
- * returned by a previous list request to get the next page of results.
- *
- * Completes with a [ListVariablesResponse].
- *
- * 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<ListVariablesResponse> list(core.String parent, {core.int pageSize, core.String filter, core.bool returnValues, core.String pageToken}) {
+ /// Lists variables within given a configuration, matching any provided
+ /// filters.
+ /// This only lists variable names, not the values, unless `return_values` is
+ /// true, in which case only variables that user has IAM permission to
+ /// GetVariable
+ /// will be returned.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The path to the RuntimeConfig resource for which you want to
+ /// list variables.
+ /// The configuration must exist beforehand; the path must be in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// [returnValues] - The flag indicates whether the user wants to return
+ /// values of variables.
+ /// If true, then only those variables that user has IAM GetVariable
+ /// permission
+ /// will be returned along with their values.
+ ///
+ /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
+ /// `nextPageToken`
+ /// returned by a previous list request to get the next page of results.
+ ///
+ /// [pageSize] - Specifies the number of results to return per page. If there
+ /// are fewer
+ /// elements than the specified number, returns all elements.
+ ///
+ /// [filter] - Filters variables by matching the specified filter. For
+ /// example:
+ ///
+ /// `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`.
+ ///
+ /// Completes with a [ListVariablesResponse].
+ ///
+ /// 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<ListVariablesResponse> list(core.String parent,
+ {core.bool returnValues,
+ core.String pageToken,
+ core.int pageSize,
+ core.String filter}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -785,58 +776,59 @@ class ProjectsConfigsVariablesResourceApi {
if (parent == null) {
throw new core.ArgumentError("Parameter parent is required.");
}
- if (pageSize != null) {
- _queryParams["pageSize"] = ["${pageSize}"];
- }
- if (filter != null) {
- _queryParams["filter"] = [filter];
- }
if (returnValues != null) {
_queryParams["returnValues"] = ["${returnValues}"];
}
if (pageToken != null) {
_queryParams["pageToken"] = [pageToken];
}
+ if (pageSize != null) {
+ _queryParams["pageSize"] = ["${pageSize}"];
+ }
+ if (filter != null) {
+ _queryParams["filter"] = [filter];
+ }
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/variables';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/variables';
- 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 ListVariablesResponse.fromJson(data));
}
- /**
- * Returns permissions that a caller has on the specified resource.
- * If the resource does not exist, this will return an empty set of
- * permissions, not a NOT_FOUND error.
- *
- * Note: This operation is designed to be used for building permission-aware
- * UIs and command-line tools, not for authorization checking. This operation
- * may "fail open" without warning.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy detail is being
- * requested.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
- *
- * Completes with a [TestIamPermissionsResponse].
- *
- * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) {
+ /// Returns permissions that a caller has on the specified resource.
+ /// If the resource does not exist, this will return an empty set of
+ /// permissions, not a NOT_FOUND error.
+ ///
+ /// Note: This operation is designed to be used for building permission-aware
+ /// UIs and command-line tools, not for authorization checking. This
+ /// operation
+ /// may "fail open" without warning.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy detail is being
+ /// requested.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
+ ///
+ /// Completes with a [TestIamPermissionsResponse].
+ ///
+ /// 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<TestIamPermissionsResponse> testIamPermissions(
+ TestIamPermissionsRequest request, core.String resource) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -851,38 +843,38 @@ class ProjectsConfigsVariablesResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':testIamPermissions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new TestIamPermissionsResponse.fromJson(data));
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new TestIamPermissionsResponse.fromJson(data));
}
- /**
- * Updates an existing variable with a new value.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [name] - The name of the variable to update, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
- *
- * Completes with a [Variable].
- *
- * 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.
- */
+ /// Updates an existing variable with a new value.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the variable to update, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// 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<Variable> update(Variable request, core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -900,51 +892,50 @@ class ProjectsConfigsVariablesResourceApi {
_url = 'v1beta1/' + 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 Variable.fromJson(data));
}
- /**
- * Watches a specific variable and waits for a change in the variable's value.
- * When there is a change, this method returns the new value or times out.
- *
- * If a variable is deleted while being watched, the `variableState` state is
- * set to `DELETED` and the method returns the last known variable `value`.
- *
- * If you set the deadline for watching to a larger value than internal
- * timeout
- * (60 seconds), the current variable value is returned and the
- * `variableState`
- * will be `VARIABLE_STATE_UNSPECIFIED`.
- *
- * To learn more about creating a watcher, read the
- * [Watching a Variable for
- * Changes](/deployment-manager/runtime-configurator/watching-a-variable)
- * documentation.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [name] - The name of the variable to watch, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
- *
- * Completes with a [Variable].
- *
- * 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.
- */
+ /// Watches a specific variable and waits for a change in the variable's
+ /// value.
+ /// When there is a change, this method returns the new value or times out.
+ ///
+ /// If a variable is deleted while being watched, the `variableState` state
+ /// is
+ /// set to `DELETED` and the method returns the last known variable `value`.
+ ///
+ /// If you set the deadline for watching to a larger value than internal
+ /// timeout
+ /// (60 seconds), the current variable value is returned and the
+ /// `variableState`
+ /// will be `VARIABLE_STATE_UNSPECIFIED`.
+ ///
+ /// To learn more about creating a watcher, read the
+ /// [Watching a Variable for
+ /// Changes](/deployment-manager/runtime-configurator/watching-a-variable)
+ /// documentation.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The name of the variable to watch, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$".
+ ///
+ /// Completes with a [Variable].
+ ///
+ /// 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<Variable> watch(WatchVariableRequest request, core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -960,65 +951,63 @@ class ProjectsConfigsVariablesResourceApi {
throw new core.ArgumentError("Parameter name is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':watch';
+ _url =
+ 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':watch';
- 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 Variable.fromJson(data));
}
-
}
-
class ProjectsConfigsWaitersResourceApi {
final commons.ApiRequester _requester;
- ProjectsConfigsWaitersResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Creates a Waiter resource. This operation returns a long-running Operation
- * resource which can be polled for completion. However, a waiter with the
- * given name will exist (and can be retrieved) prior to the operation
- * completing. If the operation fails, the failed Waiter resource will
- * still exist and must be deleted prior to subsequent creation attempts.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [parent] - The path to the configuration that will own the waiter.
- * The configuration must exist beforehand; the path must by in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * [requestId] - An optional but recommended unique `request_id`. If the
- * server
- * receives two `create()` requests with the same
- * `request_id`, then the second request will be ignored and the
- * first resource created and stored in the backend is returned.
- * Empty `request_id` fields are ignored.
- *
- * It is responsibility of the client to ensure uniqueness of the
- * `request_id` strings.
- *
- * `request_id` strings are limited to 64 characters.
- *
- * Completes with a [Operation].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Operation> create(Waiter request, core.String parent, {core.String requestId}) {
+ ProjectsConfigsWaitersResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Creates a Waiter resource. This operation returns a long-running
+ /// Operation
+ /// resource which can be polled for completion. However, a waiter with the
+ /// given name will exist (and can be retrieved) prior to the operation
+ /// completing. If the operation fails, the failed Waiter resource will
+ /// still exist and must be deleted prior to subsequent creation attempts.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The path to the configuration that will own the waiter.
+ /// The configuration must exist beforehand; the path must be in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// [requestId] - An optional but recommended unique `request_id`. If the
+ /// server
+ /// receives two `create()` requests with the same
+ /// `request_id`, then the second request will be ignored and the
+ /// first resource created and stored in the backend is returned.
+ /// Empty `request_id` fields are ignored.
+ ///
+ /// It is responsibility of the client to ensure uniqueness of the
+ /// `request_id` strings.
+ ///
+ /// `request_id` strings are limited to 64 characters.
+ ///
+ /// Completes with a [Operation].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Operation> create(Waiter request, core.String parent,
+ {core.String requestId}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1036,36 +1025,35 @@ class ProjectsConfigsWaitersResourceApi {
_queryParams["requestId"] = [requestId];
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/waiters';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/waiters';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Operation.fromJson(data));
}
- /**
- * Deletes the waiter with the specified name.
- *
- * Request parameters:
- *
- * [name] - The Waiter resource to delete, in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
- *
- * 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 the waiter with the specified name.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The Waiter resource to delete, in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
+ ///
+ /// 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();
@@ -1080,36 +1068,33 @@ class ProjectsConfigsWaitersResourceApi {
_url = 'v1beta1/' + 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 information about a single waiter.
- *
- * Request parameters:
- *
- * [name] - The fully-qualified name of the Waiter resource object to
- * retrieve, in the
- * format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
- *
- * Completes with a [Waiter].
- *
- * 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 information about a single waiter.
+ ///
+ /// Request parameters:
+ ///
+ /// [name] - The fully-qualified name of the Waiter resource object to
+ /// retrieve, in the
+ /// format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
+ ///
+ /// Completes with a [Waiter].
+ ///
+ /// 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<Waiter> get(core.String name) {
var _url = null;
var _queryParams = new core.Map();
@@ -1124,45 +1109,43 @@ class ProjectsConfigsWaitersResourceApi {
_url = 'v1beta1/' + 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 Waiter.fromJson(data));
}
- /**
- * List waiters within the given configuration.
- *
- * Request parameters:
- *
- * [parent] - The path to the configuration for which you want to get a list
- * of waiters.
- * The configuration must exist beforehand; the path must by in the format:
- *
- * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
- * Value must have pattern "^projects/[^/]+/configs/[^/]+$".
- *
- * [pageToken] - Specifies a page token to use. Set `pageToken` to a
- * `nextPageToken`
- * returned by a previous list request to get the next page of results.
- *
- * [pageSize] - Specifies the number of results to return per page. If there
- * are fewer
- * elements than the specified number, returns all elements.
- *
- * Completes with a [ListWaitersResponse].
- *
- * 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<ListWaitersResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
+ /// List waiters within the given configuration.
+ ///
+ /// Request parameters:
+ ///
+ /// [parent] - The path to the configuration for which you want to get a list
+ /// of waiters.
+ /// The configuration must exist beforehand; the path must be in the format:
+ ///
+ /// `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+$".
+ ///
+ /// [pageToken] - Specifies a page token to use. Set `pageToken` to a
+ /// `nextPageToken`
+ /// returned by a previous list request to get the next page of results.
+ ///
+ /// [pageSize] - Specifies the number of results to return per page. If there
+ /// are fewer
+ /// elements than the specified number, returns all elements.
+ ///
+ /// Completes with a [ListWaitersResponse].
+ ///
+ /// 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<ListWaitersResponse> list(core.String parent,
+ {core.String pageToken, core.int pageSize}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1180,45 +1163,46 @@ class ProjectsConfigsWaitersResourceApi {
_queryParams["pageSize"] = ["${pageSize}"];
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/waiters';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$parent') +
+ '/waiters';
- 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 ListWaitersResponse.fromJson(data));
}
- /**
- * Returns permissions that a caller has on the specified resource.
- * If the resource does not exist, this will return an empty set of
- * permissions, not a NOT_FOUND error.
- *
- * Note: This operation is designed to be used for building permission-aware
- * UIs and command-line tools, not for authorization checking. This operation
- * may "fail open" without warning.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [resource] - REQUIRED: The resource for which the policy detail is being
- * requested.
- * See the operation documentation for the appropriate value for this field.
- * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
- *
- * Completes with a [TestIamPermissionsResponse].
- *
- * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) {
+ /// Returns permissions that a caller has on the specified resource.
+ /// If the resource does not exist, this will return an empty set of
+ /// permissions, not a NOT_FOUND error.
+ ///
+ /// Note: This operation is designed to be used for building permission-aware
+ /// UIs and command-line tools, not for authorization checking. This
+ /// operation
+ /// may "fail open" without warning.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [resource] - REQUIRED: The resource for which the policy detail is being
+ /// requested.
+ /// See the operation documentation for the appropriate value for this field.
+ /// Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$".
+ ///
+ /// Completes with a [TestIamPermissionsResponse].
+ ///
+ /// 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<TestIamPermissionsResponse> testIamPermissions(
+ TestIamPermissionsRequest request, core.String resource) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -1233,54 +1217,50 @@ class ProjectsConfigsWaitersResourceApi {
throw new core.ArgumentError("Parameter resource is required.");
}
- _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions';
+ _url = 'v1beta1/' +
+ commons.Escaper.ecapeVariableReserved('$resource') +
+ ':testIamPermissions';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new TestIamPermissionsResponse.fromJson(data));
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new TestIamPermissionsResponse.fromJson(data));
}
-
}
-
-
-/** Associates `members` with a `role`. */
+/// Associates `members` with a `role`.
class Binding {
- /**
- * Specifies the identities requesting access for a Cloud Platform resource.
- * `members` can have the following values:
- *
- * * `allUsers`: A special identifier that represents anyone who is
- * on the internet; with or without a Google account.
- *
- * * `allAuthenticatedUsers`: A special identifier that represents anyone
- * who is authenticated with a Google account or a service account.
- *
- * * `user:{emailid}`: An email address that represents a specific Google
- * account. For example, `alice@gmail.com` or `joe@example.com`.
- *
- *
- * * `serviceAccount:{emailid}`: An email address that represents a service
- * account. For example, `my-other-app@appspot.gserviceaccount.com`.
- *
- * * `group:{emailid}`: An email address that represents a Google group.
- * For example, `admins@example.com`.
- *
- *
- * * `domain:{domain}`: A Google Apps domain name that represents all the
- * users of that domain. For example, `google.com` or `example.com`.
- */
+ /// Specifies the identities requesting access for a Cloud Platform resource.
+ /// `members` can have the following values:
+ ///
+ /// * `allUsers`: A special identifier that represents anyone who is
+ /// on the internet; with or without a Google account.
+ ///
+ /// * `allAuthenticatedUsers`: A special identifier that represents anyone
+ /// who is authenticated with a Google account or a service account.
+ ///
+ /// * `user:{emailid}`: An email address that represents a specific Google
+ /// account. For example, `alice@gmail.com` or `joe@example.com`.
+ ///
+ ///
+ /// * `serviceAccount:{emailid}`: An email address that represents a service
+ /// account. For example, `my-other-app@appspot.gserviceaccount.com`.
+ ///
+ /// * `group:{emailid}`: An email address that represents a Google group.
+ /// For example, `admins@example.com`.
+ ///
+ ///
+ /// * `domain:{domain}`: A Google Apps domain name that represents all the
+ /// users of that domain. For example, `google.com` or `example.com`.
core.List<core.String> members;
- /**
- * Role that is assigned to `members`.
- * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
- * Required
- */
+
+ /// Role that is assigned to `members`.
+ /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+ /// Required
core.String role;
Binding();
@@ -1295,7 +1275,8 @@ class Binding {
}
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;
}
@@ -1306,29 +1287,26 @@ class Binding {
}
}
-/**
- * A Cardinality condition for the Waiter resource. A cardinality condition is
- * met when the number of variables under a specified path prefix reaches a
- * predefined number. For example, if you set a Cardinality condition where
- * the `path` is set to `/foo` and the number of paths is set to 2, the
- * following variables would meet the condition in a RuntimeConfig resource:
- *
- * + `/foo/variable1 = "value1"`
- * + `/foo/variable2 = "value2"`
- * + `/bar/variable3 = "value3"`
- *
- * It would not would not satisify the same condition with the `number` set to
- * 3, however, because there is only 2 paths that start with `/foo`.
- * Cardinality conditions are recursive; all subtrees under the specific
- * path prefix are counted.
- */
+/// A Cardinality condition for the Waiter resource. A cardinality condition is
+/// met when the number of variables under a specified path prefix reaches a
+/// predefined number. For example, if you set a Cardinality condition where
+/// the `path` is set to `/foo` and the number of paths is set to 2, the
+/// following variables would meet the condition in a RuntimeConfig resource:
+///
+/// + `/foo/variable1 = "value1"`
+/// + `/foo/variable2 = "value2"`
+/// + `/bar/variable3 = "value3"`
+///
+/// It would not would not satisify the same condition with the `number` set to
+/// 3, however, because there is only 2 paths that start with `/foo`.
+/// Cardinality conditions are recursive; all subtrees under the specific
+/// path prefix are counted.
class Cardinality {
- /**
- * The number variables under the `path` that must exist to meet this
- * condition. Defaults to 1 if not specified.
- */
+ /// The number variables under the `path` that must exist to meet this
+ /// condition. Defaults to 1 if not specified.
core.int number;
- /** The root of the variable subtree to monitor. For example, `/foo`. */
+
+ /// The root of the variable subtree to monitor. For example, `/foo`.
core.String path;
Cardinality();
@@ -1343,7 +1321,8 @@ class Cardinality {
}
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 (number != null) {
_json["number"] = number;
}
@@ -1354,33 +1333,30 @@ class Cardinality {
}
}
-/**
- * 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;
}
}
-/** The condition that a Waiter resource is waiting for. */
+/// The condition that a Waiter resource is waiting for.
class EndCondition {
- /** The cardinality of the `EndCondition`. */
+ /// The cardinality of the `EndCondition`.
Cardinality cardinality;
EndCondition();
@@ -1392,7 +1368,8 @@ class EndCondition {
}
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).toJson();
}
@@ -1400,30 +1377,28 @@ class EndCondition {
}
}
-/**
- * `ListConfigs()` returns the following response. The order of returned
- * objects is arbitrary; that is, it is not ordered in any particular way.
- */
+/// `ListConfigs()` returns the following response. The order of returned
+/// objects is arbitrary; that is, it is not ordered in any particular way.
class ListConfigsResponse {
- /**
- * A list of the configurations in the project. The order of returned
- * objects is arbitrary; that is, it is not ordered in any particular way.
- */
+ /// A list of the configurations in the project. The order of returned
+ /// objects is arbitrary; that is, it is not ordered in any particular way.
core.List<RuntimeConfig> configs;
- /**
- * This token allows you to get the next page of results for list requests.
- * If the number of results is larger than `pageSize`, use the `nextPageToken`
- * as a value for the query parameter `pageToken` in the next list request.
- * Subsequent list requests will have their own `nextPageToken` to continue
- * paging through the results
- */
+
+ /// This token allows you to get the next page of results for list requests.
+ /// If the number of results is larger than `pageSize`, use the
+ /// `nextPageToken`
+ /// as a value for the query parameter `pageToken` in the next list request.
+ /// Subsequent list requests will have their own `nextPageToken` to continue
+ /// paging through the results
core.String nextPageToken;
ListConfigsResponse();
ListConfigsResponse.fromJson(core.Map _json) {
if (_json.containsKey("configs")) {
- configs = _json["configs"].map((value) => new RuntimeConfig.fromJson(value)).toList();
+ configs = _json["configs"]
+ .map((value) => new RuntimeConfig.fromJson(value))
+ .toList();
}
if (_json.containsKey("nextPageToken")) {
nextPageToken = _json["nextPageToken"];
@@ -1431,7 +1406,8 @@ class ListConfigsResponse {
}
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 (configs != null) {
_json["configs"] = configs.map((value) => (value).toJson()).toList();
}
@@ -1442,20 +1418,18 @@ class ListConfigsResponse {
}
}
-/** Response for the `ListVariables()` method. */
+/// Response for the `ListVariables()` method.
class ListVariablesResponse {
- /**
- * This token allows you to get the next page of results for list requests.
- * If the number of results is larger than `pageSize`, use the `nextPageToken`
- * as a value for the query parameter `pageToken` in the next list request.
- * Subsequent list requests will have their own `nextPageToken` to continue
- * paging through the results
- */
+ /// This token allows you to get the next page of results for list requests.
+ /// If the number of results is larger than `pageSize`, use the
+ /// `nextPageToken`
+ /// as a value for the query parameter `pageToken` in the next list request.
+ /// Subsequent list requests will have their own `nextPageToken` to continue
+ /// paging through the results
core.String nextPageToken;
- /**
- * A list of variables and their values. The order of returned variable
- * objects is arbitrary.
- */
+
+ /// A list of variables and their values. The order of returned variable
+ /// objects is arbitrary.
core.List<Variable> variables;
ListVariablesResponse();
@@ -1465,12 +1439,15 @@ class ListVariablesResponse {
nextPageToken = _json["nextPageToken"];
}
if (_json.containsKey("variables")) {
- variables = _json["variables"].map((value) => new Variable.fromJson(value)).toList();
+ variables = _json["variables"]
+ .map((value) => new Variable.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;
}
@@ -1481,20 +1458,18 @@ class ListVariablesResponse {
}
}
-/**
- * Response for the `ListWaiters()` method.
- * Order of returned waiter objects is arbitrary.
- */
+/// Response for the `ListWaiters()` method.
+/// Order of returned waiter objects is arbitrary.
class ListWaitersResponse {
- /**
- * This token allows you to get the next page of results for list requests.
- * If the number of results is larger than `pageSize`, use the `nextPageToken`
- * as a value for the query parameter `pageToken` in the next list request.
- * Subsequent list requests will have their own `nextPageToken` to continue
- * paging through the results
- */
+ /// This token allows you to get the next page of results for list requests.
+ /// If the number of results is larger than `pageSize`, use the
+ /// `nextPageToken`
+ /// as a value for the query parameter `pageToken` in the next list request.
+ /// Subsequent list requests will have their own `nextPageToken` to continue
+ /// paging through the results
core.String nextPageToken;
- /** Found waiters in the project. */
+
+ /// Found waiters in the project.
core.List<Waiter> waiters;
ListWaitersResponse();
@@ -1504,12 +1479,14 @@ class ListWaitersResponse {
nextPageToken = _json["nextPageToken"];
}
if (_json.containsKey("waiters")) {
- waiters = _json["waiters"].map((value) => new Waiter.fromJson(value)).toList();
+ waiters =
+ _json["waiters"].map((value) => new Waiter.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;
}
@@ -1520,48 +1497,44 @@ class ListWaitersResponse {
}
}
-/**
- * This resource represents a long-running operation that is the result of a
- * network API call.
- */
+/// This resource represents a long-running operation that is the result of a
+/// network API call.
class Operation {
- /**
- * If the value is `false`, it means the operation is still in progress.
- * If true, the operation is completed, and either `error` or `response` is
- * available.
- */
+ /// If the value is `false`, it means the operation is still in progress.
+ /// If `true`, the operation is completed, and either `error` or `response`
+ /// is
+ /// available.
core.bool done;
- /** The error result of the operation in case of failure or cancellation. */
+
+ /// The error result of the operation in case of failure or cancellation.
Status error;
- /**
- * Service-specific metadata associated with the operation. It typically
- * contains progress information and common metadata such as create time.
- * Some services might not provide such metadata. Any method that returns a
- * long-running operation should document the metadata type, if any.
- *
- * The values for Object must be JSON objects. It can consist of `num`,
- * `String`, `bool` and `null` as well as `Map` and `List` values.
- */
+
+ /// Service-specific metadata associated with the operation. It typically
+ /// contains progress information and common metadata such as create time.
+ /// Some services might not provide such metadata. Any method that returns a
+ /// long-running operation should document the metadata type, if any.
+ ///
+ /// 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> metadata;
- /**
- * The server-assigned name, which is only unique within the same service that
- * originally returns it. If you use the default HTTP mapping, the
- * `name` should have the format of `operations/some/unique/name`.
- */
+
+ /// The server-assigned name, which is only unique within the same service
+ /// that
+ /// originally returns it. If you use the default HTTP mapping, the
+ /// `name` should have the format of `operations/some/unique/name`.
core.String name;
- /**
- * The normal response of the operation in case of success. If the original
- * method returns no data on success, such as `Delete`, the response is
- * `google.protobuf.Empty`. If the original method is standard
- * `Get`/`Create`/`Update`, the response should be the resource. For other
- * methods, the response should have the type `XxxResponse`, where `Xxx`
- * is the original method name. For example, if the original method name
- * is `TakeSnapshot()`, the inferred response type is
- * `TakeSnapshotResponse`.
- *
- * 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 normal response of the operation in case of success. If the original
+ /// method returns no data on success, such as `Delete`, the response is
+ /// `google.protobuf.Empty`. If the original method is standard
+ /// `Get`/`Create`/`Update`, the response should be the resource. For other
+ /// methods, the response should have the type `XxxResponse`, where `Xxx`
+ /// is the original method name. For example, if the original method name
+ /// is `TakeSnapshot()`, the inferred response type is
+ /// `TakeSnapshotResponse`.
+ ///
+ /// 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> response;
Operation();
@@ -1585,7 +1558,8 @@ class Operation {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (done != null) {
_json["done"] = done;
}
@@ -1605,73 +1579,75 @@ class Operation {
}
}
-/**
- * Defines an Identity and Access Management (IAM) policy. It is used to
- * specify access control policies for Cloud Platform resources.
- *
- *
- * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
- * `members` to a `role`, where the members can be user accounts, Google groups,
- * Google domains, and service accounts. A `role` is a named list of permissions
- * defined by IAM.
- *
- * **Example**
- *
- * {
- * "bindings": [
- * {
- * "role": "roles/owner",
- * "members": [
- * "user:mike@example.com",
- * "group:admins@example.com",
- * "domain:google.com",
- * "serviceAccount:my-other-app@appspot.gserviceaccount.com",
- * ]
- * },
- * {
- * "role": "roles/viewer",
- * "members": ["user:sean@example.com"]
- * }
- * ]
- * }
- *
- * For a description of IAM and its features, see the
- * [IAM developer's guide](https://cloud.google.com/iam).
- */
+/// Defines an Identity and Access Management (IAM) policy. It is used to
+/// specify access control policies for Cloud Platform resources.
+///
+///
+/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
+/// `members` to a `role`, where the members can be user accounts, Google
+/// groups,
+/// Google domains, and service accounts. A `role` is a named list of
+/// permissions
+/// defined by IAM.
+///
+/// **Example**
+///
+/// {
+/// "bindings": [
+/// {
+/// "role": "roles/owner",
+/// "members": [
+/// "user:mike@example.com",
+/// "group:admins@example.com",
+/// "domain:google.com",
+/// "serviceAccount:my-other-app@appspot.gserviceaccount.com",
+/// ]
+/// },
+/// {
+/// "role": "roles/viewer",
+/// "members": ["user:sean@example.com"]
+/// }
+/// ]
+/// }
+///
+/// For a description of IAM and its features, see the
+/// [IAM developer's guide](https://cloud.google.com/iam).
class Policy {
- /**
- * Associates a list of `members` to a `role`.
- * `bindings` with no members will result in an error.
- */
+ /// Associates a list of `members` to a `role`.
+ /// `bindings` with no members will result in an error.
core.List<Binding> bindings;
- /**
- * `etag` is used for optimistic concurrency control as a way to help
- * prevent simultaneous updates of a policy from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform policy updates in order to avoid race
- * conditions: An `etag` is returned in the response to `getIamPolicy`, and
- * systems are expected to put that etag in the request to `setIamPolicy` to
- * ensure that their change will be applied to the same version of the policy.
- *
- * If no `etag` is provided in the call to `setIamPolicy`, then the existing
- * policy is overwritten blindly.
- */
+
+ /// `etag` is used for optimistic concurrency control as a way to help
+ /// prevent simultaneous updates of a policy from overwriting each other.
+ /// It is strongly suggested that systems make use of the `etag` in the
+ /// read-modify-write cycle to perform policy updates in order to avoid race
+ /// conditions: An `etag` is returned in the response to `getIamPolicy`, and
+ /// systems are expected to put that etag in the request to `setIamPolicy` to
+ /// ensure that their change will be applied to the same version of the
+ /// policy.
+ ///
+ /// If no `etag` is provided in the call to `setIamPolicy`, then the existing
+ /// policy is overwritten blindly.
core.String etag;
core.List<core.int> get etagAsBytes {
return convert.BASE64.decode(etag);
}
void set etagAsBytes(core.List<core.int> _bytes) {
- etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
+ etag =
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
}
- /** Version of the `Policy`. The default version is 0. */
+
+ /// Version of the `Policy`. The default version is 0.
core.int version;
Policy();
Policy.fromJson(core.Map _json) {
if (_json.containsKey("bindings")) {
- bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).toList();
+ bindings = _json["bindings"]
+ .map((value) => new Binding.fromJson(value))
+ .toList();
}
if (_json.containsKey("etag")) {
etag = _json["etag"];
@@ -1682,7 +1658,8 @@ class Policy {
}
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 (bindings != null) {
_json["bindings"] = bindings.map((value) => (value).toJson()).toList();
}
@@ -1696,27 +1673,26 @@ class Policy {
}
}
-/**
- * A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
- * service. A RuntimeConfig resource consists of metadata and a hierarchy of
- * variables.
- */
+/// A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig
+/// service. A RuntimeConfig resource consists of metadata and a hierarchy of
+/// variables.
class RuntimeConfig {
- /** An optional description of the RuntimeConfig object. */
+ /// An optional description of the RuntimeConfig object.
core.String description;
- /**
- * The resource name of a runtime config. The name must have the format:
- *
- * projects/[PROJECT_ID]/configs/[CONFIG_NAME]
- *
- * The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
- * arbitrary name that matches RFC 1035 segment specification. The length of
- * `[CONFIG_NAME]` must be less than 64 bytes.
- *
- * You pick the RuntimeConfig resource name, but the server will validate that
- * the name adheres to this format. After you create the resource, you cannot
- * change the resource's name.
- */
+
+ /// The resource name of a runtime config. The name must have the format:
+ ///
+ /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]
+ ///
+ /// The `[PROJECT_ID]` must be a valid project ID, and `[CONFIG_NAME]` is an
+ /// arbitrary name that matches RFC 1035 segment specification. The length of
+ /// `[CONFIG_NAME]` must be less than 64 bytes.
+ ///
+ /// You pick the RuntimeConfig resource name, but the server will validate
+ /// that
+ /// the name adheres to this format. After you create the resource, you
+ /// cannot
+ /// change the resource's name.
core.String name;
RuntimeConfig();
@@ -1731,7 +1707,8 @@ class RuntimeConfig {
}
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;
}
@@ -1742,14 +1719,13 @@ class RuntimeConfig {
}
}
-/** Request message for `SetIamPolicy` method. */
+/// Request message for `SetIamPolicy` method.
class SetIamPolicyRequest {
- /**
- * REQUIRED: The complete policy to be applied to the `resource`. The size of
- * the policy is limited to a few 10s of KB. An empty policy is a
- * valid policy but certain Cloud Platform services (such as Projects)
- * might reject them.
- */
+ /// REQUIRED: The complete policy to be applied to the `resource`. The size
+ /// of
+ /// the policy is limited to a few 10s of KB. An empty policy is a
+ /// valid policy but certain Cloud Platform services (such as Projects)
+ /// might reject them.
Policy policy;
SetIamPolicyRequest();
@@ -1761,7 +1737,8 @@ class SetIamPolicyRequest {
}
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 (policy != null) {
_json["policy"] = (policy).toJson();
}
@@ -1769,78 +1746,81 @@ class SetIamPolicyRequest {
}
}
-/**
- * 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 needs
- *
- * # Overview
- *
- * The `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 mapping
- *
- * The `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 uses
- *
- * The 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.
- */
+/// 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 needs
+///
+/// # Overview
+///
+/// The `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 mapping
+///
+/// The `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 uses
+///
+/// The 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. */
+ /// 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.
- */
+
+ /// 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.
- */
+
+ /// 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();
@@ -1858,7 +1838,8 @@ class Status {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (code != null) {
_json["code"] = code;
}
@@ -1872,14 +1853,12 @@ class Status {
}
}
-/** Request message for `TestIamPermissions` method. */
+/// Request message for `TestIamPermissions` method.
class TestIamPermissionsRequest {
- /**
- * The set of permissions to check for the `resource`. Permissions with
- * wildcards (such as '*' or 'storage.*') are not allowed. For more
- * information see
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
- */
+ /// The set of permissions to check for the `resource`. Permissions with
+ /// wildcards (such as '*' or 'storage.*') are not allowed. For more
+ /// information see
+ /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
core.List<core.String> permissions;
TestIamPermissionsRequest();
@@ -1891,7 +1870,8 @@ class TestIamPermissionsRequest {
}
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 (permissions != null) {
_json["permissions"] = permissions;
}
@@ -1899,12 +1879,10 @@ class TestIamPermissionsRequest {
}
}
-/** Response message for `TestIamPermissions` method. */
+/// Response message for `TestIamPermissions` method.
class TestIamPermissionsResponse {
- /**
- * A subset of `TestPermissionsRequest.permissions` that the caller is
- * allowed.
- */
+ /// A subset of `TestPermissionsRequest.permissions` that the caller is
+ /// allowed.
core.List<core.String> permissions;
TestIamPermissionsResponse();
@@ -1916,7 +1894,8 @@ class TestIamPermissionsResponse {
}
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 (permissions != null) {
_json["permissions"] = permissions;
}
@@ -1924,66 +1903,64 @@ class TestIamPermissionsResponse {
}
}
-/**
- * Describes a single variable within a RuntimeConfig resource.
- * The name denotes the hierarchical variable name. For example,
- * `ports/serving_port` is a valid variable name. The variable value is an
- * opaque string and only leaf variables can have values (that is, variables
- * that do not have any child variables).
- */
+/// Describes a single variable within a RuntimeConfig resource.
+/// The name denotes the hierarchical variable name. For example,
+/// `ports/serving_port` is a valid variable name. The variable value is an
+/// opaque string and only leaf variables can have values (that is, variables
+/// that do not have any child variables).
class Variable {
- /**
- * The name of the variable resource, in the format:
- *
- * projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
- *
- * The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
- * valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file system
- * file path naming.
- *
- * The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
- * dashes. Slashes are used as path element separators and are not part of the
- * `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
- * non-slash character. Multiple slashes are coalesced into single slash
- * character. Each path segment should follow RFC 1035 segment specification.
- * The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
- *
- * Once you create a variable, you cannot change the variable name.
- */
+ /// The name of the variable resource, in the format:
+ ///
+ /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]
+ ///
+ /// The `[PROJECT_ID]` must be a valid project ID, `[CONFIG_NAME]` must be a
+ /// valid RuntimeConfig reource and `[VARIABLE_NAME]` follows Unix file
+ /// system
+ /// file path naming.
+ ///
+ /// The `[VARIABLE_NAME]` can contain ASCII letters, numbers, slashes and
+ /// dashes. Slashes are used as path element separators and are not part of
+ /// the
+ /// `[VARIABLE_NAME]` itself, so `[VARIABLE_NAME]` must contain at least one
+ /// non-slash character. Multiple slashes are coalesced into single slash
+ /// character. Each path segment should follow RFC 1035 segment
+ /// specification.
+ /// The length of a `[VARIABLE_NAME]` must be less than 256 bytes.
+ ///
+ /// Once you create a variable, you cannot change the variable name.
core.String name;
- /**
- * [Ouput only] The current state of the variable. The variable state
- * indicates
- * the outcome of the `variables().watch` call and is visible through the
- * `get` and `list` calls.
- * Possible string values are:
- * - "VARIABLE_STATE_UNSPECIFIED" : Default variable state.
- * - "UPDATED" : The variable was updated, while `variables().watch` was
- * executing.
- * - "DELETED" : The variable was deleted, while `variables().watch` was
- * executing.
- */
+
+ /// [Ouput only] The current state of the variable. The variable state
+ /// indicates
+ /// the outcome of the `variables().watch` call and is visible through the
+ /// `get` and `list` calls.
+ /// Possible string values are:
+ /// - "VARIABLE_STATE_UNSPECIFIED" : Default variable state.
+ /// - "UPDATED" : The variable was updated, while `variables().watch` was
+ /// executing.
+ /// - "DELETED" : The variable was deleted, while `variables().watch` was
+ /// executing.
core.String state;
- /**
- * The string value of the variable. The length of the value must be less
- * than 4096 bytes. Empty values are also accepted. For example,
- * `text: "my text value"`. The string must be valid UTF-8.
- */
+
+ /// The string value of the variable. The length of the value must be less
+ /// than 4096 bytes. Empty values are also accepted. For example,
+ /// `text: "my text value"`. The string must be valid UTF-8.
core.String text;
- /** [Output Only] The time of the last variable update. */
+
+ /// [Output Only] The time of the last variable update.
core.String updateTime;
- /**
- * The binary value of the variable. The length of the value must be less
- * than 4096 bytes. Empty values are also accepted. The value must be
- * base64 encoded. Only one of `value` or `text` can be set.
- */
+
+ /// The binary value of the variable. The length of the value must be less
+ /// than 4096 bytes. Empty values are also accepted. The value must be
+ /// base64 encoded. Only one of `value` or `text` can be set.
core.String value;
core.List<core.int> get valueAsBytes {
return convert.BASE64.decode(value);
}
void set valueAsBytes(core.List<core.int> _bytes) {
- value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
+ value =
+ convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
}
Variable();
@@ -2007,7 +1984,8 @@ class Variable {
}
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;
}
@@ -2027,80 +2005,82 @@ class Variable {
}
}
-/**
- * A Waiter resource waits for some end condition within a RuntimeConfig
- * resource
- * to be met before it returns. For example, assume you have a distributed
- * system where each node writes to a Variable resource indidicating the node's
- * readiness as part of the startup process.
- *
- * You then configure a Waiter resource with the success condition set to wait
- * until some number of nodes have checked in. Afterwards, your application
- * runs some arbitrary code after the condition has been met and the waiter
- * returns successfully.
- *
- * Once created, a Waiter resource is immutable.
- *
- * To learn more about using waiters, read the
- * [Creating a
- * Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
- * documentation.
- */
+/// A Waiter resource waits for some end condition within a RuntimeConfig
+/// resource
+/// to be met before it returns. For example, assume you have a distributed
+/// system where each node writes to a Variable resource indidicating the
+/// node's
+/// readiness as part of the startup process.
+///
+/// You then configure a Waiter resource with the success condition set to wait
+/// until some number of nodes have checked in. Afterwards, your application
+/// runs some arbitrary code after the condition has been met and the waiter
+/// returns successfully.
+///
+/// Once created, a Waiter resource is immutable.
+///
+/// To learn more about using waiters, read the
+/// [Creating a
+/// Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
+/// documentation.
class Waiter {
- /**
- * [Output Only] The instant at which this Waiter resource was created. Adding
- * the value of `timeout` to this instant yields the timeout deadline for the
- * waiter.
- */
+ /// [Output Only] The instant at which this Waiter resource was created.
+ /// Adding
+ /// the value of `timeout` to this instant yields the timeout deadline for
+ /// the
+ /// waiter.
core.String createTime;
- /**
- * [Output Only] If the value is `false`, it means the waiter is still waiting
- * for one of its conditions to be met.
- *
- * If true, the waiter has finished. If the waiter finished due to a timeout
- * or failure, `error` will be set.
- */
+
+ /// [Output Only] If the value is `false`, it means the waiter is still
+ /// waiting
+ /// for one of its conditions to be met.
+ ///
+ /// If true, the waiter has finished. If the waiter finished due to a timeout
+ /// or failure, `error` will be set.
core.bool done;
- /**
- * [Output Only] If the waiter ended due to a failure or timeout, this value
- * will be set.
- */
+
+ /// [Output Only] If the waiter ended due to a failure or timeout, this value
+ /// will be set.
Status error;
- /**
- * [Optional] The failure condition of this waiter. If this condition is met,
- * `done` will be set to `true` and the `error` code will be set to `ABORTED`.
- * The failure condition takes precedence over the success condition. If both
- * conditions are met, a failure will be indicated. This value is optional; if
- * no failure condition is set, the only failure scenario will be a timeout.
- */
+
+ /// [Optional] The failure condition of this waiter. If this condition is
+ /// met,
+ /// `done` will be set to `true` and the `error` code will be set to
+ /// `ABORTED`.
+ /// The failure condition takes precedence over the success condition. If
+ /// both
+ /// conditions are met, a failure will be indicated. This value is optional;
+ /// if
+ /// no failure condition is set, the only failure scenario will be a timeout.
EndCondition failure;
- /**
- * The name of the Waiter resource, in the format:
- *
- * projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]
- *
- * The `[PROJECT_ID]` must be a valid Google Cloud project ID,
- * the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the
- * `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
- * of `[WAITER_NAME]` must be less than 64 bytes.
- *
- * After you create a Waiter resource, you cannot change the resource name.
- */
+
+ /// The name of the Waiter resource, in the format:
+ ///
+ /// projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]
+ ///
+ /// The `[PROJECT_ID]` must be a valid Google Cloud project ID,
+ /// the `[CONFIG_NAME]` must be a valid RuntimeConfig resource, the
+ /// `[WAITER_NAME]` must match RFC 1035 segment specification, and the length
+ /// of `[WAITER_NAME]` must be less than 64 bytes.
+ ///
+ /// After you create a Waiter resource, you cannot change the resource name.
core.String name;
- /**
- * [Required] The success condition. If this condition is met, `done` will be
- * set to `true` and the `error` value will remain unset. The failure
- * condition
- * takes precedence over the success condition. If both conditions are met, a
- * failure will be indicated.
- */
+
+ /// [Required] The success condition. If this condition is met, `done` will
+ /// be
+ /// set to `true` and the `error` value will remain unset. The failure
+ /// condition
+ /// takes precedence over the success condition. If both conditions are met,
+ /// a
+ /// failure will be indicated.
EndCondition success;
- /**
- * [Required] Specifies the timeout of the waiter in seconds, beginning from
- * the instant that `waiters().create` method is called. If this time elapses
- * before the success or failure conditions are met, the waiter fails and sets
- * the `error` code to `DEADLINE_EXCEEDED`.
- */
+
+ /// [Required] Specifies the timeout of the waiter in seconds, beginning from
+ /// the instant that `waiters().create` method is called. If this time
+ /// elapses
+ /// before the success or failure conditions are met, the waiter fails and
+ /// sets
+ /// the `error` code to `DEADLINE_EXCEEDED`.
core.String timeout;
Waiter();
@@ -2130,7 +2110,8 @@ class Waiter {
}
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 (createTime != null) {
_json["createTime"] = createTime;
}
@@ -2156,16 +2137,15 @@ class Waiter {
}
}
-/** Request for the `WatchVariable()` method. */
+/// Request for the `WatchVariable()` method.
class WatchVariableRequest {
- /**
- * If specified, checks the current timestamp of the variable and if the
- * current timestamp is newer than `newerThan` timestamp, the method returns
- * immediately.
- *
- * If not specified or the variable has an older timestamp, the watcher waits
- * for a the value to change before returning.
- */
+ /// If specified, checks the current timestamp of the variable and if the
+ /// current timestamp is newer than `newerThan` timestamp, the method returns
+ /// immediately.
+ ///
+ /// If not specified or the variable has an older timestamp, the watcher
+ /// waits
+ /// for a the value to change before returning.
core.String newerThan;
WatchVariableRequest();
@@ -2177,7 +2157,8 @@ class WatchVariableRequest {
}
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 (newerThan != null) {
_json["newerThan"] = newerThan;
}
« no previous file with comments | « generated/googleapis_beta/lib/resourceviews/v1beta2.dart ('k') | generated/googleapis_beta/lib/speech/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698