pulp_container_client 1.5.0.dev01591292410 → 2.0.0b2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,21 +14,21 @@ require 'date'
14
14
 
15
15
  module PulpContainerClient
16
16
  class ContainerContainerDistributionRead
17
+ # RepositoryVersion to be served
18
+ attr_accessor :repository_version
19
+
20
+ # An optional content-guard.
21
+ attr_accessor :content_guard
22
+
17
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
18
24
  attr_accessor :base_path
19
25
 
20
26
  # The latest RepositoryVersion for this Repository will be served.
21
27
  attr_accessor :repository
22
28
 
23
- # An optional content-guard.
24
- attr_accessor :content_guard
25
-
26
29
  # Timestamp of creation.
27
30
  attr_accessor :pulp_created
28
31
 
29
- # RepositoryVersion to be served
30
- attr_accessor :repository_version
31
-
32
32
  # A unique name. Ex, `rawhide` and `stable`.
33
33
  attr_accessor :name
34
34
 
@@ -40,11 +40,11 @@ module PulpContainerClient
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
+ :'repository_version' => :'repository_version',
44
+ :'content_guard' => :'content_guard',
43
45
  :'base_path' => :'base_path',
44
46
  :'repository' => :'repository',
45
- :'content_guard' => :'content_guard',
46
47
  :'pulp_created' => :'pulp_created',
47
- :'repository_version' => :'repository_version',
48
48
  :'name' => :'name',
49
49
  :'pulp_href' => :'pulp_href',
50
50
  :'registry_path' => :'registry_path'
@@ -54,11 +54,11 @@ module PulpContainerClient
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
+ :'repository_version' => :'String',
58
+ :'content_guard' => :'String',
57
59
  :'base_path' => :'String',
58
60
  :'repository' => :'String',
59
- :'content_guard' => :'String',
60
61
  :'pulp_created' => :'DateTime',
61
- :'repository_version' => :'String',
62
62
  :'name' => :'String',
63
63
  :'pulp_href' => :'String',
64
64
  :'registry_path' => :'String'
@@ -68,9 +68,9 @@ module PulpContainerClient
68
68
  # List of attributes with nullable: true
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
- :'repository',
72
- :'content_guard',
73
71
  :'repository_version',
72
+ :'content_guard',
73
+ :'repository',
74
74
  ])
75
75
  end
76
76
 
@@ -89,6 +89,14 @@ module PulpContainerClient
89
89
  h[k.to_sym] = v
90
90
  }
91
91
 
92
+ if attributes.key?(:'repository_version')
93
+ self.repository_version = attributes[:'repository_version']
94
+ end
95
+
96
+ if attributes.key?(:'content_guard')
97
+ self.content_guard = attributes[:'content_guard']
98
+ end
99
+
92
100
  if attributes.key?(:'base_path')
93
101
  self.base_path = attributes[:'base_path']
94
102
  end
@@ -97,18 +105,10 @@ module PulpContainerClient
97
105
  self.repository = attributes[:'repository']
98
106
  end
99
107
 
100
- if attributes.key?(:'content_guard')
101
- self.content_guard = attributes[:'content_guard']
102
- end
103
-
104
108
  if attributes.key?(:'pulp_created')
105
109
  self.pulp_created = attributes[:'pulp_created']
106
110
  end
107
111
 
108
- if attributes.key?(:'repository_version')
109
- self.repository_version = attributes[:'repository_version']
110
- end
111
-
112
112
  if attributes.key?(:'name')
113
113
  self.name = attributes[:'name']
114
114
  end
@@ -203,11 +203,11 @@ module PulpContainerClient
203
203
  def ==(o)
204
204
  return true if self.equal?(o)
205
205
  self.class == o.class &&
206
+ repository_version == o.repository_version &&
207
+ content_guard == o.content_guard &&
206
208
  base_path == o.base_path &&
207
209
  repository == o.repository &&
208
- content_guard == o.content_guard &&
209
210
  pulp_created == o.pulp_created &&
210
- repository_version == o.repository_version &&
211
211
  name == o.name &&
212
212
  pulp_href == o.pulp_href &&
213
213
  registry_path == o.registry_path
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [base_path, repository, content_guard, pulp_created, repository_version, name, pulp_href, registry_path].hash
225
+ [repository_version, content_guard, base_path, repository, pulp_created, name, pulp_href, registry_path].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '1.5.0.dev01591292410'
14
+ VERSION = '2.0.0b2'
15
15
  end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::V2Api
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V2Api' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::V2Api.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V2Api' do
30
+ it 'should create an instance of V2Api' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::V2Api)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # Handles GET requests for the /v2/ endpoint.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :fields A list of fields to include in the response.
39
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [nil]
41
+ describe 'list test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::V2BlobsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V2BlobsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::V2BlobsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V2BlobsApi' do
30
+ it 'should create an instance of V2BlobsApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::V2BlobsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for partial_update
36
+ # Partially update an upload
37
+ # This methods handles uploading of a chunk to an existing upload.
38
+ # @param path
39
+ # @param upload_pk
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'partial_update test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::V2CatalogApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V2CatalogApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::V2CatalogApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V2CatalogApi' do
30
+ it 'should create an instance of V2CatalogApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::V2CatalogApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # Handles GET requests for the /v2/_catalog endpoint.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :fields A list of fields to include in the response.
39
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [nil]
41
+ describe 'list test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::V2ListApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V2ListApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::V2ListApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V2ListApi' do
30
+ it 'should create an instance of V2ListApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::V2ListApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # Handles GET requests to the /v2//tags/list endpoint
37
+ # @param path
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :fields A list of fields to include in the response.
40
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
+ # @return [nil]
42
+ describe 'list test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::V2UploadsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V2UploadsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::V2UploadsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V2UploadsApi' do
30
+ it 'should create an instance of V2UploadsApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::V2UploadsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create an upload
37
+ # This methods handles the creation of an upload.
38
+ # @param path
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistributionRead' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionRead)
33
33
  end
34
34
  end
35
- describe 'test attribute "base_path"' do
35
+ describe 'test attribute "repository_version"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "repository"' do
41
+ describe 'test attribute "content_guard"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "content_guard"' do
47
+ describe 'test attribute "base_path"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_created"' do
53
+ describe 'test attribute "repository"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "repository_version"' do
59
+ describe 'test attribute "pulp_created"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "base_path"' do
35
+ describe 'test attribute "repository_version"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "repository"' do
41
+ describe 'test attribute "content_guard"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "content_guard"' do
47
+ describe 'test attribute "base_path"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_created"' do
53
+ describe 'test attribute "repository"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "repository_version"' do
59
+ describe 'test attribute "pulp_created"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end