Initial Commit
This commit is contained in:
79
inc/api/schemas/domain-create.php
Normal file
79
inc/api/schemas/domain-create.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* Schema for domain@create.
|
||||
*
|
||||
* @package WP_Ultimo\API\Schemas
|
||||
* @since 2.0.11
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Schema for domain@create.
|
||||
*
|
||||
* @since 2.0.11
|
||||
* @internal last-generated in 2022-12
|
||||
* @generated class generated by our build scripts, do not change!
|
||||
*
|
||||
* @since 2.0.11
|
||||
*/
|
||||
return array(
|
||||
'domain' => array(
|
||||
'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
),
|
||||
'blog_id' => array(
|
||||
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => true,
|
||||
),
|
||||
'active' => array(
|
||||
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
),
|
||||
'primary_domain' => array(
|
||||
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
),
|
||||
'secure' => array(
|
||||
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
),
|
||||
'stage' => array(
|
||||
'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => true,
|
||||
'enum' => array(
|
||||
'checking-dns',
|
||||
'checking-ssl-cert',
|
||||
'done-without-ssl',
|
||||
'done',
|
||||
'failed',
|
||||
),
|
||||
),
|
||||
'date_created' => array(
|
||||
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
),
|
||||
'date_modified' => array(
|
||||
'description' => __('Model last modification date.', 'wp-ultimo'),
|
||||
'type' => 'string',
|
||||
'required' => false,
|
||||
),
|
||||
'migrated_from_id' => array(
|
||||
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
||||
'type' => 'integer',
|
||||
'required' => false,
|
||||
),
|
||||
'skip_validation' => array(
|
||||
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
||||
'type' => 'boolean',
|
||||
'required' => false,
|
||||
),
|
||||
);
|
Reference in New Issue
Block a user