Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
marketplace_private_offer
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: create_offer_details.py
# 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: 20220901 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 CreateOfferDetails(object): """ The information about new Offers. """ def __init__(self, **kwargs): """ Initializes a new CreateOfferDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this CreateOfferDetails. :type display_name: str :param seller_compartment_id: The value to assign to the seller_compartment_id property of this CreateOfferDetails. :type seller_compartment_id: str :param buyer_compartment_id: The value to assign to the buyer_compartment_id property of this CreateOfferDetails. :type buyer_compartment_id: str :param description: The value to assign to the description property of this CreateOfferDetails. :type description: str :param internal_notes: The value to assign to the internal_notes property of this CreateOfferDetails. :type internal_notes: str :param time_start_date: The value to assign to the time_start_date property of this CreateOfferDetails. :type time_start_date: datetime :param duration: The value to assign to the duration property of this CreateOfferDetails. :type duration: str :param time_accept_by: The value to assign to the time_accept_by property of this CreateOfferDetails. :type time_accept_by: datetime :param pricing: The value to assign to the pricing property of this CreateOfferDetails. :type pricing: oci.marketplace_private_offer.models.Pricing :param buyer_information: The value to assign to the buyer_information property of this CreateOfferDetails. :type buyer_information: oci.marketplace_private_offer.models.BuyerInformation :param seller_information: The value to assign to the seller_information property of this CreateOfferDetails. :type seller_information: oci.marketplace_private_offer.models.SellerInformation :param resource_bundles: The value to assign to the resource_bundles property of this CreateOfferDetails. :type resource_bundles: list[oci.marketplace_private_offer.models.ResourceBundle] :param custom_fields: The value to assign to the custom_fields property of this CreateOfferDetails. :type custom_fields: list[oci.marketplace_private_offer.models.CustomField] :param freeform_tags: The value to assign to the freeform_tags property of this CreateOfferDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateOfferDetails. :type defined_tags: dict(str, dict(str, object)) """ self.swagger_types = { 'display_name': 'str', 'seller_compartment_id': 'str', 'buyer_compartment_id': 'str', 'description': 'str', 'internal_notes': 'str', 'time_start_date': 'datetime', 'duration': 'str', 'time_accept_by': 'datetime', 'pricing': 'Pricing', 'buyer_information': 'BuyerInformation', 'seller_information': 'SellerInformation', 'resource_bundles': 'list[ResourceBundle]', 'custom_fields': 'list[CustomField]', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'display_name': 'displayName', 'seller_compartment_id': 'sellerCompartmentId', 'buyer_compartment_id': 'buyerCompartmentId', 'description': 'description', 'internal_notes': 'internalNotes', 'time_start_date': 'timeStartDate', 'duration': 'duration', 'time_accept_by': 'timeAcceptBy', 'pricing': 'pricing', 'buyer_information': 'buyerInformation', 'seller_information': 'sellerInformation', 'resource_bundles': 'resourceBundles', 'custom_fields': 'customFields', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._display_name = None self._seller_compartment_id = None self._buyer_compartment_id = None self._description = None self._internal_notes = None self._time_start_date = None self._duration = None self._time_accept_by = None self._pricing = None self._buyer_information = None self._seller_information = None self._resource_bundles = None self._custom_fields = None self._freeform_tags = None self._defined_tags = None @property def display_name(self): """ **[Required]** Gets the display_name of this CreateOfferDetails. Offers Identifier :return: The display_name of this CreateOfferDetails. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this CreateOfferDetails. Offers Identifier :param display_name: The display_name of this CreateOfferDetails. :type: str """ self._display_name = display_name @property def seller_compartment_id(self): """ **[Required]** Gets the seller_compartment_id of this CreateOfferDetails. Compartment Identifier of the seller :return: The seller_compartment_id of this CreateOfferDetails. :rtype: str """ return self._seller_compartment_id @seller_compartment_id.setter def seller_compartment_id(self, seller_compartment_id): """ Sets the seller_compartment_id of this CreateOfferDetails. Compartment Identifier of the seller :param seller_compartment_id: The seller_compartment_id of this CreateOfferDetails. :type: str """ self._seller_compartment_id = seller_compartment_id @property def buyer_compartment_id(self): """ Gets the buyer_compartment_id of this CreateOfferDetails. Compartment Identifier of the buyer :return: The buyer_compartment_id of this CreateOfferDetails. :rtype: str """ return self._buyer_compartment_id @buyer_compartment_id.setter def buyer_compartment_id(self, buyer_compartment_id): """ Sets the buyer_compartment_id of this CreateOfferDetails. Compartment Identifier of the buyer :param buyer_compartment_id: The buyer_compartment_id of this CreateOfferDetails. :type: str """ self._buyer_compartment_id = buyer_compartment_id @property def description(self): """ Gets the description of this CreateOfferDetails. Description of the Offer :return: The description of this CreateOfferDetails. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this CreateOfferDetails. Description of the Offer :param description: The description of this CreateOfferDetails. :type: str """ self._description = description @property def internal_notes(self): """ Gets the internal_notes of this CreateOfferDetails. Internal notes of the Offer :return: The internal_notes of this CreateOfferDetails. :rtype: str """ return self._internal_notes @internal_notes.setter def internal_notes(self, internal_notes): """ Sets the internal_notes of this CreateOfferDetails. Internal notes of the Offer :param internal_notes: The internal_notes of this CreateOfferDetails. :type: str """ self._internal_notes = internal_notes @property def time_start_date(self): """ Gets the time_start_date of this CreateOfferDetails. The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string :return: The time_start_date of this CreateOfferDetails. :rtype: datetime """ return self._time_start_date @time_start_date.setter def time_start_date(self, time_start_date): """ Sets the time_start_date of this CreateOfferDetails. The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 formatted datetime string :param time_start_date: The time_start_date of this CreateOfferDetails. :type: datetime """ self._time_start_date = time_start_date @property def duration(self): """ Gets the duration of this CreateOfferDetails. Duration the Offer will be active after its start date. An ISO8601 extended formatted string. :return: The duration of this CreateOfferDetails. :rtype: str """ return self._duration @duration.setter def duration(self, duration): """ Sets the duration of this CreateOfferDetails. Duration the Offer will be active after its start date. An ISO8601 extended formatted string. :param duration: The duration of this CreateOfferDetails. :type: str """ self._duration = duration @property def time_accept_by(self): """ Gets the time_accept_by of this CreateOfferDetails. The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string :return: The time_accept_by of this CreateOfferDetails. :rtype: datetime """ return self._time_accept_by @time_accept_by.setter def time_accept_by(self, time_accept_by): """ Sets the time_accept_by of this CreateOfferDetails. The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 formatted datetime string :param time_accept_by: The time_accept_by of this CreateOfferDetails. :type: datetime """ self._time_accept_by = time_accept_by @property def pricing(self): """ Gets the pricing of this CreateOfferDetails. :return: The pricing of this CreateOfferDetails. :rtype: oci.marketplace_private_offer.models.Pricing """ return self._pricing @pricing.setter def pricing(self, pricing): """ Sets the pricing of this CreateOfferDetails. :param pricing: The pricing of this CreateOfferDetails. :type: oci.marketplace_private_offer.models.Pricing """ self._pricing = pricing @property def buyer_information(self): """ Gets the buyer_information of this CreateOfferDetails. :return: The buyer_information of this CreateOfferDetails. :rtype: oci.marketplace_private_offer.models.BuyerInformation """ return self._buyer_information @buyer_information.setter def buyer_information(self, buyer_information): """ Sets the buyer_information of this CreateOfferDetails. :param buyer_information: The buyer_information of this CreateOfferDetails. :type: oci.marketplace_private_offer.models.BuyerInformation """ self._buyer_information = buyer_information @property def seller_information(self): """ Gets the seller_information of this CreateOfferDetails. :return: The seller_information of this CreateOfferDetails. :rtype: oci.marketplace_private_offer.models.SellerInformation """ return self._seller_information @seller_information.setter def seller_information(self, seller_information): """ Sets the seller_information of this CreateOfferDetails. :param seller_information: The seller_information of this CreateOfferDetails. :type: oci.marketplace_private_offer.models.SellerInformation """ self._seller_information = seller_information @property def resource_bundles(self): """ Gets the resource_bundles of this CreateOfferDetails. A list of Resource Bundles associated with an Offer. :return: The resource_bundles of this CreateOfferDetails. :rtype: list[oci.marketplace_private_offer.models.ResourceBundle] """ return self._resource_bundles @resource_bundles.setter def resource_bundles(self, resource_bundles): """ Sets the resource_bundles of this CreateOfferDetails. A list of Resource Bundles associated with an Offer. :param resource_bundles: The resource_bundles of this CreateOfferDetails. :type: list[oci.marketplace_private_offer.models.ResourceBundle] """ self._resource_bundles = resource_bundles @property def custom_fields(self): """ Gets the custom_fields of this CreateOfferDetails. A list of key value pairs specified by the seller :return: The custom_fields of this CreateOfferDetails. :rtype: list[oci.marketplace_private_offer.models.CustomField] """ return self._custom_fields @custom_fields.setter def custom_fields(self, custom_fields): """ Sets the custom_fields of this CreateOfferDetails. A list of key value pairs specified by the seller :param custom_fields: The custom_fields of this CreateOfferDetails. :type: list[oci.marketplace_private_offer.models.CustomField] """ self._custom_fields = custom_fields @property def freeform_tags(self): """ Gets the freeform_tags of this CreateOfferDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :return: The freeform_tags of this CreateOfferDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this CreateOfferDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :param freeform_tags: The freeform_tags of this CreateOfferDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this CreateOfferDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :return: The defined_tags of this CreateOfferDetails. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this CreateOfferDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :param defined_tags: The defined_tags of this CreateOfferDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags 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