oci 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +1 -1
  4. data/lib/oci/core/models/update_boot_volume_details.rb +18 -4
  5. data/lib/oci/core/models/update_volume_details.rb +18 -4
  6. data/lib/oci/core/models/virtual_circuit.rb +1 -1
  7. data/lib/oci/core/models/vnic.rb +1 -1
  8. data/lib/oci/core/models/volume_group.rb +18 -4
  9. data/lib/oci/database/database.rb +18 -0
  10. data/lib/oci/database/database_client.rb +1779 -427
  11. data/lib/oci/database/database_client_composite_operations.rb +316 -0
  12. data/lib/oci/database/models/autonomous_data_warehouse.rb +391 -0
  13. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +316 -0
  14. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +316 -0
  15. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +167 -0
  16. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +391 -0
  17. data/lib/oci/database/models/autonomous_database.rb +391 -0
  18. data/lib/oci/database/models/autonomous_database_backup.rb +316 -0
  19. data/lib/oci/database/models/autonomous_database_backup_summary.rb +316 -0
  20. data/lib/oci/database/models/autonomous_database_connection_strings.rb +167 -0
  21. data/lib/oci/database/models/autonomous_database_summary.rb +391 -0
  22. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +165 -0
  23. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +287 -0
  24. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +165 -0
  25. data/lib/oci/database/models/create_autonomous_database_details.rb +287 -0
  26. data/lib/oci/database/models/db_system.rb +1 -1
  27. data/lib/oci/database/models/db_system_summary.rb +1 -1
  28. data/lib/oci/database/models/launch_db_system_details.rb +1 -1
  29. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +1 -1
  30. data/lib/oci/database/models/restore_autonomous_data_warehouse_details.rb +147 -0
  31. data/lib/oci/database/models/restore_autonomous_database_details.rb +147 -0
  32. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +230 -0
  33. data/lib/oci/database/models/update_autonomous_database_details.rb +230 -0
  34. data/lib/oci/identity/identity.rb +1 -0
  35. data/lib/oci/identity/identity_client.rb +64 -1
  36. data/lib/oci/identity/models/availability_domain.rb +11 -1
  37. data/lib/oci/identity/models/fault_domain.rb +187 -0
  38. data/lib/oci/version.rb +1 -1
  39. metadata +21 -2
@@ -34,6 +34,7 @@ require 'oci/identity/models/create_user_details'
34
34
  require 'oci/identity/models/customer_secret_key'
35
35
  require 'oci/identity/models/customer_secret_key_summary'
36
36
  require 'oci/identity/models/dynamic_group'
37
+ require 'oci/identity/models/fault_domain'
37
38
  require 'oci/identity/models/group'
38
39
  require 'oci/identity/models/identity_provider'
39
40
  require 'oci/identity/models/idp_group_mapping'
@@ -2621,9 +2621,11 @@ module OCI
2621
2621
  # rubocop:disable Lint/UnusedMethodArgument
2622
2622
 
2623
2623
 
2624
- # Lists the Availability Domains in your tenancy. Specify the OCID of either the tenancy or another
2624
+ # Lists the availability domains in your tenancy. Specify the OCID of either the tenancy or another
2625
2625
  # of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
2626
2626
  # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
2627
+ # Note that the order of the results returned can change if availability domains are added or removed; therefore, do not
2628
+ # create a dependency on the list order.
2627
2629
  #
2628
2630
  # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
2629
2631
  #
@@ -2849,6 +2851,67 @@ module OCI
2849
2851
  # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2850
2852
  # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2851
2853
 
