oci 2.4.7 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/announcements_service/announcement_client.rb +47 -36
- data/lib/oci/announcements_service/announcements_service.rb +0 -1
- data/lib/oci/announcements_service/models/affected_resource.rb +4 -4
- data/lib/oci/announcements_service/models/announcement.rb +10 -14
- data/lib/oci/announcements_service/models/announcement_summary.rb +1 -1
- data/lib/oci/announcements_service/models/announcement_user_status_details.rb +5 -5
- data/lib/oci/announcements_service/models/announcements_collection.rb +3 -3
- data/lib/oci/announcements_service/models/base_announcement.rb +28 -18
- data/lib/oci/audit/audit_client.rb +17 -10
- data/lib/oci/container_engine/container_engine_client.rb +17 -10
- data/lib/oci/core/blockstorage_client.rb +17 -10
- data/lib/oci/core/compute_client.rb +17 -10
- data/lib/oci/core/compute_management_client.rb +17 -10
- data/lib/oci/core/models/create_subnet_details.rb +1 -1
- data/lib/oci/core/models/subnet.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +17 -10
- data/lib/oci/database/database_client.rb +17 -10
- data/lib/oci/dns/dns_client.rb +17 -10
- data/lib/oci/email/email_client.rb +17 -10
- data/lib/oci/file_storage/file_storage_client.rb +17 -10
- data/lib/oci/healthchecks/health_checks_client.rb +17 -10
- data/lib/oci/identity/identity_client.rb +17 -10
- data/lib/oci/key_management/kms_crypto_client.rb +4 -5
- data/lib/oci/key_management/kms_management_client.rb +7 -8
- data/lib/oci/key_management/kms_vault_client.rb +20 -13
- data/lib/oci/key_management/models/create_key_details.rb +34 -1
- data/lib/oci/key_management/models/create_vault_details.rb +34 -1
- data/lib/oci/key_management/models/key_version.rb +1 -1
- data/lib/oci/key_management/models/update_key_details.rb +37 -4
- data/lib/oci/key_management/models/update_vault_details.rb +37 -4
- data/lib/oci/load_balancer/load_balancer_client.rb +17 -10
- data/lib/oci/object_storage/object_storage_client.rb +17 -10
- data/lib/oci/regions.rb +20 -4
- data/lib/oci/resource_search/resource_search_client.rb +17 -10
- data/lib/oci/streaming/models/create_cursor_details.rb +205 -0
- data/lib/oci/streaming/models/create_group_cursor_details.rb +237 -0
- data/lib/oci/streaming/models/create_stream_details.rb +227 -0
- data/lib/oci/streaming/models/cursor.rb +150 -0
- data/lib/oci/streaming/models/group.rb +179 -0
- data/lib/oci/streaming/models/message.rb +199 -0
- data/lib/oci/streaming/models/partition_reservation.rb +192 -0
- data/lib/oci/streaming/models/put_messages_details.rb +149 -0
- data/lib/oci/{announcements_service/models/notification_followup_details.rb → streaming/models/put_messages_details_entry.rb} +19 -22
- data/lib/oci/streaming/models/put_messages_result.rb +165 -0
- data/lib/oci/streaming/models/put_messages_result_entry.rb +196 -0
- data/lib/oci/streaming/models/stream.rb +319 -0
- data/lib/oci/streaming/models/stream_summary.rb +291 -0
- data/lib/oci/streaming/models/update_group_details.rb +176 -0
- data/lib/oci/streaming/models/update_stream_details.rb +174 -0
- data/lib/oci/streaming/stream_admin_client.rb +432 -0
- data/lib/oci/streaming/stream_admin_client_composite_operations.rb +143 -0
- data/lib/oci/streaming/stream_client.rb +602 -0
- data/lib/oci/streaming/stream_client_composite_operations.rb +24 -0
- data/lib/oci/streaming/streaming.rb +35 -0
- data/lib/oci/streaming/util.rb +2 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/waas_client.rb +17 -10
- metadata +51 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf6aff98d6f342152483db6ce35a1bfb4027282bcf917c4107516061cb7f5251
|
4
|
+
data.tar.gz: fefda2f66264fd6b8f70783b89ec7fcd8cba808b8295f336c6a43af508e067d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca16c082548a1d88944371c5f7de08df026fb398920272a86a30d68e4b97945088245527b631aa3d0f731190ee42a1f1976e561618d83db3c1d4c46d82514d3
|
7
|
+
data.tar.gz: c31bba2b0656027fe0e184e3dae745a0db44d39b318720c24779b72b4834659e9a01cc99956d3e3651d0628629cd04a364821bacae64c676d8930b499ec9001e
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Oracle Cloud Infrastructure Ruby SDK
|
2
|
-
**Version 2.
|
2
|
+
**Version 2.5.0**
|
3
3
|
|
4
4
|
This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
|
5
5
|
|
@@ -21,6 +21,7 @@ The Ruby SDK supports the following services:
|
|
21
21
|
* Load Balancing
|
22
22
|
* Object Storage
|
23
23
|
* Search
|
24
|
+
* Streaming
|
24
25
|
* Web Application Acceleration and Security
|
25
26
|
|
26
27
|
**Licensing:** This SDK and sample is dual licensed under the Universal Permissive License 1.0 and the Apache License.
|
@@ -167,6 +168,22 @@ Note that the Ruby SDK does not support parsing custom attributes in the configu
|
|
167
168
|
|
168
169
|
Some response fields are enum-typed. In the future, individual services may return values not covered by existing enums for that field. To address this possibility, every enum-type response field has an additional value named "UNKNOWN_ENUM_VALUE". If a service returns a value that is not recognized by your version of the SDK, then the response field will be set to this value. Please ensure that your code handles the "UNKNOWN_ENUM_VALUE" case if you have conditional logic based on an enum-typed field.
|
169
170
|
|
171
|
+
## New Region Support
|
172
|
+
|
173
|
+
If you are using a version of the SDK released prior to the announcement of a new region, you may still be able to reach it, depending on whether the region is in the oraclecloud.com realm.
|
174
|
+
|
175
|
+
A *region* is a localized geographic area. For more information on regions and how to identify them, see [Regions and Availability Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm).
|
176
|
+
|
177
|
+
A *realm* is a set of regions that share entities. You can identify your realm by looking at the domain name at the end of the network address. For example, the realm for ``xyz.abc.123.oraclecloud.com`` is ``oraclecloud.com``.
|
178
|
+
|
179
|
+
### oraclecloud.com Realm
|
180
|
+
|
181
|
+
For regions in the oraclecloud.com realm, even if the `OCI::Regions::REGION_ENUM` does not contain the new region, the forward compatibility of the SDK can automatically handle it. You can pass new region names just as you would pass ones that are already defined. For more information on passing region names in the configuration, see [Configuring the SDK](#configuring-the-sdk). For details on `OCI::Regions::REGION_ENUM`, see [OCI::Regions](https://docs.cloud.oracle.com/iaas/tools/ruby/latest/OCI/Regions.html).
|
182
|
+
|
183
|
+
### Other Realms
|
184
|
+
|
185
|
+
Accessing regions in realms other than oraclecloud.com with prior versions of the Ruby SDK is currently unsupported. We recommend moving to a version that explicitly supports the desired region.
|
186
|
+
|
170
187
|
## Writing Your First Ruby Program with the SDK
|
171
188
|
|
172
189
|
require 'oci'
|
data/lib/oci.rb
CHANGED
@@ -33,6 +33,7 @@ require 'oci/key_management/key_management'
|
|
33
33
|
require 'oci/announcements_service/announcements_service'
|
34
34
|
require 'oci/waas/waas'
|
35
35
|
require 'oci/healthchecks/healthchecks'
|
36
|
+
require 'oci/streaming/streaming'
|
36
37
|
|
37
38
|
# Top level module for the Oracle Cloud Infrastructure SDK
|
38
39
|
module OCI
|
@@ -5,7 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
7
7
|
module OCI
|
8
|
-
#
|
8
|
+
# Manage Oracle Cloud Infrastructure console announcements.
|
9
9
|
class AnnouncementsService::AnnouncementClient
|
10
10
|
# Client used to make HTTP requests.
|
11
11
|
# @return [OCI::ApiClient]
|
@@ -25,20 +25,22 @@ module OCI
|
|
25
25
|
# @return [String]
|
26
26
|
attr_reader :region
|
27
27
|
|
28
|
-
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
28
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
29
29
|
|
30
30
|
|
31
31
|
# Creates a new AnnouncementClient.
|
32
32
|
# Notes:
|
33
33
|
# If a config is not specified, then the global OCI.config will be used.
|
34
|
-
# This client is not thread-safe
|
35
34
|
#
|
36
|
-
#
|
37
|
-
# then the region parameter will be used.
|
35
|
+
# This client is not thread-safe
|
38
36
|
#
|
37
|
+
# Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
|
38
|
+
# region. A region may be specified in the config or via or the region parameter. If specified in both, then the
|
39
|
+
# region parameter will be used.
|
39
40
|
# @param [Config] config A Config object.
|
40
41
|
# @param [String] region A region used to determine the service endpoint. This will usually
|
41
42
|
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
43
|
+
# @param [String] endpoint The fully qualified endpoint URL
|
42
44
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
43
45
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
44
46
|
# so that the instance principals signer can be provided to the client
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
48
50
|
# apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
49
51
|
# will not perform any retries
|
50
|
-
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
52
|
+
def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
51
53
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
52
54
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
53
55
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -73,11 +75,16 @@ module OCI
|
|
73
75
|
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
74
76
|
@retry_config = retry_config
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
-
|
78
|
+
if endpoint
|
79
|
+
@endpoint = endpoint + '/20180904'
|
80
|
+
else
|
81
|
+
region ||= config.region
|
82
|
+
region ||= signer.region if signer.respond_to?(:region)
|
83
|
+
self.region = region
|
84
|
+
end
|
85
|
+
logger.info "AnnouncementClient endpoint set to '#{@endpoint}'." if logger
|
79
86
|
end
|
80
|
-
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
|
87
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
81
88
|
|
82
89
|
# Set the region that will be used to determine the service endpoint.
|
83
90
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
@@ -88,7 +95,7 @@ module OCI
|
|
88
95
|
raise 'A region must be specified.' unless @region
|
89
96
|
|
90
97
|
@endpoint = OCI::Regions.get_service_endpoint(@region, :AnnouncementClient) + '/20180904'
|
91
|
-
logger.info "AnnouncementClient endpoint set to '#{endpoint}'." if logger
|
98
|
+
logger.info "AnnouncementClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
92
99
|
end
|
93
100
|
|
94
101
|
# @return [Logger] The logger for this client. May be nil.
|
@@ -101,14 +108,14 @@ module OCI
|
|
101
108
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
102
109
|
|
103
110
|
|
104
|
-
# Gets details
|
111
|
+
# Gets the details of a specific announcement.
|
105
112
|
#
|
106
|
-
# @param [String] announcement_id The OCID of the announcement
|
113
|
+
# @param [String] announcement_id The OCID of the announcement.
|
107
114
|
# @param [Hash] opts the optional parameters
|
108
115
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
109
116
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
110
|
-
# @option opts [String] :opc_request_id
|
111
|
-
# a particular request, please provide the request ID.
|
117
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
118
|
+
# a particular request, please provide the complete request ID.
|
112
119
|
#
|
113
120
|
# @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::Announcement Announcement}
|
114
121
|
def get_announcement(announcement_id, opts = {})
|
@@ -157,14 +164,14 @@ module OCI
|
|
157
164
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
158
165
|
|
159
166
|
|
160
|
-
#
|
167
|
+
# Gets information about whether a specific announcement was acknowledged by a user.
|
161
168
|
#
|
162
|
-
# @param [String] announcement_id The OCID of the announcement
|
169
|
+
# @param [String] announcement_id The OCID of the announcement.
|
163
170
|
# @param [Hash] opts the optional parameters
|
164
171
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
165
172
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
166
|
-
# @option opts [String] :opc_request_id
|
167
|
-
# a particular request, please provide the request ID.
|
173
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
174
|
+
# a particular request, please provide the complete request ID.
|
168
175
|
#
|
169
176
|
# @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementUserStatusDetails AnnouncementUserStatusDetails}
|
170
177
|
def get_announcement_user_status(announcement_id, opts = {})
|
@@ -213,26 +220,30 @@ module OCI
|
|
213
220
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
214
221
|
|
215
222
|
|
216
|
-
# Gets a list of
|
223
|
+
# Gets a list of announcements for the current tenancy.
|
224
|
+
#
|
225
|
+
# @param [String] compartment_id The OCID of the compartment. Because announcements are specific to a tenancy, this is the
|
226
|
+
# OCID of the root compartment.
|
217
227
|
#
|
218
|
-
# @param [String] compartment_id OCID of the compartment where search is performed. Announcements are specific to tenancy, so this should an ID of the root compartment
|
219
228
|
# @param [Hash] opts the optional parameters
|
220
229
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
221
230
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
222
231
|
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
223
232
|
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
224
|
-
# @option opts [String] :announcement_type
|
225
|
-
# @option opts [String] :lifecycle_state
|
233
|
+
# @option opts [String] :announcement_type The type of announcement.
|
234
|
+
# @option opts [String] :lifecycle_state The announcement's current lifecycle state.
|
226
235
|
# Allowed values are: ACTIVE, INACTIVE
|
227
|
-
# @option opts [BOOLEAN] :is_banner
|
228
|
-
# @option opts [String] :sort_by
|
236
|
+
# @option opts [BOOLEAN] :is_banner Whether the announcement is displayed as a console banner.
|
237
|
+
# @option opts [String] :sort_by The criteria to sort by. You can specify only one sort order.
|
238
|
+
#
|
229
239
|
# Allowed values are: timeOneValue, timeTwoValue, timeCreated, referenceTicketNumber, summary, announcementType
|
230
|
-
# @option opts [String] :sort_order sort order
|
240
|
+
# @option opts [String] :sort_order The sort order to use. (Sorting by `announcementType` orders the announcements list according to importance.)
|
241
|
+
#
|
231
242
|
# Allowed values are: ASC, DESC
|
232
|
-
# @option opts [DateTime] :time_one_earliest_time The earliest timeOneValue to
|
233
|
-
# @option opts [DateTime] :time_one_latest_time The latest timeOneValue to
|
234
|
-
# @option opts [String] :opc_request_id
|
235
|
-
# a particular request, please provide the request ID.
|
243
|
+
# @option opts [DateTime] :time_one_earliest_time The boundary for the earliest `timeOneValue` date on announcements that you want to see.
|
244
|
+
# @option opts [DateTime] :time_one_latest_time The boundary for the latest `timeOneValue` date on announcements that you want to see.
|
245
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
246
|
+
# a particular request, please provide the complete request ID.
|
236
247
|
#
|
237
248
|
# @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementsCollection AnnouncementsCollection}
|
238
249
|
def list_announcements(compartment_id, opts = {})
|
@@ -302,16 +313,16 @@ module OCI
|
|
302
313
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
303
314
|
|
304
315
|
|
305
|
-
#
|
316
|
+
# Updates the status of the specified announcement with regard to whether it has been marked as read.
|
306
317
|
#
|
307
|
-
# @param [String] announcement_id The OCID of the announcement
|
308
|
-
# @param [OCI::AnnouncementsService::Models::AnnouncementUserStatusDetails] status_details
|
318
|
+
# @param [String] announcement_id The OCID of the announcement.
|
319
|
+
# @param [OCI::AnnouncementsService::Models::AnnouncementUserStatusDetails] status_details The information to use to update the announcement's read status.
|
309
320
|
# @param [Hash] opts the optional parameters
|
310
321
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
311
322
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
312
|
-
# @option opts [String] :if_match
|
313
|
-
# @option opts [String] :opc_request_id
|
314
|
-
# a particular request, please provide the request ID.
|
323
|
+
# @option opts [String] :if_match The locking version, used for optimistic concurrency control.
|
324
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
325
|
+
# a particular request, please provide the complete request ID.
|
315
326
|
#
|
316
327
|
# @return [Response] A Response object with data of type nil
|
317
328
|
def update_announcement_user_status(announcement_id, status_details, opts = {})
|
@@ -16,7 +16,6 @@ require 'oci/announcements_service/models/announcement_summary'
|
|
16
16
|
require 'oci/announcements_service/models/announcement_user_status_details'
|
17
17
|
require 'oci/announcements_service/models/announcements_collection'
|
18
18
|
require 'oci/announcements_service/models/base_announcement'
|
19
|
-
require 'oci/announcements_service/models/notification_followup_details'
|
20
19
|
|
21
20
|
# Require generated clients
|
22
21
|
require 'oci/announcements_service/announcement_client'
|
@@ -4,18 +4,18 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
#
|
7
|
+
# The resource affected by the event described in the announcement.
|
8
8
|
#
|
9
9
|
class AnnouncementsService::Models::AffectedResource # rubocop:disable Metrics/LineLength
|
10
|
-
# **[Required]** The OCID of the resource
|
10
|
+
# **[Required]** The OCID of the affected resource.
|
11
11
|
# @return [String]
|
12
12
|
attr_accessor :resource_id
|
13
13
|
|
14
|
-
# **[Required]**
|
14
|
+
# **[Required]** The friendly name of the resource.
|
15
15
|
# @return [String]
|
16
16
|
attr_accessor :resource_name
|
17
17
|
|
18
|
-
# **[Required]**
|
18
|
+
# **[Required]** The region where the affected resource exists.
|
19
19
|
# @return [String]
|
20
20
|
attr_accessor :region
|
21
21
|
|
@@ -6,21 +6,23 @@ require_relative 'base_announcement'
|
|
6
6
|
|
7
7
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
8
8
|
module OCI
|
9
|
-
#
|
9
|
+
# A message about an impactful operational event.
|
10
10
|
#
|
11
11
|
class AnnouncementsService::Models::Announcement < AnnouncementsService::Models::BaseAnnouncement # rubocop:disable Metrics/LineLength
|
12
|
-
# A
|
12
|
+
# A detailed explanation of the event, expressed by using Markdown language. Avoid entering
|
13
|
+
# confidential information.
|
14
|
+
#
|
13
15
|
# @return [String]
|
14
16
|
attr_accessor :description
|
15
17
|
|
16
|
-
#
|
18
|
+
# Additional information about the event, expressed by using Markdown language and included in the
|
19
|
+
# details view of an announcement. Additional information might include remediation steps or
|
20
|
+
# answers to frequently asked questions. Avoid entering confidential information.
|
21
|
+
#
|
17
22
|
# @return [String]
|
18
23
|
attr_accessor :additional_information
|
19
24
|
|
20
|
-
#
|
21
|
-
attr_accessor :followups
|
22
|
-
|
23
|
-
# List of resources (possibly empty) affected by this announcement
|
25
|
+
# The list of resources, if any, affected by the event described in the announcement.
|
24
26
|
# @return [Array<OCI::AnnouncementsService::Models::AffectedResource>]
|
25
27
|
attr_accessor :affected_resources
|
26
28
|
|
@@ -45,7 +47,6 @@ module OCI
|
|
45
47
|
'time_updated': :'timeUpdated',
|
46
48
|
'description': :'description',
|
47
49
|
'additional_information': :'additionalInformation',
|
48
|
-
'followups': :'followups',
|
49
50
|
'affected_resources': :'affectedResources'
|
50
51
|
# rubocop:enable Style/SymbolLiteral
|
51
52
|
}
|
@@ -72,7 +73,6 @@ module OCI
|
|
72
73
|
'time_updated': :'DateTime',
|
73
74
|
'description': :'String',
|
74
75
|
'additional_information': :'String',
|
75
|
-
'followups': :'Array<OCI::AnnouncementsService::Models::NotificationFollowupDetails>',
|
76
76
|
'affected_resources': :'Array<OCI::AnnouncementsService::Models::AffectedResource>'
|
77
77
|
# rubocop:enable Style/SymbolLiteral
|
78
78
|
}
|
@@ -100,7 +100,6 @@ module OCI
|
|
100
100
|
# @option attributes [DateTime] :time_updated The value to assign to the {OCI::AnnouncementsService::Models::BaseAnnouncement#time_updated #time_updated} proprety
|
101
101
|
# @option attributes [String] :description The value to assign to the {#description} property
|
102
102
|
# @option attributes [String] :additional_information The value to assign to the {#additional_information} property
|
103
|
-
# @option attributes [Array<OCI::AnnouncementsService::Models::NotificationFollowupDetails>] :followups The value to assign to the {#followups} property
|
104
103
|
# @option attributes [Array<OCI::AnnouncementsService::Models::AffectedResource>] :affected_resources The value to assign to the {#affected_resources} property
|
105
104
|
def initialize(attributes = {})
|
106
105
|
return unless attributes.is_a?(Hash)
|
@@ -120,8 +119,6 @@ module OCI
|
|
120
119
|
|
121
120
|
self.additional_information = attributes[:'additional_information'] if attributes[:'additional_information']
|
122
121
|
|
123
|
-
self.followups = attributes[:'followups'] if attributes[:'followups']
|
124
|
-
|
125
122
|
self.affected_resources = attributes[:'affectedResources'] if attributes[:'affectedResources']
|
126
123
|
|
127
124
|
raise 'You cannot provide both :affectedResources and :affected_resources' if attributes.key?(:'affectedResources') && attributes.key?(:'affected_resources')
|
@@ -157,7 +154,6 @@ module OCI
|
|
157
154
|
time_updated == other.time_updated &&
|
158
155
|
description == other.description &&
|
159
156
|
additional_information == other.additional_information &&
|
160
|
-
followups == other.followups &&
|
161
157
|
affected_resources == other.affected_resources
|
162
158
|
end
|
163
159
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
@@ -174,7 +170,7 @@ module OCI
|
|
174
170
|
# Calculates hash code according to all attributes.
|
175
171
|
# @return [Fixnum] Hash code
|
176
172
|
def hash
|
177
|
-
[id, type, reference_ticket_number, summary, time_one_title, time_one_value, time_two_title, time_two_value, services, affected_regions, announcement_type, lifecycle_state, is_banner, time_created, time_updated, description, additional_information,
|
173
|
+
[id, type, reference_ticket_number, summary, time_one_title, time_one_value, time_two_title, time_two_value, services, affected_regions, announcement_type, lifecycle_state, is_banner, time_created, time_updated, description, additional_information, affected_resources].hash
|
178
174
|
end
|
179
175
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
180
176
|
|
@@ -6,7 +6,7 @@ require_relative 'base_announcement'
|
|
6
6
|
|
7
7
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
8
8
|
module OCI
|
9
|
-
#
|
9
|
+
# Summary representation of an announcement.
|
10
10
|
#
|
11
11
|
class AnnouncementsService::Models::AnnouncementSummary < AnnouncementsService::Models::BaseAnnouncement # rubocop:disable Metrics/LineLength
|
12
12
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -4,19 +4,19 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
# An announcement status
|
7
|
+
# An announcement's status regarding whether it has been acknowledged by a user.
|
8
8
|
#
|
9
9
|
class AnnouncementsService::Models::AnnouncementUserStatusDetails # rubocop:disable Metrics/LineLength
|
10
|
-
# **[Required]** The OCID of the announcement this status
|
10
|
+
# **[Required]** The OCID of the announcement that this status is associated with.
|
11
11
|
# @return [String]
|
12
12
|
attr_accessor :user_status_announcement_id
|
13
13
|
|
14
|
-
# **[Required]** The OCID of the user this status
|
14
|
+
# **[Required]** The OCID of the user that this status is associated with.
|
15
15
|
# @return [String]
|
16
16
|
attr_accessor :user_id
|
17
17
|
|
18
|
-
# The date and time the announcement was acknowledged, in
|
19
|
-
# Example: `
|
18
|
+
# The date and time the announcement was acknowledged, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
19
|
+
# Example: `2019-01-01T17:43:01.389+0000`
|
20
20
|
#
|
21
21
|
# @return [DateTime]
|
22
22
|
attr_accessor :time_acknowledged
|
@@ -4,14 +4,14 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
#
|
7
|
+
# A list of announcements that match filter criteria, if any. Results contain both the announcements and the user-specific status of the announcements.
|
8
8
|
#
|
9
9
|
class AnnouncementsService::Models::AnnouncementsCollection # rubocop:disable Metrics/LineLength
|
10
|
-
# collection of announcements
|
10
|
+
# A collection of announcements.
|
11
11
|
# @return [Array<OCI::AnnouncementsService::Models::AnnouncementSummary>]
|
12
12
|
attr_accessor :items
|
13
13
|
|
14
|
-
# user
|
14
|
+
# The user-specific status for found announcements.
|
15
15
|
# @return [Array<OCI::AnnouncementsService::Models::AnnouncementUserStatusDetails>]
|
16
16
|
attr_accessor :user_statuses
|
17
17
|
|
@@ -4,7 +4,7 @@ require 'date'
|
|
4
4
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
6
6
|
module OCI
|
7
|
-
#
|
7
|
+
# Incident information that forms the basis of an announcement. Avoid entering confidential information.
|
8
8
|
# This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
|
9
9
|
class AnnouncementsService::Models::BaseAnnouncement # rubocop:disable Metrics/LineLength
|
10
10
|
ANNOUNCEMENT_TYPE_ENUM = [
|
@@ -29,66 +29,76 @@ module OCI
|
|
29
29
|
LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze
|
30
30
|
].freeze
|
31
31
|
|
32
|
-
# **[Required]** The OCID of the announcement
|
32
|
+
# **[Required]** The OCID of the announcement.
|
33
33
|
# @return [String]
|
34
34
|
attr_accessor :id
|
35
35
|
|
36
|
-
# **[Required]**
|
36
|
+
# **[Required]** The entity type.
|
37
37
|
# @return [String]
|
38
38
|
attr_accessor :type
|
39
39
|
|
40
|
-
# **[Required]** The reference
|
40
|
+
# **[Required]** The reference Jira ticket number.
|
41
41
|
# @return [String]
|
42
42
|
attr_accessor :reference_ticket_number
|
43
43
|
|
44
|
-
# **[Required]**
|
44
|
+
# **[Required]** A summary of the issue. A summary might appear in the console banner view of the announcement or in
|
45
|
+
# an email subject line. Avoid entering confidential information.
|
46
|
+
#
|
45
47
|
# @return [String]
|
46
48
|
attr_accessor :summary
|
47
49
|
|
48
|
-
# The
|
50
|
+
# The label associated with an initial time value.
|
51
|
+
# Example: `Time Started`
|
52
|
+
#
|
49
53
|
# @return [String]
|
50
54
|
attr_accessor :time_one_title
|
51
55
|
|
52
|
-
# The first time value,
|
56
|
+
# The actual value of the first time value for the event. Typically, this is the time an event started, but the meaning
|
57
|
+
# can vary, depending on the announcement type.
|
58
|
+
#
|
53
59
|
# @return [DateTime]
|
54
60
|
attr_accessor :time_one_value
|
55
61
|
|
56
|
-
# The
|
62
|
+
# The label associated with a second time value.
|
63
|
+
# Example: `Time Ended`
|
64
|
+
#
|
57
65
|
# @return [String]
|
58
66
|
attr_accessor :time_two_title
|
59
67
|
|
60
|
-
# The second time value,
|
68
|
+
# The actual value of the second time value. Typically, this is the time an event ended, but the meaning
|
69
|
+
# can vary, depending on the announcement type.
|
70
|
+
#
|
61
71
|
# @return [DateTime]
|
62
72
|
attr_accessor :time_two_value
|
63
73
|
|
64
|
-
# Impacted services
|
74
|
+
# **[Required]** Impacted Oracle Cloud Infrastructure services.
|
65
75
|
# @return [Array<String>]
|
66
76
|
attr_accessor :services
|
67
77
|
|
68
|
-
# Impacted regions
|
78
|
+
# **[Required]** Impacted regions.
|
69
79
|
# @return [Array<String>]
|
70
80
|
attr_accessor :affected_regions
|
71
81
|
|
72
|
-
# **[Required]** The
|
82
|
+
# **[Required]** The type of announcement. An announcement's type signals its severity.
|
73
83
|
# @return [String]
|
74
84
|
attr_reader :announcement_type
|
75
85
|
|
76
|
-
# **[Required]**
|
86
|
+
# **[Required]** The current lifecycle state of the announcement.
|
77
87
|
# @return [String]
|
78
88
|
attr_reader :lifecycle_state
|
79
89
|
|
80
|
-
# **[Required]**
|
90
|
+
# **[Required]** Whether the announcement is displayed as a banner in the console.
|
81
91
|
# @return [BOOLEAN]
|
82
92
|
attr_accessor :is_banner
|
83
93
|
|
84
|
-
# The date and time the announcement was created, in
|
85
|
-
# Example: `
|
94
|
+
# The date and time the announcement was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
95
|
+
# Example: `2019-01-01T17:43:01.389+0000`
|
86
96
|
#
|
87
97
|
# @return [DateTime]
|
88
98
|
attr_accessor :time_created
|
89
99
|
|
90
|
-
# The date and time the announcement was last updated, in
|
91
|
-
# Example: `
|
100
|
+
# The date and time the announcement was last updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
101
|
+
# Example: `2019-01-01T17:43:01.389+0000`
|
92
102
|
#
|
93
103
|
# @return [DateTime]
|
94
104
|
attr_accessor :time_updated
|