Skip to content

Commit a0ed6c3

Browse files
committed
first commit
0 parents  commit a0ed6c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4959
-0
lines changed

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
2+
#
3+
4+
*.gem
5+
*.rbc
6+
/.config
7+
/coverage/
8+
/InstalledFiles
9+
/pkg/
10+
/spec/reports/
11+
/spec/examples.txt
12+
/test/tmp/
13+
/test/version_tmp/
14+
/tmp/
15+
16+
## Specific to RubyMotion:
17+
.dat*
18+
.repl_history
19+
build/
20+
21+
## Documentation cache and generated files:
22+
/.yardoc/
23+
/_yardoc/
24+
/doc/
25+
/rdoc/
26+
27+
## Environment normalization:
28+
/.bundle/
29+
/vendor/bundle
30+
/lib/bundler/man/
31+
32+
# for a library or gem, you might want to ignore these files since the code is
33+
# intended to run in multiple environments; otherwise, check them in:
34+
# Gemfile.lock
35+
# .ruby-version
36+
# .ruby-gemset
37+
38+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39+
.rvmrc

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.0-SNAPSHOT

AsposeDiagramCloud.gemspec

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# -*- encoding: utf-8 -*-
2+
#
3+
=begin
4+
#Web API Swagger specification
5+
6+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7+
8+
OpenAPI spec version: 1.0
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
Swagger Codegen version: 2.3.0-SNAPSHOT
12+
13+
=end
14+
15+
$:.push File.expand_path("../lib", __FILE__)
16+
require "AsposeDiagramCloud/version"
17+
18+
Gem::Specification.new do |s|
19+
s.name = "AsposeDiagramCloud"
20+
s.version = AsposeDiagramCloud::VERSION
21+
s.platform = Gem::Platform::RUBY
22+
s.authors = ["Swagger-Codegen"]
23+
s.email = [""]
24+
s.homepage = "https://github.com/swagger-api/swagger-codegen"
25+
s.summary = "Web API Swagger specification Ruby Gem"
26+
s.description = "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"
27+
# TODO uncommnet and update below with a proper license
28+
#s.license = "Apache 2.0"
29+
s.required_ruby_version = ">= 1.9"
30+
31+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33+
34+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
41+
42+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43+
s.test_files = `find spec/*`.split("\n")
44+
s.executables = []
45+
s.require_paths = ["lib"]
46+
end

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
4+
5+
group :development, :test do
6+
gem 'rake', '~> 12.0.0'
7+
end

