sfrest 0.0.45 → 0.0.46

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
  SHA256:
3
- metadata.gz: 51d36dbe0a29aba983d022e9994d5ae195c43091c2ba789cb14fd629cc6165ed
4
- data.tar.gz: 07b3f754680dfa15977ecbadb44becee43aa26cc0faf7bdeb524bfeb315b63bb
3
+ metadata.gz: a7c3089a14ab003da825c324f48c4e5566e1aed291697620497356a73dd1570d
4
+ data.tar.gz: 1435a6839f32c63347f98c7b7a0e287d9505242cd5b7a9b0aefdfa7bae4c5c9b
5
5
  SHA512:
6
- metadata.gz: b8c55a2e20dc000a7c428a2e5687cd3017af74b21879dda024e941e7c66c249bac3fcadb6781c3b5848b851a375bd14b4e8835818ca16cbbe433c031d96c3dfe
7
- data.tar.gz: b1e43ff4361ae815f98642451cf7aaefdb902f12d16ea830932c8677a259bb3bd98a3ea367d3db3110298af76e33b56837be3f0b2355b73305aafe3570a51005
6
+ metadata.gz: 840a9efdf45a6e4fd89c7961a58200d3af33a4e8dac09cb6ba3189f5a963cc33ee96979146a7702880034d98a448f4d1a9fc578f656c908ac0d0a34f7e8ce184
7
+ data.tar.gz: ac0f053e2777687b0580b972ef10d83e8bbc3dbb7988b3915043111701773c70e8df5189f958bc8813ac078bb2d7689b38e6d8563f3afd84331091b08abfc669
@@ -20,6 +20,19 @@ module SFRest
20
20
  @conn.get(current_path)
21
21
  end
22
22
 
23
+ # Get all domains of all sites known to site factory.
24
+ # @param [Hash] opts - 'limit' and 'page' are supported for pagination.
25
+ # @return [Hash] {
26
+ # "count": 111,
27
+ # "domains": [
28
+ # {'nid' => 2, 'domain' => 'foobar.com', 'type' => 'simple', 'readonly' => true},
29
+ # {'nid' => 6, 'domain' => 'zoofoo.com', 'type' => 'customerStandard', 'readonly' => false}
30
+ # ]}
31
+ def get_all(**opts)
32
+ current_path = "/api/v1/domains?#{URI.encode_www_form(opts)}"
33
+ @conn.get(current_path)
34
+ end
35
+
23
36
  # Get the custom domains on a node
24
37
  # @param [Integer] node_id The id of the node.
25
38
  #
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SFRest
4
4
  # Just tracks the version of sfrest.
5
- VERSION = '0.0.45'
5
+ VERSION = '0.0.46'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - ACSF Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon