Link¶
-
class
oci.marketplace.models.
Link
(**kwargs)¶ Bases:
object
The model for links.
Attributes
REL_CANONICAL
A constant which can be used with the rel property of a Link. REL_NEXT
A constant which can be used with the rel property of a Link. REL_PREV
A constant which can be used with the rel property of a Link. REL_SELF
A constant which can be used with the rel property of a Link. REL_TEMPLATE
A constant which can be used with the rel property of a Link. href
Gets the href of this Link. rel
Gets the rel of this Link. Methods
__init__
(**kwargs)Initializes a new Link object with values from keyword arguments. -
REL_CANONICAL
= 'CANONICAL'¶ A constant which can be used with the rel property of a Link. This constant has a value of “CANONICAL”
-
REL_NEXT
= 'NEXT'¶ A constant which can be used with the rel property of a Link. This constant has a value of “NEXT”
-
REL_PREV
= 'PREV'¶ A constant which can be used with the rel property of a Link. This constant has a value of “PREV”
-
REL_SELF
= 'SELF'¶ A constant which can be used with the rel property of a Link. This constant has a value of “SELF”
-
REL_TEMPLATE
= 'TEMPLATE'¶ A constant which can be used with the rel property of a Link. This constant has a value of “TEMPLATE”
-
__init__
(**kwargs)¶ Initializes a new Link object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - rel (str) – The value to assign to the rel property of this Link. Allowed values for this property are: “SELF”, “CANONICAL”, “NEXT”, “TEMPLATE”, “PREV”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- href (str) – The value to assign to the href property of this Link.
-
href
¶ Gets the href of this Link. The anchor tag.
Returns: The href of this Link. Return type: str
-
rel
¶ Gets the rel of this Link. Reference links to the previous page, next page, and other pages.
Allowed values for this property are: “SELF”, “CANONICAL”, “NEXT”, “TEMPLATE”, “PREV”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The rel of this Link. Return type: str
-