google-cloud-security_center 0.9.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -2
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +327 -0
- data/README.md +36 -25
- data/lib/{google/cloud/security_center/v1/doc/google/protobuf/empty.rb → google-cloud-security_center.rb} +4 -14
- data/lib/google/cloud/security_center.rb +87 -117
- data/lib/google/cloud/security_center/version.rb +6 -2
- metadata +63 -113
- data/LICENSE +0 -201
- data/lib/google/cloud/security_center/v1.rb +0 -149
- data/lib/google/cloud/security_center/v1/asset_pb.rb +0 -41
- data/lib/google/cloud/security_center/v1/credentials.rb +0 -41
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/asset.rb +0 -105
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/finding.rb +0 -97
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/notification_config.rb +0 -75
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/organization_settings.rb +0 -72
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/security_marks.rb +0 -45
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/securitycenter_service.rb +0 -912
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/source.rb +0 -50
- data/lib/google/cloud/security_center/v1/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/security_center/v1/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/security_center/v1/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/security_center/v1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/security_center/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/security_center/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/security_center/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/security_center/v1/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/security_center/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/security_center/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/security_center/v1/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/security_center/v1/finding_pb.rb +0 -36
- data/lib/google/cloud/security_center/v1/helpers.rb +0 -88
- data/lib/google/cloud/security_center/v1/notification_config_pb.rb +0 -28
- data/lib/google/cloud/security_center/v1/notification_message_pb.rb +0 -20
- data/lib/google/cloud/security_center/v1/organization_settings_pb.rb +0 -30
- data/lib/google/cloud/security_center/v1/run_asset_discovery_response_pb.rb +0 -25
- data/lib/google/cloud/security_center/v1/security_center_client.rb +0 -2118
- data/lib/google/cloud/security_center/v1/security_center_client_config.json +0 -141
- data/lib/google/cloud/security_center/v1/security_marks_pb.rb +0 -18
- data/lib/google/cloud/security_center/v1/securitycenter_service_pb.rb +0 -230
- data/lib/google/cloud/security_center/v1/securitycenter_service_services_pb.rb +0 -100
- data/lib/google/cloud/security_center/v1/source_pb.rb +0 -19
- data/lib/google/cloud/security_center/v1p1beta1.rb +0 -149
- data/lib/google/cloud/security_center/v1p1beta1/asset_pb.rb +0 -41
- data/lib/google/cloud/security_center/v1p1beta1/credentials.rb +0 -41
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/asset.rb +0 -105
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/finding.rb +0 -96
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/notification_config.rb +0 -87
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +0 -72
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/security_marks.rb +0 -45
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +0 -923
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/cloud/securitycenter/v1p1beta1/source.rb +0 -49
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/iam/v1/policy.rb +0 -151
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/security_center/v1p1beta1/doc/google/type/expr.rb +0 -45
- data/lib/google/cloud/security_center/v1p1beta1/finding_pb.rb +0 -36
- data/lib/google/cloud/security_center/v1p1beta1/helpers.rb +0 -71
- data/lib/google/cloud/security_center/v1p1beta1/notification_config_pb.rb +0 -34
- data/lib/google/cloud/security_center/v1p1beta1/notification_message_pb.rb +0 -21
- data/lib/google/cloud/security_center/v1p1beta1/organization_settings_pb.rb +0 -30
- data/lib/google/cloud/security_center/v1p1beta1/run_asset_discovery_response_pb.rb +0 -25
- data/lib/google/cloud/security_center/v1p1beta1/security_center_client.rb +0 -2093
- data/lib/google/cloud/security_center/v1p1beta1/security_center_client_config.json +0 -141
- data/lib/google/cloud/security_center/v1p1beta1/security_marks_pb.rb +0 -18
- data/lib/google/cloud/security_center/v1p1beta1/securitycenter_service_pb.rb +0 -234
- data/lib/google/cloud/security_center/v1p1beta1/securitycenter_service_services_pb.rb +0 -103
- data/lib/google/cloud/security_center/v1p1beta1/source_pb.rb +0 -19
@@ -1,141 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.cloud.securitycenter.v1p1beta1.SecurityCenter": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.3,
|
15
|
-
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis": 20000,
|
17
|
-
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis": 20000,
|
19
|
-
"total_timeout_millis": 600000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"CreateSource": {
|
24
|
-
"timeout_millis": 60000,
|
25
|
-
"retry_codes_name": "non_idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
},
|
28
|
-
"CreateFinding": {
|
29
|
-
"timeout_millis": 60000,
|
30
|
-
"retry_codes_name": "non_idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
},
|
33
|
-
"CreateNotificationConfig": {
|
34
|
-
"timeout_millis": 60000,
|
35
|
-
"retry_codes_name": "non_idempotent",
|
36
|
-
"retry_params_name": "default"
|
37
|
-
},
|
38
|
-
"DeleteNotificationConfig": {
|
39
|
-
"timeout_millis": 60000,
|
40
|
-
"retry_codes_name": "non_idempotent",
|
41
|
-
"retry_params_name": "default"
|
42
|
-
},
|
43
|
-
"GetIamPolicy": {
|
44
|
-
"timeout_millis": 60000,
|
45
|
-
"retry_codes_name": "non_idempotent",
|
46
|
-
"retry_params_name": "default"
|
47
|
-
},
|
48
|
-
"GetNotificationConfig": {
|
49
|
-
"timeout_millis": 60000,
|
50
|
-
"retry_codes_name": "idempotent",
|
51
|
-
"retry_params_name": "default"
|
52
|
-
},
|
53
|
-
"GetOrganizationSettings": {
|
54
|
-
"timeout_millis": 60000,
|
55
|
-
"retry_codes_name": "idempotent",
|
56
|
-
"retry_params_name": "default"
|
57
|
-
},
|
58
|
-
"GetSource": {
|
59
|
-
"timeout_millis": 60000,
|
60
|
-
"retry_codes_name": "idempotent",
|
61
|
-
"retry_params_name": "default"
|
62
|
-
},
|
63
|
-
"GroupAssets": {
|
64
|
-
"timeout_millis": 60000,
|
65
|
-
"retry_codes_name": "non_idempotent",
|
66
|
-
"retry_params_name": "default"
|
67
|
-
},
|
68
|
-
"GroupFindings": {
|
69
|
-
"timeout_millis": 60000,
|
70
|
-
"retry_codes_name": "non_idempotent",
|
71
|
-
"retry_params_name": "default"
|
72
|
-
},
|
73
|
-
"ListAssets": {
|
74
|
-
"timeout_millis": 60000,
|
75
|
-
"retry_codes_name": "idempotent",
|
76
|
-
"retry_params_name": "default"
|
77
|
-
},
|
78
|
-
"ListFindings": {
|
79
|
-
"timeout_millis": 60000,
|
80
|
-
"retry_codes_name": "idempotent",
|
81
|
-
"retry_params_name": "default"
|
82
|
-
},
|
83
|
-
"ListNotificationConfigs": {
|
84
|
-
"timeout_millis": 60000,
|
85
|
-
"retry_codes_name": "idempotent",
|
86
|
-
"retry_params_name": "default"
|
87
|
-
},
|
88
|
-
"ListSources": {
|
89
|
-
"timeout_millis": 60000,
|
90
|
-
"retry_codes_name": "idempotent",
|
91
|
-
"retry_params_name": "default"
|
92
|
-
},
|
93
|
-
"RunAssetDiscovery": {
|
94
|
-
"timeout_millis": 60000,
|
95
|
-
"retry_codes_name": "non_idempotent",
|
96
|
-
"retry_params_name": "default"
|
97
|
-
},
|
98
|
-
"SetFindingState": {
|
99
|
-
"timeout_millis": 60000,
|
100
|
-
"retry_codes_name": "non_idempotent",
|
101
|
-
"retry_params_name": "default"
|
102
|
-
},
|
103
|
-
"SetIamPolicy": {
|
104
|
-
"timeout_millis": 60000,
|
105
|
-
"retry_codes_name": "non_idempotent",
|
106
|
-
"retry_params_name": "default"
|
107
|
-
},
|
108
|
-
"TestIamPermissions": {
|
109
|
-
"timeout_millis": 60000,
|
110
|
-
"retry_codes_name": "non_idempotent",
|
111
|
-
"retry_params_name": "default"
|
112
|
-
},
|
113
|
-
"UpdateFinding": {
|
114
|
-
"timeout_millis": 60000,
|
115
|
-
"retry_codes_name": "non_idempotent",
|
116
|
-
"retry_params_name": "default"
|
117
|
-
},
|
118
|
-
"UpdateNotificationConfig": {
|
119
|
-
"timeout_millis": 60000,
|
120
|
-
"retry_codes_name": "non_idempotent",
|
121
|
-
"retry_params_name": "default"
|
122
|
-
},
|
123
|
-
"UpdateOrganizationSettings": {
|
124
|
-
"timeout_millis": 60000,
|
125
|
-
"retry_codes_name": "non_idempotent",
|
126
|
-
"retry_params_name": "default"
|
127
|
-
},
|
128
|
-
"UpdateSource": {
|
129
|
-
"timeout_millis": 60000,
|
130
|
-
"retry_codes_name": "non_idempotent",
|
131
|
-
"retry_params_name": "default"
|
132
|
-
},
|
133
|
-
"UpdateSecurityMarks": {
|
134
|
-
"timeout_millis": 60000,
|
135
|
-
"retry_codes_name": "non_idempotent",
|
136
|
-
"retry_params_name": "default"
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/security_center/v1p1beta1/security_marks.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/resource_pb'
|
9
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
-
add_message "google.cloud.securitycenter.v1p1beta1.SecurityMarks" do
|
11
|
-
optional :name, :string, 1
|
12
|
-
map :marks, :string, :string, 2
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
module Google::Cloud::SecurityCenter::V1p1beta1
|
17
|
-
SecurityMarks = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.SecurityMarks").msgclass
|
18
|
-
end
|
@@ -1,234 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/security_center/v1p1beta1/securitycenter_service.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/cloud/security_center/v1p1beta1/run_asset_discovery_response_pb'
|
8
|
-
require 'google/api/annotations_pb'
|
9
|
-
require 'google/api/client_pb'
|
10
|
-
require 'google/api/field_behavior_pb'
|
11
|
-
require 'google/api/resource_pb'
|
12
|
-
require 'google/cloud/security_center/v1p1beta1/asset_pb'
|
13
|
-
require 'google/cloud/security_center/v1p1beta1/finding_pb'
|
14
|
-
require 'google/cloud/security_center/v1p1beta1/notification_config_pb'
|
15
|
-
require 'google/cloud/security_center/v1p1beta1/organization_settings_pb'
|
16
|
-
require 'google/cloud/security_center/v1p1beta1/security_marks_pb'
|
17
|
-
require 'google/cloud/security_center/v1p1beta1/source_pb'
|
18
|
-
require 'google/iam/v1/iam_policy_pb'
|
19
|
-
require 'google/iam/v1/policy_pb'
|
20
|
-
require 'google/longrunning/operations_pb'
|
21
|
-
require 'google/protobuf/duration_pb'
|
22
|
-
require 'google/protobuf/empty_pb'
|
23
|
-
require 'google/protobuf/field_mask_pb'
|
24
|
-
require 'google/protobuf/struct_pb'
|
25
|
-
require 'google/protobuf/timestamp_pb'
|
26
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
27
|
-
add_message "google.cloud.securitycenter.v1p1beta1.CreateFindingRequest" do
|
28
|
-
optional :parent, :string, 1
|
29
|
-
optional :finding_id, :string, 2
|
30
|
-
optional :finding, :message, 3, "google.cloud.securitycenter.v1p1beta1.Finding"
|
31
|
-
end
|
32
|
-
add_message "google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest" do
|
33
|
-
optional :parent, :string, 1
|
34
|
-
optional :config_id, :string, 2
|
35
|
-
optional :notification_config, :message, 3, "google.cloud.securitycenter.v1p1beta1.NotificationConfig"
|
36
|
-
end
|
37
|
-
add_message "google.cloud.securitycenter.v1p1beta1.CreateSourceRequest" do
|
38
|
-
optional :parent, :string, 1
|
39
|
-
optional :source, :message, 2, "google.cloud.securitycenter.v1p1beta1.Source"
|
40
|
-
end
|
41
|
-
add_message "google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest" do
|
42
|
-
optional :name, :string, 1
|
43
|
-
end
|
44
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest" do
|
45
|
-
optional :name, :string, 1
|
46
|
-
end
|
47
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest" do
|
48
|
-
optional :name, :string, 1
|
49
|
-
end
|
50
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GetSourceRequest" do
|
51
|
-
optional :name, :string, 1
|
52
|
-
end
|
53
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest" do
|
54
|
-
optional :parent, :string, 1
|
55
|
-
optional :filter, :string, 2
|
56
|
-
optional :group_by, :string, 3
|
57
|
-
optional :compare_duration, :message, 4, "google.protobuf.Duration"
|
58
|
-
optional :read_time, :message, 5, "google.protobuf.Timestamp"
|
59
|
-
optional :having, :string, 6
|
60
|
-
optional :page_token, :string, 7
|
61
|
-
optional :page_size, :int32, 8
|
62
|
-
end
|
63
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse" do
|
64
|
-
repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1p1beta1.GroupResult"
|
65
|
-
optional :read_time, :message, 2, "google.protobuf.Timestamp"
|
66
|
-
optional :next_page_token, :string, 3
|
67
|
-
optional :total_size, :int32, 4
|
68
|
-
end
|
69
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest" do
|
70
|
-
optional :parent, :string, 1
|
71
|
-
optional :filter, :string, 2
|
72
|
-
optional :group_by, :string, 3
|
73
|
-
optional :read_time, :message, 4, "google.protobuf.Timestamp"
|
74
|
-
optional :compare_duration, :message, 5, "google.protobuf.Duration"
|
75
|
-
optional :having, :string, 6
|
76
|
-
optional :page_token, :string, 7
|
77
|
-
optional :page_size, :int32, 8
|
78
|
-
end
|
79
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse" do
|
80
|
-
repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1p1beta1.GroupResult"
|
81
|
-
optional :read_time, :message, 2, "google.protobuf.Timestamp"
|
82
|
-
optional :next_page_token, :string, 3
|
83
|
-
optional :total_size, :int32, 4
|
84
|
-
end
|
85
|
-
add_message "google.cloud.securitycenter.v1p1beta1.GroupResult" do
|
86
|
-
map :properties, :string, :message, 1, "google.protobuf.Value"
|
87
|
-
optional :count, :int64, 2
|
88
|
-
end
|
89
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest" do
|
90
|
-
optional :parent, :string, 1
|
91
|
-
optional :page_token, :string, 2
|
92
|
-
optional :page_size, :int32, 3
|
93
|
-
end
|
94
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse" do
|
95
|
-
repeated :notification_configs, :message, 1, "google.cloud.securitycenter.v1p1beta1.NotificationConfig"
|
96
|
-
optional :next_page_token, :string, 2
|
97
|
-
end
|
98
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListSourcesRequest" do
|
99
|
-
optional :parent, :string, 1
|
100
|
-
optional :page_token, :string, 2
|
101
|
-
optional :page_size, :int32, 7
|
102
|
-
end
|
103
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListSourcesResponse" do
|
104
|
-
repeated :sources, :message, 1, "google.cloud.securitycenter.v1p1beta1.Source"
|
105
|
-
optional :next_page_token, :string, 2
|
106
|
-
end
|
107
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListAssetsRequest" do
|
108
|
-
optional :parent, :string, 1
|
109
|
-
optional :filter, :string, 2
|
110
|
-
optional :order_by, :string, 3
|
111
|
-
optional :read_time, :message, 4, "google.protobuf.Timestamp"
|
112
|
-
optional :compare_duration, :message, 5, "google.protobuf.Duration"
|
113
|
-
optional :having, :string, 6
|
114
|
-
optional :field_mask, :message, 7, "google.protobuf.FieldMask"
|
115
|
-
optional :page_token, :string, 8
|
116
|
-
optional :page_size, :int32, 9
|
117
|
-
end
|
118
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListAssetsResponse" do
|
119
|
-
repeated :list_assets_results, :message, 1, "google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult"
|
120
|
-
optional :read_time, :message, 2, "google.protobuf.Timestamp"
|
121
|
-
optional :next_page_token, :string, 3
|
122
|
-
optional :total_size, :int32, 4
|
123
|
-
end
|
124
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult" do
|
125
|
-
optional :asset, :message, 1, "google.cloud.securitycenter.v1p1beta1.Asset"
|
126
|
-
optional :state_change, :enum, 2, "google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange"
|
127
|
-
end
|
128
|
-
add_enum "google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange" do
|
129
|
-
value :UNUSED, 0
|
130
|
-
value :ADDED, 1
|
131
|
-
value :REMOVED, 2
|
132
|
-
value :ACTIVE, 3
|
133
|
-
end
|
134
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListFindingsRequest" do
|
135
|
-
optional :parent, :string, 1
|
136
|
-
optional :filter, :string, 2
|
137
|
-
optional :order_by, :string, 3
|
138
|
-
optional :read_time, :message, 4, "google.protobuf.Timestamp"
|
139
|
-
optional :compare_duration, :message, 5, "google.protobuf.Duration"
|
140
|
-
optional :having, :string, 6
|
141
|
-
optional :field_mask, :message, 7, "google.protobuf.FieldMask"
|
142
|
-
optional :page_token, :string, 8
|
143
|
-
optional :page_size, :int32, 9
|
144
|
-
end
|
145
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse" do
|
146
|
-
repeated :list_findings_results, :message, 1, "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult"
|
147
|
-
optional :read_time, :message, 2, "google.protobuf.Timestamp"
|
148
|
-
optional :next_page_token, :string, 3
|
149
|
-
optional :total_size, :int32, 4
|
150
|
-
end
|
151
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult" do
|
152
|
-
optional :finding, :message, 1, "google.cloud.securitycenter.v1p1beta1.Finding"
|
153
|
-
optional :state_change, :enum, 2, "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange"
|
154
|
-
optional :resource, :message, 3, "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource"
|
155
|
-
end
|
156
|
-
add_message "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource" do
|
157
|
-
optional :name, :string, 1
|
158
|
-
optional :project_name, :string, 2
|
159
|
-
optional :project_display_name, :string, 3
|
160
|
-
optional :parent_name, :string, 4
|
161
|
-
optional :parent_display_name, :string, 5
|
162
|
-
end
|
163
|
-
add_enum "google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange" do
|
164
|
-
value :UNUSED, 0
|
165
|
-
value :CHANGED, 1
|
166
|
-
value :UNCHANGED, 2
|
167
|
-
value :ADDED, 3
|
168
|
-
value :REMOVED, 4
|
169
|
-
end
|
170
|
-
add_message "google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest" do
|
171
|
-
optional :name, :string, 1
|
172
|
-
optional :state, :enum, 2, "google.cloud.securitycenter.v1p1beta1.Finding.State"
|
173
|
-
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
174
|
-
end
|
175
|
-
add_message "google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest" do
|
176
|
-
optional :parent, :string, 1
|
177
|
-
end
|
178
|
-
add_message "google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest" do
|
179
|
-
optional :finding, :message, 1, "google.cloud.securitycenter.v1p1beta1.Finding"
|
180
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
181
|
-
end
|
182
|
-
add_message "google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest" do
|
183
|
-
optional :notification_config, :message, 1, "google.cloud.securitycenter.v1p1beta1.NotificationConfig"
|
184
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
185
|
-
end
|
186
|
-
add_message "google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest" do
|
187
|
-
optional :organization_settings, :message, 1, "google.cloud.securitycenter.v1p1beta1.OrganizationSettings"
|
188
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
189
|
-
end
|
190
|
-
add_message "google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest" do
|
191
|
-
optional :source, :message, 1, "google.cloud.securitycenter.v1p1beta1.Source"
|
192
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
193
|
-
end
|
194
|
-
add_message "google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest" do
|
195
|
-
optional :security_marks, :message, 1, "google.cloud.securitycenter.v1p1beta1.SecurityMarks"
|
196
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
197
|
-
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
module Google::Cloud::SecurityCenter::V1p1beta1
|
202
|
-
CreateFindingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.CreateFindingRequest").msgclass
|
203
|
-
CreateNotificationConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest").msgclass
|
204
|
-
CreateSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.CreateSourceRequest").msgclass
|
205
|
-
DeleteNotificationConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest").msgclass
|
206
|
-
GetNotificationConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest").msgclass
|
207
|
-
GetOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest").msgclass
|
208
|
-
GetSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GetSourceRequest").msgclass
|
209
|
-
GroupAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest").msgclass
|
210
|
-
GroupAssetsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse").msgclass
|
211
|
-
GroupFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest").msgclass
|
212
|
-
GroupFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse").msgclass
|
213
|
-
GroupResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.GroupResult").msgclass
|
214
|
-
ListNotificationConfigsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest").msgclass
|
215
|
-
ListNotificationConfigsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse").msgclass
|
216
|
-
ListSourcesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListSourcesRequest").msgclass
|
217
|
-
ListSourcesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListSourcesResponse").msgclass
|
218
|
-
ListAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListAssetsRequest").msgclass
|
219
|
-
ListAssetsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListAssetsResponse").msgclass
|
220
|
-
ListAssetsResponse::ListAssetsResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult").msgclass
|
221
|
-
ListAssetsResponse::ListAssetsResult::StateChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange").enummodule
|
222
|
-
ListFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListFindingsRequest").msgclass
|
223
|
-
ListFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListFindingsResponse").msgclass
|
224
|
-
ListFindingsResponse::ListFindingsResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult").msgclass
|
225
|
-
ListFindingsResponse::ListFindingsResult::Resource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource").msgclass
|
226
|
-
ListFindingsResponse::ListFindingsResult::StateChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange").enummodule
|
227
|
-
SetFindingStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest").msgclass
|
228
|
-
RunAssetDiscoveryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest").msgclass
|
229
|
-
UpdateFindingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest").msgclass
|
230
|
-
UpdateNotificationConfigRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest").msgclass
|
231
|
-
UpdateOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest").msgclass
|
232
|
-
UpdateSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest").msgclass
|
233
|
-
UpdateSecurityMarksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest").msgclass
|
234
|
-
end
|
@@ -1,103 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/security_center/v1p1beta1/securitycenter_service.proto for package 'Google::Cloud::SecurityCenter::V1p1beta1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/cloud/security_center/v1p1beta1/securitycenter_service_pb'
|
23
|
-
|
24
|
-
module Google::Cloud::SecurityCenter::V1p1beta1
|
25
|
-
module SecurityCenter
|
26
|
-
# V1p1Beta1 APIs for Security Center service.
|
27
|
-
class Service
|
28
|
-
|
29
|
-
include GRPC::GenericService
|
30
|
-
|
31
|
-
self.marshal_class_method = :encode
|
32
|
-
self.unmarshal_class_method = :decode
|
33
|
-
self.service_name = 'google.cloud.securitycenter.v1p1beta1.SecurityCenter'
|
34
|
-
|
35
|
-
# Creates a source.
|
36
|
-
rpc :CreateSource, CreateSourceRequest, Source
|
37
|
-
#
|
38
|
-
# Creates a finding. The corresponding source must exist for finding
|
39
|
-
# creation to succeed.
|
40
|
-
rpc :CreateFinding, CreateFindingRequest, Finding
|
41
|
-
# Creates a notification config.
|
42
|
-
rpc :CreateNotificationConfig, CreateNotificationConfigRequest, NotificationConfig
|
43
|
-
# Deletes a notification config.
|
44
|
-
rpc :DeleteNotificationConfig, DeleteNotificationConfigRequest, Google::Protobuf::Empty
|
45
|
-
# Gets the access control policy on the specified Source.
|
46
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
47
|
-
# Gets a notification config.
|
48
|
-
rpc :GetNotificationConfig, GetNotificationConfigRequest, NotificationConfig
|
49
|
-
# Gets the settings for an organization.
|
50
|
-
rpc :GetOrganizationSettings, GetOrganizationSettingsRequest, OrganizationSettings
|
51
|
-
# Gets a source.
|
52
|
-
rpc :GetSource, GetSourceRequest, Source
|
53
|
-
# Filters an organization's assets and groups them by their specified
|
54
|
-
# properties.
|
55
|
-
rpc :GroupAssets, GroupAssetsRequest, GroupAssetsResponse
|
56
|
-
# Filters an organization or source's findings and groups them by their
|
57
|
-
# specified properties.
|
58
|
-
#
|
59
|
-
# To group across all sources provide a `-` as the source id.
|
60
|
-
# Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
|
61
|
-
rpc :GroupFindings, GroupFindingsRequest, GroupFindingsResponse
|
62
|
-
# Lists an organization's assets.
|
63
|
-
rpc :ListAssets, ListAssetsRequest, ListAssetsResponse
|
64
|
-
# Lists an organization or source's findings.
|
65
|
-
#
|
66
|
-
# To list across all sources provide a `-` as the source id.
|
67
|
-
# Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
|
68
|
-
rpc :ListFindings, ListFindingsRequest, ListFindingsResponse
|
69
|
-
# Lists notification configs.
|
70
|
-
rpc :ListNotificationConfigs, ListNotificationConfigsRequest, ListNotificationConfigsResponse
|
71
|
-
# Lists all sources belonging to an organization.
|
72
|
-
rpc :ListSources, ListSourcesRequest, ListSourcesResponse
|
73
|
-
# Runs asset discovery. The discovery is tracked with a long-running
|
74
|
-
# operation.
|
75
|
-
#
|
76
|
-
# This API can only be called with limited frequency for an organization. If
|
77
|
-
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
|
78
|
-
# error.
|
79
|
-
rpc :RunAssetDiscovery, RunAssetDiscoveryRequest, Google::Longrunning::Operation
|
80
|
-
#
|
81
|
-
# Updates the state of a finding.
|
82
|
-
rpc :SetFindingState, SetFindingStateRequest, Finding
|
83
|
-
# Sets the access control policy on the specified Source.
|
84
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
85
|
-
# Returns the permissions that a caller has on the specified source.
|
86
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
87
|
-
#
|
88
|
-
# Creates or updates a finding. The corresponding source must exist for a
|
89
|
-
# finding creation to succeed.
|
90
|
-
rpc :UpdateFinding, UpdateFindingRequest, Finding
|
91
|
-
# Updates a notification config.
|
92
|
-
rpc :UpdateNotificationConfig, UpdateNotificationConfigRequest, NotificationConfig
|
93
|
-
# Updates an organization's settings.
|
94
|
-
rpc :UpdateOrganizationSettings, UpdateOrganizationSettingsRequest, OrganizationSettings
|
95
|
-
# Updates a source.
|
96
|
-
rpc :UpdateSource, UpdateSourceRequest, Source
|
97
|
-
# Updates security marks.
|
98
|
-
rpc :UpdateSecurityMarks, UpdateSecurityMarksRequest, SecurityMarks
|
99
|
-
end
|
100
|
-
|
101
|
-
Stub = Service.rpc_stub_class
|
102
|
-
end
|
103
|
-
end
|