oci 2.5.6 → 2.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/compute_client.rb +2 -2
  4. data/lib/oci/core/compute_client_composite_operations.rb +1 -1
  5. data/lib/oci/core/compute_management_client.rb +1 -1
  6. data/lib/oci/core/models/attach_load_balancer_details.rb +2 -2
  7. data/lib/oci/core/models/create_ip_sec_connection_details.rb +58 -3
  8. data/lib/oci/core/models/create_subnet_details.rb +12 -1
  9. data/lib/oci/core/models/detach_load_balancer_details.rb +2 -2
  10. data/lib/oci/core/models/fast_connect_provider_service.rb +5 -1
  11. data/lib/oci/core/models/fast_connect_provider_service_key.rb +4 -1
  12. data/lib/oci/core/models/instance_agent_config.rb +2 -0
  13. data/lib/oci/core/models/instance_pool.rb +3 -3
  14. data/lib/oci/core/models/instance_pool_instance_load_balancer_backend.rb +1 -1
  15. data/lib/oci/core/models/instance_pool_load_balancer_attachment.rb +3 -3
  16. data/lib/oci/core/models/instance_pool_summary.rb +1 -1
  17. data/lib/oci/core/models/instance_summary.rb +2 -2
  18. data/lib/oci/core/models/ip_sec_connection.rb +64 -3
  19. data/lib/oci/core/models/launch_instance_agent_config_details.rb +2 -0
  20. data/lib/oci/core/models/private_ip.rb +2 -1
  21. data/lib/oci/core/models/subnet.rb +2 -1
  22. data/lib/oci/core/models/update_instance_agent_config_details.rb +2 -0
  23. data/lib/oci/core/models/update_instance_pool_details.rb +1 -1
  24. data/lib/oci/core/models/update_ip_sec_connection_details.rb +74 -4
  25. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  26. data/lib/oci/core/virtual_network_client.rb +7 -3
  27. data/lib/oci/database/database_client.rb +15 -14
  28. data/lib/oci/database/models/autonomous_data_warehouse.rb +1 -1
  29. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +1 -1
  30. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +1 -2
  31. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +1 -1
  32. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +1 -1
  33. data/lib/oci/database/models/autonomous_database.rb +20 -5
  34. data/lib/oci/database/models/autonomous_database_summary.rb +20 -5
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +1 -1
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +1 -1
  37. data/lib/oci/database/models/create_autonomous_database_base.rb +1 -1
  38. data/lib/oci/database/models/db_node.rb +1 -1
  39. data/lib/oci/database/models/db_node_summary.rb +1 -1
  40. data/lib/oci/database/models/db_system.rb +1 -1
  41. data/lib/oci/database/models/db_system_summary.rb +1 -1
  42. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  43. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  44. data/lib/oci/database/models/launch_db_system_base.rb +9 -9
  45. data/lib/oci/database/models/restore_autonomous_data_warehouse_details.rb +1 -1
  46. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +1 -1
  47. data/lib/oci/database/models/update_autonomous_database_details.rb +48 -4
  48. data/lib/oci/identity/identity_client.rb +12 -12
  49. data/lib/oci/identity/identity_client_composite_operations.rb +4 -4
  50. data/lib/oci/identity/models/create_dynamic_group_details.rb +38 -4
  51. data/lib/oci/identity/models/create_tag_default_details.rb +3 -3
  52. data/lib/oci/identity/models/dynamic_group.rb +38 -4
  53. data/lib/oci/identity/models/tag_default.rb +15 -10
  54. data/lib/oci/identity/models/tag_default_summary.rb +8 -8
  55. data/lib/oci/identity/models/update_dynamic_group_details.rb +38 -4
  56. data/lib/oci/identity/models/update_tag_default_details.rb +1 -1
  57. data/lib/oci/identity/models/update_user_details.rb +1 -1
  58. data/lib/oci/identity/models/user.rb +2 -2
  59. data/lib/oci/version.rb +1 -1
  60. metadata +2 -2
@@ -6,17 +6,17 @@ require 'date'
6
6
  module OCI
7
7
  # CreateTagDefaultDetails model.
8
8
  class Identity::Models::CreateTagDefaultDetails # rubocop:disable Metrics/LineLength
9
- # **[Required]** The OCID of the Compartment. The Tag Default will apply to any resource contained in this Compartment.
9
+ # **[Required]** The OCID of the compartment. The tag default will be applied to all new resources created in this compartment.
10
10
  #
11
11
  # @return [String]
12
12
  attr_accessor :compartment_id
13
13
 
14
- # **[Required]** The OCID of the Tag Definition. The Tag Default will always assign a default value for this Tag Definition.
14
+ # **[Required]** The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
15
15
  #