2854
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2855
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2856
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2857
+ # rubocop:disable Lint/UnusedMethodArgument
2858
+
2859
+
2860
+ # Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another
2861
+ # of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment).
2862
+ # See [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five).
2863
+ #
2864
+ # @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
2865
+ #
2866
+ # @param [String] availability_domain The name of the availibilityDomain.
2867
+ #
2868
+ # @param [Hash] opts the optional parameters
2869
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2870
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2871
+ # @return [Response] A Response object with data of type Array<{OCI::Identity::Models::FaultDomain FaultDomain}>
2872
+ def list_fault_domains(compartment_id, availability_domain, opts = {})
2873
+ logger.debug 'Calling operation IdentityClient#list_fault_domains.' if logger
2874
+
2875
+ raise "Missing the required parameter 'compartment_id' when calling list_fault_domains." if compartment_id.nil?
2876
+ raise "Missing the required parameter 'availability_domain' when calling list_fault_domains." if availability_domain.nil?
2877
+
2878
+ path = '/faultDomains/'
2879
+ operation_signing_strategy = :standard
2880
+
2881
+ # rubocop:disable Style/NegatedIf
2882
+ # Query Params
2883
+ query_params = {}
2884
+ query_params[:compartmentId] = compartment_id
2885
+ query_params[:availabilityDomain] = availability_domain
2886
+
2887
+ # Header Params
2888
+ header_params = {}
2889
+ header_params['accept'] = 'application/json'
2890
+ header_params['content-type'] = 'application/json'
2891
+ # rubocop:enable Style/NegatedIf
2892
+
2893
+ post_body = nil
2894
+
2895
+ # rubocop:disable Metrics/BlockLength
2896
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_fault_domains') do
2897
+ @api_client.call_api(
2898
+ :GET,
2899
+ path,
2900
+ endpoint,
2901
+ header_params: header_params,
2902
+ query_params: query_params,
2903
+ operation_signing_strategy: operation_signing_strategy,
2904
+ body: post_body,
2905
+ return_type: 'Array<OCI::Identity::Models::FaultDomain>'
2906
+ )
2907
+ end
2908
+ # rubocop:enable Metrics/BlockLength
2909
+ end
2910
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2911
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2912
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2913
+ # rubocop:enable Lint/UnusedMethodArgument
2914
+
2852
2915
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2853
2916
  # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2854
2917
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
@@ -13,6 +13,10 @@ module OCI
13
13
  # @return [String]
14
14
  attr_accessor :name
15
15
 
16
+ # The OCID of the Availability Domain.
17
+ # @return [String]
18
+ attr_accessor :id
19
+
16
20
  # The OCID of the tenancy.
17
21
  # @return [String]
18
22
  attr_accessor :compartment_id
@@ -22,6 +26,7 @@ module OCI
22
26
  {
23
27
  # rubocop:disable Style/SymbolLiteral
24
28
  'name': :'name',
29
+ 'id': :'id',
25
30
  'compartment_id': :'compartmentId'
26
31
  # rubocop:enable Style/SymbolLiteral
27
32
  }
@@ -32,6 +37,7 @@ module OCI
32
37
  {
33
38
  # rubocop:disable Style/SymbolLiteral
34
39
  'name': :'String',
40
+ 'id': :'String',
35
41
  'compartment_id': :'String'
36
42
  # rubocop:enable Style/SymbolLiteral
37
43
  }
@@ -44,6 +50,7 @@ module OCI
44
50
  # Initializes the object
45
51
  # @param [Hash] attributes Model attributes in the form of hash
46
52
  # @option attributes [String] :name The value to assign to the {#name} property
53
+ # @option attributes [String] :id The value to assign to the {#id} property
47
54
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
48
55
  def initialize(attributes = {})
49
56
  return unless attributes.is_a?(Hash)
@@ -53,6 +60,8 @@ module OCI
53
60
 
54
61
  self.name = attributes[:'name'] if attributes[:'name']
55
62
 
63
+ self.id = attributes[:'id'] if attributes[:'id']
64
+
56
65
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
57
66
 
58
67
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
@@ -71,6 +80,7 @@ module OCI
71
80
  return true if equal?(other)
72
81
  self.class == other.class &&
73
82
  name == other.name &&
83
+ id == other.id &&
74
84
  compartment_id == other.compartment_id
75
85
  end
76
86
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
@@ -87,7 +97,7 @@ module OCI
87
97
  # Calculates hash code according to all attributes.
