oci 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
  4. data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
  5. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
  6. data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
  7. data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
  8. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  9. data/lib/oci/core/models/drg_attachment.rb +4 -1
  10. data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
  11. data/lib/oci/core/models/launch_instance_details.rb +18 -4
  12. data/lib/oci/core/models/launch_options.rb +18 -4
  13. data/lib/oci/core/models/local_peering_gateway.rb +4 -1
  14. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
  15. data/lib/oci/core/models/service.rb +1 -1
  16. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
  17. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
  18. data/lib/oci/core/models/volume_attachment.rb +18 -4
  19. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  20. data/lib/oci/core/virtual_network_client.rb +1 -1
  21. data/lib/oci/database/database.rb +1 -0
  22. data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
  23. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
  24. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
  25. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
  26. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
  27. data/lib/oci/database/models/autonomous_database.rb +132 -137
  28. data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
  29. data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
  30. data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
  31. data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
  32. data/lib/oci/database/models/backup.rb +102 -109
  33. data/lib/oci/database/models/backup_summary.rb +101 -101
  34. data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
  35. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
  36. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
  37. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
  38. data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
  39. data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
  40. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
  41. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
  42. data/lib/oci/database/models/create_database_details.rb +62 -62
  43. data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
  44. data/lib/oci/database/models/create_db_home_details.rb +21 -21
  45. data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
  46. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
  47. data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
  48. data/lib/oci/database/models/data_guard_association.rb +132 -144
  49. data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
  50. data/lib/oci/database/models/database.rb +100 -108
  51. data/lib/oci/database/models/database_summary.rb +99 -99
  52. data/lib/oci/database/models/db_home.rb +39 -51
  53. data/lib/oci/database/models/db_home_summary.rb +39 -39
  54. data/lib/oci/database/models/db_node.rb +50 -58
  55. data/lib/oci/database/models/db_node_summary.rb +49 -49
  56. data/lib/oci/database/models/db_system.rb +295 -300
  57. data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
  58. data/lib/oci/database/models/db_system_summary.rb +295 -280
  59. data/lib/oci/database/models/db_version_summary.rb +28 -14
  60. data/lib/oci/database/models/external_backup_job.rb +34 -34
  61. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  62. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  63. data/lib/oci/database/models/launch_db_system_base.rb +160 -145
  64. data/lib/oci/database/models/launch_db_system_details.rb +59 -55
  65. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
  66. data/lib/oci/database/models/patch.rb +45 -53
  67. data/lib/oci/database/models/patch_details.rb +14 -14
  68. data/lib/oci/database/models/patch_history_entry.rb +48 -51
  69. data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
  70. data/lib/oci/database/models/patch_summary.rb +44 -44
  71. data/lib/oci/database/models/restore_database_details.rb +15 -15
  72. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
  73. data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
  74. data/lib/oci/database/models/update_database_details.rb +22 -22
  75. data/lib/oci/database/models/update_db_system_details.rb +38 -38
  76. data/lib/oci/dns/dns.rb +1 -0
  77. data/lib/oci/dns/dns_client.rb +14 -13
  78. data/lib/oci/dns/models/create_zone_details.rb +39 -2
  79. data/lib/oci/dns/models/external_master.rb +3 -1
  80. data/lib/oci/dns/models/nameserver.rb +149 -0
  81. data/lib/oci/dns/models/record.rb +3 -1
  82. data/lib/oci/dns/models/record_details.rb +3 -1
  83. data/lib/oci/dns/models/record_operation.rb +3 -1
  84. data/lib/oci/dns/models/tsig.rb +3 -2
  85. data/lib/oci/dns/models/update_zone_details.rb +40 -2
  86. data/lib/oci/dns/models/zone.rb +54 -6
  87. data/lib/oci/dns/models/zone_summary.rb +79 -5
  88. data/lib/oci/identity/identity.rb +4 -0
  89. data/lib/oci/identity/identity_client.rb +176 -0
  90. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  91. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
  92. data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
  93. data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
  94. data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
  95. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
  96. data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
  97. data/lib/oci/identity/models/user.rb +42 -4
  98. data/lib/oci/identity/models/user_capabilities.rb +209 -0
  99. data/lib/oci/regions.rb +10 -9
  100. data/lib/oci/version.rb +1 -1
  101. metadata +8 -2