16
16
  # @return [String]
17
17
  attr_accessor :tag_definition_id
18
18
 
19
- # **[Required]** The default value for the Tag Definition. This will be applied to all resources created in the Compartment.
19
+ # **[Required]** The default value for the tag definition. This will be applied to all new resources created in the compartment.
20
20
  #
21
21
  # @return [String]
22
22
  attr_accessor :value
@@ -66,6 +66,20 @@ module OCI
66
66
  # @return [Integer]
67
67
  attr_accessor :inactive_status
68
68
 
69
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
70
+ # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
71
+ # Example: `{\"Department\": \"Finance\"}`
72
+ #
73
+ # @return [Hash<String, String>]
74
+ attr_accessor :freeform_tags
75
+
76
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
77
+ # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
78
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
79
+ #
80
+ # @return [Hash<String, Hash<String, Object>>]
81
+ attr_accessor :defined_tags
82
+
69
83
  # Attribute mapping from ruby-style variable name to JSON key.
70
84
  def self.attribute_map
71
85
  {
@@ -77,7 +91,9 @@ module OCI
77
91
  'matching_rule': :'matchingRule',
78
92
  'time_created': :'timeCreated',
79
93
  'lifecycle_state': :'lifecycleState',
80
- 'inactive_status': :'inactiveStatus'
94
+ 'inactive_status': :'inactiveStatus',
95
+ 'freeform_tags': :'freeformTags',
96
+ 'defined_tags': :'definedTags'
81
97
  # rubocop:enable Style/SymbolLiteral
82
98
  }
83
99
  end
@@ -93,7 +109,9 @@ module OCI
93
109
  'matching_rule': :'String',
94
110
  'time_created': :'DateTime',
95
111
  'lifecycle_state': :'String',
96
- 'inactive_status': :'Integer'
112
+ 'inactive_status': :'Integer',
113
+ 'freeform_tags': :'Hash<String, String>',
114
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
97
115
  # rubocop:enable Style/SymbolLiteral
98
116
  }
99
117
  end
@@ -112,6 +130,8 @@ module OCI
112
130
  # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
113
131
  # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
114
132
  # @option attributes [Integer] :inactive_status The value to assign to the {#inactive_status} property
133
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
134
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
115
135
  def initialize(attributes = {})
116
136
  return unless attributes.is_a?(Hash)
117
137
 
@@ -153,6 +173,18 @@ module OCI
153
173
  raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
154
174
 
155
175
  self.inactive_status = attributes[:'inactive_status'] if attributes[:'inactive_status']
176
+
177
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
178
+
179
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
180
+
181
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
182
+
183
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
184
+
185
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
186
+
187
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
156
188
  end
157
189
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
158
190
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -188,7 +220,9 @@ module OCI
188
220
  matching_rule == other.matching_rule &&
189
221
  time_created == other.time_created &&
190
222
  lifecycle_state == other.lifecycle_state &&
191
- inactive_status == other.inactive_status
223
+ inactive_status == other.inactive_status &&
224
+ freeform_tags == other.freeform_tags &&
225
+ defined_tags == other.defined_tags
192
226
  end
193
227
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
194
228
 
@@ -204,7 +238,7 @@ module OCI
204
238
  # Calculates hash code according to all attributes.
205
239
  # @return [Fixnum] Hash code
206
240
  def hash
207
- [id, compartment_id, name, description, matching_rule, time_created, lifecycle_state, inactive_status].hash
241
+ [id, compartment_id, name, description, matching_rule, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
208
242
  end
209
243
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
210
244
 
@@ -5,10 +5,14 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # A document that specifies a default value for a Tag Definition for all resource types created in a Compartment.
8
+ # Tag defaults let you specify a default tag (tagnamespace.tag=\"value\") to apply to all resource types
9
+ # in a specified compartment. The tag default is applied at the time the resource is created. Resources
10
+ # that exist in the compartment before you create the tag default are not tagged. The `TagDefault` object
11
+ # specifies the tag and compartment details.
9
12
  #
10
- # Tag Defaults are inherited by child compartments. This means that if you set a Tag Default on the root Compartment
11
- # for a tenancy, all resources are guaranteed to be created with the referenced Tag Definition applied.
13
+ # Tag defaults are inherited by child compartments. This means that if you set a tag default on the root compartment
14
+ # for a tenancy, all resources that are created in the tenancy are tagged. For more information about
15
+ # using tag defaults, see [Managing Tag Defaults](https://docs.cloud.oracle.com/Content/Identity/Tasks/managingtagdefaults.htm).
12
16
  #
13
17
  # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
14
18
  # talk to an administrator.
@@ -19,31 +23,32 @@ module OCI
19
23
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
20
24
  ].freeze