88
98
  # @return [Fixnum] Hash code
89
99
  def hash
90
- [name, compartment_id].hash
100
+ [name, id, compartment_id].hash
91
101
  end
92
102
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
93
103
 
@@ -0,0 +1,187 @@
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+
5
+ # rubocop:disable Lint/UnneededCopDisableDirective
6
+ module OCI
7
+ # A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become
8
+ # unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to
9
+ # planned software maintenance such as security updates that reboot your instances.
10
+ #
11
+ class Identity::Models::FaultDomain # rubocop:disable Metrics/LineLength
12
+ # The name of the Fault Domain.
13
+ # @return [String]
14
+ attr_accessor :name
15
+
16
+ # The OCID of the Fault Domain.
17
+ # @return [String]
18
+ attr_accessor :id
19
+
20
+ # The OCID of the compartment. Currently only tenancy (root) compartment can be provided.
21
+ # @return [String]
22
+ attr_accessor :compartment_id
23
+
24
+ # The name of the availabilityDomain where the Fault Domain belongs.
25
+ # @return [String]
26
+ attr_accessor :availability_domain
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ # rubocop:disable Style/SymbolLiteral
32
+ 'name': :'name',
33
+ 'id': :'id',
34
+ 'compartment_id': :'compartmentId',
35
+ 'availability_domain': :'availabilityDomain'
36
+ # rubocop:enable Style/SymbolLiteral
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ # rubocop:disable Style/SymbolLiteral
44
+ 'name': :'String',
45
+ 'id': :'String',
46
+ 'compartment_id': :'String',
47
+ 'availability_domain': :'String'
48
+ # rubocop:enable Style/SymbolLiteral
49
+ }
50
+ end
51
+
52
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
53
+ # rubocop:disable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
54
+
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ # @option attributes [String] :name The value to assign to the {#name} property
59
+ # @option attributes [String] :id The value to assign to the {#id} property
60
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
61
+ # @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ self.name = attributes[:'name'] if attributes[:'name']
69
+
70
+ self.id = attributes[:'id'] if attributes[:'id']
71
+
72
+ self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
73
+
74
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
75
+
76
+ self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
77
+
78
+ self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
79
+
80
+ raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
81
+
82
+ self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
83
+ end
84
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
85
+ # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
86
+
87
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
88
+
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] other the other object to be compared
92
+ def ==(other)
93
+ return true if equal?(other)
94
+ self.class == other.class &&
95
+ name == other.name &&
96
+ id == other.id &&
97
+ compartment_id == other.compartment_id &&
98
+ availability_domain == other.availability_domain
99
+ end
100
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
101
+
102
+ # @see the `==` method
103
+ # @param [Object] other the other object to be compared
104
+ def eql?(other)
105
+ self == other
106
+ end
107
+
108
+ # rubocop:disable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
109
+
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Fixnum] Hash code
113
+ def hash
114
+ [name, id, compartment_id, availability_domain].hash
115
+ end
116
+ # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
117
+
118
+ # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
119
+
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.swagger_types.each_pair do |key, type|
127
+ if type =~ /^Array<(.*)>/i
128
+ # check to ensure the input is an array given that the the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ public_method("#{key}=").call(
132
+ attributes[self.class.attribute_map[key]]
133
+ .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
134
+ )
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ public_method("#{key}=").call(
138
+ OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
139
+ )
140
+ end
141
+ # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+ # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
147
+
148
+ # Returns the string representation of the object
149
+ # @return [String] String presentation of the object
150
+ def to_s
151
+ to_hash.to_s
152
+ end
153
+
154
+ # Returns the object in the form of hash
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_hash
157
+ hash = {}
158
+ self.class.attribute_map.each_pair do |attr, param|
159
+ value = public_method(attr).call
160
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
161
+ hash[param] = _to_hash(value)
162
+ end
163
+ hash
164
+ end
165
+
166
+ private
167
+
168
+ # Outputs non-array value in the form of hash
169
+ # For object, use to_hash. Otherwise, just return the value
170
+ # @param [Object] value Any valid value
171
+ # @return [Hash] Returns the value in the form of hash
172
+ def _to_hash(value)
173
+ if value.is_a?(Array)
174
+ value.compact.map { |v| _to_hash(v) }
175
+ elsif value.is_a?(Hash)
176
+ {}.tap do |hash|
177
+ value.each { |k, v| hash[k] = _to_hash(v) }
178
+ end
179
+ elsif value.respond_to? :to_hash
180
+ value.to_hash
181
+ else
182
+ value
183
+ end
184
+ end
185
+ end
186
+ end
187
+ # rubocop:enable Lint/UnneededCopDisableDirective
data/lib/oci/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OCI
4
- VERSION = '2.3.4'.freeze
4
+ VERSION = '2.3.5'.freeze
5
5
  end
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.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oracle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-08 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -415,8 +415,22 @@ files:
415
415
  - "./lib/oci/database/database.rb"