@@ -6,18 +6,14 @@ require 'date'
6
6
  module OCI
7
7
  # CompleteExternalBackupJobDetails model.
8
8
  class Database::Models::CompleteExternalBackupJobDetails # rubocop:disable Metrics/LineLength
9
+ # If the database being backed up is TDE enabled, this will be the path to the associated TDE wallet in Object Storage.
10
+ # @return [String]
11
+ attr_accessor :tde_wallet_path
12
+
9
13
  # The handle of the control file backup.
10
14
  # @return [String]
11
15
  attr_accessor :cf_backup_handle
12
16
 
13
- # The size of the data in the database, in megabytes.
14
- # @return [Integer]
15
- attr_accessor :data_size
16
-
17
- # The size of the redo in the database, in megabytes.
18
- # @return [Integer]
19
- attr_accessor :redo_size
20
-
21
17
  # The handle of the spfile backup.
22
18
  # @return [String]
23
19
  attr_accessor :spf_backup_handle
@@ -26,20 +22,24 @@ module OCI
26
22
  # @return [Array<String>]
27
23
  attr_accessor :sql_patches
28
24
 
29
- # If the database being backed up is TDE enabled, this will be the path to the associated TDE wallet in Object Storage.
30
- # @return [String]
31
- attr_accessor :tde_wallet_path
25
+ # The size of the data in the database, in megabytes.
26
+ # @return [Integer]
27
+ attr_accessor :data_size
28
+
29
+ # The size of the redo in the database, in megabytes.
30
+ # @return [Integer]
31
+ attr_accessor :redo_size
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  # rubocop:disable Style/SymbolLiteral
37
+ 'tde_wallet_path': :'tdeWalletPath',
37
38
  'cf_backup_handle': :'cfBackupHandle',
38
- 'data_size': :'dataSize',
39
- 'redo_size': :'redoSize',
40
39
  'spf_backup_handle': :'spfBackupHandle',
41
40
  'sql_patches': :'sqlPatches',
42
- 'tde_wallet_path': :'tdeWalletPath'
41
+ 'data_size': :'dataSize',
42
+ 'redo_size': :'redoSize'
43
43
  # rubocop:enable Style/SymbolLiteral
44
44
  }
45
45
  end
@@ -48,12 +48,12 @@ module OCI
48
48
  def self.swagger_types
49
49
  {
50
50
  # rubocop:disable Style/SymbolLiteral
51
+ 'tde_wallet_path': :'String',
51
52
  'cf_backup_handle': :'String',
52
- 'data_size': :'Integer',
53
- 'redo_size': :'Integer',
54
53
  'spf_backup_handle': :'String',
55
54
  'sql_patches': :'Array<String>',
56
- 'tde_wallet_path': :'String'
55
+ 'data_size': :'Integer',
56
+ 'redo_size': :'Integer'
57
57
  # rubocop:enable Style/SymbolLiteral
58
58
  }
59
59
  end
@@ -64,35 +64,29 @@ module OCI
64
64
 
65
65
  # Initializes the object
66
66
  # @param [Hash] attributes Model attributes in the form of hash
67
+ # @option attributes [String] :tde_wallet_path The value to assign to the {#tde_wallet_path} property
67
68
  # @option attributes [String] :cf_backup_handle The value to assign to the {#cf_backup_handle} property
68
- # @option attributes [Integer] :data_size The value to assign to the {#data_size} property
69
- # @option attributes [Integer] :redo_size The value to assign to the {#redo_size} property
70
69
  # @option attributes [String] :spf_backup_handle The value to assign to the {#spf_backup_handle} property
71
70
  # @option attributes [Array<String>] :sql_patches The value to assign to the {#sql_patches} property
72
- # @option attributes [String] :tde_wallet_path The value to assign to the {#tde_wallet_path} property
71
+ # @option attributes [Integer] :data_size The value to assign to the {#data_size} property
72
+ # @option attributes [Integer] :redo_size The value to assign to the {#redo_size} property
73
73
  def initialize(attributes = {})
74
74
  return unless attributes.is_a?(Hash)
75
75
 
76
76
  # convert string to symbol for hash key
77
77
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
78
 
