@@ -3626,234 +3626,3 @@ def to_dict(self):
36263626
36273627AppResponseGetList .from_dict_handlers ["web" ] = WebAppFromAppResponseGetList ._from_dict
36283628
3629-
3630-
3631- class WebAppPOST (CreateAppRequest ):
3632-
3633- @staticmethod
3634- def _from_dict (model : dict ) -> "WebAppPOST" :
3635- instance = WebAppPOST .__new__ (WebAppPOST )
3636- instance ._attrs = model
3637- return instance
3638-
3639- def __init__ (self , name : "str" , app_principal_permissions : "List[str]" = None , description : "str" = None , login_url : "str" = None , logo_url : "str" = None , redirect_urls : "List[str]" = None , setup_url : "str" = None , title : "str" = None , user_permissions_filter : "List[str]" = None , webhook_url : "str" = None , ** extra ):
3640- """WebAppPOST"""
3641-
3642- self ._attrs = dict ()
3643- self ._attrs ["kind" ] = "web"
3644- if name is not None :
3645- self ._attrs ["name" ] = name
3646- if app_principal_permissions is not None :
3647- self ._attrs ["appPrincipalPermissions" ] = app_principal_permissions
3648- if description is not None :
3649- self ._attrs ["description" ] = description
3650- if login_url is not None :
3651- self ._attrs ["loginUrl" ] = login_url
3652- if logo_url is not None :
3653- self ._attrs ["logoUrl" ] = logo_url
3654- if redirect_urls is not None :
3655- self ._attrs ["redirectUrls" ] = redirect_urls
3656- if setup_url is not None :
3657- self ._attrs ["setupUrl" ] = setup_url
3658- if title is not None :
3659- self ._attrs ["title" ] = title
3660- if user_permissions_filter is not None :
3661- self ._attrs ["userPermissionsFilter" ] = user_permissions_filter
3662- if webhook_url is not None :
3663- self ._attrs ["webhookUrl" ] = webhook_url
3664- for k , v in extra .items ():
3665- self ._attrs [k ] = v
3666-
3667- @property
3668- def kind (self ) -> str :
3669- return "web"
3670-
3671-
3672- @property
3673- def name (self ) -> "str" :
3674- """ Gets the name of this WebAppPOST.
3675- App name that is unique within Splunk Cloud Platform.
3676- """
3677- return self ._attrs .get ("name" )
3678-
3679- @name .setter
3680- def name (self , name : "str" ):
3681- """Sets the name of this WebAppPOST.
3682-
3683- App name that is unique within Splunk Cloud Platform.
3684-
3685- :param name: The name of this WebAppPOST.
3686- :type: str
3687- """
3688- if name is None :
3689- raise ValueError ("Invalid value for `name`, must not be `None`" )
3690- self ._attrs ["name" ] = name
3691-
3692- @property
3693- def app_principal_permissions (self ) -> "List[str]" :
3694- """ Gets the app_principal_permissions of this WebAppPOST.
3695- Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
3696- """
3697- return self ._attrs .get ("appPrincipalPermissions" )
3698-
3699- @app_principal_permissions .setter
3700- def app_principal_permissions (self , app_principal_permissions : "List[str]" ):
3701- """Sets the app_principal_permissions of this WebAppPOST.
3702-
3703- Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
3704-
3705- :param app_principal_permissions: The app_principal_permissions of this WebAppPOST.
3706- :type: List[str]
3707- """
3708- self ._attrs ["appPrincipalPermissions" ] = app_principal_permissions
3709-
3710- @property
3711- def description (self ) -> "str" :
3712- """ Gets the description of this WebAppPOST.
3713- Short paragraph describing the app.
3714- """
3715- return self ._attrs .get ("description" )
3716-
3717- @description .setter
3718- def description (self , description : "str" ):
3719- """Sets the description of this WebAppPOST.
3720-
3721- Short paragraph describing the app.
3722-
3723- :param description: The description of this WebAppPOST.
3724- :type: str
3725- """
3726- self ._attrs ["description" ] = description
3727-
3728- @property
3729- def login_url (self ) -> "str" :
3730- """ Gets the login_url of this WebAppPOST.
3731- The URL used to log in to the app.
3732- """
3733- return self ._attrs .get ("loginUrl" )
3734-
3735- @login_url .setter
3736- def login_url (self , login_url : "str" ):
3737- """Sets the login_url of this WebAppPOST.
3738-
3739- The URL used to log in to the app.
3740-
3741- :param login_url: The login_url of this WebAppPOST.
3742- :type: str
3743- """
3744- self ._attrs ["loginUrl" ] = login_url
3745-
3746- @property
3747- def logo_url (self ) -> "str" :
3748- """ Gets the logo_url of this WebAppPOST.
3749- The URL used to display the app's logo.
3750- """
3751- return self ._attrs .get ("logoUrl" )
3752-
3753- @logo_url .setter
3754- def logo_url (self , logo_url : "str" ):
3755- """Sets the logo_url of this WebAppPOST.
3756-
3757- The URL used to display the app's logo.
3758-
3759- :param logo_url: The logo_url of this WebAppPOST.
3760- :type: str
3761- """
3762- self ._attrs ["logoUrl" ] = logo_url
3763-
3764- @property
3765- def redirect_urls (self ) -> "List[str]" :
3766- """ Gets the redirect_urls of this WebAppPOST.
3767- Array of URLs that can be used for redirect after logging into the app.
3768- """
3769- return self ._attrs .get ("redirectUrls" )
3770-
3771- @redirect_urls .setter
3772- def redirect_urls (self , redirect_urls : "List[str]" ):
3773- """Sets the redirect_urls of this WebAppPOST.
3774-
3775- Array of URLs that can be used for redirect after logging into the app.
3776-
3777- :param redirect_urls: The redirect_urls of this WebAppPOST.
3778- :type: List[str]
3779- """
3780- self ._attrs ["redirectUrls" ] = redirect_urls
3781-
3782- @property
3783- def setup_url (self ) -> "str" :
3784- """ Gets the setup_url of this WebAppPOST.
3785- URL to redirect to after a subscription is created.
3786- """
3787- return self ._attrs .get ("setupUrl" )
3788-
3789- @setup_url .setter
3790- def setup_url (self , setup_url : "str" ):
3791- """Sets the setup_url of this WebAppPOST.
3792-
3793- URL to redirect to after a subscription is created.
3794-
3795- :param setup_url: The setup_url of this WebAppPOST.
3796- :type: str
3797- """
3798- self ._attrs ["setupUrl" ] = setup_url
3799-
3800- @property
3801- def title (self ) -> "str" :
3802- """ Gets the title of this WebAppPOST.
3803- Human-readable title for the app.
3804- """
3805- return self ._attrs .get ("title" )
3806-
3807- @title .setter
3808- def title (self , title : "str" ):
3809- """Sets the title of this WebAppPOST.
3810-
3811- Human-readable title for the app.
3812-
3813- :param title: The title of this WebAppPOST.
3814- :type: str
3815- """
3816- self ._attrs ["title" ] = title
3817-
3818- @property
3819- def user_permissions_filter (self ) -> "List[str]" :
3820- """ Gets the user_permissions_filter of this WebAppPOST.
3821- Array of permission filter templates that are used to intersect with a user's permissions when using the app.
3822- """
3823- return self ._attrs .get ("userPermissionsFilter" )
3824-
3825- @user_permissions_filter .setter
3826- def user_permissions_filter (self , user_permissions_filter : "List[str]" ):
3827- """Sets the user_permissions_filter of this WebAppPOST.
3828-
3829- Array of permission filter templates that are used to intersect with a user's permissions when using the app.
3830-
3831- :param user_permissions_filter: The user_permissions_filter of this WebAppPOST.
3832- :type: List[str]
3833- """
3834- self ._attrs ["userPermissionsFilter" ] = user_permissions_filter
3835-
3836- @property
3837- def webhook_url (self ) -> "str" :
3838- """ Gets the webhook_url of this WebAppPOST.
3839- URL that webhook events are sent to.
3840- """
3841- return self ._attrs .get ("webhookUrl" )
3842-
3843- @webhook_url .setter
3844- def webhook_url (self , webhook_url : "str" ):
3845- """Sets the webhook_url of this WebAppPOST.
3846-
3847- URL that webhook events are sent to.
3848-
3849- :param webhook_url: The webhook_url of this WebAppPOST.
3850- :type: str
3851- """
3852- self ._attrs ["webhookUrl" ] = webhook_url
3853-
3854- def to_dict (self ):
3855- return {k : v for (k , v ) in self ._attrs .items () if v is not None }
3856-
3857-
3858- CreateAppRequest .from_dict_handlers ["web" ] = WebAppPOST ._from_dict
3859-
0 commit comments