rokka_client_codegen 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE +21 -0
- data/README.md +123 -0
- data/Rakefile +8 -0
- data/config.json +5 -0
- data/docs/AdminApi.md +398 -0
- data/docs/ListSourceImagesResponse.md +11 -0
- data/docs/ListStacksResponse.md +8 -0
- data/docs/Membership.md +11 -0
- data/docs/Organization.md +14 -0
- data/docs/OrganizationDefinition.md +10 -0
- data/docs/OrganizationOptions.md +10 -0
- data/docs/Role.md +8 -0
- data/docs/SourceImage.md +24 -0
- data/docs/SourceimagesApi.md +1032 -0
- data/docs/Stack.md +14 -0
- data/docs/StackDefinition.md +10 -0
- data/docs/StackExpression.md +9 -0
- data/docs/StackExpressionOverrides.md +8 -0
- data/docs/StackOperation.md +9 -0
- data/docs/StackOperationDescription.md +11 -0
- data/docs/StackOptions.md +8 -0
- data/docs/StacksApi.md +329 -0
- data/docs/User.md +11 -0
- data/docs/UserDefinition.md +9 -0
- data/examples/createstack.rb +33 -0
- data/examples/liststacks.rb +19 -0
- data/examples/setsubjectarea.rb +37 -0
- data/examples/uploadimage.rb +28 -0
- data/generate.sh +3 -0
- data/git_push.sh +55 -0
- data/lib/rokka_client_codegen.rb +59 -0
- data/lib/rokka_client_codegen/api/admin_api.rb +439 -0
- data/lib/rokka_client_codegen/api/sourceimages_api.rb +1225 -0
- data/lib/rokka_client_codegen/api/stacks_api.rb +371 -0
- data/lib/rokka_client_codegen/api_client.rb +389 -0
- data/lib/rokka_client_codegen/api_error.rb +38 -0
- data/lib/rokka_client_codegen/configuration.rb +209 -0
- data/lib/rokka_client_codegen/models/list_source_images_response.rb +217 -0
- data/lib/rokka_client_codegen/models/list_stacks_response.rb +190 -0
- data/lib/rokka_client_codegen/models/membership.rb +215 -0
- data/lib/rokka_client_codegen/models/organization.rb +264 -0
- data/lib/rokka_client_codegen/models/organization_definition.rb +211 -0
- data/lib/rokka_client_codegen/models/organization_options.rb +208 -0
- data/lib/rokka_client_codegen/models/role.rb +194 -0
- data/lib/rokka_client_codegen/models/source_image.rb +333 -0
- data/lib/rokka_client_codegen/models/stack.rb +246 -0
- data/lib/rokka_client_codegen/models/stack_definition.rb +217 -0
- data/lib/rokka_client_codegen/models/stack_expression.rb +207 -0
- data/lib/rokka_client_codegen/models/stack_expression_overrides.rb +188 -0
- data/lib/rokka_client_codegen/models/stack_operation.rb +203 -0
- data/lib/rokka_client_codegen/models/stack_operation_description.rb +231 -0
- data/lib/rokka_client_codegen/models/stack_options.rb +193 -0
- data/lib/rokka_client_codegen/models/user.rb +216 -0
- data/lib/rokka_client_codegen/models/user_definition.rb +204 -0
- data/lib/rokka_client_codegen/version.rb +15 -0
- data/patches/README.patch +59 -0
- data/patches/sourceimage_hash_long_hash.patch +62 -0
- data/rokka_client_codegen.gemspec +45 -0
- data/spec/api/admin_api_spec.rb +125 -0
- data/spec/api/sourceimages_api_spec.rb +274 -0
- data/spec/api/stacks_api_spec.rb +110 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/list_source_images_response_spec.rb +60 -0
- data/spec/models/list_stacks_response_spec.rb +42 -0
- data/spec/models/membership_spec.rb +60 -0
- data/spec/models/organization_definition_spec.rb +54 -0
- data/spec/models/organization_options_spec.rb +54 -0
- data/spec/models/organization_spec.rb +78 -0
- data/spec/models/role_spec.rb +42 -0
- data/spec/models/source_image_spec.rb +138 -0
- data/spec/models/stack_definition_spec.rb +54 -0
- data/spec/models/stack_expression_overrides_spec.rb +42 -0
- data/spec/models/stack_expression_spec.rb +48 -0
- data/spec/models/stack_operation_description_spec.rb +60 -0
- data/spec/models/stack_operation_spec.rb +48 -0
- data/spec/models/stack_options_spec.rb +42 -0
- data/spec/models/stack_spec.rb +78 -0
- data/spec/models/user_definition_spec.rb +48 -0
- data/spec/models/user_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- metadata +330 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
diff --git a/docs/SourceImage.md b/docs/SourceImage.md
|
2
|
+
index e65930c..d3abdf0 100644
|
3
|
+
--- a/docs/SourceImage.md
|
4
|
+
+++ b/docs/SourceImage.md
|
5
|
+
@@ -3,7 +3,7 @@
|
6
|
+
## Properties
|
7
|
+
Name | Type | Description | Notes
|
8
|
+
------------ | ------------- | ------------- | -------------
|
9
|
+
-**hash** | **String** | | [optional]
|
10
|
+
+**long_hash** | **String** | | [optional]
|
11
|
+
**short_hash** | **String** | | [optional]
|
12
|
+
**binary_hash** | **String** | | [optional]
|
13
|
+
**created** | **DateTime** | | [optional]
|
14
|
+
diff --git a/lib/rokka_client_codegen/models/source_image.rb b/lib/rokka_client_codegen/models/source_image.rb
|
15
|
+
index a1458c4..31ed9a9 100644
|
16
|
+
--- a/lib/rokka_client_codegen/models/source_image.rb
|
17
|
+
+++ b/lib/rokka_client_codegen/models/source_image.rb
|
18
|
+
@@ -15,7 +15,7 @@ require 'date'
|
19
|
+
module RokkaClientCodegen
|
20
|
+
|
21
|
+
class SourceImage
|
22
|
+
- attr_accessor :hash
|
23
|
+
+ attr_accessor :long_hash
|
24
|
+
|
25
|
+
attr_accessor :short_hash
|
26
|
+
|
27
|
+
@@ -54,7 +54,7 @@ module RokkaClientCodegen
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
- :'hash' => :'hash',
|
32
|
+
+ :'long_hash' => :'hash',
|
33
|
+
:'short_hash' => :'short_hash',
|
34
|
+
:'binary_hash' => :'binary_hash',
|
35
|
+
:'created' => :'created',
|
36
|
+
@@ -77,7 +77,7 @@ module RokkaClientCodegen
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
- :'hash' => :'String',
|
41
|
+
+ :'long_hash' => :'String',
|
42
|
+
:'short_hash' => :'String',
|
43
|
+
:'binary_hash' => :'String',
|
44
|
+
:'created' => :'DateTime',
|
45
|
+
@@ -106,7 +106,7 @@ module RokkaClientCodegen
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
|
48
|
+
if attributes.has_key?(:'hash')
|
49
|
+
- self.hash = attributes[:'hash']
|
50
|
+
+ self.long_hash = attributes[:'hash']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'short_hash')
|
54
|
+
@@ -221,7 +221,7 @@ module RokkaClientCodegen
|
55
|
+
# Calculates hash code according to all attributes.
|
56
|
+
# @return [Fixnum] Hash code
|
57
|
+
def hash
|
58
|
+
- [hash, short_hash, binary_hash, created, name, mimetype, format, size, width, height, organization, link, dynamic_metadata, static_metadata, user_metadata, deleted, deleted_date].hash
|
59
|
+
+ [long_hash, short_hash, binary_hash, created, name, mimetype, format, size, width, height, organization, link, dynamic_metadata, static_metadata, user_metadata, deleted, deleted_date].hash
|
60
|
+
end
|
61
|
+
|
62
|
+
# Builds the object from hash
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
#
|
3
|
+
=begin
|
4
|
+
#rokka.io
|
5
|
+
|
6
|
+
#digital image processing done right. [Documentation](https://rokka.io/documentation). [Changelog](https://api.rokka.io/changelog.md).
|
7
|
+
|
8
|
+
OpenAPI spec version: 1.0.0
|
9
|
+
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "rokka_client_codegen/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "rokka_client_codegen"
|
20
|
+
s.version = RokkaClientCodegen::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["rokka"]
|
23
|
+
s.email = ["rokka@rokka.io"]
|
24
|
+
s.homepage = "https://github.com/rokka-io/rokka_ruby_codegen"
|
25
|
+
s.summary = "rokka.io Ruby Gem"
|
26
|
+
s.description = "digital image processing done right. [Documentation](https://rokka.io/documentation). [Changelog](https://api.rokka.io/changelog.md)."
|
27
|
+
s.license = "MIT"
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
=begin
|
2
|
+
#rokka.io
|
3
|
+
|
4
|
+
#digital image processing done right. [Documentation](https://rokka.io/documentation). [Changelog](https://api.rokka.io/changelog.md).
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for RokkaClientCodegen::AdminApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AdminApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = RokkaClientCodegen::AdminApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AdminApi' do
|
30
|
+
it 'should create an instance of AdminApi' do
|
31
|
+
expect(@instance).to be_instance_of(RokkaClientCodegen::AdminApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_membership
|
36
|
+
# Add a rokka user into an organization.
|
37
|
+
#
|
38
|
+
# @param role Role specification
|
39
|
+
# @param organization
|
40
|
+
# @param email
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @return [Membership]
|
43
|
+
describe 'create_membership test' do
|
44
|
+
it "should work" do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for create_organization
|
50
|
+
# Register a new Organization.
|
51
|
+
#
|
52
|
+
# @param organization Name of the organization to create (must be a web safe string)
|
53
|
+
# @param organization_definition Organization information
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [Organization]
|
56
|
+
describe 'create_organization test' do
|
57
|
+
it "should work" do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for create_organization_options
|
63
|
+
# Update options for an organization.
|
64
|
+
# This is currently used for the remote_* options. See https://rokka.io/documentation/references/stacks.html#loading-images-from-a-remote-url for details.
|
65
|
+
# @param organization Organization name
|
66
|
+
# @param organization_options Organization options
|
67
|
+
# @param [Hash] opts the optional parameters
|
68
|
+
# @return [Organization]
|
69
|
+
describe 'create_organization_options test' do
|
70
|
+
it "should work" do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for create_user
|
76
|
+
# Register new user.
|
77
|
+
#
|
78
|
+
# @param user_definition User information
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [User]
|
81
|
+
describe 'create_user test' do
|
82
|
+
it "should work" do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for delete_membership
|
88
|
+
# Remove a user from an organization.
|
89
|
+
#
|
90
|
+
# @param organization
|
91
|
+
# @param email
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [nil]
|
94
|
+
describe 'delete_membership test' do
|
95
|
+
it "should work" do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# unit tests for get_membership
|
101
|
+
# Get information about organization membership of a rokka user.
|
102
|
+
#
|
103
|
+
# @param organization
|
104
|
+
# @param email
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Membership]
|
107
|
+
describe 'get_membership test' do
|
108
|
+
it "should work" do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# unit tests for get_organization
|
114
|
+
# Get information about an organization.
|
115
|
+
#
|
116
|
+
# @param organization Organization name
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @return [Organization]
|
119
|
+
describe 'get_organization test' do
|
120
|
+
it "should work" do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
=begin
|
2
|
+
#rokka.io
|
3
|
+
|
4
|
+
#digital image processing done right. [Documentation](https://rokka.io/documentation). [Changelog](https://api.rokka.io/changelog.md).
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for RokkaClientCodegen::SourceimagesApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SourceimagesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = RokkaClientCodegen::SourceimagesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SourceimagesApi' do
|
30
|
+
it 'should create an instance of SourceimagesApi' do
|
31
|
+
expect(@instance).to be_instance_of(RokkaClientCodegen::SourceimagesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for copy_source_image
|
36
|
+
# Copy a single source image to another org.
|
37
|
+
# The metadata is copied as well. After copying, changes to either image metadata are not reflected in the other image metadata. This is a proxy method for COPY on /sourceimages/{organization}/{hash}. It allows to copy images with a POST request, to work around restrictive firewalls and allows to produce a swagger specification for this operation.
|
38
|
+
# @param destination The destination organization
|
39
|
+
# @param organization
|
40
|
+
# @param hash
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [String] :overwrite If set to 'F', existing images won't be overwritten.
|
43
|
+
# @return [nil]
|
44
|
+
describe 'copy_source_image test' do
|
45
|
+
it "should work" do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for create_source_image
|
51
|
+
# Upload new source images.
|
52
|
+
# The request is form data for the uploaded files and arrays of metadata. Files and metadata are matched based on their order in the request. Note that this call allows to upload multiple images, but the swagger UI does not support this.
|
53
|
+
# @param filedata The binary images
|
54
|
+
# @param organization
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @option opts [String] :meta_dynamic JSON metadata about the image, e.g. subject area. See https://rokka.io/documentation/references/dynamic-metadata.html
|
57
|
+
# @option opts [String] :meta_user User specific JSON metadata that can be used when searching source images. See https://rokka.io/documentation/references/user-metadata.html
|
58
|
+
# @return [ListSourceImagesResponse]
|
59
|
+
describe 'create_source_image test' do
|
60
|
+
it "should work" do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for create_source_image_meta_dynamic_with_name
|
66
|
+
# Adds or updates a specific dynamic meta data for an image.
|
67
|
+
# This changes the hash of the image. The response provides the new location of the image in the Location header.
|
68
|
+
# @param meta_dynamic_definition Dynamic Meta Data definition
|
69
|
+
# @param organization
|
70
|
+
# @param hash
|
71
|
+
# @param meta_name
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @option opts [BOOLEAN] :delete_previous If the image with the original hash should be deleted
|
74
|
+
# @return [SourceImage]
|
75
|
+
describe 'create_source_image_meta_dynamic_with_name test' do
|
76
|
+
it "should work" do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# unit tests for create_source_image_meta_user
|
82
|
+
# Replace the image meta data with new information.
|
83
|
+
# All existing meta data for the image is removed and then the new meta data is added. User metadata is used for searching images that have been stored in rokka. It will never lead to differences in the output image and thus changing it never leads to a new hash.
|
84
|
+
# @param user_meta_data User Meta Data as a json hashmap
|
85
|
+
# @param organization
|
86
|
+
# @param hash
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [nil]
|
89
|
+
describe 'create_source_image_meta_user test' do
|
90
|
+
it "should work" do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for create_source_image_meta_user_wth_name
|
96
|
+
# Adds or updates one user meta data field for an image.
|
97
|
+
# User metadata is used for searching images that have been stored in rokka. It will never lead to differences in the output image and thus changing it never leads to a new hash.
|
98
|
+
# @param user_meta_data_single_field User Meta Data for a single field in json format
|
99
|
+
# @param organization
|
100
|
+
# @param hash
|
101
|
+
# @param meta_name
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [nil]
|
104
|
+
describe 'create_source_image_meta_user_wth_name test' do
|
105
|
+
it "should work" do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for delete_source_image
|
111
|
+
# Delete a single source image.
|
112
|
+
#
|
113
|
+
# @param organization
|
114
|
+
# @param hash
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @return [nil]
|
117
|
+
describe 'delete_source_image test' do
|
118
|
+
it "should work" do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for delete_source_image_meta_dynamic_with_name
|
124
|
+
# Deletes a specific dynamic meta data.
|
125
|
+
# This changes the hash of the image. The response provides the new location of the image in the Location header.
|
126
|
+
# @param organization
|
127
|
+
# @param hash
|
128
|
+
# @param meta_name
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [BOOLEAN] :delete_previous If the image with the original hash should be deleted
|
131
|
+
# @return [SourceImage]
|
132
|
+
describe 'delete_source_image_meta_dynamic_with_name test' do
|
133
|
+
it "should work" do
|
134
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# unit tests for delete_source_image_meta_user
|
139
|
+
# Deletes all user meta data.
|
140
|
+
# User metadata is used for searching images that have been stored in rokka. It will never lead to differences in the output image and thus changing it never leads to a new hash.
|
141
|
+
# @param organization
|
142
|
+
# @param hash
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [nil]
|
145
|
+
describe 'delete_source_image_meta_user test' do
|
146
|
+
it "should work" do
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# unit tests for delete_source_image_meta_user_with_name
|
152
|
+
# Deletes user meta data for a specified field.
|
153
|
+
# User metadata is used for searching images that have been stored in rokka. It will never lead to differences in the output image and thus changing it never leads to a new hash.
|
154
|
+
# @param organization
|
155
|
+
# @param hash
|
156
|
+
# @param meta_name
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [nil]
|
159
|
+
describe 'delete_source_image_meta_user_with_name test' do
|
160
|
+
it "should work" do
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# unit tests for download_source_image
|
166
|
+
# Download original source image binary.
|
167
|
+
#
|
168
|
+
# @param organization
|
169
|
+
# @param hash
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @return [File]
|
172
|
+
describe 'download_source_image test' do
|
173
|
+
it "should work" do
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# unit tests for get_source_image
|
179
|
+
# Get information about a source image.
|
180
|
+
#
|
181
|
+
# @param organization
|
182
|
+
# @param hash
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @return [SourceImage]
|
185
|
+
describe 'get_source_image test' do
|
186
|
+
it "should work" do
|
187
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# unit tests for get_source_image_meta_user
|
192
|
+
# Get all user meta data.
|
193
|
+
#
|
194
|
+
# @param organization
|
195
|
+
# @param hash
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @return [Object]
|
198
|
+
describe 'get_source_image_meta_user test' do
|
199
|
+
it "should work" do
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# unit tests for get_source_image_meta_user_with_name
|
205
|
+
# Get user meta for a specific field.
|
206
|
+
#
|
207
|
+
# @param organization
|
208
|
+
# @param hash
|
209
|
+
# @param meta_name
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [String]
|
212
|
+
describe 'get_source_image_meta_user_with_name test' do
|
213
|
+
it "should work" do
|
214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# unit tests for list_source_images
|
219
|
+
# Get all images of an organization, with paging.
|
220
|
+
# You can also filter and sort by their metadata. See the API reference for more in depth documentation about this.
|
221
|
+
# @param organization
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @option opts [String] :offset When paging results, where to start or a cursor
|
224
|
+
# @option opts [Integer] :limit How many images should be returned
|
225
|
+
# @option opts [String] :sort The field to be used for sorting
|
226
|
+
# @option opts [BOOLEAN] :deleted Search for deleted images
|
227
|
+
# @return [ListSourceImagesResponse]
|
228
|
+
describe 'list_source_images test' do
|
229
|
+
it "should work" do
|
230
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# unit tests for list_source_images_by_binary_hash
|
235
|
+
# Get all images in this organization that match a binaryhash.
|
236
|
+
# The binary hash is the sha1 of the image binary. This may yield several results if the same image has been uploaded with varying dynamic metadata.
|
237
|
+
# @param organization
|
238
|
+
# @param binary_hash
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @return [ListSourceImagesResponse]
|
241
|
+
describe 'list_source_images_by_binary_hash test' do
|
242
|
+
it "should work" do
|
243
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# unit tests for patch_source_image_meta_user
|
248
|
+
# Update the specified meta data fields for an image.
|
249
|
+
# This only overwrites the fields specified in the request, but leaves existing meta data with different names unchanged. User metadata is used for searching images that have been stored in rokka. It will never lead to differences in the output image and thus changing it never leads to a new hash.
|
250
|
+
# @param user_meta_data User Meta Data as a json hashmap
|
251
|
+
# @param organization
|
252
|
+
# @param hash
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [nil]
|
255
|
+
describe 'patch_source_image_meta_user test' do
|
256
|
+
it "should work" do
|
257
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# unit tests for restore_source_image
|
262
|
+
# Restore source image including previously set metadata.
|
263
|
+
# If the image has been deleted but not yet purged from the system, it is restored. If an image with this hash already exists and is not deleted, information about that image is returned.
|
264
|
+
# @param organization
|
265
|
+
# @param hash
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [SourceImage]
|
268
|
+
describe 'restore_source_image test' do
|
269
|
+
it "should work" do
|
270
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
end
|