-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generated python SDK code update
Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D51766614 fbshipit-source-id: 0670148c97a5cfc12bbebe81e2bc32d44c79969e
- Loading branch information
1 parent
be38bc6
commit c7b025a
Showing
23 changed files
with
565 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetFeedAdditionalData( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdAssetFeedAdditionalData, self).__init__() | ||
self._isAdAssetFeedAdditionalData = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
automated_product_tags = 'automated_product_tags' | ||
brand_page_id = 'brand_page_id' | ||
is_click_to_message = 'is_click_to_message' | ||
multi_share_end_card = 'multi_share_end_card' | ||
page_welcome_message = 'page_welcome_message' | ||
|
||
_field_types = { | ||
'automated_product_tags': 'bool', | ||
'brand_page_id': 'string', | ||
'is_click_to_message': 'bool', | ||
'multi_share_end_card': 'bool', | ||
'page_welcome_message': 'string', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
facebook_business/adobjects/adassetfeedspeccalltoaction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetFeedSpecCallToAction( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdAssetFeedSpecCallToAction, self).__init__() | ||
self._isAdAssetFeedSpecCallToAction = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
adlabels = 'adlabels' | ||
type = 'type' | ||
value = 'value' | ||
|
||
_field_types = { | ||
'adlabels': 'list<AdAssetFeedSpecAssetLabel>', | ||
'type': 'string', | ||
'value': 'AdCreativeLinkDataCallToActionValue', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetFeedSpecCarousel( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdAssetFeedSpecCarousel, self).__init__() | ||
self._isAdAssetFeedSpecCarousel = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
adlabels = 'adlabels' | ||
child_attachments = 'child_attachments' | ||
multi_share_end_card = 'multi_share_end_card' | ||
multi_share_optimized = 'multi_share_optimized' | ||
|
||
_field_types = { | ||
'adlabels': 'list<AdAssetFeedSpecAssetLabel>', | ||
'child_attachments': 'list<AdAssetFeedSpecCarouselChildAttachment>', | ||
'multi_share_end_card': 'bool', | ||
'multi_share_optimized': 'bool', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
55 changes: 55 additions & 0 deletions
55
facebook_business/adobjects/adassetfeedspeccarouselchildattachment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetFeedSpecCarouselChildAttachment( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdAssetFeedSpecCarouselChildAttachment, self).__init__() | ||
self._isAdAssetFeedSpecCarouselChildAttachment = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
body_label = 'body_label' | ||
call_to_action_type_label = 'call_to_action_type_label' | ||
caption_label = 'caption_label' | ||
description_label = 'description_label' | ||
image_label = 'image_label' | ||
link_url_label = 'link_url_label' | ||
phone_data_ids_label = 'phone_data_ids_label' | ||
static_card = 'static_card' | ||
title_label = 'title_label' | ||
video_label = 'video_label' | ||
|
||
_field_types = { | ||
'body_label': 'AdAssetFeedSpecAssetLabel', | ||
'call_to_action_type_label': 'AdAssetFeedSpecAssetLabel', | ||
'caption_label': 'AdAssetFeedSpecAssetLabel', | ||
'description_label': 'AdAssetFeedSpecAssetLabel', | ||
'image_label': 'AdAssetFeedSpecAssetLabel', | ||
'link_url_label': 'AdAssetFeedSpecAssetLabel', | ||
'phone_data_ids_label': 'AdAssetFeedSpecAssetLabel', | ||
'static_card': 'bool', | ||
'title_label': 'AdAssetFeedSpecAssetLabel', | ||
'video_label': 'AdAssetFeedSpecAssetLabel', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
from facebook_business.adobjects.abstractcrudobject import AbstractCrudObject | ||
from facebook_business.adobjects.objectparser import ObjectParser | ||
from facebook_business.api import FacebookRequest | ||
from facebook_business.typechecker import TypeChecker | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetFeedSpecEvents( | ||
AbstractCrudObject, | ||
): | ||
|
||
def __init__(self, fbid=None, parent_id=None, api=None): | ||
self._isAdAssetFeedSpecEvents = True | ||
super(AdAssetFeedSpecEvents, self).__init__(fbid, parent_id, api) | ||
|
||
class Field(AbstractObject.Field): | ||
id = 'id' | ||
|
||
_field_types = { | ||
'id': 'string', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdAssetOnsiteDestinations( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdAssetOnsiteDestinations, self).__init__() | ||
self._isAdAssetOnsiteDestinations = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
auto_optimization = 'auto_optimization' | ||
details_page_product_id = 'details_page_product_id' | ||
shop_collection_product_set_id = 'shop_collection_product_set_id' | ||
storefront_shop_id = 'storefront_shop_id' | ||
|
||
_field_types = { | ||
'auto_optimization': 'string', | ||
'details_page_product_id': 'string', | ||
'shop_collection_product_set_id': 'string', | ||
'storefront_shop_id': 'string', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
facebook_business/adobjects/adcreativebrandedcontentadspartners.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
|
||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
from facebook_business.adobjects.abstractobject import AbstractObject | ||
|
||
""" | ||
This class is auto-generated. | ||
For any issues or feature requests related to this class, please let us know on | ||
github and we'll fix in our codegen framework. We'll not be able to accept | ||
pull request for this class. | ||
""" | ||
|
||
class AdCreativeBrandedContentAdsPartners( | ||
AbstractObject, | ||
): | ||
|
||
def __init__(self, api=None): | ||
super(AdCreativeBrandedContentAdsPartners, self).__init__() | ||
self._isAdCreativeBrandedContentAdsPartners = True | ||
self._api = api | ||
|
||
class Field(AbstractObject.Field): | ||
fb_page_id = 'fb_page_id' | ||
identity_type = 'identity_type' | ||
ig_asset_id = 'ig_asset_id' | ||
ig_user_id = 'ig_user_id' | ||
|
||
_field_types = { | ||
'fb_page_id': 'string', | ||
'identity_type': 'string', | ||
'ig_asset_id': 'string', | ||
'ig_user_id': 'string', | ||
} | ||
@classmethod | ||
def _get_field_enum_info(cls): | ||
field_enum_info = {} | ||
return field_enum_info | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.