Class: OCI::Database::Models::AutonomousDatabaseConnectionUrls

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/database/models/autonomous_database_connection_urls.rb

Overview

The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. Note that these URLs are provided by the console only for databases on dedicated Exadata infrastructure.

Example: {\"sqlDevWebUrl\": \"https:///ords...\", \"apexUrl\", \"https:///ords...\"}

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AutonomousDatabaseConnectionUrls

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



92
93
94
95
96
97
98
99
100
101
102
103
104
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 92

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.sql_dev_web_url = attributes[:'sqlDevWebUrl'] if attributes[:'sqlDevWebUrl']

  raise 'You cannot provide both :sqlDevWebUrl and :sql_dev_web_url' if attributes.key?(:'sqlDevWebUrl') && attributes.key?(:'sql_dev_web_url')

  self.sql_dev_web_url = attributes[:'sql_dev_web_url'] if attributes[:'sql_dev_web_url']

  self.apex_url = attributes[:'apexUrl'] if attributes[:'apexUrl']

  raise 'You cannot provide both :apexUrl and :apex_url' if attributes.key?(:'apexUrl') && attributes.key?(:'apex_url')

  self.apex_url = attributes[:'apex_url'] if attributes[:'apex_url']

  self.machine_learning_user_management_url = attributes[:'machineLearningUserManagementUrl'] if attributes[:'machineLearningUserManagementUrl']

  raise 'You cannot provide both :machineLearningUserManagementUrl and :machine_learning_user_management_url' if attributes.key?(:'machineLearningUserManagementUrl') && attributes.key?(:'machine_learning_user_management_url')

  self.machine_learning_user_management_url = attributes[:'machine_learning_user_management_url'] if attributes[:'machine_learning_user_management_url']

  self.graph_studio_url = attributes[:'graphStudioUrl'] if attributes[:'graphStudioUrl']

  raise 'You cannot provide both :graphStudioUrl and :graph_studio_url' if attributes.key?(:'graphStudioUrl') && attributes.key?(:'graph_studio_url')

  self.graph_studio_url = attributes[:'graph_studio_url'] if attributes[:'graph_studio_url']

  self.mongo_db_url = attributes[:'mongoDbUrl'] if attributes[:'mongoDbUrl']

  raise 'You cannot provide both :mongoDbUrl and :mongo_db_url' if attributes.key?(:'mongoDbUrl') && attributes.key?(:'mongo_db_url')

  self.mongo_db_url = attributes[:'mongo_db_url'] if attributes[:'mongo_db_url']

  self.machine_learning_notebook_url = attributes[:'machineLearningNotebookUrl'] if attributes[:'machineLearningNotebookUrl']

  raise 'You cannot provide both :machineLearningNotebookUrl and :machine_learning_notebook_url' if attributes.key?(:'machineLearningNotebookUrl') && attributes.key?(:'machine_learning_notebook_url')

  self.machine_learning_notebook_url = attributes[:'machine_learning_notebook_url'] if attributes[:'machine_learning_notebook_url']

  self.ords_url = attributes[:'ordsUrl'] if attributes[:'ordsUrl']

  raise 'You cannot provide both :ordsUrl and :ords_url' if attributes.key?(:'ordsUrl') && attributes.key?(:'ords_url')

  self.ords_url = attributes[:'ords_url'] if attributes[:'ords_url']

  self.database_transforms_url = attributes[:'databaseTransformsUrl'] if attributes[:'databaseTransformsUrl']

  raise 'You cannot provide both :databaseTransformsUrl and :database_transforms_url' if attributes.key?(:'databaseTransformsUrl') && attributes.key?(:'database_transforms_url')

  self.database_transforms_url = attributes[:'database_transforms_url'] if attributes[:'database_transforms_url']
end

Instance Attribute Details

#apex_urlString

Oracle Application Express (APEX) URL.

Returns:

  • (String)


20
21
22
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 20

def apex_url
  @apex_url
end

#database_transforms_urlString

The URL of the Database Transforms for the Autonomous Database.

Returns:

  • (String)


44
45
46
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 44

def database_transforms_url
  @database_transforms_url
end

#graph_studio_urlString

The URL of the Graph Studio for the Autonomous Database.

Returns:

  • (String)


28
29
30
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 28

def graph_studio_url
  @graph_studio_url
end

#machine_learning_notebook_urlString

The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database.

Returns:

  • (String)


36
37
38
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 36

def machine_learning_notebook_url
  @machine_learning_notebook_url
end

#machine_learning_user_management_urlString

Oracle Machine Learning user management URL.

Returns:

  • (String)


24
25
26
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 24

def machine_learning_user_management_url
  @machine_learning_user_management_url
end

#mongo_db_urlString

The URL of the MongoDB API for the Autonomous Database.

Returns:

  • (String)


32
33
34
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 32

def mongo_db_url
  @mongo_db_url
end

#ords_urlString

The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database.

Returns:

  • (String)


40
41
42
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 40

def ords_url
  @ords_url
end

#sql_dev_web_urlString

Oracle SQL Developer Web URL.

Returns:

  • (String)


16
17
18
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 16

def sql_dev_web_url
  @sql_dev_web_url
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 47

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'sql_dev_web_url': :'sqlDevWebUrl',
    'apex_url': :'apexUrl',
    'machine_learning_user_management_url': :'machineLearningUserManagementUrl',
    'graph_studio_url': :'graphStudioUrl',
    'mongo_db_url': :'mongoDbUrl',
    'machine_learning_notebook_url': :'machineLearningNotebookUrl',
    'ords_url': :'ordsUrl',
    'database_transforms_url': :'databaseTransformsUrl'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 63

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'sql_dev_web_url': :'String',
    'apex_url': :'String',
    'machine_learning_user_management_url': :'String',
    'graph_studio_url': :'String',
    'mongo_db_url': :'String',
    'machine_learning_notebook_url': :'String',
    'ords_url': :'String',
    'database_transforms_url': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 154

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    sql_dev_web_url == other.sql_dev_web_url &&
    apex_url == other.apex_url &&
    machine_learning_user_management_url == other.machine_learning_user_management_url &&
    graph_studio_url == other.graph_studio_url &&
    mongo_db_url == other.mongo_db_url &&
    machine_learning_notebook_url == other.machine_learning_notebook_url &&
    ords_url == other.ords_url &&
    database_transforms_url == other.database_transforms_url
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 191

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


171
172
173
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 171

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



180
181
182
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 180

def hash
  [sql_dev_web_url, apex_url, machine_learning_user_management_url, graph_studio_url, mongo_db_url, machine_learning_notebook_url, ords_url, database_transforms_url].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



224
225
226
227
228
229
230
231
232
233
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 224

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



218
219
220
# File 'lib/oci/database/models/autonomous_database_connection_urls.rb', line 218

def to_s
  to_hash.to_s
end