google-api-client 0.24.2 → 0.24.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -0
- data/README.md +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +8 -1
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +52 -18
- data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
- data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
- data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
- data/generated/google/apis/cloudiot_v1/service.rb +94 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +1 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +227 -48
- data/generated/google/apis/compute_alpha/representations.rb +84 -1
- data/generated/google/apis/compute_alpha/service.rb +50 -10
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +593 -77
- data/generated/google/apis/compute_beta/representations.rb +224 -18
- data/generated/google/apis/compute_beta/service.rb +174 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +41 -18
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +372 -119
- data/generated/google/apis/content_v2/representations.rb +157 -39
- data/generated/google/apis/content_v2/service.rb +101 -11
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
- data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
- data/generated/google/apis/content_v2sandbox/service.rb +90 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +12 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +2 -2
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +110 -5
- data/generated/google/apis/dlp_v2/representations.rb +17 -0
- data/generated/google/apis/dlp_v2/service.rb +41 -3
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +0 -234
- data/generated/google/apis/file_v1beta1/representations.rb +0 -79
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/firebaserules_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +4 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -1
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/service.rb +339 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +45 -37
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +21 -18
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +12 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +19 -17
- data/generated/google/apis/monitoring_v3/representations.rb +1 -2
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +18 -15
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
- data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +308 -30
- data/generated/google/apis/spanner_v1/representations.rb +17 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +18 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
- data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +2 -2
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
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
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module AlertcenterV1beta1
|
|
24
|
+
|
|
25
|
+
class AccountWarning
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Alert
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class AlertFeedback
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Attachment
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class BadWhitelist
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class Csv
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class CsvRow
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class DeviceCompromised
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class DeviceCompromisedSecurityDetail
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class DomainId
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class DomainWideTakeoutInitiated
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class Empty
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class GmailMessageInfo
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class GoogleOperations
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class ListAlertFeedbackResponse
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class ListAlertsResponse
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class LoginDetails
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class MailPhishing
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class MaliciousEntity
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class PhishingSpike
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class StateSponsoredAttack
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class SuspiciousActivity
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
|
+
|
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class SuspiciousActivitySecurityDetail
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
class AccountWarning
|
|
164
|
+
# @private
|
|
165
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
166
|
+
property :email, as: 'email'
|
|
167
|
+
property :login_details, as: 'loginDetails', class: Google::Apis::AlertcenterV1beta1::LoginDetails, decorator: Google::Apis::AlertcenterV1beta1::LoginDetails::Representation
|
|
168
|
+
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class Alert
|
|
173
|
+
# @private
|
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
175
|
+
property :alert_id, as: 'alertId'
|
|
176
|
+
property :create_time, as: 'createTime'
|
|
177
|
+
property :customer_id, as: 'customerId'
|
|
178
|
+
hash :data, as: 'data'
|
|
179
|
+
property :end_time, as: 'endTime'
|
|
180
|
+
property :security_investigation_tool_link, as: 'securityInvestigationToolLink'
|
|
181
|
+
property :source, as: 'source'
|
|
182
|
+
property :start_time, as: 'startTime'
|
|
183
|
+
property :type, as: 'type'
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class AlertFeedback
|
|
188
|
+
# @private
|
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
190
|
+
property :alert_id, as: 'alertId'
|
|
191
|
+
property :create_time, as: 'createTime'
|
|
192
|
+
property :customer_id, as: 'customerId'
|
|
193
|
+
property :email, as: 'email'
|
|
194
|
+
property :feedback_id, as: 'feedbackId'
|
|
195
|
+
property :type, as: 'type'
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class Attachment
|
|
200
|
+
# @private
|
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
202
|
+
property :csv, as: 'csv', class: Google::Apis::AlertcenterV1beta1::Csv, decorator: Google::Apis::AlertcenterV1beta1::Csv::Representation
|
|
203
|
+
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class BadWhitelist
|
|
208
|
+
# @private
|
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
210
|
+
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
|
|
211
|
+
|
|
212
|
+
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
|
|
213
|
+
|
|
214
|
+
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
|
|
215
|
+
|
|
216
|
+
property :source_ip, as: 'sourceIp'
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class Csv
|
|
221
|
+
# @private
|
|
222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
223
|
+
collection :data_rows, as: 'dataRows', class: Google::Apis::AlertcenterV1beta1::CsvRow, decorator: Google::Apis::AlertcenterV1beta1::CsvRow::Representation
|
|
224
|
+
|
|
225
|
+
collection :headers, as: 'headers'
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
class CsvRow
|
|
230
|
+
# @private
|
|
231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
232
|
+
collection :entries, as: 'entries'
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
class DeviceCompromised
|
|
237
|
+
# @private
|
|
238
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
239
|
+
property :email, as: 'email'
|
|
240
|
+
collection :events, as: 'events', class: Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail, decorator: Google::Apis::AlertcenterV1beta1::DeviceCompromisedSecurityDetail::Representation
|
|
241
|
+
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
class DeviceCompromisedSecurityDetail
|
|
246
|
+
# @private
|
|
247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
248
|
+
property :device_compromised_state, as: 'deviceCompromisedState'
|
|
249
|
+
property :device_id, as: 'deviceId'
|
|
250
|
+
property :device_model, as: 'deviceModel'
|
|
251
|
+
property :device_type, as: 'deviceType'
|
|
252
|
+
property :ios_vendor_id, as: 'iosVendorId'
|
|
253
|
+
property :resource_id, as: 'resourceId'
|
|
254
|
+
property :serial_number, as: 'serialNumber'
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class DomainId
|
|
259
|
+
# @private
|
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
261
|
+
property :customer_primary_domain, as: 'customerPrimaryDomain'
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
class DomainWideTakeoutInitiated
|
|
266
|
+
# @private
|
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
268
|
+
property :email, as: 'email'
|
|
269
|
+
property :takeout_request_id, as: 'takeoutRequestId'
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
class Empty
|
|
274
|
+
# @private
|
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
class GmailMessageInfo
|
|
280
|
+
# @private
|
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
282
|
+
collection :attachments_sha256_hash, as: 'attachmentsSha256Hash'
|
|
283
|
+
property :date, as: 'date'
|
|
284
|
+
property :md5_hash_message_body, as: 'md5HashMessageBody'
|
|
285
|
+
property :md5_hash_subject, as: 'md5HashSubject'
|
|
286
|
+
property :message_body_snippet, as: 'messageBodySnippet'
|
|
287
|
+
property :message_id, as: 'messageId'
|
|
288
|
+
property :recipient, as: 'recipient'
|
|
289
|
+
property :subject_text, as: 'subjectText'
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
class GoogleOperations
|
|
294
|
+
# @private
|
|
295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
296
|
+
collection :affected_user_emails, as: 'affectedUserEmails'
|
|
297
|
+
property :attachment_data, as: 'attachmentData', class: Google::Apis::AlertcenterV1beta1::Attachment, decorator: Google::Apis::AlertcenterV1beta1::Attachment::Representation
|
|
298
|
+
|
|
299
|
+
property :description, as: 'description'
|
|
300
|
+
property :title, as: 'title'
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
class ListAlertFeedbackResponse
|
|
305
|
+
# @private
|
|
306
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
307
|
+
collection :feedback, as: 'feedback', class: Google::Apis::AlertcenterV1beta1::AlertFeedback, decorator: Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
|
|
308
|
+
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
class ListAlertsResponse
|
|
313
|
+
# @private
|
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
315
|
+
collection :alerts, as: 'alerts', class: Google::Apis::AlertcenterV1beta1::Alert, decorator: Google::Apis::AlertcenterV1beta1::Alert::Representation
|
|
316
|
+
|
|
317
|
+
property :next_page_token, as: 'nextPageToken'
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class LoginDetails
|
|
322
|
+
# @private
|
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
324
|
+
property :ip_address, as: 'ipAddress'
|
|
325
|
+
property :login_time, as: 'loginTime'
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
class MailPhishing
|
|
330
|
+
# @private
|
|
331
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
332
|
+
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
|
|
333
|
+
|
|
334
|
+
property :is_internal, as: 'isInternal'
|
|
335
|
+
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
|
|
336
|
+
|
|
337
|
+
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
|
|
338
|
+
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
class MaliciousEntity
|
|
343
|
+
# @private
|
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
345
|
+
property :from_header, as: 'fromHeader'
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class PhishingSpike
|
|
350
|
+
# @private
|
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
352
|
+
property :domain_id, as: 'domainId', class: Google::Apis::AlertcenterV1beta1::DomainId, decorator: Google::Apis::AlertcenterV1beta1::DomainId::Representation
|
|
353
|
+
|
|
354
|
+
property :is_internal, as: 'isInternal'
|
|
355
|
+
property :malicious_entity, as: 'maliciousEntity', class: Google::Apis::AlertcenterV1beta1::MaliciousEntity, decorator: Google::Apis::AlertcenterV1beta1::MaliciousEntity::Representation
|
|
356
|
+
|
|
357
|
+
collection :messages, as: 'messages', class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo, decorator: Google::Apis::AlertcenterV1beta1::GmailMessageInfo::Representation
|
|
358
|
+
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class StateSponsoredAttack
|
|
363
|
+
# @private
|
|
364
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
365
|
+
property :email, as: 'email'
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
class SuspiciousActivity
|
|
370
|
+
# @private
|
|
371
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
372
|
+
property :email, as: 'email'
|
|
373
|
+
collection :events, as: 'events', class: Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail, decorator: Google::Apis::AlertcenterV1beta1::SuspiciousActivitySecurityDetail::Representation
|
|
374
|
+
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
class SuspiciousActivitySecurityDetail
|
|
379
|
+
# @private
|
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
381
|
+
property :device_id, as: 'deviceId'
|
|
382
|
+
property :device_model, as: 'deviceModel'
|
|
383
|
+
property :device_property, as: 'deviceProperty'
|
|
384
|
+
property :device_type, as: 'deviceType'
|
|
385
|
+
property :ios_vendor_id, as: 'iosVendorId'
|
|
386
|
+
property :new_value, as: 'newValue'
|
|
387
|
+
property :old_value, as: 'oldValue'
|
|
388
|
+
property :resource_id, as: 'resourceId'
|
|
389
|
+
property :serial_number, as: 'serialNumber'
|
|
390
|
+
end
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
end
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
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
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module AlertcenterV1beta1
|
|
23
|
+
# G Suite Alert Center API
|
|
24
|
+
#
|
|
25
|
+
# G Suite API for alerts managment.
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/alertcenter_v1beta1'
|
|
29
|
+
#
|
|
30
|
+
# Alertcenter = Google::Apis::AlertcenterV1beta1 # Alias the module
|
|
31
|
+
# service = Alertcenter::AlertCenterService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://gsuite.google.com/products/alerts/
|
|
34
|
+
class AlertCenterService < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
|
+
def initialize
|
|
46
|
+
super('https://alertcenter.googleapis.com/', '')
|
|
47
|
+
@batch_path = 'batch'
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Marks the specified alert for deletion. An alert that has been marked for
|
|
51
|
+
# deletion will be excluded from the results of a List operation by default,
|
|
52
|
+
# and will be removed from the Alert Center after 30 days.
|
|
53
|
+
# Marking an alert for deletion will have no effect on an alert which has
|
|
54
|
+
# already been marked for deletion. Attempting to mark a nonexistent alert
|
|
55
|
+
# for deletion will return NOT_FOUND.
|
|
56
|
+
# @param [String] alert_id
|
|
57
|
+
# Required. The identifier of the alert to delete.
|
|
58
|
+
# @param [String] customer_id
|
|
59
|
+
# Optional. The unique identifier of the Google account of the customer the
|
|
60
|
+
# alert is associated with. This is obfuscated and not the plain customer
|
|
61
|
+
# ID as stored internally. Inferred from the caller identity if not provided.
|
|
62
|
+
# @param [String] fields
|
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
|
64
|
+
# @param [String] quota_user
|
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::AlertcenterV1beta1::Empty] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::AlertcenterV1beta1::Empty]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def delete_alert(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:delete, 'v1beta1/alerts/{alertId}', options)
|
|
81
|
+
command.response_representation = Google::Apis::AlertcenterV1beta1::Empty::Representation
|
|
82
|
+
command.response_class = Google::Apis::AlertcenterV1beta1::Empty
|
|
83
|
+
command.params['alertId'] = alert_id unless alert_id.nil?
|
|
84
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
87
|
+
execute_or_queue_command(command, &block)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Gets the specified alert.
|
|
91
|
+
# @param [String] alert_id
|
|
92
|
+
# Required. The identifier of the alert to retrieve.
|
|
93
|
+
# @param [String] customer_id
|
|
94
|
+
# Optional. The unique identifier of the Google account of the customer the
|
|
95
|
+
# alert is associated with. This is obfuscated and not the plain customer
|
|
96
|
+
# ID as stored internally. Inferred from the caller identity if not provided.
|
|
97
|
+
# @param [String] fields
|
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
|
99
|
+
# @param [String] quota_user
|
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
|
103
|
+
# Request-specific options
|
|
104
|
+
#
|
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
|
106
|
+
# @yieldparam result [Google::Apis::AlertcenterV1beta1::Alert] parsed result object
|
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
108
|
+
#
|
|
109
|
+
# @return [Google::Apis::AlertcenterV1beta1::Alert]
|
|
110
|
+
#
|
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
114
|
+
def get_alert(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
115
|
+
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}', options)
|
|
116
|
+
command.response_representation = Google::Apis::AlertcenterV1beta1::Alert::Representation
|
|
117
|
+
command.response_class = Google::Apis::AlertcenterV1beta1::Alert
|
|
118
|
+
command.params['alertId'] = alert_id unless alert_id.nil?
|
|
119
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
+
execute_or_queue_command(command, &block)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Lists all the alerts for the current user and application.
|
|
126
|
+
# @param [String] customer_id
|
|
127
|
+
# Optional. The unique identifier of the Google account of the customer the
|
|
128
|
+
# alerts are associated with. This is obfuscated and not the plain
|
|
129
|
+
# customer ID as stored internally. Inferred from the caller identity if not
|
|
130
|
+
# provided.
|
|
131
|
+
# @param [String] filter
|
|
132
|
+
# Optional. Query string for filtering alert results.
|
|
133
|
+
# This string must be specified as an expression or list of expressions,
|
|
134
|
+
# using the following grammar:
|
|
135
|
+
# ### Expressions
|
|
136
|
+
# An expression has the general form `<field> <operator> <value>`.
|
|
137
|
+
# A field or value which contains a space or a colon must be enclosed by
|
|
138
|
+
# double quotes.
|
|
139
|
+
# #### Operators
|
|
140
|
+
# Operators follow the BNF specification:
|
|
141
|
+
# `<equalityOperator> ::= "=" | ":"`
|
|
142
|
+
# `<relationalOperator> ::= "<" | ">" | "<=" | ">="`
|
|
143
|
+
# Relational operators are defined only for timestamp fields. Equality
|
|
144
|
+
# operators are defined only for string fields.
|
|
145
|
+
# #### Timestamp fields
|
|
146
|
+
# The value supplied for a timestamp field must be an
|
|
147
|
+
# [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string.
|
|
148
|
+
# Supported timestamp fields are `create_time`, `start_time`, and `end_time`.
|
|
149
|
+
# #### String fields
|
|
150
|
+
# The value supplied for a string field may be an arbitrary string.
|
|
151
|
+
# #### Examples
|
|
152
|
+
# To query for all alerts created on or after April 5, 2018:
|
|
153
|
+
# `create_time >= "2018-04-05T00:00:00Z"`
|
|
154
|
+
# To query for all alerts from the source "Gmail phishing":
|
|
155
|
+
# `source:"Gmail phishing"`
|
|
156
|
+
# ### Joining expressions
|
|
157
|
+
# Expressions may be joined to form a more complex query. The BNF
|
|
158
|
+
# specification is:
|
|
159
|
+
# `<expressionList> ::= <expression> | <expressionList> <conjunction>
|
|
160
|
+
# <expressionList> | <negation> <expressionList>`
|
|
161
|
+
# `<conjunction> ::= "AND" | "OR" | ""`
|
|
162
|
+
# `<negation> ::= "NOT"`
|
|
163
|
+
# Using the empty string as a conjunction acts as an implicit AND.
|
|
164
|
+
# The precedence of joining operations, from highest to lowest, is NOT, AND,
|
|
165
|
+
# OR.
|
|
166
|
+
# #### Examples
|
|
167
|
+
# To query for all alerts which started in 2017:
|
|
168
|
+
# `start_time >= "2017-01-01T00:00:00Z" AND start_time <
|
|
169
|
+
# "2018-01-01T00:00:00Z"`
|
|
170
|
+
# To query for all user reported phishing alerts from the source
|
|
171
|
+
# "Gmail phishing":
|
|
172
|
+
# `type:"User reported phishing" source:"Gmail phishing"`
|
|
173
|
+
# @param [String] order_by
|
|
174
|
+
# Optional. Sort the list results by a certain order.
|
|
175
|
+
# If not specified results may be returned in arbitrary order.
|
|
176
|
+
# You can sort the results in a descending order based on the creation
|
|
177
|
+
# timestamp using order_by="create_time desc".
|
|
178
|
+
# Currently, only sorting by create_time desc is supported.
|
|
179
|
+
# @param [Fixnum] page_size
|
|
180
|
+
# Optional. Requested page size. Server may return fewer items than
|
|
181
|
+
# requested. If unspecified, server will pick an appropriate default.
|
|
182
|
+
# @param [String] page_token
|
|
183
|
+
# Optional. A token identifying a page of results the server should return.
|
|
184
|
+
# If empty, a new iteration is started. To continue an iteration, pass in
|
|
185
|
+
# the value from the previous ListAlertsResponse's next_page_token field.
|
|
186
|
+
# @param [String] fields
|
|
187
|
+
# Selector specifying which fields to include in a partial response.
|
|
188
|
+
# @param [String] quota_user
|
|
189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
191
|
+
# @param [Google::Apis::RequestOptions] options
|
|
192
|
+
# Request-specific options
|
|
193
|
+
#
|
|
194
|
+
# @yield [result, err] Result & error if block supplied
|
|
195
|
+
# @yieldparam result [Google::Apis::AlertcenterV1beta1::ListAlertsResponse] parsed result object
|
|
196
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
197
|
+
#
|
|
198
|
+
# @return [Google::Apis::AlertcenterV1beta1::ListAlertsResponse]
|
|
199
|
+
#
|
|
200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
203
|
+
def list_alerts(customer_id: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
204
|
+
command = make_simple_command(:get, 'v1beta1/alerts', options)
|
|
205
|
+
command.response_representation = Google::Apis::AlertcenterV1beta1::ListAlertsResponse::Representation
|
|
206
|
+
command.response_class = Google::Apis::AlertcenterV1beta1::ListAlertsResponse
|
|
207
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
208
|
+
command.query['filter'] = filter unless filter.nil?
|
|
209
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
210
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
211
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
212
|
+
command.query['fields'] = fields unless fields.nil?
|
|
213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
214
|
+
execute_or_queue_command(command, &block)
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Creates a new alert feedback.
|
|
218
|
+
# @param [String] alert_id
|
|
219
|
+
# Required. The identifier of the alert this feedback belongs to.
|
|
220
|
+
# Returns a NOT_FOUND error if no such alert.
|
|
221
|
+
# @param [Google::Apis::AlertcenterV1beta1::AlertFeedback] alert_feedback_object
|
|
222
|
+
# @param [String] customer_id
|
|
223
|
+
# Optional. The unique identifier of the Google account of the customer the
|
|
224
|
+
# alert's feedback is associated with. This is obfuscated and not the
|
|
225
|
+
# plain customer ID as stored internally. Inferred from the caller identity
|
|
226
|
+
# if not provided.
|
|
227
|
+
# @param [String] fields
|
|
228
|
+
# Selector specifying which fields to include in a partial response.
|
|
229
|
+
# @param [String] quota_user
|
|
230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
232
|
+
# @param [Google::Apis::RequestOptions] options
|
|
233
|
+
# Request-specific options
|
|
234
|
+
#
|
|
235
|
+
# @yield [result, err] Result & error if block supplied
|
|
236
|
+
# @yieldparam result [Google::Apis::AlertcenterV1beta1::AlertFeedback] parsed result object
|
|
237
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
238
|
+
#
|
|
239
|
+
# @return [Google::Apis::AlertcenterV1beta1::AlertFeedback]
|
|
240
|
+
#
|
|
241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
244
|
+
def create_alert_feedback(alert_id, alert_feedback_object = nil, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
245
|
+
command = make_simple_command(:post, 'v1beta1/alerts/{alertId}/feedback', options)
|
|
246
|
+
command.request_representation = Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
|
|
247
|
+
command.request_object = alert_feedback_object
|
|
248
|
+
command.response_representation = Google::Apis::AlertcenterV1beta1::AlertFeedback::Representation
|
|
249
|
+
command.response_class = Google::Apis::AlertcenterV1beta1::AlertFeedback
|
|
250
|
+
command.params['alertId'] = alert_id unless alert_id.nil?
|
|
251
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
254
|
+
execute_or_queue_command(command, &block)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Lists all the feedback for an alert.
|
|
258
|
+
# @param [String] alert_id
|
|
259
|
+
# Required. The alert identifier.
|
|
260
|
+
# If the alert does not exist returns a NOT_FOUND error.
|
|
261
|
+
# @param [String] customer_id
|
|
262
|
+
# Optional. The unique identifier of the Google account of the customer the
|
|
263
|
+
# alert is associated with. This is obfuscated and not the plain customer
|
|
264
|
+
# ID as stored internally. Inferred from the caller identity if not provided.
|
|
265
|
+
# @param [String] fields
|
|
266
|
+
# Selector specifying which fields to include in a partial response.
|
|
267
|
+
# @param [String] quota_user
|
|
268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
270
|
+
# @param [Google::Apis::RequestOptions] options
|
|
271
|
+
# Request-specific options
|
|
272
|
+
#
|
|
273
|
+
# @yield [result, err] Result & error if block supplied
|
|
274
|
+
# @yieldparam result [Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse] parsed result object
|
|
275
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
276
|
+
#
|
|
277
|
+
# @return [Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse]
|
|
278
|
+
#
|
|
279
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
280
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
281
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
282
|
+
def list_alert_feedbacks(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
283
|
+
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}/feedback', options)
|
|
284
|
+
command.response_representation = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse::Representation
|
|
285
|
+
command.response_class = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse
|
|
286
|
+
command.params['alertId'] = alert_id unless alert_id.nil?
|
|
287
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
|
289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
290
|
+
execute_or_queue_command(command, &block)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
protected
|
|
294
|
+
|
|
295
|
+
def apply_command_defaults(command)
|
|
296
|
+
command.query['key'] = key unless key.nil?
|
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
end
|