Link¶
-
class
oci.marketplace.models.Link(**kwargs)¶ Bases:
objectThe model for links.
Attributes
REL_CANONICALA constant which can be used with the rel property of a Link. REL_NEXTA constant which can be used with the rel property of a Link. REL_PREVA constant which can be used with the rel property of a Link. REL_SELFA constant which can be used with the rel property of a Link. REL_TEMPLATEA constant which can be used with the rel property of a Link. hrefGets the href of this Link. relGets 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
-