Packages
Google Workspace Alert Center API client library. Manages alerts on issues affecting your domain. Note: The current version of this API (v1beta1) is available to all Google Workspace customers.
Current section
36 Versions
Jump to
Current section
36 Versions
Compare versions
5
files changed
+89
additions
-36
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.2"}] |
| 14 | + [{:google_api_alert_center, "~> 0.3"}] |
| 15 15 | end |
| 16 16 | ``` |
| @@ -6,48 +6,49 @@ | |
| 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/api">>, |
| 10 | + <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>, |
| 11 | + <<"lib/google_api/alert_center/v1beta1/api/alerts.ex">>, |
| 9 12 | <<"lib/google_api/alert_center/v1beta1/connection.ex">>, |
| 10 13 | <<"lib/google_api/alert_center/v1beta1/model">>, |
| 11 | - <<"lib/google_api/alert_center/v1beta1/model/activity_rule.ex">>, |
| 12 14 | <<"lib/google_api/alert_center/v1beta1/model/account_warning.ex">>, |
| 13 | - <<"lib/google_api/alert_center/v1beta1/model/list_alerts_response.ex">>, |
| 14 | - <<"lib/google_api/alert_center/v1beta1/model/undelete_alert_request.ex">>, |
| 15 | - <<"lib/google_api/alert_center/v1beta1/model/login_details.ex">>, |
| 16 | - <<"lib/google_api/alert_center/v1beta1/model/attachment.ex">>, |
| 17 15 | <<"lib/google_api/alert_center/v1beta1/model/domain_id.ex">>, |
| 18 | - <<"lib/google_api/alert_center/v1beta1/model/list_alert_feedback_response.ex">>, |
| 19 | - <<"lib/google_api/alert_center/v1beta1/model/device_compromised.ex">>, |
| 20 | - <<"lib/google_api/alert_center/v1beta1/model/phishing_spike.ex">>, |
| 21 | - <<"lib/google_api/alert_center/v1beta1/model/alert.ex">>, |
| 22 | - <<"lib/google_api/alert_center/v1beta1/model/request_info.ex">>, |
| 23 | - <<"lib/google_api/alert_center/v1beta1/model/state_sponsored_attack.ex">>, |
| 24 | - <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity_security_detail.ex">>, |
| 25 | - <<"lib/google_api/alert_center/v1beta1/model/malicious_entity.ex">>, |
| 26 | - <<"lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex">>, |
| 27 | - <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity.ex">>, |
| 28 | - <<"lib/google_api/alert_center/v1beta1/model/bad_whitelist.ex">>, |
| 29 16 | <<"lib/google_api/alert_center/v1beta1/model/domain_wide_takeout_initiated.ex">>, |
| 17 | + <<"lib/google_api/alert_center/v1beta1/model/user.ex">>, |
| 30 18 | <<"lib/google_api/alert_center/v1beta1/model/app_maker_sql_setup_notification.ex">>, |
| 31 | - <<"lib/google_api/alert_center/v1beta1/model/settings.ex">>, |
| 32 | - <<"lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex">>, |
| 33 | - <<"lib/google_api/alert_center/v1beta1/model/csv.ex">>, |
| 34 | - <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_response.ex">>, |
| 35 | - <<"lib/google_api/alert_center/v1beta1/model/google_operations.ex">>, |
| 36 | - <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_response.ex">>, |
| 37 | - <<"lib/google_api/alert_center/v1beta1/model/csv_row.ex">>, |
| 38 | - <<"lib/google_api/alert_center/v1beta1/model/notification.ex">>, |
| 39 | - <<"lib/google_api/alert_center/v1beta1/model/mail_phishing.ex">>, |
| 40 | - <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_request.ex">>, |
| 41 | - <<"lib/google_api/alert_center/v1beta1/model/alert_metadata.ex">>, |
| 42 | - <<"lib/google_api/alert_center/v1beta1/model/status.ex">>, |
| 43 | - <<"lib/google_api/alert_center/v1beta1/model/empty.ex">>, |
| 44 19 | <<"lib/google_api/alert_center/v1beta1/model/gmail_message_info.ex">>, |
| 20 | + <<"lib/google_api/alert_center/v1beta1/model/list_alert_feedback_response.ex">>, |
| 21 | + <<"lib/google_api/alert_center/v1beta1/model/state_sponsored_attack.ex">>, |
| 22 | + <<"lib/google_api/alert_center/v1beta1/model/login_details.ex">>, |
| 23 | + <<"lib/google_api/alert_center/v1beta1/model/google_operations.ex">>, |
| 24 | + <<"lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex">>, |
| 25 | + <<"lib/google_api/alert_center/v1beta1/model/undelete_alert_request.ex">>, |
| 26 | + <<"lib/google_api/alert_center/v1beta1/model/phishing_spike.ex">>, |
| 27 | + <<"lib/google_api/alert_center/v1beta1/model/device_compromised.ex">>, |
| 28 | + <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_response.ex">>, |
| 29 | + <<"lib/google_api/alert_center/v1beta1/model/alert_metadata.ex">>, |
| 30 | + <<"lib/google_api/alert_center/v1beta1/model/malicious_entity.ex">>, |
| 31 | + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity_security_detail.ex">>, |
| 32 | + <<"lib/google_api/alert_center/v1beta1/model/bad_whitelist.ex">>, |
| 33 | + <<"lib/google_api/alert_center/v1beta1/model/empty.ex">>, |
| 34 | + <<"lib/google_api/alert_center/v1beta1/model/status.ex">>, |
| 35 | + <<"lib/google_api/alert_center/v1beta1/model/request_info.ex">>, |
| 36 | + <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_request.ex">>, |
| 37 | + <<"lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex">>, |
| 38 | + <<"lib/google_api/alert_center/v1beta1/model/csv_row.ex">>, |
| 39 | + <<"lib/google_api/alert_center/v1beta1/model/activity_rule.ex">>, |
| 40 | + <<"lib/google_api/alert_center/v1beta1/model/csv.ex">>, |
| 41 | + <<"lib/google_api/alert_center/v1beta1/model/list_alerts_response.ex">>, |
| 42 | + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity.ex">>, |
| 43 | + <<"lib/google_api/alert_center/v1beta1/model/settings.ex">>, |
| 44 | + <<"lib/google_api/alert_center/v1beta1/model/notification.ex">>, |
| 45 45 | <<"lib/google_api/alert_center/v1beta1/model/alert_feedback.ex">>, |
| 46 | + <<"lib/google_api/alert_center/v1beta1/model/mail_phishing.ex">>, |
| 47 | + <<"lib/google_api/alert_center/v1beta1/model/alert.ex">>, |
| 48 | + <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_response.ex">>, |
| 49 | + <<"lib/google_api/alert_center/v1beta1/model/attachment.ex">>, |
| 46 50 | <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex">>, |
| 47 | - <<"lib/google_api/alert_center/v1beta1/api">>, |
| 48 | - <<"lib/google_api/alert_center/v1beta1/api/alerts.ex">>, |
| 49 | - <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>,<<"mix.exs">>, |
| 50 | - <<"README.md">>,<<"LICENSE">>]}. |
| 51 | + <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}. |
| 51 52 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 52 53 | {<<"links">>, |
| 53 54 | [{<<"GitHub">>, |
| @@ -61,4 +62,4 @@ | |
| 61 62 | {<<"optional">>,false}, |
| 62 63 | {<<"repository">>,<<"hexpm">>}, |
| 63 64 | {<<"requirement">>,<<"~> 0.2">>}]]}. |
| 64 | - {<<"version">>,<<"0.2.0">>}. |
| 65 | + {<<"version">>,<<"0.3.0">>}. |
| @@ -22,6 +22,7 @@ defmodule GoogleApi.AlertCenter.V1beta1.Model.MaliciousEntity do | |
| 22 22 | ## Attributes |
| 23 23 | |
| 24 24 | * `displayName` (*type:* `String.t`, *default:* `nil`) - The header from display name. |
| 25 | + * `entity` (*type:* `GoogleApi.AlertCenter.V1beta1.Model.User.t`, *default:* `nil`) - The actor who triggered a gmail phishing alert. |
| 25 26 | * `fromHeader` (*type:* `String.t`, *default:* `nil`) - The sender email address. |
| 26 27 | """ |
| 27 28 | |
| @@ -29,10 +30,12 @@ defmodule GoogleApi.AlertCenter.V1beta1.Model.MaliciousEntity do | |
| 29 30 | |
| 30 31 | @type t :: %__MODULE__{ |
| 31 32 | :displayName => String.t(), |
| 33 | + :entity => GoogleApi.AlertCenter.V1beta1.Model.User.t(), |
| 32 34 | :fromHeader => String.t() |
| 33 35 | } |
| 34 36 | |
| 35 37 | field(:displayName) |
| 38 | + field(:entity, as: GoogleApi.AlertCenter.V1beta1.Model.User) |
| 36 39 | field(:fromHeader) |
| 37 40 | 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.User do |
| 19 | + @moduledoc """ |
| 20 | + A user. |
| 21 | + |
| 22 | + ## Attributes |
| 23 | + |
| 24 | + * `displayName` (*type:* `String.t`, *default:* `nil`) - Display name of the user. |
| 25 | + * `emailAddress` (*type:* `String.t`, *default:* `nil`) - Email address of the user. |
| 26 | + """ |
| 27 | + |
| 28 | + use GoogleApi.Gax.ModelBase |
| 29 | + |
| 30 | + @type t :: %__MODULE__{ |
| 31 | + :displayName => String.t(), |
| 32 | + :emailAddress => String.t() |
| 33 | + } |
| 34 | + |
| 35 | + field(:displayName) |
| 36 | + field(:emailAddress) |
| 37 | + end |
| 38 | + |
| 39 | + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.User do |
| 40 | + def decode(value, options) do |
| 41 | + GoogleApi.AlertCenter.V1beta1.Model.User.decode(value, options) |
| 42 | + end |
| 43 | + end |
| 44 | + |
| 45 | + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.User do |
| 46 | + def encode(value, options) do |
| 47 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 48 | + end |
| 49 | + end |
| @@ -18,7 +18,7 @@ | |
| 18 18 | defmodule GoogleApi.AlertCenter.Mixfile do |
| 19 19 | use Mix.Project |
| 20 20 | |
| 21 | - @version "0.2.0" |
| 21 | + @version "0.3.0" |
| 22 22 | |
| 23 23 | def project() do |
| 24 24 | [ |