-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
adding resource organzation.source.finding #12839
Open
mithunkumar1507
wants to merge
1
commit into
GoogleCloudPlatform:main
Choose a base branch
from
mithunkumar1507:findings_v1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
mmv1/products/securitycenterv2/OrganizationSourceFinding.yaml
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,97 @@ | ||
# Copyright 2024 Google Inc. | ||
# 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 | ||
# | ||
# http://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. | ||
|
||
--- | ||
# API resource name | ||
name: 'OrganizationSourceFinding' | ||
# Resource description for the provider documentation. | ||
description: | | ||
An organization source finding is an individual piece of security analysis data identified within Security Command Center. | ||
references: | ||
guides: | ||
'Manage Findings': 'https://cloud.google.com/security-command-center/docs/how-to-manage-findings' | ||
api: 'https://cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.sources.findings' | ||
|
||
# URL for the resource's standard List method. https://google.aip.dev/132 | ||
base_url: 'organizations/{{organization}}/sources/{{source}}/findings' | ||
# URL for the resource's standard Get method. https://google.aip.dev/131 | ||
self_link: 'organizations/{{organization}}/sources/{{source}}/findings/{{name}}' | ||
|
||
# If true, the resource and all its fields are considered immutable - that is, | ||
# only creatable, not updatable. Individual fields can override this if they | ||
# have a custom update method in the API. | ||
immutable: false | ||
|
||
# URL for the resource's standard Create method. https://google.aip.dev/133 | ||
create_url: 'organizations/{{organization}}/sources/{{source}}/findings?findingId={{name}}' | ||
|
||
# URL for the resource's standard Update method. https://google.aip.dev/134 | ||
update_url: 'organizations/{{organization}}/sources/{{source}}/findings/{{name}}' | ||
update_verb: 'PATCH' | ||
update_mask: true | ||
|
||
# If true, code for handling long-running operations is generated along with the resource. | ||
autogen_async: true | ||
async: | ||
operation: | ||
base_url: '{{op_id}}' | ||
|
||
parameters: | ||
- name: 'organization' | ||
type: String | ||
required: true | ||
immutable: true | ||
url_param_only: true | ||
description: | | ||
The organization ID where the finding resides. | ||
- name: 'source' | ||
type: String | ||
required: true | ||
immutable: true | ||
url_param_only: true | ||
description: | | ||
The source ID within the organization for this finding. | ||
- name: 'name' | ||
type: String | ||
required: true | ||
immutable: true | ||
url_param_only: true | ||
description: | | ||
The unique identifier for the finding. | ||
properties: | ||
- name: 'category' | ||
type: String | ||
required: true | ||
description: | | ||
The category of the finding (e.g., misconfiguration, vulnerability). | ||
- name: 'severity' | ||
type: String | ||
required: false | ||
description: | | ||
The severity level of the finding (e.g., CRITICAL, HIGH, MEDIUM, LOW). | ||
- name: 'state' | ||
type: String | ||
required: false | ||
description: | | ||
The current state of the finding (e.g., ACTIVE, INACTIVE). | ||
- name: 'event_time' | ||
type: String | ||
required: false | ||
description: | | ||
The time at which the event was detected. | ||
- name: 'source_properties' | ||
type: Map | ||
required: false | ||
description: | | ||
A map of additional properties related to the finding. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont need any
required: false
s