google-cloud-security_center 0.10.0 → 1.0.0

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