google-apis-advisorynotifications_v1 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e11d54a479b591d9b4e59328252d7c41e6c5707a0349c2ccaf53fdb89f0c4760
|
4
|
+
data.tar.gz: b81d24d044cd6d084321771e238250dab2301a03230bbd52c715305ad58606ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9c2d153386bcebb0aaa076b7bfdf08a311f6edaf34be758ded9fea3a7ebae90351a65d4f216acd5257d7c48ae92a1f46de9c117c33a58ddde1f2fa0fbd06977
|
7
|
+
data.tar.gz: 481fd5577bca6ef0d05eee5a7b5c618b41626749ff4a4a04769512b47ae6e4f9b6fdba8ee9c0d3d1bda41eb30c6d8d2dac4997747971ef87c0b88aa6cf21e8e7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-advisorynotifications_v1
|
2
2
|
|
3
|
+
### v0.8.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.13.0
|
6
|
+
|
7
|
+
### v0.7.0 (2023-12-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231203
|
10
|
+
|
3
11
|
### v0.6.0 (2023-09-17)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230912
|
@@ -199,6 +199,7 @@ module Google
|
|
199
199
|
attr_accessor :messages
|
200
200
|
|
201
201
|
# The resource name of the notification. Format: organizations/`organization`/
|
202
|
+
# locations/`location`/notifications/`notification` or projects/`project`/
|
202
203
|
# locations/`location`/notifications/`notification`.
|
203
204
|
# Corresponds to the JSON property `name`
|
204
205
|
# @return [String]
|
@@ -260,7 +261,7 @@ module Google
|
|
260
261
|
# @return [String]
|
261
262
|
attr_accessor :etag
|
262
263
|
|
263
|
-
#
|
264
|
+
# Identifier. The resource name of the settings to retrieve. Format:
|
264
265
|
# organizations/`organization`/locations/`location`/settings.
|
265
266
|
# Corresponds to the JSON property `name`
|
266
267
|
# @return [String]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AdvisorynotificationsV1
|
18
18
|
# Version of the google-apis-advisorynotifications_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.8.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/advisory-notifications
|
34
34
|
class AdvisorynotificationsService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://advisorynotifications.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,7 +45,7 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
47
49
|
client_name: 'google-apis-advisorynotifications_v1',
|
48
50
|
client_version: Google::Apis::AdvisorynotificationsV1::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
@@ -82,7 +84,7 @@ module Google
|
|
82
84
|
|
83
85
|
# Update notification settings.
|
84
86
|
# @param [String] name
|
85
|
-
#
|
87
|
+
# Identifier. The resource name of the settings to retrieve. Format:
|
86
88
|
# organizations/`organization`/locations/`location`/settings.
|
87
89
|
# @param [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings] google_cloud_advisorynotifications_v1_settings_object
|
88
90
|
# @param [String] fields
|
@@ -117,7 +119,8 @@ module Google
|
|
117
119
|
# Gets a notification.
|
118
120
|
# @param [String] name
|
119
121
|
# Required. A name of the notification to retrieve. Format: organizations/`
|
120
|
-
# organization`/locations/`location`/notifications/`notification
|
122
|
+
# organization`/locations/`location`/notifications/`notification` or projects/`
|
123
|
+
# projects`/locations/`location`/notifications/`notification`.
|
121
124
|
# @param [String] language_code
|
122
125
|
# ISO code for requested localization language. If unset, will be interpereted
|
123
126
|
# as "en". If the requested language is valid, but not supported for this
|
@@ -155,7 +158,8 @@ module Google
|
|
155
158
|
# Lists notifications under a given parent.
|
156
159
|
# @param [String] parent
|
157
160
|
# Required. The parent, which owns this collection of notifications. Must be of
|
158
|
-
# the form "organizations/`organization`/locations/`location`"
|
161
|
+
# the form "organizations/`organization`/locations/`location`" or "projects/`
|
162
|
+
# project`/locations/`location`"
|
159
163
|
# @param [String] language_code
|
160
164
|
# ISO code for requested localization language. If unset, will be interpereted
|
161
165
|
# as "en". If the requested language is valid, but not supported for this
|
@@ -203,6 +207,98 @@ module Google
|
|
203
207
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
208
|
execute_or_queue_command(command, &block)
|
205
209
|
end
|
210
|
+
|
211
|
+
# Gets a notification.
|
212
|
+
# @param [String] name
|
213
|
+
# Required. A name of the notification to retrieve. Format: organizations/`
|
214
|
+
# organization`/locations/`location`/notifications/`notification` or projects/`
|
215
|
+
# projects`/locations/`location`/notifications/`notification`.
|
216
|
+
# @param [String] language_code
|
217
|
+
# ISO code for requested localization language. If unset, will be interpereted
|
218
|
+
# as "en". If the requested language is valid, but not supported for this
|
219
|
+
# notification, English will be returned with an "Not applicable"
|
220
|
+
# LocalizationState. If the ISO code is invalid (i.e. not a real language), this
|
221
|
+
# RPC will throw an error.
|
222
|
+
# @param [String] fields
|
223
|
+
# Selector specifying which fields to include in a partial response.
|
224
|
+
# @param [String] quota_user
|
225
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
226
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
227
|
+
# @param [Google::Apis::RequestOptions] options
|
228
|
+
# Request-specific options
|
229
|
+
#
|
230
|
+
# @yield [result, err] Result & error if block supplied
|
231
|
+
# @yieldparam result [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification] parsed result object
|
232
|
+
# @yieldparam err [StandardError] error object if request failed
|
233
|
+
#
|
234
|
+
# @return [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification]
|
235
|
+
#
|
236
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
237
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
238
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
239
|
+
def get_project_location_notification(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
240
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
241
|
+
command.response_representation = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification::Representation
|
242
|
+
command.response_class = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification
|
243
|
+
command.params['name'] = name unless name.nil?
|
244
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
245
|
+
command.query['fields'] = fields unless fields.nil?
|
246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
247
|
+
execute_or_queue_command(command, &block)
|
248
|
+
end
|
249
|
+
|
250
|
+
# Lists notifications under a given parent.
|
251
|
+
# @param [String] parent
|
252
|
+
# Required. The parent, which owns this collection of notifications. Must be of
|
253
|
+
# the form "organizations/`organization`/locations/`location`" or "projects/`
|
254
|
+
# project`/locations/`location`"
|
255
|
+
# @param [String] language_code
|
256
|
+
# ISO code for requested localization language. If unset, will be interpereted
|
257
|
+
# as "en". If the requested language is valid, but not supported for this
|
258
|
+
# notification, English will be returned with an "Not applicable"
|
259
|
+
# LocalizationState. If the ISO code is invalid (i.e. not a real language), this
|
260
|
+
# RPC will throw an error.
|
261
|
+
# @param [Fixnum] page_size
|
262
|
+
# The maximum number of notifications to return. The service may return fewer
|
263
|
+
# than this value. If unspecified or equal to 0, at most 50 notifications will
|
264
|
+
# be returned. The maximum value is 50; values above 50 will be coerced to 50.
|
265
|
+
# @param [String] page_token
|
266
|
+
# A page token returned from a previous request. When paginating, all other
|
267
|
+
# parameters provided in the request must match the call that returned the page
|
268
|
+
# token.
|
269
|
+
# @param [String] view
|
270
|
+
# Specifies which parts of the notification resource should be returned in the
|
271
|
+
# response.
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1ListNotificationsResponse] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1ListNotificationsResponse]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def list_project_location_notifications(parent, language_code: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:get, 'v1/{+parent}/notifications', options)
|
291
|
+
command.response_representation = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1ListNotificationsResponse::Representation
|
292
|
+
command.response_class = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1ListNotificationsResponse
|
293
|
+
command.params['parent'] = parent unless parent.nil?
|
294
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
295
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
296
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
297
|
+
command.query['view'] = view unless view.nil?
|
298
|
+
command.query['fields'] = fields unless fields.nil?
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
300
|
+
execute_or_queue_command(command, &block)
|
301
|
+
end
|
206
302
|
|
207
303
|
protected
|
208
304
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-advisorynotifications_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-advisorynotifications_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-advisorynotifications_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-advisorynotifications_v1/v0.8.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-advisorynotifications_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Advisory Notifications API V1
|