123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- syntax = "proto3";
- package google.cloud.websecurityscanner.v1alpha;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/websecurityscanner/v1alpha/crawled_url.proto";
- import "google/cloud/websecurityscanner/v1alpha/finding.proto";
- import "google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto";
- import "google/cloud/websecurityscanner/v1alpha/scan_config.proto";
- import "google/cloud/websecurityscanner/v1alpha/scan_run.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
- option java_multiple_files = true;
- option java_outer_classname = "WebSecurityScannerProto";
- option java_package = "com.google.cloud.websecurityscanner.v1alpha";
- service WebSecurityScanner {
- option (google.api.default_host) = "websecurityscanner.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateScanConfig(CreateScanConfigRequest) returns (ScanConfig) {
- option (google.api.http) = {
- post: "/v1alpha/{parent=projects/*}/scanConfigs"
- body: "scan_config"
- };
- option (google.api.method_signature) = "parent,scan_config";
- }
-
- rpc DeleteScanConfig(DeleteScanConfigRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1alpha/{name=projects/*/scanConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetScanConfig(GetScanConfigRequest) returns (ScanConfig) {
- option (google.api.http) = {
- get: "/v1alpha/{name=projects/*/scanConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) {
- option (google.api.http) = {
- get: "/v1alpha/{parent=projects/*}/scanConfigs"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc UpdateScanConfig(UpdateScanConfigRequest) returns (ScanConfig) {
- option (google.api.http) = {
- patch: "/v1alpha/{scan_config.name=projects/*/scanConfigs/*}"
- body: "scan_config"
- };
- option (google.api.method_signature) = "scan_config,update_mask";
- }
-
- rpc StartScanRun(StartScanRunRequest) returns (ScanRun) {
- option (google.api.http) = {
- post: "/v1alpha/{name=projects/*/scanConfigs/*}:start"
- body: "*"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc GetScanRun(GetScanRunRequest) returns (ScanRun) {
- option (google.api.http) = {
- get: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
- rpc ListScanRuns(ListScanRunsRequest) returns (ListScanRunsResponse) {
- option (google.api.http) = {
- get: "/v1alpha/{parent=projects/*/scanConfigs/*}/scanRuns"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc StopScanRun(StopScanRunRequest) returns (ScanRun) {
- option (google.api.http) = {
- post: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*}:stop"
- body: "*"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListCrawledUrls(ListCrawledUrlsRequest) returns (ListCrawledUrlsResponse) {
- option (google.api.http) = {
- get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/crawledUrls"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetFinding(GetFindingRequest) returns (Finding) {
- option (google.api.http) = {
- get: "/v1alpha/{name=projects/*/scanConfigs/*/scanRuns/*/findings/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListFindings(ListFindingsRequest) returns (ListFindingsResponse) {
- option (google.api.http) = {
- get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findings"
- };
- option (google.api.method_signature) = "parent,filter";
- }
-
- rpc ListFindingTypeStats(ListFindingTypeStatsRequest) returns (ListFindingTypeStatsResponse) {
- option (google.api.http) = {
- get: "/v1alpha/{parent=projects/*/scanConfigs/*/scanRuns/*}/findingTypeStats"
- };
- option (google.api.method_signature) = "parent";
- }
- }
- message CreateScanConfigRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
- ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteScanConfigRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanConfig"
- }
- ];
- }
- message GetScanConfigRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanConfig"
- }
- ];
- }
- message ListScanConfigsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "cloudresourcemanager.googleapis.com/Project"
- }
- ];
-
-
-
- string page_token = 2;
-
-
-
- int32 page_size = 3;
- }
- message UpdateScanConfigRequest {
-
-
-
- ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message ListScanConfigsResponse {
-
- repeated ScanConfig scan_configs = 1;
-
-
- string next_page_token = 2;
- }
- message StartScanRunRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanConfig"
- }
- ];
- }
- message GetScanRunRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanRun"
- }
- ];
- }
- message ListScanRunsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanConfig"
- }
- ];
-
-
-
- string page_token = 2;
-
-
-
- int32 page_size = 3;
- }
- message ListScanRunsResponse {
-
- repeated ScanRun scan_runs = 1;
-
-
- string next_page_token = 2;
- }
- message StopScanRunRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanRun"
- }
- ];
- }
- message ListCrawledUrlsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanRun"
- }
- ];
-
-
-
- string page_token = 2;
-
-
-
- int32 page_size = 3;
- }
- message ListCrawledUrlsResponse {
-
- repeated CrawledUrl crawled_urls = 1;
-
-
- string next_page_token = 2;
- }
- message GetFindingRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/Finding"
- }
- ];
- }
- message ListFindingsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanRun"
- }
- ];
-
-
-
-
- string filter = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string page_token = 3;
-
-
-
- int32 page_size = 4;
- }
- message ListFindingsResponse {
-
- repeated Finding findings = 1;
-
-
- string next_page_token = 2;
- }
- message ListFindingTypeStatsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "websecurityscanner.googleapis.com/ScanRun"
- }
- ];
- }
- message ListFindingTypeStatsResponse {
-
- repeated FindingTypeStats finding_type_stats = 1;
- }
|