| Server IP : 162.241.203.86 / Your IP : 216.73.216.183 Web Server : Apache System : Linux br1002.hostgator.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : luxlic01 ( 6532) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/identity/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918
from .create_identity_provider_details import CreateIdentityProviderDetails
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CreateSaml2IdentityProviderDetails(CreateIdentityProviderDetails):
"""
CreateSaml2IdentityProviderDetails model.
"""
def __init__(self, **kwargs):
"""
Initializes a new CreateSaml2IdentityProviderDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.identity.models.CreateSaml2IdentityProviderDetails.protocol` attribute
of this class is ``SAML2`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param compartment_id:
The value to assign to the compartment_id property of this CreateSaml2IdentityProviderDetails.
:type compartment_id: str
:param name:
The value to assign to the name property of this CreateSaml2IdentityProviderDetails.
:type name: str
:param description:
The value to assign to the description property of this CreateSaml2IdentityProviderDetails.
:type description: str
:param product_type:
The value to assign to the product_type property of this CreateSaml2IdentityProviderDetails.
Allowed values for this property are: "IDCS", "ADFS"
:type product_type: str
:param protocol:
The value to assign to the protocol property of this CreateSaml2IdentityProviderDetails.
Allowed values for this property are: "SAML2", "ADFS"
:type protocol: str
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateSaml2IdentityProviderDetails.
:type freeform_tags: dict(str, str)
:param defined_tags:
The value to assign to the defined_tags property of this CreateSaml2IdentityProviderDetails.
:type defined_tags: dict(str, dict(str, object))
:param metadata_url:
The value to assign to the metadata_url property of this CreateSaml2IdentityProviderDetails.
:type metadata_url: str
:param metadata:
The value to assign to the metadata property of this CreateSaml2IdentityProviderDetails.
:type metadata: str
:param freeform_attributes:
The value to assign to the freeform_attributes property of this CreateSaml2IdentityProviderDetails.
:type freeform_attributes: dict(str, str)
"""
self.swagger_types = {
'compartment_id': 'str',
'name': 'str',
'description': 'str',
'product_type': 'str',
'protocol': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'metadata_url': 'str',
'metadata': 'str',
'freeform_attributes': 'dict(str, str)'
}
self.attribute_map = {
'compartment_id': 'compartmentId',
'name': 'name',
'description': 'description',
'product_type': 'productType',
'protocol': 'protocol',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'metadata_url': 'metadataUrl',
'metadata': 'metadata',
'freeform_attributes': 'freeformAttributes'
}
self._compartment_id = None
self._name = None
self._description = None
self._product_type = None
self._protocol = None
self._freeform_tags = None
self._defined_tags = None
self._metadata_url = None
self._metadata = None
self._freeform_attributes = None
self._protocol = 'SAML2'
@property
def metadata_url(self):
"""
**[Required]** Gets the metadata_url of this CreateSaml2IdentityProviderDetails.
The URL for retrieving the identity provider's metadata,
which contains information required for federating.
:return: The metadata_url of this CreateSaml2IdentityProviderDetails.
:rtype: str
"""
return self._metadata_url
@metadata_url.setter
def metadata_url(self, metadata_url):
"""
Sets the metadata_url of this CreateSaml2IdentityProviderDetails.
The URL for retrieving the identity provider's metadata,
which contains information required for federating.
:param metadata_url: The metadata_url of this CreateSaml2IdentityProviderDetails.
:type: str
"""
self._metadata_url = metadata_url
@property
def metadata(self):
"""
**[Required]** Gets the metadata of this CreateSaml2IdentityProviderDetails.
The XML that contains the information required for federating.
:return: The metadata of this CreateSaml2IdentityProviderDetails.
:rtype: str
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
"""
Sets the metadata of this CreateSaml2IdentityProviderDetails.
The XML that contains the information required for federating.
:param metadata: The metadata of this CreateSaml2IdentityProviderDetails.
:type: str
"""
self._metadata = metadata
@property
def freeform_attributes(self):
"""
Gets the freeform_attributes of this CreateSaml2IdentityProviderDetails.
Extra name value pairs associated with this identity provider.
Example: `{\"clientId\": \"app_sf3kdjf3\"}`
:return: The freeform_attributes of this CreateSaml2IdentityProviderDetails.
:rtype: dict(str, str)
"""
return self._freeform_attributes
@freeform_attributes.setter
def freeform_attributes(self, freeform_attributes):
"""
Sets the freeform_attributes of this CreateSaml2IdentityProviderDetails.
Extra name value pairs associated with this identity provider.
Example: `{\"clientId\": \"app_sf3kdjf3\"}`
:param freeform_attributes: The freeform_attributes of this CreateSaml2IdentityProviderDetails.
:type: dict(str, str)
"""
self._freeform_attributes = freeform_attributes
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other