Skip to content

Commit

Permalink
1.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Feb 23, 2020
1 parent d98c367 commit ff3e80a
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types.
[Cloudmersive Document and Data Conversion API](https://www.cloudmersive.com/convert-api) provides advanced document conversion, editing and generation capabilities.

- API version: v1
- Package version: 1.8.3
- Package version: 1.8.4


## Requirements
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_document_convert_api_client",
"version": "1.8.3",
"version": "1.8.4",
"description": "",
"keywords": [
"swagger",
Expand Down
1 change: 1 addition & 0 deletions docs/Model/UrlToPdfRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**url** | **string** | URL address of the website to screenshot. HTTP and HTTPS are both supported, as are custom ports. | [optional]
**extra_loading_wait** | **int** | Optional: Additional number of milliseconds to wait once the web page has finished loading before taking the screenshot. Can be helpful for highly asynchronous websites. Provide a value of 0 for the default of 5000 milliseconds (5 seconds) | [optional]
**include_background_graphics** | **bool** | Optional: Set to true to include background graphics in the PDF, or false to not include. Default is true. | [optional]
**scale_factor** | **int** | Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100% | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Swagger-Codegen/1.8.3/php';
protected $userAgent = 'Swagger-Codegen/1.8.4/php';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -397,7 +397,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: v1' . PHP_EOL;
$report .= ' SDK Package Version: 1.8.3' . PHP_EOL;
$report .= ' SDK Package Version: 1.8.4' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
40 changes: 35 additions & 5 deletions lib/Model/UrlToPdfRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class UrlToPdfRequest implements ModelInterface, ArrayAccess
protected static $swaggerTypes = [
'url' => 'string',
'extra_loading_wait' => 'int',
'include_background_graphics' => 'bool'
'include_background_graphics' => 'bool',
'scale_factor' => 'int'
];

/**
Expand All @@ -71,7 +72,8 @@ class UrlToPdfRequest implements ModelInterface, ArrayAccess
protected static $swaggerFormats = [
'url' => null,
'extra_loading_wait' => 'int32',
'include_background_graphics' => null
'include_background_graphics' => null,
'scale_factor' => 'int32'
];

/**
Expand Down Expand Up @@ -103,7 +105,8 @@ public static function swaggerFormats()
protected static $attributeMap = [
'url' => 'Url',
'extra_loading_wait' => 'ExtraLoadingWait',
'include_background_graphics' => 'IncludeBackgroundGraphics'
'include_background_graphics' => 'IncludeBackgroundGraphics',
'scale_factor' => 'ScaleFactor'
];

/**
Expand All @@ -114,7 +117,8 @@ public static function swaggerFormats()
protected static $setters = [
'url' => 'setUrl',
'extra_loading_wait' => 'setExtraLoadingWait',
'include_background_graphics' => 'setIncludeBackgroundGraphics'
'include_background_graphics' => 'setIncludeBackgroundGraphics',
'scale_factor' => 'setScaleFactor'
];

/**
Expand All @@ -125,7 +129,8 @@ public static function swaggerFormats()
protected static $getters = [
'url' => 'getUrl',
'extra_loading_wait' => 'getExtraLoadingWait',
'include_background_graphics' => 'getIncludeBackgroundGraphics'
'include_background_graphics' => 'getIncludeBackgroundGraphics',
'scale_factor' => 'getScaleFactor'
];

/**
Expand Down Expand Up @@ -191,6 +196,7 @@ public function __construct(array $data = null)
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
$this->container['extra_loading_wait'] = isset($data['extra_loading_wait']) ? $data['extra_loading_wait'] : null;
$this->container['include_background_graphics'] = isset($data['include_background_graphics']) ? $data['include_background_graphics'] : null;
$this->container['scale_factor'] = isset($data['scale_factor']) ? $data['scale_factor'] : null;
}

/**
Expand Down Expand Up @@ -289,6 +295,30 @@ public function setIncludeBackgroundGraphics($include_background_graphics)

return $this;
}

/**
* Gets scale_factor
*
* @return int
*/
public function getScaleFactor()
{
return $this->container['scale_factor'];
}

/**
* Sets scale_factor
*
* @param int $scale_factor Optional: Set to 100 to scale at 100%, set to 50% to scale down to 50% scale, set to 200% to scale up to 200% scale, etc. Default is 100%
*
* @return $this
*/
public function setScaleFactor($scale_factor)
{
$this->container['scale_factor'] = $scale_factor;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
2 changes: 1 addition & 1 deletion packageconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"artifactVersion": "1.8.3",
"artifactVersion": "1.8.4",
"gitUserId": "Cloudmersive",
"gitRepoId": "Cloudmersive.APIClient.PHP.DocumentAndDataConvert",
"composerVendorName": "cloudmersive",
Expand Down
7 changes: 7 additions & 0 deletions test/Model/UrlToPdfRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,11 @@ public function testPropertyExtraLoadingWait()
public function testPropertyIncludeBackgroundGraphics()
{
}

/**
* Test attribute "scale_factor"
*/
public function testPropertyScaleFactor()
{
}
}

0 comments on commit ff3e80a

Please sign in to comment.