oci 2.4.7 → 2.5.0
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/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
@@ -0,0 +1,24 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
4
|
+
module OCI
|
5
|
+
# This class provides a wrapper around {OCI::Streaming::StreamClient} and offers convenience methods
|
6
|
+
# for operations that would otherwise need to be chained together. For example, instead of performing an action
|
7
|
+
# on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
8
|
+
# to enter a given state, you can call a single method in this class to accomplish the same functionality
|
9
|
+
class Streaming::StreamClientCompositeOperations
|
10
|
+
# The {OCI::Streaming::StreamClient} used to communicate with the service_client
|
11
|
+
#
|
12
|
+
# @return [OCI::Streaming::StreamClient]
|
13
|
+
attr_reader :service_client
|
14
|
+
|
15
|
+
# Initializes a new StreamClientCompositeOperations
|
16
|
+
#
|
17
|
+
# @param [OCI::Streaming::StreamClient] service_client The client used to communicate with the service.
|
18
|
+
# Defaults to a new service client created via {OCI::Streaming::StreamClient#initialize} with no arguments
|
19
|
+
def initialize(service_client = OCI::Streaming::StreamClient.new)
|
20
|
+
@service_client = service_client
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
module OCI
|
4
|
+
module Streaming
|
5
|
+
# Module containing models for requests made to, and responses received from,
|
6
|
+
# OCI Streaming services
|
7
|
+
module Models
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# Require models
|
13
|
+
require 'oci/streaming/models/create_cursor_details'
|
14
|
+
require 'oci/streaming/models/create_group_cursor_details'
|
15
|
+
require 'oci/streaming/models/create_stream_details'
|
16
|
+
require 'oci/streaming/models/cursor'
|
17
|
+
require 'oci/streaming/models/group'
|
18
|
+
require 'oci/streaming/models/message'
|
19
|
+
require 'oci/streaming/models/partition_reservation'
|
20
|
+
require 'oci/streaming/models/put_messages_details'
|
21
|
+
require 'oci/streaming/models/put_messages_details_entry'
|
22
|
+
require 'oci/streaming/models/put_messages_result'
|
23
|
+
require 'oci/streaming/models/put_messages_result_entry'
|
24
|
+
require 'oci/streaming/models/stream'
|
25
|
+
require 'oci/streaming/models/stream_summary'
|
26
|
+
require 'oci/streaming/models/update_group_details'
|
27
|
+
require 'oci/streaming/models/update_stream_details'
|
28
|
+
|
29
|
+
# Require generated clients
|
30
|
+
require 'oci/streaming/stream_client'
|
31
|
+
require 'oci/streaming/stream_admin_client'
|
32
|
+
require 'oci/streaming/stream_admin_client_composite_operations'
|
33
|
+
|
34
|
+
# Require service utilities
|
35
|
+
require 'oci/streaming/util'
|
data/lib/oci/version.rb
CHANGED
data/lib/oci/waas/waas_client.rb
CHANGED
@@ -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 WaasClient.
|
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 + '/20181116'
|
80
|
+
else
|
81
|
+
region ||= config.region
|
82
|
+
region ||= signer.region if signer.respond_to?(:region)
|
83
|
+
self.region = region
|
84
|
+
end
|
85
|
+
logger.info "WaasClient 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, :WaasClient) + '/20181116'
|
91
|
-
logger.info "WaasClient endpoint set to '#{endpoint}'." if logger
|
98
|
+
logger.info "WaasClient 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.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -180,6 +180,34 @@ dependencies:
|
|
180
180
|
- - "~>"
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '1.9'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: rspec
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '3.8'
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - "~>"
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '3.8'
|
197
|
+
- !ruby/object:Gem::Dependency
|
198
|
+
name: activesupport
|
199
|
+
requirement: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - "~>"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: 5.2.2
|
204
|
+
type: :development
|
205
|
+
prerelease: false
|
206
|
+
version_requirements: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - "~>"
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 5.2.2
|
183
211
|
description: Ruby SDK for Oracle Cloud Infrastructure.
|
184
212
|
email:
|
185
213
|
- joe.levy@oracle.com
|
@@ -197,7 +225,6 @@ files:
|
|
197
225
|
- "./lib/oci/announcements_service/models/announcement_user_status_details.rb"
|
198
226
|
- "./lib/oci/announcements_service/models/announcements_collection.rb"
|
199
227
|
- "./lib/oci/announcements_service/models/base_announcement.rb"
|
200
|
-
- "./lib/oci/announcements_service/models/notification_followup_details.rb"
|
201
228
|
- "./lib/oci/announcements_service/util.rb"
|
202
229
|
- "./lib/oci/api_client.rb"
|
203
230
|
- "./lib/oci/api_client_proxy_settings.rb"
|
@@ -866,6 +893,27 @@ files:
|
|
866
893
|
- "./lib/oci/retry/retry.rb"
|
867
894
|
- "./lib/oci/retry/retry_config.rb"
|
868
895
|
- "./lib/oci/signer.rb"
|
896
|
+
- "./lib/oci/streaming/models/create_cursor_details.rb"
|
897
|
+
- "./lib/oci/streaming/models/create_group_cursor_details.rb"
|
898
|
+
- "./lib/oci/streaming/models/create_stream_details.rb"
|
899
|
+
- "./lib/oci/streaming/models/cursor.rb"
|
900
|
+
- "./lib/oci/streaming/models/group.rb"
|
901
|
+
- "./lib/oci/streaming/models/message.rb"
|
902
|
+
- "./lib/oci/streaming/models/partition_reservation.rb"
|
903
|
+
- "./lib/oci/streaming/models/put_messages_details.rb"
|
904
|
+
- "./lib/oci/streaming/models/put_messages_details_entry.rb"
|
905
|
+
- "./lib/oci/streaming/models/put_messages_result.rb"
|
906
|
+
- "./lib/oci/streaming/models/put_messages_result_entry.rb"
|
907
|
+
- "./lib/oci/streaming/models/stream.rb"
|
908
|
+
- "./lib/oci/streaming/models/stream_summary.rb"
|
909
|
+
- "./lib/oci/streaming/models/update_group_details.rb"
|
910
|
+
- "./lib/oci/streaming/models/update_stream_details.rb"
|
911
|
+
- "./lib/oci/streaming/stream_admin_client.rb"
|
912
|
+
- "./lib/oci/streaming/stream_admin_client_composite_operations.rb"
|
913
|
+
- "./lib/oci/streaming/stream_client.rb"
|
914
|
+
- "./lib/oci/streaming/stream_client_composite_operations.rb"
|
915
|
+
- "./lib/oci/streaming/streaming.rb"
|
916
|
+
- "./lib/oci/streaming/util.rb"
|
869
917
|
- "./lib/oci/version.rb"
|
870
918
|
- "./lib/oci/waas/models/access_rule.rb"
|
871
919
|
- "./lib/oci/waas/models/access_rule_criteria.rb"
|