yandex_domains 0.2.2 → 0.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 351128eebd099fcd64f7c110ab37dffaf2e12fa5
4
- data.tar.gz: ec00774f324cb180e94eddc4077c9df53e03aa93
3
+ metadata.gz: 40bb6d2ecfebe85272532b03c636931222dc519e
4
+ data.tar.gz: ad163eb9ea1f450d838bf99b393145ce011ac31c
5
5
  SHA512:
6
- metadata.gz: b817964f8b7d4b39939cb099f80b104841f285d5d186d0e2c619655940dcd614d428dfc6df6c8610e679aa26b46fdbe005ded58130489fdf8277a97014ef2aa0
7
- data.tar.gz: 7bde0a04eef9c8c5dccfbf0acd3063dca494eda7132b93ceefc6e1a88abfac3dbc652888bb2743ef3ab5b1b13f5f67e4538382e2f6a92e22ff5a6a741f155c4c
6
+ metadata.gz: 6f19fa079aa9af25ffb7a65ee58571902b3eb2669b2ecace0c53fd7e7b889e6adc9c485070b4c8c1e1b0d20f33d0f1178ac6257a35c1fdff8be1f9ae7a82c887
7
+ data.tar.gz: 09b5f19eef7380f1f146d54e690c95c049f15c605e16e302beec465029dd939d376d126eb1da1f0362421af3ac0e1356863e29746d095770b0cb0cbf9be91a74
@@ -44,7 +44,6 @@ module YandexDomains
44
44
  req.parsed_response
45
45
  end
46
46
 
47
-
48
47
  # Used for deleting a domain that was connected by a user. All the domain's mailboxes will also be deleted.
49
48
  # @param [String] domain
50
49
  # @return [Hash] Parsed Response
@@ -66,6 +65,30 @@ module YandexDomains
66
65
  req = self.class.post("/admin/domain/delete", {query: {domain: domain}})
67
66
  req.parsed_response
68
67
  end
68
+
69
+ # Used for setting the language of the email interface for the domain.
70
+ # @param [String] domain
71
+ # @param [String] country code
72
+ # @return [Hash] Parsed Response
73
+ # @example Example Usage
74
+ # client.delete('google.com)
75
+ # @example Return Hash if domain exists
76
+ # {
77
+ # "country": "en",
78
+ # "domain": "google.com",
79
+ # "success": "ok"
80
+ # }
81
+ # @example Return Hash if domain doesn't exist
82
+ # {
83
+ # "domain": "google.com",
84
+ # "success": "error",
85
+ # "error": "not_allowed"
86
+ # }
87
+ # @see https://tech.yandex.com/domain/doc/reference/domain-settings-set-country-docpage/
88
+ def set_country(domain, country)
89
+ req = self.class.post("/admin/domain/settings/set_country", {query: {domain: domain, country: country}})
90
+ req.parsed_response
91
+ end
69
92
  end
70
93
  end
71
94
  end
@@ -1,3 +1,3 @@
1
1
  module YandexDomains
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_domains
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Beydogan