google-cloud-security_center 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,21 @@
50
50
  "retry_codes_name": "non_idempotent",
51
51
  "retry_params_name": "default"
52
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
+ },
53
68
  "GetOrganizationSettings": {
54
69
  "timeout_millis": 60000,
55
70
  "retry_codes_name": "idempotent",
@@ -70,6 +85,11 @@
70
85
  "retry_codes_name": "idempotent",
71
86
  "retry_params_name": "default"
72
87
  },
88
+ "ListNotificationConfigs": {
89
+ "timeout_millis": 60000,
90
+ "retry_codes_name": "idempotent",
91
+ "retry_params_name": "default"
92
+ },
73
93
  "ListSources": {
74
94
  "timeout_millis": 60000,
75
95
  "retry_codes_name": "idempotent",
@@ -95,6 +115,11 @@
95
115
  "retry_codes_name": "non_idempotent",
96
116
  "retry_params_name": "default"
97
117
  },
118
+ "UpdateNotificationConfig": {
119
+ "timeout_millis": 60000,
120
+ "retry_codes_name": "non_idempotent",
121
+ "retry_params_name": "default"
122
+ },
98
123
  "UpdateOrganizationSettings": {
99
124
  "timeout_millis": 60000,
100
125
  "retry_codes_name": "non_idempotent",
@@ -4,8 +4,8 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/resource_pb'
8
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_message "google.cloud.securitycenter.v1.SecurityMarks" do
11
11
  optional :name, :string, 1
@@ -11,6 +11,7 @@ require 'google/api/field_behavior_pb'
11
11
  require 'google/api/resource_pb'
12
12
  require 'google/cloud/security_center/v1/asset_pb'
13
13
  require 'google/cloud/security_center/v1/finding_pb'
14
+ require 'google/cloud/security_center/v1/notification_config_pb'
14
15
  require 'google/cloud/security_center/v1/organization_settings_pb'
15
16
  require 'google/cloud/security_center/v1/security_marks_pb'
16
17
  require 'google/cloud/security_center/v1/source_pb'
@@ -28,10 +29,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
29
  optional :finding_id, :string, 2
29
30
  optional :finding, :message, 3, "google.cloud.securitycenter.v1.Finding"
30
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
31
37
  add_message "google.cloud.securitycenter.v1.CreateSourceRequest" do
32
38
  optional :parent, :string, 1
33
39
  optional :source, :message, 2, "google.cloud.securitycenter.v1.Source"
34
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
35
47
  add_message "google.cloud.securitycenter.v1.GetOrganizationSettingsRequest" do
36
48
  optional :name, :string, 1
37
49
  end
@@ -72,6 +84,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
84
  map :properties, :string, :message, 1, "google.protobuf.Value"
73
85
  optional :count, :int64, 2
74
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
75
96
  add_message "google.cloud.securitycenter.v1.ListSourcesRequest" do
76
97
  optional :parent, :string, 1
77
98
  optional :page_token, :string, 2
@@ -154,6 +175,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
154
175
  optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
155
176
  optional :update_mask, :message, 2, "google.protobuf.FieldMask"
156
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
157
182
  add_message "google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest" do
158
183
  optional :organization_settings, :message, 1, "google.cloud.securitycenter.v1.OrganizationSettings"
159
184
  optional :update_mask, :message, 2, "google.protobuf.FieldMask"
@@ -171,7 +196,10 @@ end
171
196
 
172
197
  module Google::Cloud::SecurityCenter::V1
173
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
174
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
175
203
  GetOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetOrganizationSettingsRequest").msgclass
176
204
  GetSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GetSourceRequest").msgclass
177
205
  GroupAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupAssetsRequest").msgclass
@@ -179,6 +207,8 @@ module Google::Cloud::SecurityCenter::V1
179
207
  GroupFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsRequest").msgclass
180
208
  GroupFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.GroupFindingsResponse").msgclass
181
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
182
212
  ListSourcesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesRequest").msgclass
183
213
  ListSourcesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListSourcesResponse").msgclass
184
214
  ListAssetsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListAssetsRequest").msgclass
@@ -193,6 +223,7 @@ module Google::Cloud::SecurityCenter::V1
193
223
  SetFindingStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SetFindingStateRequest").msgclass
194
224
  RunAssetDiscoveryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryRequest").msgclass
195
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
196
227
  UpdateOrganizationSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest").msgclass
197
228
  UpdateSourceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSourceRequest").msgclass
198
229
  UpdateSecurityMarksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.UpdateSecurityMarksRequest").msgclass
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/security_center/v1/securitycenter_service.proto for package 'Google::Cloud::SecurityCenter::V1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -37,8 +36,14 @@ module Google::Cloud::SecurityCenter::V1
37
36
  # Creates a finding. The corresponding source must exist for finding creation
38
37
  # to succeed.
39
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
40
43
  # Gets the access control policy on the specified Source.
41
44
  rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
45
+ # Gets a notification config.
46
+ rpc :GetNotificationConfig, GetNotificationConfigRequest, NotificationConfig
42
47
  # Gets the settings for an organization.
43
48
  rpc :GetOrganizationSettings, GetOrganizationSettingsRequest, OrganizationSettings
44
49
  # Gets a source.
@@ -59,6 +64,8 @@ module Google::Cloud::SecurityCenter::V1
59
64
  # To list across all sources provide a `-` as the source id.
60
65
  # Example: /v1/organizations/{organization_id}/sources/-/findings
61
66
  rpc :ListFindings, ListFindingsRequest, ListFindingsResponse
67
+ # Lists notification configs.
68
+ rpc :ListNotificationConfigs, ListNotificationConfigsRequest, ListNotificationConfigsResponse
62
69
  # Lists all sources belonging to an organization.
63
70
  rpc :ListSources, ListSourcesRequest, ListSourcesResponse
64
71
  # Runs asset discovery. The discovery is tracked with a long-running
@@ -77,6 +84,9 @@ module Google::Cloud::SecurityCenter::V1
77
84
  # Creates or updates a finding. The corresponding source must exist for a
78
85
  # finding creation to succeed.
79
86
  rpc :UpdateFinding, UpdateFindingRequest, Finding
87
+ #
88
+ # Updates a notification config.
89
+ rpc :UpdateNotificationConfig, UpdateNotificationConfigRequest, NotificationConfig
80
90
  # Updates an organization's settings.
81
91
  rpc :UpdateOrganizationSettings, UpdateOrganizationSettingsRequest, OrganizationSettings
82
92
  # Updates a source.
@@ -4,8 +4,8 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
- require 'google/api/resource_pb'
8
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/resource_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_message "google.cloud.securitycenter.v1.Source" do
11
11
  optional :name, :string, 1
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module SecurityCenter
19
- VERSION = "0.7.0".freeze
19
+ VERSION = "0.8.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -165,6 +165,7 @@ files:
165
165
  - lib/google/cloud/security_center/v1/credentials.rb
166
166
  - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/asset.rb
167
167
  - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/finding.rb
168
+ - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/notification_config.rb
168
169
  - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/organization_settings.rb
169
170
  - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/security_marks.rb
170
171
  - lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/securitycenter_service.rb
@@ -175,6 +176,7 @@ files:
175
176
  - lib/google/cloud/security_center/v1/doc/google/longrunning/operations.rb
176
177
  - lib/google/cloud/security_center/v1/doc/google/protobuf/any.rb
177
178
  - lib/google/cloud/security_center/v1/doc/google/protobuf/duration.rb
179
+ - lib/google/cloud/security_center/v1/doc/google/protobuf/empty.rb
178
180
  - lib/google/cloud/security_center/v1/doc/google/protobuf/field_mask.rb
179
181
  - lib/google/cloud/security_center/v1/doc/google/protobuf/struct.rb
180
182
  - lib/google/cloud/security_center/v1/doc/google/protobuf/timestamp.rb
@@ -182,6 +184,8 @@ files:
182
184
  - lib/google/cloud/security_center/v1/doc/google/type/expr.rb
183
185
  - lib/google/cloud/security_center/v1/finding_pb.rb
184
186
  - lib/google/cloud/security_center/v1/helpers.rb
187
+ - lib/google/cloud/security_center/v1/notification_config_pb.rb
188
+ - lib/google/cloud/security_center/v1/notification_message_pb.rb
185
189
  - lib/google/cloud/security_center/v1/organization_settings_pb.rb
186
190
  - lib/google/cloud/security_center/v1/run_asset_discovery_response_pb.rb
187
191
  - lib/google/cloud/security_center/v1/security_center_client.rb