pnap_ip_api 1.1.5 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -36,10 +36,11 @@ describe 'IPBlocksApi' do
36
36
  # List IP Blocks.
37
37
  # List all IP Blocks.
38
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [Array<String>] :tag List of tags, in the form tagName.tagValue, to filter by.
39
40
  # @return [Array<IpBlock>]
40
41
  describe 'ip_blocks_get test' do
41
42
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
44
  end
44
45
  end
45
46
 
@@ -51,7 +52,7 @@ describe 'IPBlocksApi' do
51
52
  # @return [DeleteIpBlockResult]
52
53
  describe 'ip_blocks_ip_block_id_delete test' do
53
54
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
56
  end
56
57
  end
57
58
 
@@ -63,7 +64,7 @@ describe 'IPBlocksApi' do
63
64
  # @return [IpBlock]
64
65
  describe 'ip_blocks_ip_block_id_get test' do
65
66
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
68
  end
68
69
  end
69
70
 
@@ -71,24 +72,37 @@ describe 'IPBlocksApi' do
71
72
  # Update IP block.
72
73
  # Update IP Block&#39;s details.
73
74
  # @param ip_block_id The IP Block identifier.
75
+ # @param ip_block_patch
74
76
  # @param [Hash] opts the optional parameters
75
- # @option opts [IpBlockPatch] :ip_block_patch
76
77
  # @return [IpBlock]
77
78
  describe 'ip_blocks_ip_block_id_patch test' do
78
79
  it 'should work' do
79
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ # unit tests for ip_blocks_ip_block_id_tags_put
85
+ # Overwrite tags assigned for IP Block.
86
+ # Overwrites tags assigned for IP Block and unassigns any tags not part of the request.
87
+ # @param ip_block_id The IP Block identifier.
88
+ # @param tag_assignment_request
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [IpBlock]
91
+ describe 'ip_blocks_ip_block_id_tags_put test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
94
  end
81
95
  end
82
96
 
83
97
  # unit tests for ip_blocks_post
84
98
  # Create an IP Block.
85
99
  # Request an IP Block. An IP Block is a set of contiguous IPs that can be assigned to other resources such as servers.
100
+ # @param ip_block_create
86
101
  # @param [Hash] opts the optional parameters
87
- # @option opts [IpBlockCreate] :ip_block_create
88
102
  # @return [IpBlock]
89
103
  describe 'ip_blocks_post test' do
90
104
  it 'should work' do
91
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
92
106
  end
93
107
  end
94
108
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,18 +22,20 @@ describe IpApi::DeleteIpBlockResult do
22
22
 
23
23
  describe 'test an instance of DeleteIpBlockResult' do
24
24
  it 'should create an instance of DeleteIpBlockResult' do
25
- expect(instance).to be_instance_of(IpApi::DeleteIpBlockResult)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::DeleteIpBlockResult)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "result"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "ip_block_id"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,18 +22,20 @@ describe IpApi::Error do
22
22
 
23
23
  describe 'test an instance of Error' do
24
24
  it 'should create an instance of Error' do
25
- expect(instance).to be_instance_of(IpApi::Error)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::Error)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "message"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "validation_errors"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,24 +22,32 @@ describe IpApi::IpBlockCreate do
22
22
 
23
23
  describe 'test an instance of IpBlockCreate' do
24
24
  it 'should create an instance of IpBlockCreate' do
25
- expect(instance).to be_instance_of(IpApi::IpBlockCreate)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::IpBlockCreate)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "location"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "cidr_block_size"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "description"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "tags"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
51
  end
44
52
  end
45
53
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,12 +22,14 @@ describe IpApi::IpBlockPatch do
22
22
 
23
23
  describe 'test an instance of IpBlockPatch' do
24
24
  it 'should create an instance of IpBlockPatch' do
25
- expect(instance).to be_instance_of(IpApi::IpBlockPatch)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::IpBlockPatch)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "description"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,54 +22,74 @@ describe IpApi::IpBlock do
22
22
 
23
23
  describe 'test an instance of IpBlock' do
24
24
  it 'should create an instance of IpBlock' do
