Skip to content

Commit

Permalink
build: add new kokoro config for coverage and release-please (#102)
Browse files Browse the repository at this point in the history
* build: add new kokoro config for release-please and coverage

* build: actually commit the config

* fix: do not fail test if nyc did not run
  • Loading branch information
bcoe authored and JustinBeckwith committed May 17, 2019
1 parent 81fb400 commit e424ecd
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @property {Object} policy
* REQUIRED: The complete policy to be applied to the `resource`. The size of
Expand All @@ -44,8 +43,7 @@ const SetIamPolicyRequest = {
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @typedef GetIamPolicyRequest
* @memberof google.iam.v1
Expand All @@ -60,8 +58,7 @@ const GetIamPolicyRequest = {
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @property {string[]} permissions
* The set of permissions to check for the `resource`. Permissions with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -35,7 +35,7 @@
* "user:[email protected]",
* "group:[email protected]",
* "domain:google.com",
* "serviceAccount:[email protected]",
* "serviceAccount:[email protected]"
* ]
* },
* {
Expand All @@ -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}
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class SecurityCenterClient {
}).operationsClient(opts);

const runAssetDiscoveryResponse = protoFilesRoot.lookup(
'google.protobuf.Empty'
'google.cloud.securitycenter.v1.RunAssetDiscoveryResponse'
);
const runAssetDiscoveryMetadata = protoFilesRoot.lookup(
'google.protobuf.Empty'
Expand Down Expand Up @@ -431,8 +431,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {Object} [options]
* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
Expand Down Expand Up @@ -2366,8 +2365,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {Object} request.policy
* 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
Expand Down Expand Up @@ -2433,8 +2431,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @property {Object} policy
* REQUIRED: The complete policy to be applied to the `resource`. The size of
Expand All @@ -44,8 +43,7 @@ const SetIamPolicyRequest = {
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @typedef GetIamPolicyRequest
* @memberof google.iam.v1
Expand All @@ -60,8 +58,7 @@ const GetIamPolicyRequest = {
*
* @property {string} 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}`.
* See the operation documentation for the appropriate value for this field.
*
* @property {string[]} permissions
* The set of permissions to check for the `resource`. Permissions with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -35,7 +35,7 @@
* "user:[email protected]",
* "group:[email protected]",
* "domain:google.com",
* "serviceAccount:[email protected]",
* "serviceAccount:[email protected]"
* ]
* },
* {
Expand All @@ -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}
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {Object} [options]
* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
Expand Down Expand Up @@ -2091,8 +2090,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {Object} request.policy
* 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
Expand Down Expand Up @@ -2158,8 +2156,7 @@ class SecurityCenterClient {
* The request object that will be sent.
* @param {string} request.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}`.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
Expand Down
10 changes: 5 additions & 5 deletions packages/google-cloud-securitycenter/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-04-30T01:57:29.004065Z",
"updateTime": "2019-05-17T01:11:10.647265Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.17.1",
"dockerImage": "googleapis/artman@sha256:a40ca4dd4ef031c0ded4df4909ffdf7b3f20d29b23e682ef991eb60ba0ca6025"
"version": "0.19.0",
"dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "be3005c8a16e8424d0330e977ac78f2976bf01d3",
"internalRef": "245840921"
"sha": "03269e767cff9dd644d7784a4d4350b2ba6daf69",
"internalRef": "248524261"
}
},
{
Expand Down

0 comments on commit e424ecd

Please sign in to comment.