google-apis-advisorynotifications_v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/advisorynotifications_v1/classes.rb +57 -0
- data/lib/google/apis/advisorynotifications_v1/gem_version.rb +2 -2
- data/lib/google/apis/advisorynotifications_v1/representations.rb +29 -0
- data/lib/google/apis/advisorynotifications_v1/service.rb +65 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b6482c89fdcaf663053b63e3a4c6b026c4e9e8e72643fb4c7a07136f87861e5
|
4
|
+
data.tar.gz: 9ef9a91f11372c1de7d756ec00d174aae0b4dedc35a17fff9d1121fe586d5ff5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e191235a0257e2a857fb10031e497869cb398d0d4bea034c1d822c2b35d10b063e4b73a01c1bd01482b89821cb21fd2595211b8246471cfd9c7163b6fd6b0335
|
7
|
+
data.tar.gz: 7fb8ec31a9e9358d0bd9e75e1cd66bf63831fd53186be19fb23b02ca669ad9c2c82c0d4cd7a60f30a1287d7573648c225764ccea7e62f040205225ca9ff813dc
|
data/CHANGELOG.md
CHANGED
@@ -228,6 +228,63 @@ module Google
|
|
228
228
|
end
|
229
229
|
end
|
230
230
|
|
231
|
+
# Settings for each NotificationType.
|
232
|
+
class GoogleCloudAdvisorynotificationsV1NotificationSettings
|
233
|
+
include Google::Apis::Core::Hashable
|
234
|
+
|
235
|
+
# Whether the associated NotificationType is enabled.
|
236
|
+
# Corresponds to the JSON property `enabled`
|
237
|
+
# @return [Boolean]
|
238
|
+
attr_accessor :enabled
|
239
|
+
alias_method :enabled?, :enabled
|
240
|
+
|
241
|
+
def initialize(**args)
|
242
|
+
update!(**args)
|
243
|
+
end
|
244
|
+
|
245
|
+
# Update properties of this object
|
246
|
+
def update!(**args)
|
247
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
# Settings for Advisory Notifications.
|
252
|
+
class GoogleCloudAdvisorynotificationsV1Settings
|
253
|
+
include Google::Apis::Core::Hashable
|
254
|
+
|
255
|
+
# Required. Fingerprint for optimistic concurrency returned in Get requests.
|
256
|
+
# Must be provided for Update requests. If the value provided does not match the
|
257
|
+
# value known to the server, ABORTED will be thrown, and the client should retry
|
258
|
+
# the read-modify-write cycle.
|
259
|
+
# Corresponds to the JSON property `etag`
|
260
|
+
# @return [String]
|
261
|
+
attr_accessor :etag
|
262
|
+
|
263
|
+
# Output only. The resource name of the settings to retrieve. Format:
|
264
|
+
# organizations/`organization`/locations/`location`/settings.
|
265
|
+
# Corresponds to the JSON property `name`
|
266
|
+
# @return [String]
|
267
|
+
attr_accessor :name
|
268
|
+
|
269
|
+
# Required. Map of each notification type and its settings to get/set all
|
270
|
+
# settings at once. The server will validate the value for each notification
|
271
|
+
# type.
|
272
|
+
# Corresponds to the JSON property `notificationSettings`
|
273
|
+
# @return [Hash<String,Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings>]
|
274
|
+
attr_accessor :notification_settings
|
275
|
+
|
276
|
+
def initialize(**args)
|
277
|
+
update!(**args)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Update properties of this object
|
281
|
+
def update!(**args)
|
282
|
+
@etag = args[:etag] if args.key?(:etag)
|
283
|
+
@name = args[:name] if args.key?(:name)
|
284
|
+
@notification_settings = args[:notification_settings] if args.key?(:notification_settings)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
231
288
|
# A subject line of a notification.
|
232
289
|
class GoogleCloudAdvisorynotificationsV1Subject
|
233
290
|
include Google::Apis::Core::Hashable
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230912"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,6 +64,18 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class GoogleCloudAdvisorynotificationsV1NotificationSettings
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleCloudAdvisorynotificationsV1Settings
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class GoogleCloudAdvisorynotificationsV1Subject
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
@@ -144,6 +156,23 @@ module Google
|
|
144
156
|
end
|
145
157
|
end
|
146
158
|
|
159
|
+
class GoogleCloudAdvisorynotificationsV1NotificationSettings
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
property :enabled, as: 'enabled'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class GoogleCloudAdvisorynotificationsV1Settings
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
property :etag, as: 'etag'
|
170
|
+
property :name, as: 'name'
|
171
|
+
hash :notification_settings, as: 'notificationSettings', class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings, decorator: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings::Representation
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
147
176
|
class GoogleCloudAdvisorynotificationsV1Subject
|
148
177
|
# @private
|
149
178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,6 +49,71 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Get notification settings.
|
53
|
+
# @param [String] name
|
54
|
+
# Required. The resource name of the settings to retrieve. Format: organizations/
|
55
|
+
# `organization`/locations/`location`/settings.
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
75
|
+
command.response_representation = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings::Representation
|
76
|
+
command.response_class = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings
|
77
|
+
command.params['name'] = name unless name.nil?
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Update notification settings.
|
84
|
+
# @param [String] name
|
85
|
+
# Output only. The resource name of the settings to retrieve. Format:
|
86
|
+
# organizations/`organization`/locations/`location`/settings.
|
87
|
+
# @param [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings] google_cloud_advisorynotifications_v1_settings_object
|
88
|
+
# @param [String] fields
|
89
|
+
# Selector specifying which fields to include in a partial response.
|
90
|
+
# @param [String] quota_user
|
91
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
92
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
93
|
+
# @param [Google::Apis::RequestOptions] options
|
94
|
+
# Request-specific options
|
95
|
+
#
|
96
|
+
# @yield [result, err] Result & error if block supplied
|
97
|
+
# @yieldparam result [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings] parsed result object
|
98
|
+
# @yieldparam err [StandardError] error object if request failed
|
99
|
+
#
|
100
|
+
# @return [Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings]
|
101
|
+
#
|
102
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
103
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
104
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
105
|
+
def update_organization_location_settings(name, google_cloud_advisorynotifications_v1_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
106
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
107
|
+
command.request_representation = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings::Representation
|
108
|
+
command.request_object = google_cloud_advisorynotifications_v1_settings_object
|
109
|
+
command.response_representation = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings::Representation
|
110
|
+
command.response_class = Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Settings
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
execute_or_queue_command(command, &block)
|
115
|
+
end
|
116
|
+
|
52
117
|
# Gets a notification.
|
53
118
|
# @param [String] name
|
54
119
|
# Required. A name of the notification to retrieve. Format: organizations/`
|
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.6.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: 2023-
|
11
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.6.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.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Advisory Notifications API V1
|