lib/hubspot/codegen/cms/hubdb/models/next_page.rb in hubspot-api-client-17.2.0 vs lib/hubspot/codegen/cms/hubdb/models/next_page.rb in hubspot-api-client-18.0.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
-#HubDB endpoints
+#Hubdb
#HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`.
The version of the OpenAPI document: v3
@@ -15,19 +15,21 @@
module Hubspot
module Cms
module Hubdb
class NextPage
- attr_accessor :after
-
+ #
attr_accessor :link
+ #
+ attr_accessor :after
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'after' => :'after',
- :'link' => :'link'
+ :'link' => :'link',
+ :'after' => :'after'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -35,12 +37,12 @@
end
# Attribute type mapping.
def self.openapi_types
{
- :'after' => :'String',
- :'link' => :'String'
+ :'link' => :'String',
+ :'after' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -61,17 +63,17 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::Hubdb::NextPage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
- if attributes.key?(:'after')
- self.after = attributes[:'after']
- end
-
if attributes.key?(:'link')
self.link = attributes[:'link']
end
+
+ if attributes.key?(:'after')
+ self.after = attributes[:'after']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -93,12 +95,12 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- after == o.after &&
- link == o.link
+ link == o.link &&
+ after == o.after
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -106,10 +108,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [after, link].hash
+ [link, after].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself