nutanix_volumes 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da1022e620677c242631d74f4ed9b9f80423dc8610245dd70305872c9c218f8d
4
- data.tar.gz: 5057340a056c3be1a1ebe81bdbce30354e826a52e4fd81f91372e50bea89b3ba
3
+ metadata.gz: da5ec438a8a8111315331947f883e208d0cf779c3931de70219e385247152a65
4
+ data.tar.gz: 9d657b944aa18d21f012fffa5e1fd1d3511296add6500fefea1764e8d7967feb
5
5
  SHA512:
6
- metadata.gz: 5197cefb8d14ac1affdc472db0528d725ad29c1c7830bc4a54f76f32692b0f26749a6e2bde82b421527b54484b830b7a783a2420cb6a855625ab0ab7a0ac7e15
7
- data.tar.gz: 9658673e10aba30839c72cff64638b876094df6f93cff18796d8489fc6d049dc5accb723c9933e46c6530ebe3df713afa892a9d9bfd7c4be3268f6739b21f69f
6
+ metadata.gz: 855000915d5031a096965aefffc58d29b256113c3cca8939fd66a1b135745d3da4bf60db9b39274c7395db125084bd6d6f04bc5a6bfe1210629f06424d4f64ee
7
+ data.tar.gz: dd8e83c376a4f3b247dc180f8c8c6c3a7658c43311215fc6c53e951252f27cff400cf781d468d3b6f62fdaa2d6fea66479ad63206bcb278dcb2fd9e1a58975bd
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.2.1] - 2025-11-24
8
+ ### Added
9
+ - Add a post-generate script to fix invalid constants ([#15](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/15))
10
+
11
+ ### Fixed
12
+ - Fix `_UNKNOWN`/`_REDACTED` constants ([#16](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/16))
13
+
7
14
  ## [0.2.0] - 2025-11-24
8
15
  ### Added
9
16
  - Add License ([#7](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/7))
@@ -19,5 +26,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
19
26
  ### Added
20
27
  - Initial release
21
28
 
29
+ [0.2.1]: https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/compare/v0.2.0...v0.2.1
22
30
  [0.2.0]: https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/compare/v0.1.0...v0.2.0
23
31
  [0.1.0]: https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/tree/v0.1.0
data/README.md CHANGED
@@ -7,7 +7,7 @@ Configure volumes.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 4.0
10
- - Package version: 1.0.0
10
+ - Package version: 0.2.0
11
11
  - Generator version: 7.17.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
@@ -24,16 +24,16 @@ gem build nutanix_volumes.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./nutanix_volumes-1.0.0.gem
27
+ gem install ./nutanix_volumes-0.2.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./nutanix_volumes-1.0.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./nutanix_volumes-0.2.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'nutanix_volumes', '~> 1.0.0'
36
+ gem 'nutanix_volumes', '~> 0.2.0'
37
37
 
38
38
  ### Install from Git
39
39
 
data/bin/openapi-generate CHANGED
@@ -23,4 +23,8 @@ rm -rf ./docs ./lib ./spec
23
23
 
24
24
  # Generate the gem from the current openapi-spec
25
25
  input_spec=https://developers.nutanix.com/api/v1/namespaces/volumes/versions/$INPUT_SPEC_VERSION/yaml
26
- java -jar $OPENAPI_GENERATOR_JAR generate --input-spec $input_spec --skip-validate-spec --generator-name ruby --config .openapi-config.json
26
+
27
+ # Fixup issues with the generated classes
28
+ export RUBY_POST_PROCESS_FILE="$PWD/bin/openapi-generate-ruby-post-process"
29
+
30
+ java -jar $OPENAPI_GENERATOR_JAR generate --enable-post-process-file --input-spec $input_spec --skip-validate-spec --generator-name ruby --config .openapi-config.json
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ SED_EXE="$([[ "$OSTYPE" == "darwin"* ]] && echo "gsed" || echo "sed")"
4
+
5
+ ${SED_EXE} -i 's/_UNKNOWN/UNKNOWN/g' $1
6
+ ${SED_EXE} -i 's/_REDACTED/REDACTED/g' $1
@@ -43,11 +43,11 @@ module NutanixVolumes
43
43
  VIRTUAL_NETWORK = "VIRTUAL_NETWORK".freeze
44
44
  CONSISTENCY_GROUP = "CONSISTENCY_GROUP".freeze
45
45
  SUBNET_EXTENSION = "SUBNET_EXTENSION".freeze
46
- _UNKNOWN = "$UNKNOWN".freeze
47
- _REDACTED = "$REDACTED".freeze
46
+ UNKNOWN = "$UNKNOWN".freeze
47
+ REDACTED = "$REDACTED".freeze
48
48
 
49
49
  def self.all_vars
50
- @all_vars ||= [CLUSTER, VM, STORAGE_CONTAINER, VOLUME_GROUP, TASK, IMAGE, CATEGORY, NODE, VPC, SUBNET, ROUTING_POLICY, FLOATING_IP, VPN_GATEWAY, VPN_CONNECTION, DIRECT_CONNECT, DIRECT_CONNECT_VIF, VIRTUAL_NIC, VIRTUAL_SWITCH, VM_DISK, VOLUME_DISK, DISK_RECOVERY_POINT, VTEP_GATEWAY, RECOVERY_PLAN, RECOVERY_PLAN_JOB, AVAILABILITY_ZONE, VIRTUAL_NETWORK, CONSISTENCY_GROUP, SUBNET_EXTENSION, _UNKNOWN, _REDACTED].freeze
50
+ @all_vars ||= [CLUSTER, VM, STORAGE_CONTAINER, VOLUME_GROUP, TASK, IMAGE, CATEGORY, NODE, VPC, SUBNET, ROUTING_POLICY, FLOATING_IP, VPN_GATEWAY, VPN_CONNECTION, DIRECT_CONNECT, DIRECT_CONNECT_VIF, VIRTUAL_NIC, VIRTUAL_SWITCH, VM_DISK, VOLUME_DISK, DISK_RECOVERY_POINT, VTEP_GATEWAY, RECOVERY_PLAN, RECOVERY_PLAN_JOB, AVAILABILITY_ZONE, VIRTUAL_NETWORK, CONSISTENCY_GROUP, SUBNET_EXTENSION, UNKNOWN, REDACTED].freeze
51
51
  end
52
52
 
53
53
  # Builds the enum from string
@@ -18,11 +18,11 @@ module NutanixVolumes
18
18
  INFO = "INFO".freeze
19
19
  WARNING = "WARNING".freeze
20
20
  ERROR = "ERROR".freeze
21
- _UNKNOWN = "$UNKNOWN".freeze
22
- _REDACTED = "$REDACTED".freeze
21
+ UNKNOWN = "$UNKNOWN".freeze
22
+ REDACTED = "$REDACTED".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [INFO, WARNING, ERROR, _UNKNOWN, _REDACTED].freeze
25
+ @all_vars ||= [INFO, WARNING, ERROR, UNKNOWN, REDACTED].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -21,11 +21,11 @@ module NutanixVolumes
21
21
  AVG = "AVG".freeze
22
22
  COUNT = "COUNT".freeze
23
23
  LAST = "LAST".freeze
24
- _UNKNOWN = "$UNKNOWN".freeze
25
- _REDACTED = "$REDACTED".freeze
24
+ UNKNOWN = "$UNKNOWN".freeze
25
+ REDACTED = "$REDACTED".freeze
26
26
 
27
27
  def self.all_vars
28
- @all_vars ||= [SUM, MIN, MAX, AVG, COUNT, LAST, _UNKNOWN, _REDACTED].freeze
28
+ @all_vars ||= [SUM, MIN, MAX, AVG, COUNT, LAST, UNKNOWN, REDACTED].freeze
29
29
  end
30
30
 
31
31
  # Builds the enum from string
@@ -18,11 +18,11 @@ module NutanixVolumes
18
18
  NONE = "NONE".freeze
19
19
  DIRECT = "DIRECT".freeze
20
20
  EXTERNAL = "EXTERNAL".freeze
21
- _UNKNOWN = "$UNKNOWN".freeze
22
- _REDACTED = "$REDACTED".freeze
21
+ UNKNOWN = "$UNKNOWN".freeze
22
+ REDACTED = "$REDACTED".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [NONE, DIRECT, EXTERNAL, _UNKNOWN, _REDACTED].freeze
25
+ @all_vars ||= [NONE, DIRECT, EXTERNAL, UNKNOWN, REDACTED].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -17,11 +17,11 @@ module NutanixVolumes
17
17
  class VolumesV40ConfigAuthenticationType
18
18
  CHAP = "CHAP".freeze
19
19
  NONE = "NONE".freeze
20
- _UNKNOWN = "$UNKNOWN".freeze
21
- _REDACTED = "$REDACTED".freeze
20
+ UNKNOWN = "$UNKNOWN".freeze
21
+ REDACTED = "$REDACTED".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [CHAP, NONE, _UNKNOWN, _REDACTED].freeze
24
+ @all_vars ||= [CHAP, NONE, UNKNOWN, REDACTED].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -18,11 +18,11 @@ module NutanixVolumes
18
18
  NOT_ASSIGNED = "NOT_ASSIGNED".freeze
19
19
  ISCSI = "ISCSI".freeze
20
20
  NVMF = "NVMF".freeze
21
- _UNKNOWN = "$UNKNOWN".freeze
22
- _REDACTED = "$REDACTED".freeze
21
+ UNKNOWN = "$UNKNOWN".freeze
22
+ REDACTED = "$REDACTED".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [NOT_ASSIGNED, ISCSI, NVMF, _UNKNOWN, _REDACTED].freeze
25
+ @all_vars ||= [NOT_ASSIGNED, ISCSI, NVMF, UNKNOWN, REDACTED].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -17,11 +17,11 @@ module NutanixVolumes
17
17
  class VolumesV40ConfigSharingStatus
18
18
  SHARED = "SHARED".freeze
19
19
  NOT_SHARED = "NOT_SHARED".freeze
20
- _UNKNOWN = "$UNKNOWN".freeze
21
- _REDACTED = "$REDACTED".freeze
20
+ UNKNOWN = "$UNKNOWN".freeze
21
+ REDACTED = "$REDACTED".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [SHARED, NOT_SHARED, _UNKNOWN, _REDACTED].freeze
24
+ @all_vars ||= [SHARED, NOT_SHARED, UNKNOWN, REDACTED].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -19,11 +19,11 @@ module NutanixVolumes
19
19
  INTERNAL = "INTERNAL".freeze
20
20
  TEMPORARY = "TEMPORARY".freeze
21
21
  BACKUP_TARGET = "BACKUP_TARGET".freeze
22
- _UNKNOWN = "$UNKNOWN".freeze
23
- _REDACTED = "$REDACTED".freeze
22
+ UNKNOWN = "$UNKNOWN".freeze
23
+ REDACTED = "$REDACTED".freeze
24
24
 
25
25
  def self.all_vars
26
- @all_vars ||= [USER, INTERNAL, TEMPORARY, BACKUP_TARGET, _UNKNOWN, _REDACTED].freeze
26
+ @all_vars ||= [USER, INTERNAL, TEMPORARY, BACKUP_TARGET, UNKNOWN, REDACTED].freeze
27
27
  end
28
28
 
29
29
  # Builds the enum from string
@@ -17,11 +17,11 @@ module NutanixVolumes
17
17
  class VolumesV40ConfigVolumeGroupAttachmentSite
18
18
  PRIMARY = "PRIMARY".freeze
19
19
  SECONDARY = "SECONDARY".freeze
20
- _UNKNOWN = "$UNKNOWN".freeze
21
- _REDACTED = "$REDACTED".freeze
20
+ UNKNOWN = "$UNKNOWN".freeze
21
+ REDACTED = "$REDACTED".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [PRIMARY, SECONDARY, _UNKNOWN, _REDACTED].freeze
24
+ @all_vars ||= [PRIMARY, SECONDARY, UNKNOWN, REDACTED].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -18,11 +18,11 @@ module NutanixVolumes
18
18
  INFO = "INFO".freeze
19
19
  WARNING = "WARNING".freeze
20
20
  ERROR = "ERROR".freeze
21
- _UNKNOWN = "$UNKNOWN".freeze
22
- _REDACTED = "$REDACTED".freeze
21
+ UNKNOWN = "$UNKNOWN".freeze
22
+ REDACTED = "$REDACTED".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [INFO, WARNING, ERROR, _UNKNOWN, _REDACTED].freeze
25
+ @all_vars ||= [INFO, WARNING, ERROR, UNKNOWN, REDACTED].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -11,5 +11,5 @@ Generator version: 7.17.0
11
11
  =end
12
12
 
13
13
  module NutanixVolumes
14
- VERSION = '0.2.0'
14
+ VERSION = '0.2.1'
15
15
  end
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutanix_volumes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
@@ -63,6 +63,7 @@ files:
63
63
  - Rakefile
64
64
  - bin/console
65
65
  - bin/openapi-generate
66
+ - bin/openapi-generate-ruby-post-process
66
67
  - docs/AssociateCategory202Response.md
67
68
  - docs/AssociateCategory4XXResponse.md
68
69
  - docs/AttachIscsiClient202Response.md
@@ -379,7 +380,9 @@ files:
379
380
  - lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb
380
381
  - lib/nutanix_volumes/version.rb
381
382
  - nutanix_volumes.gemspec
383
+ - openapi-generator-cli-7.17.0.jar
382
384
  - pkg/nutanix_volumes-0.1.0.gem
385
+ - pkg/nutanix_volumes-0.2.0.gem
383
386
  - renovate.json
384
387
  - spec/api/iscsi_clients_api_spec.rb
385
388
  - spec/api/volume_groups_api_spec.rb