google-cloud-security_center 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +69 -0
  5. data/lib/google/cloud/security_center.rb +141 -0
  6. data/lib/google/cloud/security_center/v1.rb +139 -0
  7. data/lib/google/cloud/security_center/v1/asset_pb.rb +37 -0
  8. data/lib/google/cloud/security_center/v1/credentials.rb +41 -0
  9. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/asset.rb +96 -0
  10. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/finding.rb +94 -0
  11. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/organization_settings.rb +72 -0
  12. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/security_marks.rb +44 -0
  13. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/securitycenter_service.rb +759 -0
  14. data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/source.rb +51 -0
  15. data/lib/google/cloud/security_center/v1/doc/google/iam/v1/iam_policy.rb +63 -0
  16. data/lib/google/cloud/security_center/v1/doc/google/iam/v1/policy.rb +104 -0
  17. data/lib/google/cloud/security_center/v1/doc/google/longrunning/operations.rb +51 -0
  18. data/lib/google/cloud/security_center/v1/doc/google/protobuf/any.rb +131 -0
  19. data/lib/google/cloud/security_center/v1/doc/google/protobuf/duration.rb +91 -0
  20. data/lib/google/cloud/security_center/v1/doc/google/protobuf/field_mask.rb +222 -0
  21. data/lib/google/cloud/security_center/v1/doc/google/protobuf/struct.rb +74 -0
  22. data/lib/google/cloud/security_center/v1/doc/google/protobuf/timestamp.rb +111 -0
  23. data/lib/google/cloud/security_center/v1/doc/google/rpc/status.rb +87 -0
  24. data/lib/google/cloud/security_center/v1/finding_pb.rb +34 -0
  25. data/lib/google/cloud/security_center/v1/helpers.rb +87 -0
  26. data/lib/google/cloud/security_center/v1/organization_settings_pb.rb +29 -0
  27. data/lib/google/cloud/security_center/v1/security_center_client.rb +1772 -0
  28. data/lib/google/cloud/security_center/v1/security_center_client_config.json +116 -0
  29. data/lib/google/cloud/security_center/v1/security_marks_pb.rb +17 -0
  30. data/lib/google/cloud/security_center/v1/securitycenter_service_pb.rb +186 -0
  31. data/lib/google/cloud/security_center/v1/securitycenter_service_services_pb.rb +90 -0
  32. data/lib/google/cloud/security_center/v1/source_pb.rb +18 -0
  33. metadata +172 -0
