Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [securitycentermanagement] add an INGEST_ONLY EnablementState #5445

Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ message SecurityCenterService {

// State is disabled.
DISABLED = 3;

// SCC is configured to ingest findings from this service but not enable
// this service. Not a valid intended_enablement_state (that is, this is a
// readonly state).
INGEST_ONLY = 4;
}

// Identifier. The name of the service.
Expand Down Expand Up @@ -1667,12 +1672,12 @@ message UpdateSecurityCenterServiceRequest {
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];

// Optional. When set to true, only validations (including IAM checks) will
// Optional. When set to true, only validations (including IAM checks) will be
// done for the request (service will not be updated). An OK response
// indicates the request is valid while an error response indicates the
// request is invalid. Note that a subsequent request to actually update the
// service could still fail because 1. the state could have changed (e.g. IAM
// permission lost) or
// 2. A failure occurred while trying to delete the module.
// indicates that the request is valid, while an error response indicates that
// the request is invalid. Note that a subsequent request to actually update
// the service could still fail for one of the following reasons:
// - The state could have changed (e.g. IAM permission lost).
// - A failure occurred while trying to delete the module.
bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions packages/google-cloud-securitycentermanagement/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ function main(securityCenterService, updateMask) {
*/
// const updateMask = {}
/**
* Optional. When set to true, only validations (including IAM checks) will
* Optional. When set to true, only validations (including IAM checks) will be
* done for the request (service will not be updated). An OK response
* indicates the request is valid while an error response indicates the
* request is invalid. Note that a subsequent request to actually update the
* service could still fail because 1. the state could have changed (e.g. IAM
* permission lost) or
* 2. A failure occurred while trying to delete the module.
* indicates that the request is valid, while an error response indicates that
* the request is invalid. Note that a subsequent request to actually update
* the service could still fail for one of the following reasons:
* - The state could have changed (e.g. IAM permission lost).
* - A failure occurred while trying to delete the module.
*/
// const validateOnly = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1994,13 +1994,13 @@ export class SecurityCenterManagementClient {
* * "intended_enablement_state"
* * "modules"
* @param {boolean} [request.validateOnly]
* Optional. When set to true, only validations (including IAM checks) will
* Optional. When set to true, only validations (including IAM checks) will be
* done for the request (service will not be updated). An OK response
* indicates the request is valid while an error response indicates the
* request is invalid. Note that a subsequent request to actually update the
* service could still fail because 1. the state could have changed (e.g. IAM
* permission lost) or
* 2. A failure occurred while trying to delete the module.
* indicates that the request is valid, while an error response indicates that
* the request is invalid. Note that a subsequent request to actually update
* the service could still fail for one of the following reasons:
* - The state could have changed (e.g. IAM permission lost).
* - A failure occurred while trying to delete the module.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down
Loading