21
25
 
22
- # **[Required]** The OCID of the Tag Default.
26
+ # **[Required]** The OCID of the tag default.
23
27
  # @return [String]
24
28
  attr_accessor :id
25
29
 
26
- # **[Required]** The OCID of the Compartment. The Tag Default will apply to any resource contained in this Compartment.
30
+ # **[Required]** The OCID of the compartment. The tag default applies to all new resources that get created in the
31
+ # compartment. Resources that existed before the tag default was created are not tagged.
27
32
  #
28
33
  # @return [String]
29
34
  attr_accessor :compartment_id
30
35
 
31
- # **[Required]** The OCID of the Tag Namespace that contains the Tag Definition.
36
+ # **[Required]** The OCID of the tag namespace that contains the tag definition.
32
37
  #
33
38
  # @return [String]
34
39
  attr_accessor :tag_namespace_id
35
40
 
36
- # **[Required]** The OCID of the Tag Definition. The Tag Default will always assign a default value for this Tag Definition.
41
+ # **[Required]** The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
37
42
  #
38
43
  # @return [String]
39
44
  attr_accessor :tag_definition_id
40
45
 
41
- # **[Required]** The name used in the Tag Definition. This field is informational in the context of the Tag Default.
46
+ # **[Required]** The name used in the tag definition. This field is informational in the context of the tag default.
42
47
  #
43
48
  # @return [String]
44
49
  attr_accessor :tag_definition_name
45
50
 
46
- # **[Required]** The default value for the Tag Definition. This will be applied to all resources created in the Compartment.
51
+ # **[Required]** The default value for the tag definition. This will be applied to all resources created in the compartment.
47
52
  #
48
53
  # @return [String]
49
54
  attr_accessor :value
@@ -55,7 +60,7 @@ module OCI
55
60
  # @return [DateTime]
56
61
  attr_accessor :time_created
57
62
 
58
- # The tag default's current state. After creating a tagdefault, make sure its `lifecycleState` is ACTIVE before using it.
63
+ # The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it.
59
64
  #
60
65
  # @return [String]
61
66
  attr_reader :lifecycle_state
@@ -5,7 +5,7 @@ require 'logger'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # A document that summarizes the default value for a Tag Definition for all resource types created in a Compartment.
8
+ # Summary information for the specified tag default.
9
9
  #
10
10
  class Identity::Models::TagDefaultSummary # rubocop:disable Metrics/LineLength
11
11
  LIFECYCLE_STATE_ENUM = [
@@ -13,31 +13,31 @@ module OCI
13
13
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
14
14
  ].freeze
15
15
 
16
- # **[Required]** The OCID of the Tag Default.
16
+ # **[Required]** The OCID of the tag default.
17
17
  # @return [String]
18
18
  attr_accessor :id
19
19
 
20
- # **[Required]** The OCID of the Compartment. The Tag Default will apply to any resource contained in this Compartment.
20
+ # **[Required]** The OCID of the compartment. The tag default will apply to all new resources that are created in the compartment.
21
21
  #
22
22
  # @return [String]
23
23
  attr_accessor :compartment_id
24
24
 
25
- # **[Required]** The OCID of the Tag Namespace that contains the Tag Definition.
25
+ # **[Required]** The OCID of the tag namespace that contains the tag definition.
26
26
  #
27
27
  # @return [String]
28
28
  attr_accessor :tag_namespace_id
29
29
 
30
- # **[Required]** The OCID of the Tag Definition. The Tag Default will always assign a default value for this Tag Definition.
30
+ # **[Required]** The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
31
31
  #
32
32
  # @return [String]
33
33
  attr_accessor :tag_definition_id
34
34
 
35
- # **[Required]** The name used in the Tag Definition. This field is informational in the context of the Tag Default.
35
+ # **[Required]** The name used in the tag definition. This field is informational in the context of the tag default.
36
36
  #
37
37
  # @return [String]
38
38
  attr_accessor :tag_definition_name
39
39
 
40
- # **[Required]** The default value for the Tag Definition. This will be applied to all resources created in the Compartment.
40
+ # **[Required]** The default value for the tag definition. This will be applied to all new resources created in the compartment.
41
41
  #
42
42
  # @return [String]
43
43
  attr_accessor :value
@@ -49,7 +49,7 @@ module OCI
49
49
  # @return [DateTime]
50
50
  attr_accessor :time_created
51
51
 
52
- # The tag default's current state. After creating a tagdefault, make sure its `lifecycleState` is ACTIVE before using it.
52
+ # The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it.
53
53
  #
