idcfcloud 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idcf/cli/command/morio.rb +118 -0
- data/lib/idcf/cli/controller/cdn.rb +37 -0
- data/lib/idcf/cli/controller/compute.rb +79 -0
- data/lib/idcf/cli/controller/dns.rb +18 -0
- data/lib/idcf/cli/controller/extend/util.rb +34 -0
- data/lib/idcf/cli/controller/include/client.rb +86 -0
- data/lib/idcf/cli/error/api_error.rb +32 -0
- data/lib/idcf/cli/error/init.rb +2 -0
- data/lib/idcf/cli/gem_ext/idcf/json_hyper_schema/expands/link_info_base_extension.rb +129 -0
- data/lib/idcf/cli/lib/api.rb +165 -0
- data/lib/idcf/cli/lib/configure.rb +94 -0
- data/lib/idcf/cli/lib/convert/filter/base.rb +40 -0
- data/lib/idcf/cli/lib/convert/filter/field_filter.rb +73 -0
- data/lib/idcf/cli/lib/convert/filter/json_path_filter.rb +30 -0
- data/lib/idcf/cli/lib/include/recurring_calling.rb +27 -0
- data/lib/idcf/cli/lib/util/cli_file.rb +40 -0
- data/lib/idcf/cli/lib/util/cli_logger.rb +95 -0
- data/lib/idcf/cli/lib/util/input.rb +41 -0
- data/lib/idcf/cli/lib/util/name.rb +19 -0
- data/lib/idcf/cli/service/ilb/check_job.rb +46 -0
- data/lib/idcf/cli/service/ilb/sslalgorithms_ids.rb +34 -0
- data/lib/idcf/cli/validate/define/compute/base.rb +22 -0
- data/lib/idcf/cli/version.rb +1 -1
- metadata +23 -1
@@ -0,0 +1,34 @@
|
|
1
|
+
require_relative '../base'
|
2
|
+
|
3
|
+
module Idcf
|
4
|
+
module Cli
|
5
|
+
module Service
|
6
|
+
module Ilb
|
7
|
+
# sslalgorithms_ids
|
8
|
+
class SslalgorithmsIds < Idcf::Cli::Service::Base
|
9
|
+
class << self
|
10
|
+
def description
|
11
|
+
'Get a hash of sslalgorithm id array'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
# do
|
16
|
+
#
|
17
|
+
# @param api [Idcf::Ilb::Lib::Api]
|
18
|
+
# @param _o [Hash] options
|
19
|
+
def do(api, _o)
|
20
|
+
list = api.do(:list_sslalgorithms).collect do |a|
|
21
|
+
{
|
22
|
+
id: a['id']
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
{
|
27
|
+
algorithms: list
|
28
|
+
}
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative '../base'
|
2
|
+
module Idcf
|
3
|
+
module Cli
|
4
|
+
module Validate
|
5
|
+
module Define
|
6
|
+
module Compute
|
7
|
+
# Base Validate
|
8
|
+
class Base < Idcf::Cli::Validate::Define::Base
|
9
|
+
attr_accessor :region
|
10
|
+
|
11
|
+
validates :region,
|
12
|
+
allow_blank: true,
|
13
|
+
inclusion: {
|
14
|
+
in: Idcf::Cli::Conf::Const::REGIONS,
|
15
|
+
message: "from this [#{Idcf::Cli::Conf::Const::REGIONS.join('/')}]"
|
16
|
+
}
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/idcf/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idcfcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IDC Frontier Inc.
|
@@ -288,45 +288,67 @@ files:
|
|
288
288
|
- config/config_sample.ini
|
289
289
|
- exe/idcfcloud
|
290
290
|
- idcfcloud.gemspec
|
291
|
+
- lib/idcf/cli/command/morio.rb
|
291
292
|
- lib/idcf/cli/conf/conf.yml
|
292
293
|
- lib/idcf/cli/conf/const.rb
|
293
294
|
- lib/idcf/cli/controller/base.rb
|
295
|
+
- lib/idcf/cli/controller/cdn.rb
|
296
|
+
- lib/idcf/cli/controller/compute.rb
|
297
|
+
- lib/idcf/cli/controller/dns.rb
|
294
298
|
- lib/idcf/cli/controller/extend/command.rb
|
295
299
|
- lib/idcf/cli/controller/extend/init.rb
|
296
300
|
- lib/idcf/cli/controller/extend/override.rb
|
297
301
|
- lib/idcf/cli/controller/extend/search_module.rb
|
302
|
+
- lib/idcf/cli/controller/extend/util.rb
|
298
303
|
- lib/idcf/cli/controller/ilb.rb
|
304
|
+
- lib/idcf/cli/controller/include/client.rb
|
299
305
|
- lib/idcf/cli/controller/include/command.rb
|
300
306
|
- lib/idcf/cli/controller/include/init.rb
|
301
307
|
- lib/idcf/cli/controller/include/util.rb
|
302
308
|
- lib/idcf/cli/controller/include/validate.rb
|
303
309
|
- lib/idcf/cli/controller/your.rb
|
310
|
+
- lib/idcf/cli/error/api_error.rb
|
304
311
|
- lib/idcf/cli/error/cli_error.rb
|
312
|
+
- lib/idcf/cli/error/init.rb
|
305
313
|
- lib/idcf/cli/extend/configure.rb
|
306
314
|
- lib/idcf/cli/extend/init.rb
|
307
315
|
- lib/idcf/cli/extend/update.rb
|
308
316
|
- lib/idcf/cli/extend/update_file.rb
|
317
|
+
- lib/idcf/cli/gem_ext/idcf/json_hyper_schema/expands/link_info_base_extension.rb
|
309
318
|
- lib/idcf/cli/gem_ext/thor/init_util.rb
|
310
319
|
- lib/idcf/cli/index.rb
|
320
|
+
- lib/idcf/cli/lib/api.rb
|
321
|
+
- lib/idcf/cli/lib/configure.rb
|
322
|
+
- lib/idcf/cli/lib/convert/filter/base.rb
|
323
|
+
- lib/idcf/cli/lib/convert/filter/field_filter.rb
|
324
|
+
- lib/idcf/cli/lib/convert/filter/json_path_filter.rb
|
311
325
|
- lib/idcf/cli/lib/convert/formatter/base.rb
|
312
326
|
- lib/idcf/cli/lib/convert/formatter/csv_format.rb
|
313
327
|
- lib/idcf/cli/lib/convert/formatter/json_format.rb
|
314
328
|
- lib/idcf/cli/lib/convert/formatter/table_format.rb
|
315
329
|
- lib/idcf/cli/lib/convert/formatter/xml_format.rb
|
316
330
|
- lib/idcf/cli/lib/convert/helper.rb
|
331
|
+
- lib/idcf/cli/lib/include/recurring_calling.rb
|
332
|
+
- lib/idcf/cli/lib/util/cli_file.rb
|
333
|
+
- lib/idcf/cli/lib/util/cli_logger.rb
|
317
334
|
- lib/idcf/cli/lib/util/ini_conf.rb
|
335
|
+
- lib/idcf/cli/lib/util/input.rb
|
336
|
+
- lib/idcf/cli/lib/util/name.rb
|
318
337
|
- lib/idcf/cli/lib/util/template.rb
|
319
338
|
- lib/idcf/cli/lib/util/yml_conf.rb
|
320
339
|
- lib/idcf/cli/service/base.rb
|
321
340
|
- lib/idcf/cli/service/ilb/add_server_for_protocol.rb
|
322
341
|
- lib/idcf/cli/service/ilb/base_server_for_protocol.rb
|
342
|
+
- lib/idcf/cli/service/ilb/check_job.rb
|
323
343
|
- lib/idcf/cli/service/ilb/delete_server_for_protocol.rb
|
344
|
+
- lib/idcf/cli/service/ilb/sslalgorithms_ids.rb
|
324
345
|
- lib/idcf/cli/templates/bash/complement.erb
|
325
346
|
- lib/idcf/cli/templates/zsh/complement.erb
|
326
347
|
- lib/idcf/cli/validate/custom/init.rb
|
327
348
|
- lib/idcf/cli/validate/custom/month_check_validator.rb
|
328
349
|
- lib/idcf/cli/validate/custom/require_relation_validator.rb
|
329
350
|
- lib/idcf/cli/validate/define/base.rb
|
351
|
+
- lib/idcf/cli/validate/define/compute/base.rb
|
330
352
|
- lib/idcf/cli/validate/define/ilb/base.rb
|
331
353
|
- lib/idcf/cli/version.rb
|
332
354
|
homepage: https://www.idcfcloud.jp
|