EndpointCredentials

class oci.log_analytics.models.EndpointCredentials(**kwargs)

Bases: object

An object containing credential details to authenticate/authorize a REST request.

Attributes

CREDENTIAL_TYPE_BASIC_AUTH A constant which can be used with the credential_type property of a EndpointCredentials.
CREDENTIAL_TYPE_DYNAMIC_TOKEN A constant which can be used with the credential_type property of a EndpointCredentials.
CREDENTIAL_TYPE_NONE A constant which can be used with the credential_type property of a EndpointCredentials.
CREDENTIAL_TYPE_STATIC_TOKEN A constant which can be used with the credential_type property of a EndpointCredentials.
credential_endpoint Gets the credential_endpoint of this EndpointCredentials.
credential_name Gets the credential_name of this EndpointCredentials.
credential_type Gets the credential_type of this EndpointCredentials.

Methods

__init__(**kwargs) Initializes a new EndpointCredentials object with values from keyword arguments.
CREDENTIAL_TYPE_BASIC_AUTH = 'BASIC_AUTH'

A constant which can be used with the credential_type property of a EndpointCredentials. This constant has a value of “BASIC_AUTH”

CREDENTIAL_TYPE_DYNAMIC_TOKEN = 'DYNAMIC_TOKEN'

A constant which can be used with the credential_type property of a EndpointCredentials. This constant has a value of “DYNAMIC_TOKEN”

CREDENTIAL_TYPE_NONE = 'NONE'

A constant which can be used with the credential_type property of a EndpointCredentials. This constant has a value of “NONE”

CREDENTIAL_TYPE_STATIC_TOKEN = 'STATIC_TOKEN'

A constant which can be used with the credential_type property of a EndpointCredentials. This constant has a value of “STATIC_TOKEN”

__init__(**kwargs)

Initializes a new EndpointCredentials object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • credential_type (str) – The value to assign to the credential_type property of this EndpointCredentials. Allowed values for this property are: “NONE”, “BASIC_AUTH”, “STATIC_TOKEN”, “DYNAMIC_TOKEN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • credential_name (str) – The value to assign to the credential_name property of this EndpointCredentials.
  • credential_endpoint (oci.log_analytics.models.CredentialEndpoint) – The value to assign to the credential_endpoint property of this EndpointCredentials.
credential_endpoint

Gets the credential_endpoint of this EndpointCredentials.

Returns:The credential_endpoint of this EndpointCredentials.
Return type:oci.log_analytics.models.CredentialEndpoint
credential_name

Gets the credential_name of this EndpointCredentials. The named credential name on the management agent.

Returns:The credential_name of this EndpointCredentials.
Return type:str
credential_type

Gets the credential_type of this EndpointCredentials. The credential type. NONE indicates credentials are not needed to access the endpoint. BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. In case of dynamic tokens, also specify the endpoint from which the token must be fetched.

Allowed values for this property are: “NONE”, “BASIC_AUTH”, “STATIC_TOKEN”, “DYNAMIC_TOKEN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The credential_type of this EndpointCredentials.
Return type:str