nifty-cloud-sdk 1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/CHANGELOG +112 -0
  2. data/Gemfile +4 -0
  3. data/INSTALL +30 -0
  4. data/LICENSE.txt +58 -0
  5. data/README.rdoc +375 -0
  6. data/Rakefile +61 -0
  7. data/lib/NIFTY.rb +405 -0
  8. data/lib/NIFTY/Cloud.rb +24 -0
  9. data/lib/NIFTY/Cloud/availability_zones.rb +23 -0
  10. data/lib/NIFTY/Cloud/certificates.rb +283 -0
  11. data/lib/NIFTY/Cloud/images.rb +134 -0
  12. data/lib/NIFTY/Cloud/instances.rb +372 -0
  13. data/lib/NIFTY/Cloud/keypairs.rb +76 -0
  14. data/lib/NIFTY/Cloud/load_balancers.rb +433 -0
  15. data/lib/NIFTY/Cloud/security_groups.rb +357 -0
  16. data/lib/NIFTY/Cloud/volumes.rb +140 -0
  17. data/lib/NIFTY/config.rb +41 -0
  18. data/lib/NIFTY/exceptions.rb +32 -0
  19. data/lib/NIFTY/responses.rb +19 -0
  20. data/lib/NIFTY/version.rb +3 -0
  21. data/nifty-cloud-sdk.gemspec +28 -0
  22. data/sample/availability_zones/describe-availability-zones.rb +37 -0
  23. data/sample/certificate/create-ssl-certificate.rb +41 -0
  24. data/sample/certificate/delete-ssl-certificate.rb +28 -0
  25. data/sample/certificate/describe-ssl-certificate-attribute.rb +58 -0
  26. data/sample/certificate/describe-ssl-certificates.rb +49 -0
  27. data/sample/certificate/download-ssl-certificate.rb +31 -0
  28. data/sample/certificate/modify-ssl-certificate-attribute.rb +29 -0
  29. data/sample/certificate/register-corporate-info-for-certificate.rb +57 -0
  30. data/sample/certificate/upload-ssl-certificate.rb +32 -0
  31. data/sample/images/create-image.rb +33 -0
  32. data/sample/images/delete-image.rb +26 -0
  33. data/sample/images/describe-images.rb +70 -0
  34. data/sample/images/modify-image-attribute.rb +33 -0
  35. data/sample/instances/cancel_copy_instances.rb +26 -0
  36. data/sample/instances/copy-instances.rb +41 -0
  37. data/sample/instances/describe-instance-attribute.rb +78 -0
  38. data/sample/instances/describe-instances.rb +100 -0
  39. data/sample/instances/modify-instance-attribute.rb +30 -0
  40. data/sample/instances/reboot-instances.rb +29 -0
  41. data/sample/instances/run-instances.rb +104 -0
  42. data/sample/instances/start-instances.rb +36 -0
  43. data/sample/instances/stop-instances.rb +35 -0
  44. data/sample/instances/terminate-instances.rb +34 -0
  45. data/sample/keypairs/create-key-pair.rb +31 -0
  46. data/sample/keypairs/delete-key-pair.rb +28 -0
  47. data/sample/keypairs/describe-key-pairs.rb +31 -0
  48. data/sample/load_balancers/configure-health-check.rb +41 -0
  49. data/sample/load_balancers/create-load-balancer.rb +35 -0
  50. data/sample/load_balancers/delete-load-balancer.rb +28 -0
  51. data/sample/load_balancers/deregister-instances-from-load-balancer.rb +35 -0
  52. data/sample/load_balancers/describe-instance-health.rb +36 -0
  53. data/sample/load_balancers/describe-load-balancers.rb +89 -0
  54. data/sample/load_balancers/register-instances-with-load-balancer.rb +33 -0
  55. data/sample/load_balancers/register-port-with-load-balancer.rb +37 -0
  56. data/sample/load_balancers/set-filter-for-load-balancer.rb +38 -0
  57. data/sample/load_balancers/update-load-balancer.rb +33 -0
  58. data/sample/security_groups/authorize-security-group-ingress.rb +36 -0
  59. data/sample/security_groups/create-security-group.rb +29 -0
  60. data/sample/security_groups/delete-security-group.rb +28 -0
  61. data/sample/security_groups/deregister-instances-from-security-group.rb +31 -0
  62. data/sample/security_groups/describe-security-activities.rb +33 -0
  63. data/sample/security_groups/describe-security-groups.rb +59 -0
  64. data/sample/security_groups/register-instances-with-security-group.rb +31 -0
  65. data/sample/security_groups/revoke-security-group-ingress.rb +36 -0
  66. data/sample/security_groups/update-security-group.rb +30 -0
  67. data/sample/volumes/attach-volumes.rb +34 -0
  68. data/sample/volumes/create-volume.rb +38 -0
  69. data/sample/volumes/delete-volume.rb +28 -0
  70. data/sample/volumes/describe-volumes.rb +44 -0
  71. data/sample/volumes/detach-volume.rb +35 -0
  72. data/test/test_Cloud.rb +186 -0
  73. data/test/test_Cloud_availability_zones.rb +50 -0
  74. data/test/test_Cloud_certificates.rb +627 -0
  75. data/test/test_Cloud_images.rb +284 -0
  76. data/test/test_Cloud_instances.rb +941 -0
  77. data/test/test_Cloud_keypairs.rb +177 -0
  78. data/test/test_Cloud_load_balancers.rb +1183 -0
  79. data/test/test_Cloud_responses.rb +43 -0
  80. data/test/test_Cloud_security_groups.rb +699 -0
  81. data/test/test_Cloud_volumes.rb +325 -0
  82. data/test/test_helper.rb +23 -0
  83. metadata +275 -0
