Current section

36 Versions

Jump to

Compare versions

10 files changed
+417 additions
-37 deletions
  @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
11 11
12 12 ```elixir
13 13 def deps do
14 - [{:google_api_alert_center, "~> 0.4"}]
14 + [{:google_api_alert_center, "~> 0.5"}]
15 15 end
16 16 ```
  @@ -6,48 +6,55 @@
6 6 {<<"files">>,
7 7 [<<"lib">>,<<"lib/google_api">>,<<"lib/google_api/alert_center">>,
8 8 <<"lib/google_api/alert_center/v1beta1">>,
9 + <<"lib/google_api/alert_center/v1beta1/connection.ex">>,
9 10 <<"lib/google_api/alert_center/v1beta1/model">>,
10 - <<"lib/google_api/alert_center/v1beta1/model/notification.ex">>,
11 - <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex">>,
12 - <<"lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex">>,
13 - <<"lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex">>,
14 - <<"lib/google_api/alert_center/v1beta1/model/list_alerts_response.ex">>,
15 - <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_request.ex">>,
16 - <<"lib/google_api/alert_center/v1beta1/model/domain_id.ex">>,
17 - <<"lib/google_api/alert_center/v1beta1/model/domain_wide_takeout_initiated.ex">>,
18 - <<"lib/google_api/alert_center/v1beta1/model/bad_whitelist.ex">>,
19 - <<"lib/google_api/alert_center/v1beta1/model/device_compromised.ex">>,
20 - <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_response.ex">>,
21 - <<"lib/google_api/alert_center/v1beta1/model/request_info.ex">>,
22 - <<"lib/google_api/alert_center/v1beta1/model/login_details.ex">>,
23 - <<"lib/google_api/alert_center/v1beta1/model/empty.ex">>,
24 - <<"lib/google_api/alert_center/v1beta1/model/list_alert_feedback_response.ex">>,
25 - <<"lib/google_api/alert_center/v1beta1/model/gmail_message_info.ex">>,
26 - <<"lib/google_api/alert_center/v1beta1/model/status.ex">>,
27 - <<"lib/google_api/alert_center/v1beta1/model/malicious_entity.ex">>,
28 - <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity.ex">>,
29 - <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity_security_detail.ex">>,
30 - <<"lib/google_api/alert_center/v1beta1/model/account_warning.ex">>,
31 - <<"lib/google_api/alert_center/v1beta1/model/alert.ex">>,
32 - <<"lib/google_api/alert_center/v1beta1/model/settings.ex">>,
33 - <<"lib/google_api/alert_center/v1beta1/model/google_operations.ex">>,
34 - <<"lib/google_api/alert_center/v1beta1/model/app_maker_sql_setup_notification.ex">>,
35 - <<"lib/google_api/alert_center/v1beta1/model/csv.ex">>,
36 - <<"lib/google_api/alert_center/v1beta1/model/alert_feedback.ex">>,
37 - <<"lib/google_api/alert_center/v1beta1/model/state_sponsored_attack.ex">>,
38 11 <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_response.ex">>,
39 - <<"lib/google_api/alert_center/v1beta1/model/user.ex">>,
40 12 <<"lib/google_api/alert_center/v1beta1/model/mail_phishing.ex">>,
13 + <<"lib/google_api/alert_center/v1beta1/model/domain_wide_takeout_initiated.ex">>,
14 + <<"lib/google_api/alert_center/v1beta1/model/dlp_rule_violation.ex">>,
15 + <<"lib/google_api/alert_center/v1beta1/model/phishing_spike.ex">>,
16 + <<"lib/google_api/alert_center/v1beta1/model/list_alerts_response.ex">>,
41 17 <<"lib/google_api/alert_center/v1beta1/model/attachment.ex">>,
42 - <<"lib/google_api/alert_center/v1beta1/model/alert_metadata.ex">>,
43 18 <<"lib/google_api/alert_center/v1beta1/model/activity_rule.ex">>,
19 + <<"lib/google_api/alert_center/v1beta1/model/empty.ex">>,
20 + <<"lib/google_api/alert_center/v1beta1/model/resource_info.ex">>,
21 + <<"lib/google_api/alert_center/v1beta1/model/state_sponsored_attack.ex">>,
22 + <<"lib/google_api/alert_center/v1beta1/model/csv.ex">>,
23 + <<"lib/google_api/alert_center/v1beta1/model/device_compromised.ex">>,
24 + <<"lib/google_api/alert_center/v1beta1/model/login_details.ex">>,
25 + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity_security_detail.ex">>,
26 + <<"lib/google_api/alert_center/v1beta1/model/status.ex">>,
27 + <<"lib/google_api/alert_center/v1beta1/model/app_maker_sql_setup_notification.ex">>,
28 + <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex">>,
29 + <<"lib/google_api/alert_center/v1beta1/model/settings.ex">>,
30 + <<"lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex">>,
31 + <<"lib/google_api/alert_center/v1beta1/model/domain_id.ex">>,
32 + <<"lib/google_api/alert_center/v1beta1/model/google_operations.ex">>,
33 + <<"lib/google_api/alert_center/v1beta1/model/malicious_entity.ex">>,
34 + <<"lib/google_api/alert_center/v1beta1/model/alert_feedback.ex">>,
35 + <<"lib/google_api/alert_center/v1beta1/model/gmail_message_info.ex">>,
36 + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity.ex">>,
37 + <<"lib/google_api/alert_center/v1beta1/model/account_warning.ex">>,
38 + <<"lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex">>,
39 + <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_request.ex">>,
44 40 <<"lib/google_api/alert_center/v1beta1/model/csv_row.ex">>,
45 41 <<"lib/google_api/alert_center/v1beta1/model/undelete_alert_request.ex">>,
46 - <<"lib/google_api/alert_center/v1beta1/model/phishing_spike.ex">>,
47 - <<"lib/google_api/alert_center/v1beta1/connection.ex">>,
42 + <<"lib/google_api/alert_center/v1beta1/model/match_info.ex">>,
43 + <<"lib/google_api/alert_center/v1beta1/model/alert_metadata.ex">>,
44 + <<"lib/google_api/alert_center/v1beta1/model/notification.ex">>,
45 + <<"lib/google_api/alert_center/v1beta1/model/alert.ex">>,
46 + <<"lib/google_api/alert_center/v1beta1/model/request_info.ex">>,
47 + <<"lib/google_api/alert_center/v1beta1/model/rule_info.ex">>,
48 + <<"lib/google_api/alert_center/v1beta1/model/user_defined_detector_info.ex">>,
49 + <<"lib/google_api/alert_center/v1beta1/model/user.ex">>,
50 + <<"lib/google_api/alert_center/v1beta1/model/list_alert_feedback_response.ex">>,
51 + <<"lib/google_api/alert_center/v1beta1/model/bad_whitelist.ex">>,
52 + <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_response.ex">>,
53 + <<"lib/google_api/alert_center/v1beta1/model/rule_violation_info.ex">>,
54 + <<"lib/google_api/alert_center/v1beta1/model/predefined_detector_info.ex">>,
48 55 <<"lib/google_api/alert_center/v1beta1/api">>,
49 - <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>,
50 - <<"lib/google_api/alert_center/v1beta1/api/alerts.ex">>,<<"mix.exs">>,
56 + <<"lib/google_api/alert_center/v1beta1/api/alerts.ex">>,
57 + <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>,<<"mix.exs">>,
51 58 <<"README.md">>,<<"LICENSE">>]}.
52 59 {<<"licenses">>,[<<"Apache 2.0">>]}.
53 60 {<<"links">>,
  @@ -62,4 +69,4 @@
62 69 {<<"optional">>,false},
63 70 {<<"repository">>,<<"hexpm">>},
64 71 {<<"requirement">>,<<"~> 0.2">>}]]}.
65 - {<<"version">>,<<"0.4.0">>}.
72 + {<<"version">>,<<"0.5.0">>}.
  @@ -0,0 +1,51 @@
