# coding: utf-8

"""
    Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference

    <div lang=\"ja\">Yahoo!広告 検索広告 APIのWebサービスについて説明します。</div> <div lang=\"en\">Search Ads API Web Services supported in Yahoo! JAPAN Ads API.</div> <div><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/design/v6/Route.yaml\">OpenAPI Specification</a></div> <div lang=\"ja\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/ja\">Best Practice</a></div> <div lang=\"en\"><a target=\"_blank\" href=\"https://github.com/yahoojp-marketing/ads-search-api-documents/blob/master/bestpractice/en\">Best Practice</a></div>   # noqa: E501

    The version of the OpenAPI document: v6
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import yahoo_search_api
from yahoo_search_api.models.feed_item_service_operation import FeedItemServiceOperation  # noqa: E501
from yahoo_search_api.rest import ApiException

class TestFeedItemServiceOperation(unittest.TestCase):
    """FeedItemServiceOperation unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test FeedItemServiceOperation
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = yahoo_search_api.models.feed_item_service_operation.FeedItemServiceOperation()  # noqa: E501
        if include_optional :
            return FeedItemServiceOperation(
                account_id = 56, 
                operand = [
                    yahoo_search_api.models.feed_item.FeedItem(
                        account_id = 56, 
                        approval_status = 'APPROVED', 
                        custom_parameters = yahoo_search_api.models.feed_item_service_custom_parameters.FeedItemServiceCustomParameters(
                            is_remove = 'TRUE', 
                            parameters = [
                                yahoo_search_api.models.feed_item_service_custom_parameter.FeedItemServiceCustomParameter(
                                    key = '0', 
                                    value = '0', )
                                ], ), 
                        device_preference = 'SMART_PHONE', 
                        disapproval_reason_codes = [
                            '0'
                            ], 
                        end_date = '0', 
                        feed_id = 56, 
                        feed_item_attribute = [
                            yahoo_search_api.models.feed_item_service_attribute.FeedItemServiceAttribute(
                                feed_attribute_id = 56, 
                                multiple_feed_item_attribute = yahoo_search_api.models.feed_item_service_multiple_feed_item_attribute.FeedItemServiceMultipleFeedItemAttribute(
                                    feed_attribute_values = [
                                        yahoo_search_api.models.feed_item_service_feed_attribute_value.FeedItemServiceFeedAttributeValue(
                                            feed_attribute_value = '0', 
                                            review_feed_attribute_value = '0', )
                                        ], ), 
                                placeholder_field = 'LINK_TEXT', 
                                simple_feed_item_attribute = yahoo_search_api.models.feed_item_service_simple_feed_item_attribute.FeedItemServiceSimpleFeedItemAttribute(
                                    feed_attribute_value = '0', 
                                    review_feed_attribute_value = '0', ), )
                            ], 
                        feed_item_id = 56, 
                        feed_item_track_id = 56, 
                        invalided_trademarks = [
                            '0'
                            ], 
                        location = yahoo_search_api.models.feed_item_service_location.FeedItemServiceLocation(
                            criterion_type_feed_item = 'LOCATION', 
                            geo_restriction = 'NONE', 
                            target_id = '0', ), 
                        placeholder_type = 'QUICKLINK', 
                        review_custom_parameters = yahoo_search_api.models.feed_item_service_custom_parameters.FeedItemServiceCustomParameters(), 
                        scheduling = yahoo_search_api.models.feed_item_service_scheduling.FeedItemServiceScheduling(
                            schedules = [
                                yahoo_search_api.models.feed_item_service_schedule.FeedItemServiceSchedule(
                                    day_of_week = 'MONDAY', 
                                    end_hour = 56, 
                                    end_minute = 'ZERO', 
                                    start_hour = 56, 
                                    start_minute = 'ZERO', )
                                ], ), 
                        start_date = '0', 
                        targeting_ad_group = yahoo_search_api.models.feed_item_service_targeting_ad_group.FeedItemServiceTargetingAdGroup(
                            targeting_ad_group_id = 56, ), 
                        targeting_campaign = yahoo_search_api.models.feed_item_service_targeting_campaign.FeedItemServiceTargetingCampaign(
                            targeting_campaign_id = 56, ), 
                        targeting_keyword = yahoo_search_api.models.feed_item_service_targeting_keyword.FeedItemServiceTargetingKeyword(
                            keyword_match_type = 'EXACT', 
                            targeting_keyword_id = 56, 
                            text = '0', ), 
                        trademark_status = 'NO_RESTRICTION', )
                    ], 
                placeholder_type = 'QUICKLINK'
            )
        else :
            return FeedItemServiceOperation(
                account_id = 56,
                operand = [
                    yahoo_search_api.models.feed_item.FeedItem(
                        account_id = 56, 
                        approval_status = 'APPROVED', 
                        custom_parameters = yahoo_search_api.models.feed_item_service_custom_parameters.FeedItemServiceCustomParameters(
                            is_remove = 'TRUE', 
                            parameters = [
                                yahoo_search_api.models.feed_item_service_custom_parameter.FeedItemServiceCustomParameter(
                                    key = '0', 
                                    value = '0', )
                                ], ), 
                        device_preference = 'SMART_PHONE', 
                        disapproval_reason_codes = [
                            '0'
                            ], 
                        end_date = '0', 
                        feed_id = 56, 
                        feed_item_attribute = [
                            yahoo_search_api.models.feed_item_service_attribute.FeedItemServiceAttribute(
                                feed_attribute_id = 56, 
                                multiple_feed_item_attribute = yahoo_search_api.models.feed_item_service_multiple_feed_item_attribute.FeedItemServiceMultipleFeedItemAttribute(
                                    feed_attribute_values = [
                                        yahoo_search_api.models.feed_item_service_feed_attribute_value.FeedItemServiceFeedAttributeValue(
                                            feed_attribute_value = '0', 
                                            review_feed_attribute_value = '0', )
                                        ], ), 
                                placeholder_field = 'LINK_TEXT', 
                                simple_feed_item_attribute = yahoo_search_api.models.feed_item_service_simple_feed_item_attribute.FeedItemServiceSimpleFeedItemAttribute(
                                    feed_attribute_value = '0', 
                                    review_feed_attribute_value = '0', ), )
                            ], 
                        feed_item_id = 56, 
                        feed_item_track_id = 56, 
                        invalided_trademarks = [
                            '0'
                            ], 
                        location = yahoo_search_api.models.feed_item_service_location.FeedItemServiceLocation(
                            criterion_type_feed_item = 'LOCATION', 
                            geo_restriction = 'NONE', 
                            target_id = '0', ), 
                        placeholder_type = 'QUICKLINK', 
                        review_custom_parameters = yahoo_search_api.models.feed_item_service_custom_parameters.FeedItemServiceCustomParameters(), 
                        scheduling = yahoo_search_api.models.feed_item_service_scheduling.FeedItemServiceScheduling(
                            schedules = [
                                yahoo_search_api.models.feed_item_service_schedule.FeedItemServiceSchedule(
                                    day_of_week = 'MONDAY', 
                                    end_hour = 56, 
                                    end_minute = 'ZERO', 
                                    start_hour = 56, 
                                    start_minute = 'ZERO', )
                                ], ), 
                        start_date = '0', 
                        targeting_ad_group = yahoo_search_api.models.feed_item_service_targeting_ad_group.FeedItemServiceTargetingAdGroup(
                            targeting_ad_group_id = 56, ), 
                        targeting_campaign = yahoo_search_api.models.feed_item_service_targeting_campaign.FeedItemServiceTargetingCampaign(
                            targeting_campaign_id = 56, ), 
                        targeting_keyword = yahoo_search_api.models.feed_item_service_targeting_keyword.FeedItemServiceTargetingKeyword(
                            keyword_match_type = 'EXACT', 
                            targeting_keyword_id = 56, 
                            text = '0', ), 
                        trademark_status = 'NO_RESTRICTION', )
                    ],
                placeholder_type = 'QUICKLINK',
        )

    def testFeedItemServiceOperation(self):
        """Test FeedItemServiceOperation"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)


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