@@ -0,0 +1,41 @@
1
+ module NIFTY
2
+ module Cloud
3
+ # 各種設定
4
+ #
5
+ # 環境変数から各種設定値を取得します。
6
+ # 環境変数から取得できなかった場合はデフォルト値が適用されます。
7
+ # VAR = ENV['VAR'] || デフォルト値
8
+
9
+ # 公開キー
10
+ ACCESS_KEY = ENV['NIFTY_CLOUD_ACCESS_KEY'] || '<default access key>'
11
+ # 秘密キー
12
+ SECRET_KEY = ENV['NIFTY_CLOUD_SECRET_KEY'] || '<default secret key>'
13
+
14
+ # APIのエンドポイント
15
+ # @example
16
+ # 'https://example.com/test/'
17
+ ENDPOINT_URL = ENV['NIFTY_CLOUD_ENDPOINT_URL'] || 'https://cp.cloud.nifty.com/api/1.7/'
18
+
19
+ # プロキシサーバーのURL(デフォルト: nil)
20
+ # 形式: //<username>:<password>@<hostname>:<port>
21
+ # @example
22
+ # '//user:password@proxy.example.com:8080'
23
+ PROXY_SERVER = ENV['NIFTY_CLOUD_PROXY_SERVER']
24
+
25
+ # ユーザーエージェント
26
+ USER_AGENT = ENV['NIFTY_CLOUD_USER_AGENT'] || 'NIFTY Cloud API Ruby SDK'
27
+ # 最大リトライ回数
28
+ MAX_RETRY = ENV['NIFTY_CLOUD_MAX_RETRY'] || 3
29
+ # 接続タイムアウト(秒)
30
+ CONNECTION_TIMEOUT = ENV['NIFTY_CLOUD_CONNECTION_TIMEOUT'] || 30
31
+ # ソケットタイムアウト(秒)
32
+ SOCKET_TIMEOUT = ENV['NIFTY_CLOUD_SOCKET_TIMEOUT'] || 30
33
+
34
+ # 認証バージョン
35
+ # 0 | 1 | 2
36
+ SIGNATURE_VERSION = ENV['NIFTY_CLOUD_SIGNATURE_VERSION'] || '2'
37
+ # APIの認証ロジック
38
+ # HmacSHA1 | HmacSHA256
39
+ SIGNATURE_METHOD = ENV['NIFTY_CLOUD_SIGNATURE_METHOD'] || 'HmacSHA256'
40
+ end
41
+ end
@@ -0,0 +1,32 @@
1
+ #--
2
+ # エラークラス
3
+ #++
4
+
5
+ module NIFTY
6
+ # 基底エラークラス
7
+ class Error < RuntimeError; end
8
+
9
+ #--
10
+ # クライアントエラー
11
+ #++
12
+ # 引数エラークラス
13
+ class ArgumentError < Error; end
14
+ # ユーザー定義値エラークラス
15
+ class ConfigurationError < Error; end
16
+ # レスポンス解析エラークラス
17
+ class ResponseFormatError < Error; end
18
+
19
+ # ニフティクラウドAPIエラークラス
20
+ class ResponseError < Error
21
+ # ニフティクラウドAPIから返却されるエラーコード
22
+ attr_reader :error_code
23
+ # ニフティクラウドAPIから返却されるエラーメッセージ
24
+ attr_reader :error_message
25
+
26
+ def initialize(error_code=nil, error_message=nil)
27
+ @error_code = error_code
28
+ @error_message = error_message
29
+ super(error_message)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,19 @@
1
+ module NIFTY
2
+ class Response
3
+ # ニフティクラウドAPIのレスポンス解析クラス
4
+ #
5
+ # @option options [String] :xml 解析対象のXML
6
+ # @option options [Hash] :parse_options xml-simpleの解析オプション
7
+ # @return [Hash] レスポンスXML解析結果
8
+ #
9
+ def self.parse(options = {})
10
+ options = {
11
+ :xml => "",
12
+ :parse_options => { 'forcearray' => ['item', 'member'], 'suppressempty' => nil, 'keeproot' => false }
13
+ }.merge(options)
14
+
15
+ return response = XmlSimple.xml_in(options[:xml], options[:parse_options])
16
+ end
17
+ end
18
+ end
19
+
@@ -0,0 +1,3 @@
1
+ module NIFTY
2
+ VERSION = '1.7'
3
+ end
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "NIFTY/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "nifty-cloud-sdk"
7
+ s.version = NIFTY::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["NIFTY Corporation"]
10
+ s.homepage = "http://cloud.nifty.com/api/"
11
+ s.summary = "NIFTY Cloud SDK for Ruby"
12
+ s.description = "It is an operation library for Nifty Cloud APIs that the server making, starting, stoping, and the server status confirming etc."
13
+
14
+ s.rdoc_options = ["--title", "NIFTY Cloud SDK documentation", "--line-numbers", "--main", "README.rdoc", "-c", "UTF-8"]
15
+ s.extra_rdoc_files = ["LICENSE.txt", "README.rdoc"]
16
+
17
+ s.add_dependency('xml-simple', '>= 1.0.12')
18
+ s.add_development_dependency('mocha', '>= 0.9.9')
19
+ s.add_development_dependency('test-unit', '>= 2.1.2')
20
+ s.add_development_dependency('test-spec', '>= 0.10.0')
21
+ s.add_development_dependency('rcov', '>= 0.9.9')
22
+ s.add_development_dependency('perftools.rb', '>= 0.5.4')
23
+ s.add_development_dependency('yard', '>= 0.6.2')
24
+
25
+ s.files = Dir['Gemfile', 'Rakefile', 'nifty-cloud-sdk.gemspec', 'LICENSE.txt', 'INSTALL', 'CHANGELOG', 'README.rdoc', 'lib/**/*.rb', 'sample/**/*.rb', 'test/*.rb']
26
+ s.test_files = Dir['test/*.rb']
27
+ s.require_paths = ["lib"]
28
+ end
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:zone_name => []
24
+ }
25
+
26
+ pp response = ncs4r.describe_availability_zones(options)
27
+
28
+ response.availabilityZoneInfo.item.each do |zone|
29
+ p zone.zoneName
30
+ p zone.zoneState
31
+ p zone.regionName
32
+ if set = zone.messageSet
33
+ set.item.each do |item|
34
+ p item.message
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => "fqdnId",
24
+ #:fqdn => "fqdn",
25
+ #:count => 0,
26
+ #:validity_term => 0,
27
+ #:key_length => 0,
28
+ #:organization_name => "organizationName",
29
+ #:organization_unit_name => "organizationUnitName",
30
+ #:country_name => "countryName",
31
+ #:state_name => "stateName",
32
+ #:location_name => "locationName",
33
+ #:email_address => "emailAddress"
34
+ }
35
+
36
+ pp response = ncs4r.create_ssl_certificate(options)
37
+
38
+ p response.fqdnId
39
+ p response.fqdn
40
+ p response.validityTerm
41
+ p response.certState
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => "fqdnId"
24
+ }
25
+
26
+ pp response = ncs4r.delete_ssl_certificate(options)
27
+
28
+ p response.return
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => "fqdnId",
24
+ #:attribute => "attribute"
25
+ }
26
+
27
+ pp response = ncs4r.describe_ssl_certificate_attribute(options)
28
+
29
+
30
+ p response.fqdnId
31
+ p response.fqdn
32
+ if response["count"]
33
+ p response["count"].value
34
+ end
35
+ if response.certState.value
36
+ p response.certState.value
37
+ end
38
+ if response.period
39
+ p response.period.startDate
40
+ p response.period.endDate
41
+ end
42
+ if response.keyLength
43
+ p response.keyLength
44
+ end
45
+ if response.uploadState
46
+ p response.uploadState
47
+ end
48
+ if response.description
49
+ p response.description
50
+ end
51
+ if cert_info = response.certInfo
52
+ p cert_info.organizationName
53
+ p cert_info.organizationUnitName
54
+ p cert_info.countryName
55
+ p cert_info.stateName
56
+ p cert_info.locationName
57
+ p cert_info.emailAddress
58
+ end
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => ["fqdnId"],
24
+ #:fqdn => ["fqdn"],
25
+ }
26
+
27
+ pp response = ncs4r.describe_ssl_certificates(options)
28
+
29
+ response.certsSet.item.each do |cert|
30
+ p cert.fqdnId
31
+ p cert.fqdn
32
+ p count = cert["count"]
33
+ p cert.certState
34
+ if period = cert.period
35
+ p period.startDate
36
+ p period.endDate
37
+ end
38
+ p cert.keyLength
39
+ p cert.uploadState
40
+ p cert.description
41
+ if cert_info = cert.certInfo
42
+ p cert_info.organizationName
43
+ p cert_info.organizationUnitName
44
+ p cert_info.countryName
45
+ p cert_info.stateName
46
+ p cert_info.locationName
47
+ p cert_info.emailAddress
48
+ end
49
+ end
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => "fqdnId",
24
+ #:file_type => "fileType"
25
+ }
26
+
27
+ pp response = ncs4r.download_ssl_certificate(options)
28
+
29
+ p response.fqdnId
30
+ p response.fqdn
31
+ p response.fileData
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:fqdn_id => "fqdnId",
24
+ #:description => "value"
25
+ }
26
+
27
+ pp response = ncs4r.modify_ssl_certificate_attribute(options)
28
+
29
+ p response.return
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # ニフティクラウドSDK for Ruby
4
+ #
5
+ # Ruby Gem Name:: nifty-cloud-sdk
6
+ # Author:: NIFTY Corporation
7
+ # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved.
8
+ # License:: Distributes under the same terms as Ruby
9
+ # Home:: http://cloud.nifty.com/api/
10
+ #++
11
+
12
+ require 'rubygems'
13
+ require File.dirname(__FILE__) + "/../../lib/NIFTY"
14
+ require 'pp'
15
+
16
+ ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>"
17
+ SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>"
18
+
19
+
20
+ ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY)
21
+
22
+ options = {
23
+ #:agreement => true,
24
+ #:tdb_code => "tdbCode",
25
+ #:corp_name => "corpName",
26
+ #:corp_grade => "corpGrade",
27
+ #:president_name1 => "presidentName1",
28
+ #:president_name2 => "presidentName2",
29
+ #:zip1 => 123,
30
+ #:zip2 => 4567,
31
+ #:pref => "pref",
32
+ #:city => "city",
33
+ #:name1 => "name1",
34
+ #:name2 => "name2",
35
+ #:kana_name1 => "kanaName1",
36
+ #:kana_name2 => "kanaName2",
37
+ #:post_name => "postName",
38
+ #:division_name => "divisionName"
39
+ }
40
+
41
+ pp response = ncs4r.register_corporate_info_for_certificate(options)
42
+
43
+ p response.tdbCode
44
+ p response.corpName
45
+ p response.corpGrade
46
+ p response.presidentName
47
+ p response.presidentName
48
+ p response.zip1
49
+ p response.zip2
50
+ p response.pref
51
+ p response.city
52
+ p response.name1
53
+ p response.name2
54
+ p response.kanaName
55
+ p response.kanaName
56
+ p response.postName
57
+ p response.divisionName