@@ -0,0 +1,116 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.securitycenter.v1.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
+ "GetIamPolicy": {
34
+ "timeout_millis": 60000,
35
+ "retry_codes_name": "idempotent",
36
+ "retry_params_name": "default"
37
+ },
38
+ "GetOrganizationSettings": {
39
+ "timeout_millis": 60000,
40
+ "retry_codes_name": "idempotent",
41
+ "retry_params_name": "default"
42
+ },
43
+ "GetSource": {
44
+ "timeout_millis": 60000,
45
+ "retry_codes_name": "idempotent",
46
+ "retry_params_name": "default"
47
+ },
48
+ "GroupAssets": {
49
+ "timeout_millis": 60000,
50
+ "retry_codes_name": "idempotent",
51
+ "retry_params_name": "default"
52
+ },
53
+ "GroupFindings": {
54
+ "timeout_millis": 60000,
55
+ "retry_codes_name": "idempotent",
56
+ "retry_params_name": "default"
57
+ },
58
+ "ListAssets": {
59
+ "timeout_millis": 60000,
60
+ "retry_codes_name": "idempotent",
61
+ "retry_params_name": "default"
62
+ },
63
+ "ListFindings": {
64
+ "timeout_millis": 60000,
65
+ "retry_codes_name": "idempotent",
66
+ "retry_params_name": "default"
67
+ },
68
+ "ListSources": {
69
+ "timeout_millis": 60000,
70
+ "retry_codes_name": "idempotent",
71
+ "retry_params_name": "default"
72
+ },
73
+ "RunAssetDiscovery": {
74
+ "timeout_millis": 60000,
75
+ "retry_codes_name": "non_idempotent",
76
+ "retry_params_name": "default"
77
+ },
78
+ "SetFindingState": {
79
+ "timeout_millis": 60000,
80
+ "retry_codes_name": "non_idempotent",
81
+ "retry_params_name": "default"
82
+ },
83
+ "SetIamPolicy": {
84
+ "timeout_millis": 60000,
85
+ "retry_codes_name": "non_idempotent",
86
+ "retry_params_name": "default"
87
+ },
88
+ "TestIamPermissions": {
89
+ "timeout_millis": 60000,
90
+ "retry_codes_name": "idempotent",
91
+ "retry_params_name": "default"
92
+ },
93
+ "UpdateFinding": {
94
+ "timeout_millis": 60000,
95
+ "retry_codes_name": "non_idempotent",
96
+ "retry_params_name": "default"
97
+ },
98
+ "UpdateOrganizationSettings": {
99
+ "timeout_millis": 60000,
100
+ "retry_codes_name": "non_idempotent",
101
+ "retry_params_name": "default"
102
+ },
103
+ "UpdateSource": {
104
+ "timeout_millis": 60000,
105
+ "retry_codes_name": "non_idempotent",
106
+ "retry_params_name": "default"
107
+ },
108
+ "UpdateSecurityMarks": {
109
+ "timeout_millis": 60000,
110
+ "retry_codes_name": "non_idempotent",
111
+ "retry_params_name": "default"
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,17 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/security_center/v1/security_marks.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.cloud.securitycenter.v1.SecurityMarks" do
10
+ optional :name, :string, 1
11
+ map :marks, :string, :string, 2
12
+ end
13
+ end
14
+
15
+ module Google::Cloud::SecurityCenter::V1
16
+ SecurityMarks = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SecurityMarks").msgclass
17
+ end
@@ -0,0 +1,186 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/security_center/v1/securitycenter_service.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/cloud/security_center/v1/asset_pb'
9
+ require 'google/cloud/security_center/v1/finding_pb'
10
+ require 'google/cloud/security_center/v1/organization_settings_pb'
11
+ require 'google/cloud/security_center/v1/security_marks_pb'
12
+ require 'google/cloud/security_center/v1/source_pb'
13
+ require 'google/iam/v1/iam_policy_pb'
14
+ require 'google/iam/v1/policy_pb'
15
+ require 'google/longrunning/operations_pb'
16
+ require 'google/protobuf/duration_pb'
17
+ require 'google/protobuf/empty_pb'
18
+ require 'google/protobuf/field_mask_pb'
19
+ require 'google/protobuf/struct_pb'
20
+ require 'google/protobuf/timestamp_pb'
21
+ Google::Protobuf::DescriptorPool.generated_pool.build do
22
+ add_message "google.cloud.securitycenter.v1.CreateFindingRequest" do
23
+ optional :parent, :string, 1
24
+ optional :finding_id, :string, 2
25
+ optional :finding, :message, 3, "google.cloud.securitycenter.v1.Finding"
26
+ end
27
+ add_message "google.cloud.securitycenter.v1.CreateSourceRequest" do
28
+ optional :parent, :string, 1
29
+ optional :source, :message, 2, "google.cloud.securitycenter.v1.Source"
30
+ end
31
+ add_message "google.cloud.securitycenter.v1.GetOrganizationSettingsRequest" do
32
+ optional :name, :string, 1
33
+ end
34
+ add_message "google.cloud.securitycenter.v1.GetSourceRequest" do
35
+ optional :name, :string, 1
36
+ end
37
+ add_message "google.cloud.securitycenter.v1.GroupAssetsRequest" do
38
+ optional :parent, :string, 1
39
+ optional :filter, :string, 2
40
+ optional :group_by, :string, 3
41
+ optional :compare_duration, :message, 4, "google.protobuf.Duration"
42
+ optional :read_time, :message, 5, "google.protobuf.Timestamp"
43
+ optional :page_token, :string, 7
44
+ optional :page_size, :int32, 8
45
+ end
46
+ add_message "google.cloud.securitycenter.v1.GroupAssetsResponse" do
47
+ repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1.GroupResult"
48
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
49
+ optional :next_page_token, :string, 3
50
+ optional :total_size, :int32, 4
51
+ end
52
+ add_message "google.cloud.securitycenter.v1.GroupFindingsRequest" do
53
+ optional :parent, :string, 1
54
+ optional :filter, :string, 2
55
+ optional :group_by, :string, 3
56
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
57
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
58
+ optional :page_token, :string, 7
59
+ optional :page_size, :int32, 8
60
+ end
61
+ add_message "google.cloud.securitycenter.v1.GroupFindingsResponse" do
62
+ repeated :group_by_results, :message, 1, "google.cloud.securitycenter.v1.GroupResult"
63
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
64
+ optional :next_page_token, :string, 3
65
+ optional :total_size, :int32, 4
66
+ end
67
+ add_message "google.cloud.securitycenter.v1.GroupResult" do
68
+ map :properties, :string, :message, 1, "google.protobuf.Value"
69
+ optional :count, :int64, 2
70
+ end
71
+ add_message "google.cloud.securitycenter.v1.ListSourcesRequest" do
72
+ optional :parent, :string, 1
73
+ optional :page_token, :string, 2
74
+ optional :page_size, :int32, 7
75
+ end
76
+ add_message "google.cloud.securitycenter.v1.ListSourcesResponse" do
77
+ repeated :sources, :message, 1, "google.cloud.securitycenter.v1.Source"
78
+ optional :next_page_token, :string, 2
79
+ end
80
+ add_message "google.cloud.securitycenter.v1.ListAssetsRequest" do
81
+ optional :parent, :string, 1
82
+ optional :filter, :string, 2
83
+ optional :order_by, :string, 3
84
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
85
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
86
+ optional :field_mask, :message, 7, "google.protobuf.FieldMask"
87
+ optional :page_token, :string, 8
88
+ optional :page_size, :int32, 9
89
+ end
90
+ add_message "google.cloud.securitycenter.v1.ListAssetsResponse" do
91
+ repeated :list_assets_results, :message, 1, "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult"
92
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
93
+ optional :next_page_token, :string, 3
94
+ optional :total_size, :int32, 4
95
+ end
96
+ add_message "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult" do
97
+ optional :asset, :message, 1, "google.cloud.securitycenter.v1.Asset"
98
+ optional :state_change, :enum, 2, "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange"
99
+ end
100
+ add_enum "google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange" do
101
+ value :UNUSED, 0
102
+ value :ADDED, 1
103
+ value :REMOVED, 2
104
+ value :ACTIVE, 3
105
+ end
106
+ add_message "google.cloud.securitycenter.v1.ListFindingsRequest" do
107
+ optional :parent, :string, 1
108
+ optional :filter, :string, 2
109
+ optional :order_by, :string, 3
110
+ optional :read_time, :message, 4, "google.protobuf.Timestamp"
111
+ optional :compare_duration, :message, 5, "google.protobuf.Duration"
112
+ optional :field_mask, :message, 7, "google.protobuf.FieldMask"
113
+ optional :page_token, :string, 8
114
+ optional :page_size, :int32, 9
115
+ end
116
+ add_message "google.cloud.securitycenter.v1.ListFindingsResponse" do
117
+ repeated :list_findings_results, :message, 1, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult"
118
+ optional :read_time, :message, 2, "google.protobuf.Timestamp"
119
+ optional :next_page_token, :string, 3
120
+ optional :total_size, :int32, 4
121
+ end
122
+ add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult" do
123
+ optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
124
+ optional :state_change, :enum, 2, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange"
125
+ end
126
+ add_enum "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange" do
127
+ value :UNUSED, 0
128
+ value :CHANGED, 1
129
+ value :UNCHANGED, 2
130
+ value :ADDED, 3
131
+ value :REMOVED, 4
132
+ end
133
+ add_message "google.cloud.securitycenter.v1.SetFindingStateRequest" do
134
+ optional :name, :string, 1
135
+ optional :state, :enum, 2, "google.cloud.securitycenter.v1.Finding.State"
136
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
137
+ end
138
+ add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryRequest" do
139
+ optional :parent, :string, 1
140
+ end
141
+ add_message "google.cloud.securitycenter.v1.UpdateFindingRequest" do
142
+ optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
143
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
144
+ end
145
+ add_message "google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest" do
146
+ optional :organization_settings, :message, 1, "google.cloud.securitycenter.v1.OrganizationSettings"
147
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
148
+ end
149
+ add_message "google.cloud.securitycenter.v1.UpdateSourceRequest" do
150
+ optional :source, :message, 1, "google.cloud.securitycenter.v1.Source"
151
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
152
+ end
153
+ add_message "google.cloud.securitycenter.v1.UpdateSecurityMarksRequest" do
154
+ optional :security_marks, :message, 1, "google.cloud.securitycenter.v1.SecurityMarks"
155
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
156
+ optional :start_time, :message, 3, "google.protobuf.Timestamp"
157
+ end
158
+ end
159
+
160
+ module Google::Cloud::SecurityCenter::V1
161
+ CreateFindingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CreateFindingRequest").msgclass
162
+ CreateSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.CreateSourceRequest").msgclass
163
+ GetOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetOrganizationSettingsRequest").msgclass
164
+ GetSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetSourceRequest").msgclass
165
+ GroupAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupAssetsRequest").msgclass
166
+ GroupAssetsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupAssetsResponse").msgclass
167
+ GroupFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsRequest").msgclass
168
+ GroupFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsResponse").msgclass
169
+ GroupResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupResult").msgclass
170
+ ListSourcesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesRequest").msgclass
171
+ ListSourcesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesResponse").msgclass
172
+ ListAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsRequest").msgclass
173
+ ListAssetsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse").msgclass
174
+ ListAssetsResponse::ListAssetsResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult").msgclass
175
+ ListAssetsResponse::ListAssetsResult::StateChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange").enummodule
176
+ ListFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsRequest").msgclass
177
+ ListFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse").msgclass
178
+ ListFindingsResponse::ListFindingsResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult").msgclass
179
+ ListFindingsResponse::ListFindingsResult::StateChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange").enummodule
180
+ SetFindingStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SetFindingStateRequest").msgclass
181
+ RunAssetDiscoveryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryRequest").msgclass
182
+ UpdateFindingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateFindingRequest").msgclass
183
+ UpdateOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest").msgclass
184
+ UpdateSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSourceRequest").msgclass
185
+ UpdateSecurityMarksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSecurityMarksRequest").msgclass
186
+ end
@@ -0,0 +1,90 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/security_center/v1/securitycenter_service.proto for package 'Google::Cloud::SecurityCenter::V1'
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/v1/securitycenter_service_pb'
23
+
24
+ module Google::Cloud::SecurityCenter::V1
25
+ module SecurityCenter
26
+ # V1 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.v1.SecurityCenter'
34
+
35
+ # Creates a source.
36
+ rpc :CreateSource, CreateSourceRequest, Source
37
+ # Creates a finding. The corresponding source must exist for finding creation
38
+ # to succeed.
39
+ rpc :CreateFinding, CreateFindingRequest, Finding
40
+ # Gets the access control policy on the specified Source.
41
+ rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
42
+ # Gets the settings for an organization.
43
+ rpc :GetOrganizationSettings, GetOrganizationSettingsRequest, OrganizationSettings
44
+ # Gets a source.
45
+ rpc :GetSource, GetSourceRequest, Source
46
+ # Filters an organization's assets and groups them by their specified
47
+ # properties.
48
+ rpc :GroupAssets, GroupAssetsRequest, GroupAssetsResponse
49
+ # Filters an organization or source's findings and groups them by their
50
+ # specified properties.
51
+ #
52
+ # To group across all sources provide a `-` as the source id.
53
+ # Example: /v1/organizations/123/sources/-/findings
54
+ rpc :GroupFindings, GroupFindingsRequest, GroupFindingsResponse
55
+ # Lists an organization's assets.
56
+ rpc :ListAssets, ListAssetsRequest, ListAssetsResponse
57
+ # Lists an organization or source's findings.
58
+ #
59
+ # To list across all sources provide a `-` as the source id.
60
+ # Example: /v1/organizations/123/sources/-/findings
61
+ rpc :ListFindings, ListFindingsRequest, ListFindingsResponse
62
+ # Lists all sources belonging to an organization.
63
+ rpc :ListSources, ListSourcesRequest, ListSourcesResponse
64
+ # Runs asset discovery. The discovery is tracked with a long-running
65
+ # operation.
66
+ #
67
+ # This API can only be called with limited frequency for an organization. If
68
+ # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
69
+ # error.
70
+ rpc :RunAssetDiscovery, RunAssetDiscoveryRequest, Google::Longrunning::Operation
71
+ # Updates the state of a finding.
72
+ rpc :SetFindingState, SetFindingStateRequest, Finding
73
+ # Sets the access control policy on the specified Source.
74
+ rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
75
+ # Returns the permissions that a caller has on the specified source.
76
+ rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
77
+ # Creates or updates a finding. The corresponding source must exist for a
78
+ # finding creation to succeed.
79
+ rpc :UpdateFinding, UpdateFindingRequest, Finding
80
+ # Updates an organization's settings.
81
+ rpc :UpdateOrganizationSettings, UpdateOrganizationSettingsRequest, OrganizationSettings
82
+ # Updates a source.
83
+ rpc :UpdateSource, UpdateSourceRequest, Source
84
+ # Updates security marks.
85
+ rpc :UpdateSecurityMarks, UpdateSecurityMarksRequest, SecurityMarks
86
+ end
87
+
88
+ Stub = Service.rpc_stub_class
89
+ end
90
+ end
@@ -0,0 +1,18 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/security_center/v1/source.proto
3
+
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.cloud.securitycenter.v1.Source" do
10
+ optional :name, :string, 1
11
+ optional :display_name, :string, 2
12
+ optional :description, :string, 3
13
+ end
14
+ end
15
+
16
+ module Google::Cloud::SecurityCenter::V1
17
+ Source = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Source").msgclass
18
+ end
metadata ADDED
@@ -0,0 +1,172 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-security_center
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-gax
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: grpc-google-iam-v1
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.9
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.9
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: redcarpet
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.64.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.64.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ description: google-cloud-security_center is the official library for Cloud Security
112
+ Command Center API.
113
+ email: googleapis-packages@google.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".yardopts"
119
+ - LICENSE
120
+ - README.md
121
+ - lib/google/cloud/security_center.rb
122
+ - lib/google/cloud/security_center/v1.rb
123
+ - lib/google/cloud/security_center/v1/asset_pb.rb
124
+ - lib/google/cloud/security_center/v1/credentials.rb
125
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/asset.rb
126
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/finding.rb
127
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/organization_settings.rb
128
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/security_marks.rb
129
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/securitycenter_service.rb
130
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/source.rb
131
+ - lib/google/cloud/security_center/v1/doc/google/iam/v1/iam_policy.rb
132
+ - lib/google/cloud/security_center/v1/doc/google/iam/v1/policy.rb
133
+ - lib/google/cloud/security_center/v1/doc/google/longrunning/operations.rb
134
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/any.rb
135
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/duration.rb
136
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/field_mask.rb
137
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/struct.rb
138
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/timestamp.rb
139
+ - lib/google/cloud/security_center/v1/doc/google/rpc/status.rb
140
+ - lib/google/cloud/security_center/v1/finding_pb.rb
141
+ - lib/google/cloud/security_center/v1/helpers.rb
142
+ - lib/google/cloud/security_center/v1/organization_settings_pb.rb
143
+ - lib/google/cloud/security_center/v1/security_center_client.rb
144
+ - lib/google/cloud/security_center/v1/security_center_client_config.json
145
+ - lib/google/cloud/security_center/v1/security_marks_pb.rb
146
+ - lib/google/cloud/security_center/v1/securitycenter_service_pb.rb
147
+ - lib/google/cloud/security_center/v1/securitycenter_service_services_pb.rb
148
+ - lib/google/cloud/security_center/v1/source_pb.rb
149
+ homepage: https://github.com/googleapis/googleapis
150
+ licenses:
151
+ - Apache-2.0
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: 2.0.0
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubygems_version: 3.0.3
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: API Client library for Cloud Security Command Center API
172
+ test_files: []