oci
2.191.0
  • Installation
  • Configuration
  • Using FIPS-validated Libraries
  • Forward Compatibility
  • New Region Support
  • Backward Compatibility
  • Quickstart
  • Known Issues
  • Logging
  • Exception handling
  • Uploading Large Objects
  • Raw Requests
  • Composite Operations and Waiters
  • Pagination
  • API Reference
  • Customizing Service Clients
  • SDK Behaviors
  • Contributions
  • Notifications
  • License
  • Questions or Feedback
oci
  • Docs »
  • Link
  • View page source

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.

property href¶

Gets the href of this Link. The anchor tag.

Returns

The href of this Link.

Return type

str

property 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


© Copyright 2016, 2026, Oracle

Built with Sphinx using a theme provided by Read the Docs.