Class: OCI::Dbmulticloud::Models::CreateOracleDbAzureConnectorDetails
- Inherits:
-
Object
- Object
- OCI::Dbmulticloud::Models::CreateOracleDbAzureConnectorDetails
- Defined in:
- lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb
Overview
Create Oracle DB Azure Connector resource object.
Instance Attribute Summary collapse
-
#access_token ⇒ String
Azure bearer access token.
-
#azure_identity_mechanism ⇒ String
[Required] Azure Identity mechanism.
-
#azure_resource_group ⇒ String
[Required] Azure Resource group name.
-
#azure_subscription_id ⇒ String
[Required] Azure Subscription ID.
-
#azure_tenant_id ⇒ String
[Required] Azure Tenant ID.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains Oracle DB Azure Connector resource.
-
#db_cluster_resource_id ⇒ String
[Required] 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
[Required] Oracle DB Azure Connector resource name.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#private_endpoint_dns_alias ⇒ String
Private endpoint's DNS alias.
-
#private_endpoint_ip_address ⇒ String
Private endpoint IP.
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 = {}) ⇒ CreateOracleDbAzureConnectorDetails
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 = {}) ⇒ CreateOracleDbAzureConnectorDetails
Initializes the object
126 127 128 129 130 131 132 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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 126 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.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.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.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.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_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.access_token = attributes[:'accessToken'] if attributes[:'accessToken'] raise 'You cannot provide both :accessToken and :access_token' if attributes.key?(:'accessToken') && attributes.key?(:'access_token') self.access_token = attributes[:'access_token'] if attributes[:'access_token'] 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. = 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'] end |
Instance Attribute Details
#access_token ⇒ String
Azure bearer access token.
42 43 44 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 42 def access_token @access_token end |
#azure_identity_mechanism ⇒ String
[Required] Azure Identity mechanism.
26 27 28 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 26 def azure_identity_mechanism @azure_identity_mechanism end |
#azure_resource_group ⇒ String
[Required] Azure Resource group name.
38 39 40 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 38 def azure_resource_group @azure_resource_group end |
#azure_subscription_id ⇒ String
[Required] Azure Subscription ID.
34 35 36 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 34 def azure_subscription_id @azure_subscription_id end |
#azure_tenant_id ⇒ String
[Required] Azure Tenant ID.
30 31 32 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 30 def azure_tenant_id @azure_tenant_id end |
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains Oracle DB Azure Connector resource.
14 15 16 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 14 def compartment_id @compartment_id end |
#db_cluster_resource_id ⇒ String
[Required] The OCID of the Oracle DB Cloud VM Cluster resource where this Azure Arc Agent Identity to configure.
22 23 24 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 22 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\"}}
66 67 68 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 66 def @defined_tags end |
#display_name ⇒ String
[Required] Oracle DB Azure Connector resource name.
18 19 20 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 18 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\"}
58 59 60 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 58 def @freeform_tags end |
#private_endpoint_dns_alias ⇒ String
Private endpoint's DNS alias.
50 51 52 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 50 def private_endpoint_dns_alias @private_endpoint_dns_alias end |
#private_endpoint_ip_address ⇒ String
Private endpoint IP.
46 47 48 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 46 def private_endpoint_ip_address @private_endpoint_ip_address end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 69 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'db_cluster_resource_id': :'dbClusterResourceId', 'azure_identity_mechanism': :'azureIdentityMechanism', 'azure_tenant_id': :'azureTenantId', 'azure_subscription_id': :'azureSubscriptionId', 'azure_resource_group': :'azureResourceGroup', 'access_token': :'accessToken', 'private_endpoint_ip_address': :'privateEndpointIpAddress', 'private_endpoint_dns_alias': :'privateEndpointDnsAlias', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 89 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'compartment_id': :'String', 'display_name': :'String', 'db_cluster_resource_id': :'String', 'azure_identity_mechanism': :'String', 'azure_tenant_id': :'String', 'azure_subscription_id': :'String', 'azure_resource_group': :'String', 'access_token': :'String', 'private_endpoint_ip_address': :'String', 'private_endpoint_dns_alias': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 212 def ==(other) return true if equal?(other) self.class == other.class && compartment_id == other.compartment_id && display_name == other.display_name && db_cluster_resource_id == other.db_cluster_resource_id && azure_identity_mechanism == other.azure_identity_mechanism && azure_tenant_id == other.azure_tenant_id && azure_subscription_id == other.azure_subscription_id && azure_resource_group == other.azure_resource_group && access_token == other.access_token && private_endpoint_ip_address == other.private_endpoint_ip_address && private_endpoint_dns_alias == other.private_endpoint_dns_alias && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 253 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
233 234 235 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 233 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
242 243 244 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 242 def hash [compartment_id, display_name, db_cluster_resource_id, azure_identity_mechanism, azure_tenant_id, azure_subscription_id, azure_resource_group, access_token, private_endpoint_ip_address, private_endpoint_dns_alias, , ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
286 287 288 289 290 291 292 293 294 295 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 286 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
280 281 282 |
# File 'lib/oci/dbmulticloud/models/create_oracle_db_azure_connector_details.rb', line 280 def to_s to_hash.to_s end |