ovh_soapi 0.0.4 → 0.0.5
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.
- data/lib/ovh_soapi/email.rb +6 -1
- data/lib/ovh_soapi/reseller.rb +27 -1
- data/ovh_soapi.gemspec +4 -4
- metadata +6 -5
data/lib/ovh_soapi/email.rb
CHANGED
@@ -2,11 +2,16 @@ module OvhSoapi
|
|
2
2
|
class Email
|
3
3
|
module Methods
|
4
4
|
|
5
|
-
#
|
5
|
+
# Set domain MX filtering : none, simple (antispam) or full (antispam+antivirus).
|
6
6
|
def set_domain_mx_filtering(domain,subdomain,type,mx)
|
7
7
|
RpcDriver.soapi.emailSetDomainMxFiltering(Session.session, domain, subdomain, type, mx)
|
8
8
|
end
|
9
9
|
|
10
|
+
# Set email master nic.
|
11
|
+
def set_email_master_nic(domain,nic)
|
12
|
+
RpcDriver.soapi.emailSetMasterNic(Session.session, domain, nic)
|
13
|
+
end
|
14
|
+
|
10
15
|
end
|
11
16
|
include Methods
|
12
17
|
extend Methods
|
data/lib/ovh_soapi/reseller.rb
CHANGED
@@ -32,7 +32,33 @@ module OvhSoapi
|
|
32
32
|
domain_data[:birthCountry], OVH_SANDBOX
|
33
33
|
)
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
|
+
# Create a .IT domain using your loyalty/reseller account.
|
37
|
+
def domain_create_it(domain_data)
|
38
|
+
RpcDriver.soapi.resellerDomainCreateIT(Session.session,
|
39
|
+
domain_data[:domain], domain_data[:hosting], domain_data[:offer], domain_data[:profile],
|
40
|
+
domain_data[:owo], domain_data[:owner], domain_data[:admin], domain_data[:tech],
|
41
|
+
domain_data[:billing], domain_data[:dns1], domain_data[:dns2], domain_data[:dns3],
|
42
|
+
domain_data[:dns4], domain_data[:dns5], domain_data[:legalRepresentantFirstName],
|
43
|
+
domain_data[:legalRepresentantLastName], domain_data[:legalNumber], domain_data[:vat],
|
44
|
+
domain_data[:birthDate], domain_data[:birthCity], domain_data[:birthDepartement],
|
45
|
+
domain_data[:birthCountry], domain_data[:nationality], OVH_SANDBOX
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Transfer a :IT domain using your loyalty/reseller account.
|
50
|
+
def domain_transfer_it(domain_data)
|
51
|
+
RpcDriver.soapi.resellerDomainTransfer(Session.session,
|
52
|
+
domain_data[:domain], domain_data[:authinfo], domain_data[:hosting], domain_data[:offer], domain_data[:profile],
|
53
|
+
domain_data[:owo], domain_data[:owner], domain_data[:admin], domain_data[:tech],
|
54
|
+
domain_data[:billing], domain_data[:dns1], domain_data[:dns2], domain_data[:dns3],
|
55
|
+
domain_data[:dns4], domain_data[:dns5], domain_data[:legalRepresentantFirstName],
|
56
|
+
domain_data[:legalRepresentantLastName], domain_data[:legalNumber], domain_data[:vat],
|
57
|
+
domain_data[:birthDate], domain_data[:birthCity], domain_data[:birthDepartement],
|
58
|
+
domain_data[:birthCountry], domain_data[:nationality], OVH_SANDBOX
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
36
62
|
end
|
37
63
|
include Methods
|
38
64
|
extend Methods
|
data/ovh_soapi.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ovh_soapi}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Dumitru Ceban"]
|
9
|
-
s.date = %q{2010-
|
8
|
+
s.authors = ["Dumitru Ceban", "Beniamino Faggian"]
|
9
|
+
s.date = %q{2010-09-01}
|
10
10
|
s.description = %q{Ruby client for OVH Soapi.}
|
11
11
|
s.email = %q{awstin.at@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["README.md", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb", "lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb"]
|
13
13
|
s.files = ["Manifest", "README.md", "Rakefile", "lib/ovh_soapi.rb", "lib/ovh_soapi/email.rb", "lib/ovh_soapi/domains.rb", "lib/ovh_soapi/nic.rb", "lib/ovh_soapi/order.rb", "lib/ovh_soapi/reseller.rb", "lib/ovh_soapi/session.rb", "ovh_soapi.gemspec", "pkg/ovh_soapi-0.0.1.alpha.gem"]
|
14
|
-
s.homepage = %q{http://
|
14
|
+
s.homepage = %q{http://github.com/awstin/ovh-soapi}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ovh_soapi", "--main", "README.md"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{ovh_soapi}
|
metadata
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovh_soapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dumitru Ceban
|
14
|
+
- Beniamino Faggian
|
14
15
|
autorequire:
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-
|
19
|
+
date: 2010-09-01 00:00:00 +02:00
|
19
20
|
default_executable:
|
20
21
|
dependencies: []
|
21
22
|
|
@@ -48,7 +49,7 @@ files:
|
|
48
49
|
- ovh_soapi.gemspec
|
49
50
|
- pkg/ovh_soapi-0.0.1.alpha.gem
|
50
51
|
has_rdoc: true
|
51
|
-
homepage: http://
|
52
|
+
homepage: http://github.com/awstin/ovh-soapi
|
52
53
|
licenses: []
|
53
54
|
|
54
55
|
post_install_message:
|