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
+160
additions
-51
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.5"}] |
| 14 | + [{:google_api_alert_center, "~> 0.6"}] |
| 15 15 | end |
| 16 16 | ``` |
| @@ -6,56 +6,58 @@ | |
| 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">>, |
| 10 | - <<"lib/google_api/alert_center/v1beta1/model">>, |
| 11 | - <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_response.ex">>, |
| 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">>, |
| 17 | - <<"lib/google_api/alert_center/v1beta1/model/attachment.ex">>, |
| 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">>, |
| 40 | - <<"lib/google_api/alert_center/v1beta1/model/csv_row.ex">>, |
| 41 | - <<"lib/google_api/alert_center/v1beta1/model/undelete_alert_request.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">>, |
| 55 9 | <<"lib/google_api/alert_center/v1beta1/api">>, |
| 56 10 | <<"lib/google_api/alert_center/v1beta1/api/alerts.ex">>, |
| 57 | - <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>,<<"mix.exs">>, |
| 58 | - <<"README.md">>,<<"LICENSE">>]}. |
| 11 | + <<"lib/google_api/alert_center/v1beta1/api/v1beta1.ex">>, |
| 12 | + <<"lib/google_api/alert_center/v1beta1/connection.ex">>, |
| 13 | + <<"lib/google_api/alert_center/v1beta1/model">>, |
| 14 | + <<"lib/google_api/alert_center/v1beta1/model/predefined_detector_info.ex">>, |
| 15 | + <<"lib/google_api/alert_center/v1beta1/model/cloud_pubsub_topic.ex">>, |
| 16 | + <<"lib/google_api/alert_center/v1beta1/model/list_alert_feedback_response.ex">>, |
| 17 | + <<"lib/google_api/alert_center/v1beta1/model/status.ex">>, |
| 18 | + <<"lib/google_api/alert_center/v1beta1/model/phishing_spike.ex">>, |
| 19 | + <<"lib/google_api/alert_center/v1beta1/model/activity_rule.ex">>, |
| 20 | + <<"lib/google_api/alert_center/v1beta1/model/match_info.ex">>, |
| 21 | + <<"lib/google_api/alert_center/v1beta1/model/google_operations.ex">>, |
| 22 | + <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_request.ex">>, |
| 23 | + <<"lib/google_api/alert_center/v1beta1/model/drive_file_warning.ex">>, |
| 24 | + <<"lib/google_api/alert_center/v1beta1/model/settings.ex">>, |
| 25 | + <<"lib/google_api/alert_center/v1beta1/model/user_defined_detector_info.ex">>, |
| 26 | + <<"lib/google_api/alert_center/v1beta1/model/attachment.ex">>, |
| 27 | + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity.ex">>, |
| 28 | + <<"lib/google_api/alert_center/v1beta1/model/alert.ex">>, |
| 29 | + <<"lib/google_api/alert_center/v1beta1/model/rule_info.ex">>, |
| 30 | + <<"lib/google_api/alert_center/v1beta1/model/user.ex">>, |
| 31 | + <<"lib/google_api/alert_center/v1beta1/model/mail_phishing.ex">>, |
| 32 | + <<"lib/google_api/alert_center/v1beta1/model/login_details.ex">>, |
| 33 | + <<"lib/google_api/alert_center/v1beta1/model/malicious_entity.ex">>, |
| 34 | + <<"lib/google_api/alert_center/v1beta1/model/request_info.ex">>, |
| 35 | + <<"lib/google_api/alert_center/v1beta1/model/alert_metadata.ex">>, |
| 36 | + <<"lib/google_api/alert_center/v1beta1/model/device_compromised.ex">>, |
| 37 | + <<"lib/google_api/alert_center/v1beta1/model/csv_row.ex">>, |
| 38 | + <<"lib/google_api/alert_center/v1beta1/model/resource_info.ex">>, |
| 39 | + <<"lib/google_api/alert_center/v1beta1/model/undelete_alert_request.ex">>, |
| 40 | + <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_response.ex">>, |
| 41 | + <<"lib/google_api/alert_center/v1beta1/model/batch_delete_alerts_response.ex">>, |
| 42 | + <<"lib/google_api/alert_center/v1beta1/model/notification.ex">>, |
| 43 | + <<"lib/google_api/alert_center/v1beta1/model/list_alerts_response.ex">>, |
| 44 | + <<"lib/google_api/alert_center/v1beta1/model/domain_wide_takeout_initiated.ex">>, |
| 45 | + <<"lib/google_api/alert_center/v1beta1/model/drive_file.ex">>, |
| 46 | + <<"lib/google_api/alert_center/v1beta1/model/device_compromised_security_detail.ex">>, |
| 47 | + <<"lib/google_api/alert_center/v1beta1/model/alert_feedback.ex">>, |
| 48 | + <<"lib/google_api/alert_center/v1beta1/model/app_maker_sql_setup_notification.ex">>, |
| 49 | + <<"lib/google_api/alert_center/v1beta1/model/suspicious_activity_security_detail.ex">>, |
| 50 | + <<"lib/google_api/alert_center/v1beta1/model/state_sponsored_attack.ex">>, |
| 51 | + <<"lib/google_api/alert_center/v1beta1/model/batch_undelete_alerts_request.ex">>, |
| 52 | + <<"lib/google_api/alert_center/v1beta1/model/csv.ex">>, |
| 53 | + <<"lib/google_api/alert_center/v1beta1/model/rule_violation_info.ex">>, |
| 54 | + <<"lib/google_api/alert_center/v1beta1/model/empty.ex">>, |
| 55 | + <<"lib/google_api/alert_center/v1beta1/model/bad_whitelist.ex">>, |
| 56 | + <<"lib/google_api/alert_center/v1beta1/model/gmail_message_info.ex">>, |
| 57 | + <<"lib/google_api/alert_center/v1beta1/model/dlp_rule_violation.ex">>, |
| 58 | + <<"lib/google_api/alert_center/v1beta1/model/domain_id.ex">>, |
| 59 | + <<"lib/google_api/alert_center/v1beta1/model/account_warning.ex">>, |
| 60 | + <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}. |
| 59 61 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 60 62 | {<<"links">>, |
| 61 63 | [{<<"GitHub">>, |
| @@ -69,4 +71,4 @@ | |
| 69 71 | {<<"optional">>,false}, |
| 70 72 | {<<"repository">>,<<"hexpm">>}, |
| 71 73 | {<<"requirement">>,<<"~> 0.2">>}]]}. |
| 72 | - {<<"version">>,<<"0.5.0">>}. |
| 74 | + {<<"version">>,<<"0.6.0">>}. |
| @@ -0,0 +1,61 @@ | |
| 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.DriveFile do |
| 19 | + @moduledoc """ |
| 20 | + A Drive file |
| 21 | + |
| 22 | + ## Attributes |
| 23 | + |
| 24 | + * `abuseType` (*type:* `String.t`, *default:* `nil`) - Abuse type of the file. |
| 25 | + * `id` (*type:* `String.t`, *default:* `nil`) - The ID of the file. |
| 26 | + * `name` (*type:* `String.t`, *default:* `nil`) - The name of the file. |
| 27 | + * `numRecentDownload` (*type:* `String.t`, *default:* `nil`) - The number of recent downloads of the file. This is available for the |
| 28 | + following alert types: |
| 29 | + |
| 30 | + *Drive malware sharing detected |
| 31 | + * `owner` (*type:* `String.t`, *default:* `nil`) - The email address of the file owner. |
| 32 | + """ |
| 33 | + |
| 34 | + use GoogleApi.Gax.ModelBase |
| 35 | + |
| 36 | + @type t :: %__MODULE__{ |
| 37 | + :abuseType => String.t(), |
| 38 | + :id => String.t(), |
| 39 | + :name => String.t(), |
| 40 | + :numRecentDownload => String.t(), |
| 41 | + :owner => String.t() |
| 42 | + } |
| 43 | + |
| 44 | + field(:abuseType) |
| 45 | + field(:id) |
| 46 | + field(:name) |
| 47 | + field(:numRecentDownload) |
| 48 | + field(:owner) |
| 49 | + end |
| 50 | + |
| 51 | + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.DriveFile do |
| 52 | + def decode(value, options) do |
| 53 | + GoogleApi.AlertCenter.V1beta1.Model.DriveFile.decode(value, options) |
| 54 | + end |
| 55 | + end |
| 56 | + |
| 57 | + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.DriveFile do |
| 58 | + def encode(value, options) do |
| 59 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 60 | + end |
| 61 | + 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.DriveFileWarning do |
| 19 | + @moduledoc """ |
| 20 | + Alerts for suspicious Drive files or activities. |
| 21 | + |
| 22 | + ## Attributes |
| 23 | + |
| 24 | + * `files` (*type:* `list(GoogleApi.AlertCenter.V1beta1.Model.DriveFile.t)`, *default:* `nil`) - List of files in the alert. |
| 25 | + """ |
| 26 | + |
| 27 | + use GoogleApi.Gax.ModelBase |
| 28 | + |
| 29 | + @type t :: %__MODULE__{ |
| 30 | + :files => list(GoogleApi.AlertCenter.V1beta1.Model.DriveFile.t()) |
| 31 | + } |
| 32 | + |
| 33 | + field(:files, as: GoogleApi.AlertCenter.V1beta1.Model.DriveFile, type: :list) |
| 34 | + end |
| 35 | + |
| 36 | + defimpl Poison.Decoder, for: GoogleApi.AlertCenter.V1beta1.Model.DriveFileWarning do |
| 37 | + def decode(value, options) do |
| 38 | + GoogleApi.AlertCenter.V1beta1.Model.DriveFileWarning.decode(value, options) |
| 39 | + end |
| 40 | + end |
| 41 | + |
| 42 | + defimpl Poison.Encoder, for: GoogleApi.AlertCenter.V1beta1.Model.DriveFileWarning do |
| 43 | + def encode(value, options) do |
| 44 | + GoogleApi.Gax.ModelBase.encode(value, options) |
| 45 | + end |
| 46 | + end |
| @@ -18,7 +18,7 @@ | |
| 18 18 | defmodule GoogleApi.AlertCenter.Mixfile do |
| 19 19 | use Mix.Project |
| 20 20 | |
| 21 | - @version "0.5.0" |
| 21 | + @version "0.6.0" |
| 22 22 | |
| 23 23 | def project() do |
| 24 24 | [ |