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 8eb336f21a8a42377b8c4219e23332154adad61d..c0e73958e025fa7d646c3468e1539cc9ccdefa5e 100644 |
--- a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart |
+++ b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart |
@@ -68,14 +68,17 @@ class ProjectsConfigsResourceApi { |
* for this request, in the format `projects/[PROJECT_ID]`. |
* Value must have pattern "^projects/[^/]+$". |
* |
- * [requestId] - An optional unique request_id. If server receives two Create |
- * requests with |
- * the same request_id then second request will be ignored and the resource |
- * stored in the backend will be returned. Empty request_id fields are |
- * ignored. |
- * It is responsibility of the client to ensure uniqueness of the request_id |
- * strings. |
- * The strings are limited to 64 characters. |
+ * [requestId] - An optional but recommended unique <code>request_id</code>. |
+ * If the server |
+ * receives two <code>create()</code> requests with the same |
+ * <code>request_id</code>, then the second request will be ignored and the |
+ * first resource created and stored in the backend is returned. |
+ * Empty <code>request_id</code> fields are ignored. |
+ * |
+ * It is responsibility of the client to ensure uniqueness of the |
+ * <code>request_id</code> strings. |
+ * |
+ * <code>request_id</code> strings are limited to 64 characters. |
* |
* Completes with a [RuntimeConfig]. |
* |
@@ -200,6 +203,51 @@ class ProjectsConfigsResourceApi { |
} |
/** |
+ * 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. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * 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(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ |
+ _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy'; |
+ |
+ 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: |
@@ -256,6 +304,105 @@ class ProjectsConfigsResourceApi { |
} |
/** |
+ * 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. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * 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; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ |
+ _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy'; |
+ |
+ 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. |
+ * |
+ * [request] - The metadata request object. |
+ * |
+ * Request parameters: |
+ * |
+ * [resource] - REQUIRED: The resource for which the policy detail is being |
+ * requested. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * 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; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (request != null) { |
+ _body = convert.JSON.encode((request).toJson()); |
+ } |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ |
+ _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)); |
+ } |
+ |
+ /** |
* Updates a RuntimeConfig resource. The configuration must exist beforehand. |
* |
* [request] - The metadata request object. |
@@ -353,6 +500,60 @@ class ProjectsConfigsOperationsResourceApi { |
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. |
+ * |
+ * Request parameters: |
+ * |
+ * [resource] - REQUIRED: The resource for which the policy detail is being |
+ * requested. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$". |
+ * |
+ * [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). |
+ * |
+ * 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(core.String resource, {core.List<core.String> permissions}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ if (permissions != null) { |
+ _queryParams["permissions"] = permissions; |
+ } |
+ |
+ _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions'; |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new TestIamPermissionsResponse.fromJson(data)); |
+ } |
+ |
} |
@@ -383,14 +584,17 @@ class ProjectsConfigsVariablesResourceApi { |
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
* Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
* |
- * [requestId] - An optional unique request_id. If server receives two Create |
- * requests with |
- * the same request_id then second request will be ignored and the resource |
- * stored in the backend will be returned. Empty request_id fields are |
- * ignored. |
- * It is responsibility of the client to ensure uniqueness of the request_id |
- * strings. |
- * The strings are limited to 64 characters. |
+ * [requestId] - An optional but recommended unique <code>request_id</code>. |
+ * If the server |
+ * receives two <code>create()</code> requests with the same |
+ * <code>request_id</code>, then the second request will be ignored and the |
+ * first resource created and stored in the backend is returned. |
+ * Empty <code>request_id</code> fields are ignored. |
+ * |
+ * It is responsibility of the client to ensure uniqueness of the |
+ * <code>request_id</code> strings. |
+ * |
+ * <code>request_id</code> strings are limited to 64 characters. |
* |
* Completes with a [Variable]. |
* |
@@ -594,6 +798,60 @@ class ProjectsConfigsVariablesResourceApi { |
} |
/** |
+ * 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. |
+ * |
+ * Request parameters: |
+ * |
+ * [resource] - REQUIRED: The resource for which the policy detail is being |
+ * requested. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". |
+ * |
+ * [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). |
+ * |
+ * 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(core.String resource, {core.List<core.String> permissions}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ if (permissions != null) { |
+ _queryParams["permissions"] = permissions; |
+ } |
+ |
+ _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions'; |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ 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. |
@@ -728,14 +986,17 @@ class ProjectsConfigsWaitersResourceApi { |
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. |
* Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
* |
- * [requestId] - An optional unique request_id. If server receives two Create |
- * requests with |
- * the same request_id then second request will be ignored and information |
- * stored in the backend will be returned. Empty request_id fields are |
- * ignored. |
- * It is responsibility of the client to ensure uniqueness of the request_id |
- * strings. |
- * The strings are limited to 64 characters. |
+ * [requestId] - An optional but recommended unique <code>request_id</code>. |
+ * If the server |
+ * receives two <code>create()</code> requests with the same |
+ * <code>request_id</code>, then the second request will be ignored and the |
+ * first resource created and stored in the backend is returned. |
+ * Empty <code>request_id</code> fields are ignored. |
+ * |
+ * It is responsibility of the client to ensure uniqueness of the |
+ * <code>request_id</code> strings. |
+ * |
+ * <code>request_id</code> strings are limited to 64 characters. |
* |
* Completes with a [Operation]. |
* |
@@ -919,10 +1180,120 @@ class ProjectsConfigsWaitersResourceApi { |
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. |
+ * |
+ * Request parameters: |
+ * |
+ * [resource] - REQUIRED: The resource for which the policy detail is being |
+ * requested. |
+ * `resource` is usually specified as a path. For example, a Project |
+ * resource is specified as `projects/{project}`. |
+ * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". |
+ * |
+ * [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). |
+ * |
+ * 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(core.String resource, {core.List<core.String> permissions}) { |
+ var _url = null; |
+ var _queryParams = new core.Map(); |
+ var _uploadMedia = null; |
+ var _uploadOptions = null; |
+ var _downloadOptions = commons.DownloadOptions.Metadata; |
+ var _body = null; |
+ |
+ if (resource == null) { |
+ throw new core.ArgumentError("Parameter resource is required."); |
+ } |
+ if (permissions != null) { |
+ _queryParams["permissions"] = permissions; |
+ } |
+ |
+ _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions'; |
+ |
+ var _response = _requester.request(_url, |
+ "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response.then((data) => new TestIamPermissionsResponse.fromJson(data)); |
+ } |
+ |
} |
+/** 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`. |
+ */ |
+ core.List<core.String> members; |
+ /** |
+ * Role that is assigned to `members`. |
+ * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
+ * Required |
+ */ |
+ core.String role; |
+ |
+ Binding(); |
+ |
+ Binding.fromJson(core.Map _json) { |
+ if (_json.containsKey("members")) { |
+ members = _json["members"]; |
+ } |
+ if (_json.containsKey("role")) { |
+ role = _json["role"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (members != null) { |
+ _json["members"] = members; |
+ } |
+ if (role != null) { |
+ _json["role"] = role; |
+ } |
+ return _json; |
+ } |
+} |
+ |
/** |
* A Cardinality condition for the Waiter resource. A cardinality condition is |
* met when the number of variables under a specified path prefix reaches a |
@@ -1223,15 +1594,104 @@ 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). |
+ */ |
+class Policy { |
+ /** |
+ * Associates a list of `members` to a `role`. |
+ * Multiple `bindings` must not be specified for the same `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. |
+ */ |
+ 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("+", "-"); |
+ } |
+ /** 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(); |
+ } |
+ if (_json.containsKey("etag")) { |
+ etag = _json["etag"]; |
+ } |
+ if (_json.containsKey("version")) { |
+ version = _json["version"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (bindings != null) { |
+ _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
+ } |
+ if (etag != null) { |
+ _json["etag"] = etag; |
+ } |
+ if (version != null) { |
+ _json["version"] = version; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** |
* 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. |
- * The length of the description must be less than 256 bytes. |
- */ |
+ /** An optional description of the RuntimeConfig object. */ |
core.String description; |
/** |
* The resource name of a runtime config. The name must have the format: |
@@ -1271,6 +1731,33 @@ class RuntimeConfig { |
} |
} |
+/** 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. |
+ */ |
+ Policy policy; |
+ |
+ SetIamPolicyRequest(); |
+ |
+ SetIamPolicyRequest.fromJson(core.Map _json) { |
+ if (_json.containsKey("policy")) { |
+ policy = new Policy.fromJson(_json["policy"]); |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (policy != null) { |
+ _json["policy"] = (policy).toJson(); |
+ } |
+ return _json; |
+ } |
+} |
+ |
/** |
* The `Status` type defines a logical error model that is suitable for |
* different |
@@ -1374,6 +1861,58 @@ class Status { |
} |
} |
+/** 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). |
+ */ |
+ core.List<core.String> permissions; |
+ |
+ TestIamPermissionsRequest(); |
+ |
+ TestIamPermissionsRequest.fromJson(core.Map _json) { |
+ if (_json.containsKey("permissions")) { |
+ permissions = _json["permissions"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (permissions != null) { |
+ _json["permissions"] = permissions; |
+ } |
+ return _json; |
+ } |
+} |
+ |
+/** Response message for `TestIamPermissions` method. */ |
+class TestIamPermissionsResponse { |
+ /** |
+ * A subset of `TestPermissionsRequest.permissions` that the caller is |
+ * allowed. |
+ */ |
+ core.List<core.String> permissions; |
+ |
+ TestIamPermissionsResponse(); |
+ |
+ TestIamPermissionsResponse.fromJson(core.Map _json) { |
+ if (_json.containsKey("permissions")) { |
+ permissions = _json["permissions"]; |
+ } |
+ } |
+ |
+ core.Map toJson() { |
+ var _json = new core.Map(); |
+ if (permissions != null) { |
+ _json["permissions"] = permissions; |
+ } |
+ return _json; |
+ } |
+} |
+ |
/** |
* Describes a single variable within a RuntimeConfig resource. |
* The name denotes the hierarchical variable name. For example, |
@@ -1415,9 +1954,9 @@ class Variable { |
*/ |
core.String state; |
/** |
- * The textual value of the variable. The length of the value must be less |
- * than 4096 bytes. Empty values are also accepted. |
- * NB: Only one of value and string_value can be set at the same time. |
+ * The string value of the variable. The length of the value must be less |
+ * than 4096 bytes. Empty values are also accepted. For example, |
+ * <code>text: "my text value"</code>. |
*/ |
core.String text; |
/** [Output Only] The time of the last variable update. */ |
@@ -1425,8 +1964,7 @@ class Variable { |
/** |
* 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. |
- * NB: Only one of value and string_value can be set at the same time. |
+ * base64 encoded. Only one of `value` or `text` can be set. |
*/ |
core.String value; |
core.List<core.int> get valueAsBytes { |