README.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# AsposeDiagramCloud
2+
3+
AsposeDiagramCloud - the Ruby gem for the Web API Swagger specification
4+
5+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6+
7+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8+
9+
- API version: 1.0
10+
- Package version: 18.10
11+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
12+
13+
## Installation
14+
15+
### Build a gem
16+
17+
To build the Ruby code into a gem:
18+
19+
```shell
20+
gem build AsposeDiagramCloud.gemspec
21+
```
22+
23+
Then either install the gem locally:
24+
25+
```shell
26+
gem install ./AsposeDiagramCloud-18.10.gem
27+
```
28+
(for development, run `gem install --dev ./AsposeDiagramCloud-18.10.gem` to install the development dependencies)
29+
30+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31+
32+
Finally add this to the Gemfile:
33+
34+
gem 'AsposeDiagramCloud', '~> 18.10'
35+
36+
### Install from Git
37+
38+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
39+
40+
gem 'AsposeDiagramCloud', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
41+
42+
### Include the Ruby code directly
43+
44+
Include the Ruby code directly using `-I` as follows:
45+
46+
```shell
47+
ruby -Ilib script.rb
48+
```
49+
50+
## Getting Started
51+
52+
Please follow the [installation](#installation) procedure and then run the following code:
53+
```ruby
54+
# Load the gem
55+
require 'AsposeDiagramCloud'
56+
57+
api_instance = AsposeDiagramCloud::DiagramFileApi.new
58+
59+
name = "name_example" # String | The document name.
60+
61+
opts = {
62+
format: "format_example", # String | The exported file format.
63+
folder: "folder_example", # String | The document folder.
64+
storage: "storage_example" # String | storage name.
65+
}
66+
67+
begin
68+
#Read document info or export.
69+
result = api_instance.diagram_file_get_diagram(name, opts)
70+
p result
71+
rescue AsposeDiagramCloud::ApiError => e
72+
puts "Exception when calling DiagramFileApi->diagram_file_get_diagram: #{e}"
73+
end
74+
75+
```
76+
77+
## Documentation for API Endpoints
78+
79+
All URIs are relative to *https://api.aspose.cloud/v1.1/*
80+
81+
Class | Method | HTTP request | Description
82+
------------ | ------------- | ------------- | -------------
83+
*AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_get_diagram**](docs/DiagramFileApi.md#diagram_file_get_diagram) | **GET** /diagram/{name} | Read document info or export.
84+
*AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_post_save_as**](docs/DiagramFileApi.md#diagram_file_post_save_as) | **POST** /diagram/{name}/SaveAs | Convert document and save result to storage.
85+
*AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_put_create**](docs/DiagramFileApi.md#diagram_file_put_create) | **PUT** /diagram/{name} | Create new diagram and save result to storage.
86+
*AsposeDiagramCloud::DiagramFileApi* | [**diagram_file_put_upload**](docs/DiagramFileApi.md#diagram_file_put_upload) | **PUT** /diagram/{name}/upload | Upload file and save result to storage.
87+
*AsposeDiagramCloud::OAuthApi* | [**o_auth_post**](docs/OAuthApi.md#o_auth_post) | **POST** /oauth2/token | Get Access token
88+
89+
90+
## Documentation for Models
91+
92+
- [AsposeDiagramCloud::AccessTokenResponse](docs/AccessTokenResponse.md)
93+
- [AsposeDiagramCloud::DiagramModel](docs/DiagramModel.md)
94+
- [AsposeDiagramCloud::FileFormatRequest](docs/FileFormatRequest.md)
95+
- [AsposeDiagramCloud::Link](docs/Link.md)
96+
- [AsposeDiagramCloud::PageModel](docs/PageModel.md)
97+
- [AsposeDiagramCloud::SaaSposeResponse](docs/SaaSposeResponse.md)
98+
- [AsposeDiagramCloud::SaveResult](docs/SaveResult.md)
99+
- [AsposeDiagramCloud::SharpModel](docs/SharpModel.md)
100+
- [AsposeDiagramCloud::DiagramResponse](docs/DiagramResponse.md)
101+
- [AsposeDiagramCloud::SaveResponse](docs/SaveResponse.md)
102+
103+
104+
## Documentation for Authorization
105+
106+
107+
### appsid
108+
109+
- **Type**: API key
110+
- **API key parameter name**: appsid
111+
- **Location**: URL query string
112+
113+
### oauth
114+
115+
- **Type**: OAuth
116+
- **Flow**: implicit
117+
- **Authorization URL**:
118+
- **Scopes**:
119+
- write:pets: modify pets in your account
120+
121+
### signature
122+
123+
- **Type**: API key
124+
- **API key parameter name**: signature
125+
- **Location**: URL query string
126+

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
begin
2+
require 'rspec/core/rake_task'
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
task default: :spec
6+
rescue LoadError
7+
# no rspec available
8+
end

docs/AccessTokenResponse.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AsposeDiagramCloud::AccessTokenResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**_expires** | **String** | | [optional]
7+
**access_token** | **String** | | [optional]
8+
**_issued** | **String** | | [optional]
9+
**client_refresh_token_life_time_in_minutes** | **String** | | [optional]
10+
**expires_in** | **Integer** | | [optional]
11+
**token_type** | **String** | | [optional]
12+
**client_id** | **String** | | [optional]
13+
**refresh_token** | **String** | | [optional]
14+
15+

0 commit comments

Comments
 (0)