79
- self.cf_backup_handle = attributes[:'cfBackupHandle'] if attributes[:'cfBackupHandle']
80
-
81
- raise 'You cannot provide both :cfBackupHandle and :cf_backup_handle' if attributes.key?(:'cfBackupHandle') && attributes.key?(:'cf_backup_handle')
82
-
83
- self.cf_backup_handle = attributes[:'cf_backup_handle'] if attributes[:'cf_backup_handle']
84
-
85
- self.data_size = attributes[:'dataSize'] if attributes[:'dataSize']
79
+ self.tde_wallet_path = attributes[:'tdeWalletPath'] if attributes[:'tdeWalletPath']
86
80
 
87
- raise 'You cannot provide both :dataSize and :data_size' if attributes.key?(:'dataSize') && attributes.key?(:'data_size')
81
+ raise 'You cannot provide both :tdeWalletPath and :tde_wallet_path' if attributes.key?(:'tdeWalletPath') && attributes.key?(:'tde_wallet_path')
88
82
 
89
- self.data_size = attributes[:'data_size'] if attributes[:'data_size']
83
+ self.tde_wallet_path = attributes[:'tde_wallet_path'] if attributes[:'tde_wallet_path']
90
84
 
91
- self.redo_size = attributes[:'redoSize'] if attributes[:'redoSize']
85
+ self.cf_backup_handle = attributes[:'cfBackupHandle'] if attributes[:'cfBackupHandle']
92
86
 
93
- raise 'You cannot provide both :redoSize and :redo_size' if attributes.key?(:'redoSize') && attributes.key?(:'redo_size')
87
+ raise 'You cannot provide both :cfBackupHandle and :cf_backup_handle' if attributes.key?(:'cfBackupHandle') && attributes.key?(:'cf_backup_handle')
94
88
 
95
- self.redo_size = attributes[:'redo_size'] if attributes[:'redo_size']
89
+ self.cf_backup_handle = attributes[:'cf_backup_handle'] if attributes[:'cf_backup_handle']
96
90
 
97
91
  self.spf_backup_handle = attributes[:'spfBackupHandle'] if attributes[:'spfBackupHandle']
98
92
 
@@ -106,11 +100,17 @@ module OCI
106
100
 
107
101
  self.sql_patches = attributes[:'sql_patches'] if attributes[:'sql_patches']
108
102
 
109
- self.tde_wallet_path = attributes[:'tdeWalletPath'] if attributes[:'tdeWalletPath']
103
+ self.data_size = attributes[:'dataSize'] if attributes[:'dataSize']
110
104
 
111
- raise 'You cannot provide both :tdeWalletPath and :tde_wallet_path' if attributes.key?(:'tdeWalletPath') && attributes.key?(:'tde_wallet_path')
105
+ raise 'You cannot provide both :dataSize and :data_size' if attributes.key?(:'dataSize') && attributes.key?(:'data_size')
112
106
 
113
- self.tde_wallet_path = attributes[:'tde_wallet_path'] if attributes[:'tde_wallet_path']
107
+ self.data_size = attributes[:'data_size'] if attributes[:'data_size']
108
+
109
+ self.redo_size = attributes[:'redoSize'] if attributes[:'redoSize']
110
+
111
+ raise 'You cannot provide both :redoSize and :redo_size' if attributes.key?(:'redoSize') && attributes.key?(:'redo_size')
112
+
113
+ self.redo_size = attributes[:'redo_size'] if attributes[:'redo_size']
114
114
  end
115
115
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
116
116
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -124,12 +124,12 @@ module OCI
124
124
  return true if equal?(other)
125
125
 
126
126
  self.class == other.class &&
127
+ tde_wallet_path == other.tde_wallet_path &&
127
128
  cf_backup_handle == other.cf_backup_handle &&
128
- data_size == other.data_size &&
129
- redo_size == other.redo_size &&
130
129
  spf_backup_handle == other.spf_backup_handle &&
131
130
  sql_patches == other.sql_patches &&
132
- tde_wallet_path == other.tde_wallet_path
131
+ data_size == other.data_size &&
132
+ redo_size == other.redo_size
133
133
  end
134
134
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
135
135
 
@@ -145,7 +145,7 @@ module OCI
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Fixnum] Hash code
147
147
  def hash
