idcfcloud 1.1.6 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e2a5f8028136a7924674f9870bfbbffafe720828f8bb7d4cc31e6e9ccdc6e06
4
- data.tar.gz: 69bab4aee28bb7dce8c41180b8164c056613a950efdcdcfa5cf15e00e4d498fc
3
+ metadata.gz: 1bc580754ca67d64fe22b1f76a182e9a3e2385093be0702882be78062b561530
4
+ data.tar.gz: 46e672e9153698b7728c10f7559318ce1ba206fec90acff0d365f084446f00cb
5
5
  SHA512:
6
- metadata.gz: 3b03b02f24bbff6be96baaff139e3badb9d93b17b4934042570e500e6c9400f326c2e27eebe54f41012224492e000634cc186b19becc7ec7b25a65eb722ba40f
7
- data.tar.gz: 79e89d8ea404f30a630fb82452580108ae2b8f4c4a8ab953d7fba96b8ad70cb555a7b0d28523c723a21757e4a6d6135ead0e20c401ac4376fce5dccd9b074fde
6
+ metadata.gz: d35ab54d52e1edd999de6f5d7e350be01e2a36fe63434c9531ff140830b777e2862029949d8388b43b434d0a8adc981d62cdc6b384ea614fbf9519fd96366897
7
+ data.tar.gz: 35d16a3b7bff0700d08826848895118f4fac374752d5be2e704385e32a263e60fc23572ae595809d363bc999ed8965e1b7ef3ee48550a214a91911d64462d39c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.8
4
+
5
+ * Add autoscale service
6
+
7
+ ## 1.1.7
8
+
9
+ * Change some output logic
10
+
3
11
  ## 1.1.6
4
12
 
5
13
  * Change for ruby 3.0 format
data/README.md CHANGED
@@ -74,6 +74,8 @@ idcfcloud your list_billing_history --json-path '$.data[?(@.month=="2017-10")]'
74
74
 
75
75
  [Your](#your)
76
76
 
77
+ [Autoscale](#autoscale)
78
+
77
79
  ### Common Features
78
80
 
79
81
  versions
@@ -132,6 +134,10 @@ http://docs.idcf.jp/cloud/dns/#s_fid=4FEB16B56007BA5C-0BFB42ABA668ADA8
132
134
 
133
135
  http://docs.idcf.jp/cloud/billing/
134
136
 
137
+ ### Autoscale<a name="autoscale"></a>
138
+
139
+ https://idcf.jp/api-docs/apis/?id=docs_compute-autoscale_reference
140
+
135
141
  ## Development && Test
136
142
 
137
143
  Running the following test code is possible, but not recommended nor supported. Run only a code of a target.
@@ -42,3 +42,9 @@ compute:
42
42
  jp-west:
43
43
  schema: https://compute.jp-west.idcfcloud.com/api/v1/schema
44
44
  host: compute.jp-west.idcfcloud.com
45
+ autoscale:
46
+ v1:
47
+ region:
48
+ default:
49
+ schema: https://compute.idcfcloud.com/api/v1/autoscale/schema
50
+ host: compute.idcfcloud.com
@@ -0,0 +1,18 @@
1
+ require_relative './base'
2
+
3
+ module Idcf
4
+ module Cli
5
+ module Controller
6
+ # autoscale
7
+ class Autoscale < Base
8
+ default_command :help
9
+
10
+ class << self
11
+ def description
12
+ 'Autoscale Service'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -18,6 +18,10 @@ module Idcf
18
18
  def make_table_data(data)
19
19
  data['data']
20
20
  end
21
+
22
+ def make_field_data(data)
23
+ make_table_data(data)
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -60,7 +60,6 @@ module Idcf
60
60
  end
61
61
 
62
62
  return nil if no_targets.empty?
63
- cli_error(format(MSG_NO_TARGETS, field: no_targets.join(',')))
64
63
  end
65
64
  end
66
65
  end
@@ -25,20 +25,18 @@ module Idcf
25
25
  return [] if list.size.zero?
26
26
 
27
27
  result = []
28
- headers = make_header(list.first)
28
+ headers = make_header(list)
29
29
  result << headers
30
30
  push_list(list, headers, result)
31
31
  end
32
32
 
33
- def make_header(first_list)
34
- result = []
35
- if first_list.class == Hash
36
- first_list.each_key do |k|
37
- result << k
38
- end
39
- else
40
- result = [*(0..(first_list.size - 1))]
41
- end
33
+ def make_header(list)
34
+ first_list = list.first
35
+ result = if first_list.class == Hash
36
+ list.map(&:keys).flatten.uniq
37
+ else
38
+ [*(0..(first_list.size - 1))]
39
+ end
42
40
  result
43
41
  end
44
42
 
@@ -1,5 +1,5 @@
1
1
  module Idcf
2
2
  module Cli
3
- VERSION = '1.1.6'.freeze
3
+ VERSION = '1.1.8'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcfcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDC Frontier Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-22 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -280,6 +280,7 @@ files:
280
280
  - lib/idcf/cli/command/morio.rb
281
281
  - lib/idcf/cli/conf/conf.yml
282
282
  - lib/idcf/cli/conf/const.rb
283
+ - lib/idcf/cli/controller/autoscale.rb
283
284
  - lib/idcf/cli/controller/base.rb
284
285
  - lib/idcf/cli/controller/compute.rb
285
286
  - lib/idcf/cli/controller/dns.rb
@@ -360,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
361
  version: '0'
361
362
  requirements: []
362
363
  rubygems_version: 3.1.6
363
- signing_key:
364
+ signing_key:
364
365
  specification_version: 4
365
366
  summary: IDCF Cli tools
366
367
  test_files: []