1 + # Copyright 2019 Google LLC
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the "License");
4 + # you may not use this file except in compliance with the License.
5 + # You may obtain a copy of the License at
6 + #
7 + # http://www.apache.org/licenses/LICENSE-2.0
8 + #
9 + # Unless required by applicable law or agreed to in writing, software
10 + # distributed under the License is distributed on an "AS IS" BASIS,
11 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 + # See the License for the specific language governing permissions and
13 + # limitations under the License.
14 +
15 + # NOTE: This file is auto generated by the elixir code generator program.
16 + # Do not edit this file manually.
17 +
18 + defmodule GoogleApi.AlertCenter.V1beta1.Model.DlpRuleViolation do
19 + @moduledoc """
20 + Alerts that get triggered on violations of Data Loss Prevention (DLP) rules.
21 +
22 + ## Attributes
23 +
24 + * `ruleViolationInfo` (*type:* `GoogleApi.AlertCenter.V1beta1.Model.RuleViolationInfo.t`, *default:* `nil`) - Details about the violated DLP rule.
25 +
26 + Admins can use the predefined detectors provided by Google Cloud DLP
27 + https://cloud.google.com/dlp/ when setting up a DLP rule. Matched Cloud DLP
28 + detectors in this violation if any will be captured in the
29 + MatchInfo.predefined_detector.
30 + """
31 +
32 + use GoogleApi.Gax.ModelBase
33 +
34 + @type t :: %__MODULE__{
35 + :ruleViolationInfo => GoogleApi.AlertCenter.V1beta1.Model.RuleViolationInfo.t()
36 + }
37 +
38 + field(:ruleViolationInfo, as: GoogleApi.AlertCenter.V1beta1.Model.RuleViolationInfo)
39 + end
40 +
41 + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.DlpRuleViolation do
42 + def decode(value, options) do
43 + GoogleApi.AlertCenter.V1beta1.Model.DlpRuleViolation.decode(value, options)
44 + end
45 + end
46 +
47 + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.DlpRuleViolation do
48 + def encode(value, options) do
49 + GoogleApi.Gax.ModelBase.encode(value, options)
50 + end
51 + end
  @@ -0,0 +1,49 @@