416
416
  - "./lib/oci/database/database_client.rb"
417
417
  - "./lib/oci/database/database_client_composite_operations.rb"
418
+ - "./lib/oci/database/models/autonomous_data_warehouse.rb"
419
+ - "./lib/oci/database/models/autonomous_data_warehouse_backup.rb"
420
+ - "./lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb"
421
+ - "./lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb"
422
+ - "./lib/oci/database/models/autonomous_data_warehouse_summary.rb"
423
+ - "./lib/oci/database/models/autonomous_database.rb"
424
+ - "./lib/oci/database/models/autonomous_database_backup.rb"
425
+ - "./lib/oci/database/models/autonomous_database_backup_summary.rb"
426
+ - "./lib/oci/database/models/autonomous_database_connection_strings.rb"
427
+ - "./lib/oci/database/models/autonomous_database_summary.rb"
418
428
  - "./lib/oci/database/models/backup.rb"
419
429
  - "./lib/oci/database/models/backup_summary.rb"
430
+ - "./lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb"
431
+ - "./lib/oci/database/models/create_autonomous_data_warehouse_details.rb"
432
+ - "./lib/oci/database/models/create_autonomous_database_backup_details.rb"
433
+ - "./lib/oci/database/models/create_autonomous_database_details.rb"
420
434
  - "./lib/oci/database/models/create_backup_details.rb"
421
435
  - "./lib/oci/database/models/create_data_guard_association_details.rb"
422
436
  - "./lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb"
@@ -450,8 +464,12 @@ files:
450
464
  - "./lib/oci/database/models/patch_history_entry_summary.rb"
451
465
  - "./lib/oci/database/models/patch_summary.rb"
452
466
  - "./lib/oci/database/models/reinstate_data_guard_association_details.rb"
467
+ - "./lib/oci/database/models/restore_autonomous_data_warehouse_details.rb"
468
+ - "./lib/oci/database/models/restore_autonomous_database_details.rb"
453
469
  - "./lib/oci/database/models/restore_database_details.rb"
454
470
  - "./lib/oci/database/models/switchover_data_guard_association_details.rb"
471
+ - "./lib/oci/database/models/update_autonomous_data_warehouse_details.rb"
472
+ - "./lib/oci/database/models/update_autonomous_database_details.rb"
455
473
  - "./lib/oci/database/models/update_database_details.rb"
456
474
  - "./lib/oci/database/models/update_db_home_details.rb"
457
475
  - "./lib/oci/database/models/update_db_system_details.rb"
@@ -540,6 +558,7 @@ files:
540
558
  - "./lib/oci/identity/models/customer_secret_key.rb"
541
559
  - "./lib/oci/identity/models/customer_secret_key_summary.rb"
542
560
  - "./lib/oci/identity/models/dynamic_group.rb"
561
+ - "./lib/oci/identity/models/fault_domain.rb"
543
562
  - "./lib/oci/identity/models/group.rb"
544
563
  - "./lib/oci/identity/models/identity_provider.rb"
545
564
  - "./lib/oci/identity/models/idp_group_mapping.rb"