# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


import unittest

from pinterestsdk.models.bulk_upsert_request import BulkUpsertRequest

class TestBulkUpsertRequest(unittest.TestCase):
    """BulkUpsertRequest unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional) -> BulkUpsertRequest:
        """Test BulkUpsertRequest
            include_optional is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # uncomment below to create an instance of `BulkUpsertRequest`
        """
        model = BulkUpsertRequest()
        if include_optional:
            return BulkUpsertRequest(
                create = pinterestsdk.models.bulk_upsert_request_create.BulkUpsertRequestCreate(
                    ad_groups = [
                        pinterestsdk.models.ad_group_create_request.AdGroupCreateRequest()
                        ], 
                    ads = [
                        pinterestsdk.models.ad_create_request.AdCreateRequest()
                        ], 
                    campaigns = [
                        pinterestsdk.models.campaign_create_request.CampaignCreateRequest()
                        ], 
                    catalog_product_groups = [
                        null
                        ], 
                    keywords = [
                        pinterestsdk.models.keywords_request.KeywordsRequest(
                            keywords = [
                                pinterestsdk.models.keywords_common.KeywordsCommon(
                                    bid = 56, 
                                    match_type = 'BROAD', 
                                    value = '', )
                                ], 
                            parent_id = '383791336903426391', )
                        ], 
                    labels = [
                        pinterestsdk.models.label_create_request.LabelCreateRequest(
                            labels = [
                                pinterestsdk.models.label_create_request_labels_inner.LabelCreateRequest_labels_inner(
                                    label_type = 'BRAND', 
                                    value = '', )
                                ], 
                            parent_id = '626753052072', )
                        ], 
                    product_groups = [
                        {"product_group_promotion":[{"slideshow_collections_description":"Description","creative_type":"REGULAR","collections_hero_pin_id":"123123","catalog_product_group_name":"catalogProductGroupName","collections_hero_destination_url":"http://www.pinterest.com","tracking_url":"https://www.pinterest.com","slideshow_collections_title":"Title","is_mdl":true,"status":"ACTIVE"},{"slideshow_collections_description":"Description","creative_type":"REGULAR","collections_hero_pin_id":"123123","catalog_product_group_name":"catalogProductGroupName","collections_hero_destination_url":"http://www.pinterest.com","tracking_url":"https://www.pinterest.com","slideshow_collections_title":"Title","is_mdl":true,"status":"ACTIVE"}],"ad_group_id":"2680059592705"}
                        ], ),
                update = pinterestsdk.models.bulk_upsert_request_update.BulkUpsertRequestUpdate(
                    ad_groups = [
                        pinterestsdk.models.ad_group_update_request.AdGroupUpdateRequest()
                        ], 
                    ads = [
                        pinterestsdk.models.ad_update_request.AdUpdateRequest()
                        ], 
                    campaigns = [
                        pinterestsdk.models.campaign_update_request.CampaignUpdateRequest()
                        ], 
                    catalog_product_groups = [
                        null
                        ], 
                    keywords = [
                        pinterestsdk.models.keyword_update.KeywordUpdate(
                            archived = False, 
                            bid = 56, 
                            id = '2886364308355', )
                        ], 
                    labels = [
                        pinterestsdk.models.label_bulk_update_request.LabelBulkUpdateRequest(
                            id = '1106385754497', 
                            status = 'ARCHIVED', 
                            value = '', )
                        ], 
                    product_groups = [
                        {"product_group_promotion":[{"catalog_product_group_id":"1234123","slideshow_collections_description":"Description","creative_type":"REGULAR","collections_hero_pin_id":"123123","catalog_product_group_name":"ProductGroupName","collections_hero_destination_url":"http://www.pinterest.com","tracking_url":"https://www.pinterest.com","slideshow_collections_title":"Title","status":"ACTIVE","id":"2680059592705"},{"catalog_product_group_id":"1231231","slideshow_collections_description":"Other description","creative_type":"REGULAR","collections_hero_pin_id":"123124","catalog_product_group_name":"ProductGroupName","collections_hero_destination_url":"http://www.pinterest.com","tracking_url":"https://www.pinterest.com","slideshow_collections_title":"Title","status":"ACTIVE","id":"2680059592706"}],"ad_group_id":"26823439592705"}
                        ], )
            )
        else:
            return BulkUpsertRequest(
        )
        """

    def testBulkUpsertRequest(self):
        """Test BulkUpsertRequest"""
        # inst_req_only = self.make_instance(include_optional=False)
        # inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
    unittest.main()