54
54
  # @return [String]
55
55
  attr_reader :lifecycle_state
@@ -16,12 +16,28 @@ module OCI
16
16
  # @return [String]
17
17
  attr_accessor :matching_rule
18
18
 
19
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
20
+ # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
21
+ # Example: `{\"Department\": \"Finance\"}`
22
+ #
23
+ # @return [Hash<String, String>]
24
+ attr_accessor :freeform_tags
25
+
26
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
27
+ # For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
28
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
29
+ #
30
+ # @return [Hash<String, Hash<String, Object>>]
31
+ attr_accessor :defined_tags
32
+
19
33
  # Attribute mapping from ruby-style variable name to JSON key.
20
34
  def self.attribute_map
21
35
  {
22
36
  # rubocop:disable Style/SymbolLiteral
23
37
  'description': :'description',
24
- 'matching_rule': :'matchingRule'
38
+ 'matching_rule': :'matchingRule',
39
+ 'freeform_tags': :'freeformTags',
40
+ 'defined_tags': :'definedTags'
25
41
  # rubocop:enable Style/SymbolLiteral
26
42
  }
27
43
  end
@@ -31,7 +47,9 @@ module OCI
31
47
  {
32
48
  # rubocop:disable Style/SymbolLiteral
33
49
  'description': :'String',
34
- 'matching_rule': :'String'
50
+ 'matching_rule': :'String',
51
+ 'freeform_tags': :'Hash<String, String>',
52
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
35
53
  # rubocop:enable Style/SymbolLiteral
36
54
  }
37
55
  end
@@ -44,6 +62,8 @@ module OCI
44
62
  # @param [Hash] attributes Model attributes in the form of hash
45
63
  # @option attributes [String] :description The value to assign to the {#description} property
46
64
  # @option attributes [String] :matching_rule The value to assign to the {#matching_rule} property
65
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
66
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
47
67
  def initialize(attributes = {})
48
68
  return unless attributes.is_a?(Hash)
49
69
 
@@ -57,6 +77,18 @@ module OCI
57
77
  raise 'You cannot provide both :matchingRule and :matching_rule' if attributes.key?(:'matchingRule') && attributes.key?(:'matching_rule')
58
78
 
59
79
  self.matching_rule = attributes[:'matching_rule'] if attributes[:'matching_rule']
80
+
81
+ self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
82
+
83
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
84
+
85
+ self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
86
+
87
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
88
+
89
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
90
+
91
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
60
92
  end
61
93
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
62
94
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -71,7 +103,9 @@ module OCI
71
103
 
72
104
  self.class == other.class &&
73
105
  description == other.description &&
74
- matching_rule == other.matching_rule
106
+ matching_rule == other.matching_rule &&
107
+ freeform_tags == other.freeform_tags &&
108
+ defined_tags == other.defined_tags
75
109
  end
76
110
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
77
111
 
@@ -87,7 +121,7 @@ module OCI
87
121
  # Calculates hash code according to all attributes.
88
122
  # @return [Fixnum] Hash code
89
123
  def hash
90
- [description, matching_rule].hash
124
+ [description, matching_rule, freeform_tags, defined_tags].hash
91
125
  end
92
126
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
93
127
 
@@ -6,7 +6,7 @@ require 'date'
6
6
  module OCI
7
7
  # UpdateTagDefaultDetails model.
8
8
  class Identity::Models::UpdateTagDefaultDetails # rubocop:disable Metrics/LineLength
9
- # **[Required]** The default value for the Tag Definition. This will be applied to all resources created in the Compartment.
9
+ # **[Required]** The default value for the tag definition. This will be applied to all resources created in the Compartment.
10
10
  #
11
11
  # @return [String]
12
12
  attr_accessor :value
@@ -10,7 +10,7 @@ module OCI
10
10
  # @return [String]
11
11
  attr_accessor :description
12
12
 
13
- # The email you assign to the user. Has to be unique across the tenancy.
13
+ # The email address you assign to the user. Has to be unique across the tenancy.
14
14
  # @return [String]
15
15
  attr_accessor :email
16
16
 
@@ -51,8 +51,8 @@ module OCI
51
51
  # @return [String]
52
52
  attr_accessor :description
53
53
 
54
- # The email you assign to the user during creation.
55
- # The name must be unique across all users in the tenancy.
54
+ # The email address you assign to the user.
55
+ # The email address must be unique across all users in the tenancy.
56
56
  #
57
57
  # @return [String]
58
58
  attr_accessor :email
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OCI
4
- VERSION = '2.5.6'.freeze
4
+ VERSION = '2.5.7'.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.5.6
4
+ version: 2.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oracle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2019-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json