148
- [cf_backup_handle, data_size, redo_size, spf_backup_handle, sql_patches, tde_wallet_path].hash
148
+ [tde_wallet_path, cf_backup_handle, spf_backup_handle, sql_patches, data_size, redo_size].hash
149
149
  end
150
150
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
151
151
 
@@ -9,20 +9,20 @@ module OCI
9
9
  # **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
10
10
  #
11
11
  class Database::Models::CreateAutonomousDataWarehouseBackupDetails # rubocop:disable Metrics/LineLength
12
- # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
13
- # @return [String]
14
- attr_accessor :autonomous_data_warehouse_id
15
-
16
12
  # **[Required]** The user-friendly name for the backup. The name does not have to be unique.
17
13
  # @return [String]
18
14
  attr_accessor :display_name
19
15
 
16
+ # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Autonomous Data Warehouse backup.
17
+ # @return [String]
18
+ attr_accessor :autonomous_data_warehouse_id
19
+
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
23
  # rubocop:disable Style/SymbolLiteral
24
- 'autonomous_data_warehouse_id': :'autonomousDataWarehouseId',
25
- 'display_name': :'displayName'
24
+ 'display_name': :'displayName',
25
+ 'autonomous_data_warehouse_id': :'autonomousDataWarehouseId'
26
26
  # rubocop:enable Style/SymbolLiteral
27
27
  }
28
28
  end
@@ -31,8 +31,8 @@ module OCI
31
31
  def self.swagger_types
32
32
  {
33
33
  # rubocop:disable Style/SymbolLiteral
34
- 'autonomous_data_warehouse_id': :'String',
35
- 'display_name': :'String'
34
+ 'display_name': :'String',
35
+ 'autonomous_data_warehouse_id': :'String'
36
36
  # rubocop:enable Style/SymbolLiteral
37
37
  }
38
38
  end
@@ -43,25 +43,25 @@ module OCI
43
43
 
44
44
  # Initializes the object
45
45
  # @param [Hash] attributes Model attributes in the form of hash
46
- # @option attributes [String] :autonomous_data_warehouse_id The value to assign to the {#autonomous_data_warehouse_id} property
47
46
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
47
+ # @option attributes [String] :autonomous_data_warehouse_id The value to assign to the {#autonomous_data_warehouse_id} property
48
48
  def initialize(attributes = {})
49
49
  return unless attributes.is_a?(Hash)
50
50
 
51
51
  # convert string to symbol for hash key
52
52
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
53
 
54
- self.autonomous_data_warehouse_id = attributes[:'autonomousDataWarehouseId'] if attributes[:'autonomousDataWarehouseId']
55
-
56
- raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
57
-
58
- self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
59
-
60
54
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
61
55
 
62
56
  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
63
57
 
64
58
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
59
+
60
+ self.autonomous_data_warehouse_id = attributes[:'autonomousDataWarehouseId'] if attributes[:'autonomousDataWarehouseId']
61
+
62
+ raise 'You cannot provide both :autonomousDataWarehouseId and :autonomous_data_warehouse_id' if attributes.key?(:'autonomousDataWarehouseId') && attributes.key?(:'autonomous_data_warehouse_id')
63
+
64
+ self.autonomous_data_warehouse_id = attributes[:'autonomous_data_warehouse_id'] if attributes[:'autonomous_data_warehouse_id']
65
65
  end
66
66
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
67
67
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -75,8 +75,8 @@ module OCI
75
75
  return true if equal?(other)
76
76
 
77
77
  self.class == other.class &&
78
- autonomous_data_warehouse_id == other.autonomous_data_warehouse_id &&
79
- display_name == other.display_name
78
+ display_name == other.display_name &&
79
+ autonomous_data_warehouse_id == other.autonomous_data_warehouse_id
80
80
  end
81
81
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
82
82
 
@@ -92,7 +92,7 @@ module OCI
92
92
  # Calculates hash code according to all attributes.
93
93
  # @return [Fixnum] Hash code
94
94
  def hash
95
- [autonomous_data_warehouse_id, display_name].hash
95
+ [display_name, autonomous_data_warehouse_id].hash
96
96
  end
97
97
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
98
98
 
