ultradns-sdk 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 06df7262ad8408d0307754d7d51b1e845526b0c9
4
- data.tar.gz: abf75483f56211d0b1d56802a1f86651f2e3ad04
3
+ metadata.gz: 68e8e682e7a0a9b12b24b9f2a0891e29e17f64a3
4
+ data.tar.gz: a094f07913e6aae1142732a28b1d5728c48bb15e
5
5
  SHA512:
6
- metadata.gz: 9f0b2efaf5f1f4be7f77f3ba8c1f75785db4545710e9355f8ae4ce00ed01ccec2bb80802523523b546005ec868aa6b2c505a4bd298b034953a7198036db2636f
7
- data.tar.gz: fb767fe0f818805642e1f0cb69881c47873b8abd5e63051be13d53bf222fc84cb49ab2d7173da0f43878a077a86a338b49f1ad41e08dc7b6675e06ca283c0534
6
+ metadata.gz: 6b2fbca7daa75b99026cbf9db759c51f92220c4680dab5dac04ad3fe763a8d821c0d1e5a5b20add1a106b15dfe994d994119bd377a5af20cdd8ad165e54a4050
7
+ data.tar.gz: 95c3cda7baac1ad133a38b4f593a5b8990addc9871e3bebfa9a8bacb104f09f7936d42b1672cd1e8128c269a0766373f4c76c1b685057a20a9790a1952b6a9e3
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.2@ultradns-sdk
data/README.md CHANGED
@@ -26,6 +26,26 @@ Or install it yourself as:
26
26
 
27
27
  * Right now only basic records are supported and RD (Resource Distribution) Pools.
28
28
 
29
+ ### Sample Usage
30
+
31
+ ```ruby
32
+
33
+ require 'ultradns-sdk'
34
+
35
+ client = Ultradns::Client.new("username", "secret password")
36
+
37
+ # create a test zone
38
+ client.create_primary_zone("myaccount", "somezone.biz")
39
+ # create an A record
40
+ client.zone("somezone.biz").rrset('A', 'www').create(60, ['192.168.1.1'])
41
+
42
+ # list the resource record sets (rrsets)
43
+ client.zone("somezone.biz").rrsets
44
+
45
+ # list the A resource record sets
46
+ client.zone("somezone.biz").rrsets('A')
47
+
48
+ ```
29
49
 
30
50
  ## Future
31
51
 
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'ultradns-sdk'
4
+
5
+ @user = ENV['ULTRA_USER']
6
+ @pw = ENV['ULTRA_PW']
7
+
8
+ if @user.nil? || @pw.nil?
9
+ puts "ULTRA_USER=<account name> ULTRA_PW=<account password> #{$0}"
10
+ exit 1
11
+ end
12
+
13
+ client = Ultradns::Client.new(@user, @pw)
14
+
15
+ result = client.status
16
+
17
+ puts "Result: #{result}"
18
+
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'ultradns'
4
+ require 'pp'
5
+
6
+ @user = ENV['ULTRA_USER']
7
+ @pw = ENV['ULTRA_PW']
8
+ zone_name = ARGV[0]
9
+
10
+ if @user.nil? || @pw.nil? || zone_name.nil?
11
+ puts "ULTRA_USER=<account name> ULTRA_PW=<account password> #{$0} <zone>"
12
+ exit 1
13
+ end
14
+
15
+ client = Ultradns::Client.new(@user, @pw)
16
+
17
+ resp = client.zone(zone_name).metadata
18
+
19
+ puts "\nZone (#{zone_name}) Properties: "
20
+ pp resp['properties']
21
+
22
+
@@ -0,0 +1,8 @@
1
+ # Copyright 2000-2014 NeuStar, Inc. All rights reserved.
2
+ # NeuStar, the Neustar logo and related names and logos are registered
3
+ # trademarks, service marks or tradenames of NeuStar, Inc. All other
4
+ # product names, company names, marks, logos and symbols may be trademarks
5
+ # of their respective owners.
6
+
7
+
8
+ require_relative "ultradns"
@@ -5,5 +5,5 @@
5
5
  # of their respective owners.
6
6
 
7
7
  module Ultradns
8
- VERSION = "0.0.2"
8
+ VERSION = "0.0.3"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultradns-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ultradns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-28 00:00:00.000000000 Z
11
+ date: 2014-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -130,11 +130,15 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".gitignore"
133
+ - ".ruby-version"
133
134
  - ".travis.yml"
134
135
  - Gemfile
135
136
  - LICENSE
136
137
  - README.md
137
138
  - Rakefile
139
+ - example/service_status.rb
140
+ - example/zone_info.rb
141
+ - lib/ultradns-sdk.rb
138
142
  - lib/ultradns.rb
139
143
  - lib/ultradns/api/account.rb
140
144
  - lib/ultradns/api/authentication.rb