25
- expect(instance).to be_instance_of(IpApi::IpBlock)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::IpBlock)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "id"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "location"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "cidr_block_size"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
45
  end
44
46
  end
45
47
 
46
48
  describe 'test attribute "cidr"' do
47
49
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
51
  end
50
52
  end
51
53
 
52
54
  describe 'test attribute "status"' do
53
55
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
57
  end
56
58
  end
57
59
 
58
60
  describe 'test attribute "assigned_resource_id"' do
59
61
  it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
63
  end
62
64
  end
63
65
 
64
66
  describe 'test attribute "assigned_resource_type"' do
65
67
  it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
69
  end
68
70
  end
69
71
 
70
72
  describe 'test attribute "description"' do
71
73
  it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ describe 'test attribute "tags"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ describe 'test attribute "is_bring_your_own"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ describe 'test attribute "created_on"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
93
  end
74
94
  end
75
95
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,18 +22,20 @@ describe IpApi::TagAssignmentRequest do
22
22
 
23
23
  describe 'test an instance of TagAssignmentRequest' do
24
24
  it 'should create an instance of TagAssignmentRequest' do
25
- expect(instance).to be_instance_of(IpApi::TagAssignmentRequest)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::TagAssignmentRequest)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "name"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "value"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -22,36 +22,38 @@ describe IpApi::TagAssignment do
22
22
 
23
23
  describe 'test an instance of TagAssignment' do
24
24
  it 'should create an instance of TagAssignment' do
25
- expect(instance).to be_instance_of(IpApi::TagAssignment)
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(IpApi::TagAssignment)
26
27
  end
27
28
  end
29
+
28
30
  describe 'test attribute "id"' do
29
31
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
31
33
  end
32
34
  end
33
35
 
34
36
  describe 'test attribute "name"' do
35
37
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "value"' do
41
43
  it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
45
  end
44
46
  end
45
47
 
46
48
  describe 'test attribute "is_billing_tag"' do
47
49
  it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
51
  end
50
52
  end
51
53
 
52
54
  describe 'test attribute "created_by"' do
53
55
  it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
57
  # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["USER", "SYSTEM"])
56
58
  # validator.allowable_values.each do |value|
57
59
  # expect { instance.created_by = value }.not_to raise_error
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnap_ip_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhoenixNAP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -84,8 +84,6 @@ files:
84
84
  - lib/pnap_ip_api/version.rb
85
85
  - pnap_ip_api.gemspec
86
86
  - spec/api/ip_blocks_api_spec.rb
87
- - spec/api_client_spec.rb
88
- - spec/configuration_spec.rb
89
87
  - spec/models/delete_ip_block_result_spec.rb
90
88
  - spec/models/error_spec.rb
91
89
  - spec/models/ip_block_create_spec.rb
@@ -107,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
105
  requirements:
108
106
  - - ">="
109
107
  - !ruby/object:Gem::Version
110
- version: '2.4'
108
+ version: '2.7'
111
109
  required_rubygems_version: !ruby/object:Gem::Requirement
112
110
  requirements:
113
111
  - - ">="
@@ -120,13 +118,11 @@ specification_version: 4
120
118
  summary: IP Addresses API Ruby Gem
121
119
  test_files:
122
120
  - spec/api/ip_blocks_api_spec.rb
123
- - spec/api_client_spec.rb
124
- - spec/configuration_spec.rb
125
- - spec/models/ip_block_patch_spec.rb
126
- - spec/models/tag_assignment_request_spec.rb
127
- - spec/models/delete_ip_block_result_spec.rb
128
121
  - spec/models/error_spec.rb
122
+ - spec/models/delete_ip_block_result_spec.rb
123
+ - spec/models/tag_assignment_request_spec.rb
124
+ - spec/models/ip_block_patch_spec.rb
125
+ - spec/models/ip_block_spec.rb
129
126
  - spec/models/tag_assignment_spec.rb
130
127
  - spec/models/ip_block_create_spec.rb
131
- - spec/models/ip_block_spec.rb
132
128
  - spec/spec_helper.rb