@@ -14,14 +14,14 @@ module OCI
14
14
  LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze
15
15
  ].freeze
16
16
 
17
- # **[Required]** A strong password for Admin. The password must be between 12 and 60 characters long, and must contain at least 1 uppercase, 1 lowercase and 2 numeric characters. It cannot contain the double quote symbol (\"). It must be different than the last 4 passwords.
18
- # @return [String]
19
- attr_accessor :admin_password
20
-
21
17
  # **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment of the Autonomous Data Warehouse.
22
18
  # @return [String]
23
19
  attr_accessor :compartment_id
24
20
 
21
+ # **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
22
+ # @return [String]
23
+ attr_accessor :db_name
24
+
25
25
  # **[Required]** The number of CPU Cores to be made available to the database.
26
26
  # @return [Integer]
27
27
  attr_accessor :cpu_core_count
@@ -31,22 +31,19 @@ module OCI
31
31
  # @return [Integer]
32
32
  attr_accessor :data_storage_size_in_tbs
33
33
 
34
- # **[Required]** The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
34
+ # **[Required]** The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing.
35
35
  # @return [String]
36
- attr_accessor :db_name
37
-
38
- # Defined tags for this resource. Each key is predefined and scoped to a namespace.
39
- # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
40
- #
41
- # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
42
- #
43
- # @return [Hash<String, Hash<String, Object>>]
44
- attr_accessor :defined_tags
36
+ attr_accessor :admin_password
45
37
 
46
38
  # The user-friendly name for the Autonomous Data Warehouse. The name does not have to be unique.
47
39
  # @return [String]
48
40
  attr_accessor :display_name
49
41
 
42
+ # The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
43
+ #
44
+ # @return [String]
45
+ attr_reader :license_model
46
+
50
47
  # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
51
48
  # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
52
49
  #
@@ -55,24 +52,27 @@ module OCI
55
52
  # @return [Hash<String, String>]
56
53
  attr_accessor :freeform_tags
57
54
 
58
- # The Oracle license model that applies to the Oracle Autonomous Data Warehouse. The default is BRING_YOUR_OWN_LICENSE.
55
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
56
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
59
57
  #
60
- # @return [String]
61
- attr_reader :license_model
58
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
59
+ #
60
+ # @return [Hash<String, Hash<String, Object>>]
61
+ attr_accessor :defined_tags
62
62
 
63
63
  # Attribute mapping from ruby-style variable name to JSON key.
64
64
  def self.attribute_map
65
65
  {
66
66
  # rubocop:disable Style/SymbolLiteral
67
- 'admin_password': :'adminPassword',
68
67
  'compartment_id': :'compartmentId',
68
+ 'db_name': :'dbName',
69
69
  'cpu_core_count': :'cpuCoreCount',
70
70
  'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
71
- 'db_name': :'dbName',
72
- 'defined_tags': :'definedTags',
71
+ 'admin_password': :'adminPassword',
73
72
  'display_name': :'displayName',
73
+ 'license_model': :'licenseModel',
74
74
  'freeform_tags': :'freeformTags',
75
- 'license_model': :'licenseModel'
75
+ 'defined_tags': :'definedTags'
76
76
  # rubocop:enable Style/SymbolLiteral
77
77
  }
78
78
  end
@@ -81,15 +81,15 @@ module OCI
81
81
  def self.swagger_types
82
82
  {
83
83
  # rubocop:disable Style/SymbolLiteral
84
- 'admin_password': :'String',
85
84
  'compartment_id': :'String',
85
+ 'db_name': :'String',
86
86
  'cpu_core_count': :'Integer',
87
87
  'data_storage_size_in_tbs': :'Integer',
88
- 'db_name': :'String',
89
- 'defined_tags': :'Hash<String, Hash<String, Object>>',
88
+ 'admin_password': :'String',
90
89
  'display_name': :'String',
90
+ 'license_model': :'String',
91
91
  'freeform_tags': :'Hash<String, String>',
92
- 'license_model': :'String'
92
+ 'defined_tags': :'Hash<String, Hash<String, Object>>'
93
93
  # rubocop:enable Style/SymbolLiteral
94
94
  }
95
95
  end
@@ -100,33 +100,33 @@ module OCI
100
100
 
101
101
  # Initializes the object
102
102
  # @param [Hash] attributes Model attributes in the form of hash
103
- # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
104
103
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
104
+ # @option attributes [String] :db_name The value to assign to the {#db_name} property
105
105
  # @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
106
106
  # @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
107
- # @option attributes [String] :db_name The value to assign to the {#db_name} property
108
- # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
107
+ # @option attributes [String] :admin_password The value to assign to the {#admin_password} property
109
108
  # @option attributes [String] :display_name The value to assign to the {#display_name} property
110
- # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
111
109
  # @option attributes [String] :license_model The value to assign to the {#license_model} property
110
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
111
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
112
112
  def initialize(attributes = {})
113
113
  return unless attributes.is_a?(Hash)
114
114
 
115
115
  # convert string to symbol for hash key
116
116
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
117
117
 
118
- self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
119
-
120
- raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
121
-
122
- self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
123
-
124
118
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
125
119
 
126
120
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
127
121
 
128
122
  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
129
123
 
124
+ self.db_name = attributes[:'dbName'] if attributes[:'dbName']
125
+
126
+ raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
127
+
128
+ self.db_name = attributes[:'db_name'] if attributes[:'db_name']
129
+
130
130
  self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
131
131
 
132
132
  raise 'You cannot provide both :cpuCoreCount and :cpu_core_count' if attributes.key?(:'cpuCoreCount') && attributes.key?(:'cpu_core_count')
@@ -139,17 +139,11 @@ module OCI
139
139
 
140
140
  self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
141
141
 
142
- self.db_name = attributes[:'dbName'] if attributes[:'dbName']
143
-
144
- raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name')
145
-
146
- self.db_name = attributes[:'db_name'] if attributes[:'db_name']
147
-
148
- self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
142
+ self.admin_password = attributes[:'adminPassword'] if attributes[:'adminPassword']
149
143
 
150
- raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
144
+ raise 'You cannot provide both :adminPassword and :admin_password' if attributes.key?(:'adminPassword') && attributes.key?(:'admin_password')
151
145
 
152
- self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
146
+ self.admin_password = attributes[:'admin_password'] if attributes[:'admin_password']
153
147
 
154
148
  self.display_name = attributes[:'displayName'] if attributes[:'displayName']
155
149
 
@@ -157,17 +151,23 @@ module OCI
157
151
 
158
152
  self.display_name = attributes[:'display_name'] if attributes[:'display_name']
159
153
 
154
+ self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
155
+
156
+ raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
157
+
158
+ self.license_model = attributes[:'license_model'] if attributes[:'license_model']
159
+
160
160
  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
161
161
 
162
162
  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
163
163
 
164
164
  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
165
165
 
166
- self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
166
+ self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
167
167
 
168
- raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
168
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
169
169
 
170
- self.license_model = attributes[:'license_model'] if attributes[:'license_model']
170
+ self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
171
171
  end
172
172
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
173
173
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -191,15 +191,15 @@ module OCI
191
191
  return true if equal?(other)
192
192
 
193
193
  self.class == other.class &&
194
- admin_password == other.admin_password &&
195
194
  compartment_id == other.compartment_id &&
195
+ db_name == other.db_name &&
196
196
  cpu_core_count == other.cpu_core_count &&
197
197
  data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
198
- db_name == other.db_name &&
199
- defined_tags == other.defined_tags &&
198
+ admin_password == other.admin_password &&
200
199
  display_name == other.display_name &&
200
+ license_model == other.license_model &&
201
201
  freeform_tags == other.freeform_tags &&
202
- license_model == other.license_model
202
+ defined_tags == other.defined_tags
203
203
  end
204
204
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
205
205
 
@@ -215,7 +215,7 @@ module OCI
215
215
  # Calculates hash code according to all attributes.
216
216
  # @return [Fixnum] Hash code
217
217
  def hash
218
- [admin_password, compartment_id, cpu_core_count, data_storage_size_in_tbs, db_name, defined_tags, display_name, freeform_tags, license_model].hash
218
+ [compartment_id, db_name, cpu_core_count, data_storage_size_in_tbs, admin_password, display_name, license_model, freeform_tags, defined_tags].hash
219
219
  end
220
220
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
221
221