1 + # Copyright 2019 Google LLC
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the "License");
4 + # you may not use this file except in compliance with the License.
5 + # You may obtain a copy of the License at
6 + #
7 + # http://www.apache.org/licenses/LICENSE-2.0
8 + #
9 + # Unless required by applicable law or agreed to in writing, software
10 + # distributed under the License is distributed on an "AS IS" BASIS,
11 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 + # See the License for the specific language governing permissions and
13 + # limitations under the License.
14 +
15 + # NOTE: This file is auto generated by the elixir code generator program.
16 + # Do not edit this file manually.
17 +
18 + defmodule GoogleApi.AlertCenter.V1beta1.Model.MatchInfo do
19 + @moduledoc """
20 + Proto that contains match information from the condition part of the rule.
21 +
22 + ## Attributes
23 +
24 + * `predefinedDetector` (*type:* `GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo.t`, *default:* `nil`) - For matched detector predefined by Google.
25 + * `userDefinedDetector` (*type:* `GoogleApi.AlertCenter.V1beta1.Model.UserDefinedDetectorInfo.t`, *default:* `nil`) - For matched detector defined by administrators.
26 + """
27 +
28 + use GoogleApi.Gax.ModelBase
29 +
30 + @type t :: %__MODULE__{
31 + :predefinedDetector => GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo.t(),
32 + :userDefinedDetector => GoogleApi.AlertCenter.V1beta1.Model.UserDefinedDetectorInfo.t()
33 + }
34 +
35 + field(:predefinedDetector, as: GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo)
36 + field(:userDefinedDetector, as: GoogleApi.AlertCenter.V1beta1.Model.UserDefinedDetectorInfo)
37 + end
38 +
39 + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.MatchInfo do
40 + def decode(value, options) do
41 + GoogleApi.AlertCenter.V1beta1.Model.MatchInfo.decode(value, options)
42 + end
43 + end
44 +
45 + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.MatchInfo do
46 + def encode(value, options) do
47 + GoogleApi.Gax.ModelBase.encode(value, options)
48 + end
49 + end
  @@ -0,0 +1,46 @@
1 + # Copyright 2019 Google LLC
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the "License");
4 + # you may not use this file except in compliance with the License.
5 + # You may obtain a copy of the License at
6 + #
7 + # http://www.apache.org/licenses/LICENSE-2.0
8 + #
9 + # Unless required by applicable law or agreed to in writing, software
10 + # distributed under the License is distributed on an "AS IS" BASIS,
11 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 + # See the License for the specific language governing permissions and
13 + # limitations under the License.
14 +
15 + # NOTE: This file is auto generated by the elixir code generator program.
16 + # Do not edit this file manually.
17 +
18 + defmodule GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo do
19 + @moduledoc """
20 + Detector provided by Google.
21 +
22 + ## Attributes
23 +
24 + * `detectorName` (*type:* `String.t`, *default:* `nil`) - Name that uniquely identifies the detector.
25 + """
26 +
27 + use GoogleApi.Gax.ModelBase
28 +
29 + @type t :: %__MODULE__{
30 + :detectorName => String.t()
31 + }
32 +
33 + field(:detectorName)
34 + end
35 +
36 + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo do
37 + def decode(value, options) do
38 + GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo.decode(value, options)
39 + end
40 + end
41 +
42 + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.PredefinedDetectorInfo do
43 + def encode(value, options) do
44 + GoogleApi.Gax.ModelBase.encode(value, options)
45 + end
46 + end
Loading more files…