Class: OCI::Dbmulticloud::Models::OracleDbAzureConnectorSummary
- Inherits:
-
Object
- Object
- OCI::Dbmulticloud::Models::OracleDbAzureConnectorSummary
- Defined in:
- lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb
Overview
Details of Oracle DB Azure Connector resource.
Instance Attribute Summary collapse
-
#arc_agent_nodes ⇒ Array<OCI::Dbmulticloud::Models::ArcAgentNodes>
List of all VMs where Arc Agent Identity is configure under Oracle Cloud VM Cluster.
-
#azure_identity_connectivity_status ⇒ String
The current lifecycle state of the Oracle DB Azure Identity Connector resource.
-
#azure_identity_mechanism ⇒ String
Azure Identity mechanism.
-
#azure_resource_group ⇒ String
Azure Resource group name.
-
#azure_subscription_id ⇒ String
Azure Subscription ID.
-
#azure_tenant_id ⇒ String
Azure Tenant ID.
-
#compartment_id ⇒ String
The OCID of the compartment that contains Oracle DB Azure Connector resource.
-
#db_cluster_resource_id ⇒ String
The OCID of the Oracle DB Cloud VM Cluster resource where this Azure Arc Agent Identity to configure.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#display_name ⇒ String
Oracle DB Azure Connector resource name.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#id ⇒ String
The OCID of the Oracle DB Azure Connector resource.
-
#last_modification ⇒ String
Description of the latest modification of the Oracle DB Azure Connector resource.
-
#lifecycle_state ⇒ String
The current lifecycle state of the Oracle DB Azure Connector resource.
-
#lifecycle_state_details ⇒ String
Description of the current lifecycle state in more detail.
-
#private_endpoint_dns_alias ⇒ String
Private endpoint's DNS alias.
-
#private_endpoint_ip_address ⇒ String
Private endpoint IP.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#time_created ⇒ DateTime
Time when the Oracle DB Azure Connector resource was created expressed in RFC 3339 timestamp format, e.g.
-
#time_updated ⇒ DateTime
Time when the Oracle DB Azure Connector resource was last modified expressed in RFC 3339 timestamp format, e.g.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ OracleDbAzureConnectorSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ OracleDbAzureConnectorSummary
Initializes the object
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 186 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.id = attributes[:'id'] if attributes[:'id'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.db_cluster_resource_id = attributes[:'dbClusterResourceId'] if attributes[:'dbClusterResourceId'] raise 'You cannot provide both :dbClusterResourceId and :db_cluster_resource_id' if attributes.key?(:'dbClusterResourceId') && attributes.key?(:'db_cluster_resource_id') self.db_cluster_resource_id = attributes[:'db_cluster_resource_id'] if attributes[:'db_cluster_resource_id'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.arc_agent_nodes = attributes[:'arcAgentNodes'] if attributes[:'arcAgentNodes'] raise 'You cannot provide both :arcAgentNodes and :arc_agent_nodes' if attributes.key?(:'arcAgentNodes') && attributes.key?(:'arc_agent_nodes') self.arc_agent_nodes = attributes[:'arc_agent_nodes'] if attributes[:'arc_agent_nodes'] self.azure_tenant_id = attributes[:'azureTenantId'] if attributes[:'azureTenantId'] raise 'You cannot provide both :azureTenantId and :azure_tenant_id' if attributes.key?(:'azureTenantId') && attributes.key?(:'azure_tenant_id') self.azure_tenant_id = attributes[:'azure_tenant_id'] if attributes[:'azure_tenant_id'] self.azure_subscription_id = attributes[:'azureSubscriptionId'] if attributes[:'azureSubscriptionId'] raise 'You cannot provide both :azureSubscriptionId and :azure_subscription_id' if attributes.key?(:'azureSubscriptionId') && attributes.key?(:'azure_subscription_id') self.azure_subscription_id = attributes[:'azure_subscription_id'] if attributes[:'azure_subscription_id'] self.azure_resource_group = attributes[:'azureResourceGroup'] if attributes[:'azureResourceGroup'] raise 'You cannot provide both :azureResourceGroup and :azure_resource_group' if attributes.key?(:'azureResourceGroup') && attributes.key?(:'azure_resource_group') self.azure_resource_group = attributes[:'azure_resource_group'] if attributes[:'azure_resource_group'] self.private_endpoint_ip_address = attributes[:'privateEndpointIpAddress'] if attributes[:'privateEndpointIpAddress'] raise 'You cannot provide both :privateEndpointIpAddress and :private_endpoint_ip_address' if attributes.key?(:'privateEndpointIpAddress') && attributes.key?(:'private_endpoint_ip_address') self.private_endpoint_ip_address = attributes[:'private_endpoint_ip_address'] if attributes[:'private_endpoint_ip_address'] self.private_endpoint_dns_alias = attributes[:'privateEndpointDnsAlias'] if attributes[:'privateEndpointDnsAlias'] raise 'You cannot provide both :privateEndpointDnsAlias and :private_endpoint_dns_alias' if attributes.key?(:'privateEndpointDnsAlias') && attributes.key?(:'private_endpoint_dns_alias') self.private_endpoint_dns_alias = attributes[:'private_endpoint_dns_alias'] if attributes[:'private_endpoint_dns_alias'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_state_details = attributes[:'lifecycleStateDetails'] if attributes[:'lifecycleStateDetails'] raise 'You cannot provide both :lifecycleStateDetails and :lifecycle_state_details' if attributes.key?(:'lifecycleStateDetails') && attributes.key?(:'lifecycle_state_details') self.lifecycle_state_details = attributes[:'lifecycle_state_details'] if attributes[:'lifecycle_state_details'] self.azure_identity_mechanism = attributes[:'azureIdentityMechanism'] if attributes[:'azureIdentityMechanism'] raise 'You cannot provide both :azureIdentityMechanism and :azure_identity_mechanism' if attributes.key?(:'azureIdentityMechanism') && attributes.key?(:'azure_identity_mechanism') self.azure_identity_mechanism = attributes[:'azure_identity_mechanism'] if attributes[:'azure_identity_mechanism'] self.azure_identity_connectivity_status = attributes[:'azureIdentityConnectivityStatus'] if attributes[:'azureIdentityConnectivityStatus'] raise 'You cannot provide both :azureIdentityConnectivityStatus and :azure_identity_connectivity_status' if attributes.key?(:'azureIdentityConnectivityStatus') && attributes.key?(:'azure_identity_connectivity_status') self.azure_identity_connectivity_status = attributes[:'azure_identity_connectivity_status'] if attributes[:'azure_identity_connectivity_status'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.last_modification = attributes[:'lastModification'] if attributes[:'lastModification'] raise 'You cannot provide both :lastModification and :last_modification' if attributes.key?(:'lastModification') && attributes.key?(:'last_modification') self.last_modification = attributes[:'last_modification'] if attributes[:'last_modification'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] end |
Instance Attribute Details
#arc_agent_nodes ⇒ Array<OCI::Dbmulticloud::Models::ArcAgentNodes>
List of all VMs where Arc Agent Identity is configure under Oracle Cloud VM Cluster.
29 30 31 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 29 def arc_agent_nodes @arc_agent_nodes end |
#azure_identity_connectivity_status ⇒ String
The current lifecycle state of the Oracle DB Azure Identity Connector resource.
65 66 67 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 65 def azure_identity_connectivity_status @azure_identity_connectivity_status end |
#azure_identity_mechanism ⇒ String
Azure Identity mechanism.
61 62 63 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 61 def azure_identity_mechanism @azure_identity_mechanism end |
#azure_resource_group ⇒ String
Azure Resource group name.
41 42 43 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 41 def azure_resource_group @azure_resource_group end |
#azure_subscription_id ⇒ String
Azure Subscription ID.
37 38 39 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 37 def azure_subscription_id @azure_subscription_id end |
#azure_tenant_id ⇒ String
Azure Tenant ID.
33 34 35 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 33 def azure_tenant_id @azure_tenant_id end |
#compartment_id ⇒ String
The OCID of the compartment that contains Oracle DB Azure Connector resource.
17 18 19 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 17 def compartment_id @compartment_id end |
#db_cluster_resource_id ⇒ String
The OCID of the Oracle DB Cloud VM Cluster resource where this Azure Arc Agent Identity to configure.
21 22 23 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 21 def db_cluster_resource_id @db_cluster_resource_id end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {\"Operations\": {\"CostCenter\": \"42\"}}
95 96 97 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 95 def @defined_tags end |
#display_name ⇒ String
Oracle DB Azure Connector resource name.
25 26 27 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 25 def display_name @display_name end |
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {\"Department\": \"Finance\"}
87 88 89 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 87 def @freeform_tags end |
#id ⇒ String
The OCID of the Oracle DB Azure Connector resource.
13 14 15 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 13 def id @id end |
#last_modification ⇒ String
Description of the latest modification of the Oracle DB Azure Connector resource.
79 80 81 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 79 def last_modification @last_modification end |
#lifecycle_state ⇒ String
The current lifecycle state of the Oracle DB Azure Connector resource.
53 54 55 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 53 def lifecycle_state @lifecycle_state end |
#lifecycle_state_details ⇒ String
Description of the current lifecycle state in more detail.
57 58 59 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 57 def lifecycle_state_details @lifecycle_state_details end |
#private_endpoint_dns_alias ⇒ String
Private endpoint's DNS alias.
49 50 51 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 49 def private_endpoint_dns_alias @private_endpoint_dns_alias end |
#private_endpoint_ip_address ⇒ String
Private endpoint IP.
45 46 47 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 45 def private_endpoint_ip_address @private_endpoint_ip_address end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource. Each key is predefined and scoped to a namespace.
Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}
102 103 104 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 102 def @system_tags end |
#time_created ⇒ DateTime
Time when the Oracle DB Azure Connector resource was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
70 71 72 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 70 def time_created @time_created end |
#time_updated ⇒ DateTime
Time when the Oracle DB Azure Connector resource was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
75 76 77 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 75 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 105 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'compartment_id': :'compartmentId', 'db_cluster_resource_id': :'dbClusterResourceId', 'display_name': :'displayName', 'arc_agent_nodes': :'arcAgentNodes', 'azure_tenant_id': :'azureTenantId', 'azure_subscription_id': :'azureSubscriptionId', 'azure_resource_group': :'azureResourceGroup', 'private_endpoint_ip_address': :'privateEndpointIpAddress', 'private_endpoint_dns_alias': :'privateEndpointDnsAlias', 'lifecycle_state': :'lifecycleState', 'lifecycle_state_details': :'lifecycleStateDetails', 'azure_identity_mechanism': :'azureIdentityMechanism', 'azure_identity_connectivity_status': :'azureIdentityConnectivityStatus', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'last_modification': :'lastModification', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 133 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'compartment_id': :'String', 'db_cluster_resource_id': :'String', 'display_name': :'String', 'arc_agent_nodes': :'Array<OCI::Dbmulticloud::Models::ArcAgentNodes>', 'azure_tenant_id': :'String', 'azure_subscription_id': :'String', 'azure_resource_group': :'String', 'private_endpoint_ip_address': :'String', 'private_endpoint_dns_alias': :'String', 'lifecycle_state': :'String', 'lifecycle_state_details': :'String', 'azure_identity_mechanism': :'String', 'azure_identity_connectivity_status': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'last_modification': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 316 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && compartment_id == other.compartment_id && db_cluster_resource_id == other.db_cluster_resource_id && display_name == other.display_name && arc_agent_nodes == other.arc_agent_nodes && azure_tenant_id == other.azure_tenant_id && azure_subscription_id == other.azure_subscription_id && azure_resource_group == other.azure_resource_group && private_endpoint_ip_address == other.private_endpoint_ip_address && private_endpoint_dns_alias == other.private_endpoint_dns_alias && lifecycle_state == other.lifecycle_state && lifecycle_state_details == other.lifecycle_state_details && azure_identity_mechanism == other.azure_identity_mechanism && azure_identity_connectivity_status == other.azure_identity_connectivity_status && time_created == other.time_created && time_updated == other.time_updated && last_modification == other.last_modification && == other. && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 365 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
345 346 347 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 345 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
354 355 356 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 354 def hash [id, compartment_id, db_cluster_resource_id, display_name, arc_agent_nodes, azure_tenant_id, azure_subscription_id, azure_resource_group, private_endpoint_ip_address, private_endpoint_dns_alias, lifecycle_state, lifecycle_state_details, azure_identity_mechanism, azure_identity_connectivity_status, time_created, time_updated, last_modification, , , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
398 399 400 401 402 403 404 405 406 407 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 398 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
392 393 394 |
# File 'lib/oci/dbmulticloud/models/oracle_db_azure_connector_summary.rb', line 392 def to_s to_hash.to_s end |