-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DEADLINE_EXCEEDED is no longer retried (#152)
- Loading branch information
1 parent
50df440
commit 2292d07
Showing
8 changed files
with
96 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,9 @@ | |
/** | ||
* @namespace google.rpc | ||
*/ | ||
/** | ||
* @namespace google.type | ||
*/ | ||
|
||
'use strict'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ | |
* specify access control policies for Cloud Platform resources. | ||
* | ||
* | ||
* A `Policy` consists of a list of `bindings`. A `Binding` binds a list of | ||
* 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** | ||
* **JSON Example** | ||
* | ||
* { | ||
* "bindings": [ | ||
|
@@ -35,7 +35,7 @@ | |
* "user:[email protected]", | ||
* "group:[email protected]", | ||
* "domain:google.com", | ||
* "serviceAccount:[email protected]", | ||
* "serviceAccount:[email protected]" | ||
* ] | ||
* }, | ||
* { | ||
|
@@ -45,15 +45,28 @@ | |
* ] | ||
* } | ||
* | ||
* **YAML Example** | ||
* | ||
* bindings: | ||
* - members: | ||
* - user:[email protected] | ||
* - group:[email protected] | ||
* - domain:google.com | ||
* - serviceAccount:[email protected] | ||
* role: roles/owner | ||
* - members: | ||
* - user:[email protected] | ||
* role: roles/viewer | ||
* | ||
* | ||
* For a description of IAM and its features, see the | ||
* [IAM developer's guide](https://cloud.google.com/iam). | ||
* [IAM developer's guide](https://cloud.google.com/iam/docs). | ||
* | ||
* @property {number} version | ||
* Version of the `Policy`. The default version is 0. | ||
* Deprecated. | ||
* | ||
* @property {Object[]} bindings | ||
* 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. | ||
* | ||
* This object should have the same structure as [Binding]{@link google.iam.v1.Binding} | ||
|
@@ -84,7 +97,6 @@ const Policy = { | |
* @property {string} role | ||
* Role that is assigned to `members`. | ||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`. | ||
* Required | ||
* | ||
* @property {string[]} members | ||
* Specifies the identities requesting access for a Cloud Platform resource. | ||
|
@@ -97,7 +109,7 @@ const Policy = { | |
* who is authenticated with a Google account or a service account. | ||
* | ||
* * `user:{emailid}`: An email address that represents a specific Google | ||
* account. For example, `[email protected]` or `[email protected]`. | ||
* account. For example, `[email protected]` . | ||
* | ||
* | ||
* * `serviceAccount:{emailid}`: An email address that represents a service | ||
|
@@ -106,9 +118,18 @@ const Policy = { | |
* * `group:{emailid}`: An email address that represents a Google group. | ||
* For example, `[email protected]`. | ||
* | ||
* * `domain:{domain}`: A Google Apps domain name that represents all the | ||
* | ||
* * `domain:{domain}`: The G Suite domain (primary) that represents all the | ||
* users of that domain. For example, `google.com` or `example.com`. | ||
* | ||
* @property {Object} condition | ||
* The condition that is associated with this binding. | ||
* NOTE: An unsatisfied condition will not allow user access via current | ||
* binding. Different bindings, including their conditions, are examined | ||
* independently. | ||
* | ||
* This object should have the same structure as [Expr]{@link google.type.Expr} | ||
* | ||
* @typedef Binding | ||
* @memberof google.iam.v1 | ||
* @see [google.iam.v1.Binding definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/iam/v1/policy.proto} | ||
|
51 changes: 51 additions & 0 deletions
51
packages/google-cloud-iot/src/v1/doc/google/type/doc_expr.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2019 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Note: this file is purely for documentation. Any contents are not expected | ||
// to be loaded as the JS file. | ||
|
||
/** | ||
* Represents an expression text. Example: | ||
* | ||
* title: "User account presence" | ||
* description: "Determines whether the request has a user account" | ||
* expression: "size(request.user) > 0" | ||
* | ||
* @property {string} expression | ||
* Textual representation of an expression in | ||
* Common Expression Language syntax. | ||
* | ||
* The application context of the containing message determines which | ||
* well-known feature set of CEL is supported. | ||
* | ||
* @property {string} title | ||
* An optional title for the expression, i.e. a short string describing | ||
* its purpose. This can be used e.g. in UIs which allow to enter the | ||
* expression. | ||
* | ||
* @property {string} description | ||
* An optional description of the expression. This is a longer text which | ||
* describes the expression, e.g. when hovered over it in a UI. | ||
* | ||
* @property {string} location | ||
* An optional string indicating the location of the expression for error | ||
* reporting, e.g. a file name and a position in the file. | ||
* | ||
* @typedef Expr | ||
* @memberof google.type | ||
* @see [google.type.Expr definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/type/expr.proto} | ||
*/ | ||
const Expr = { | ||
// This is for documentation. Actual contents will be loaded by gRPC. | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters