qingstor-sdk 2.2.4 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,28 +30,34 @@ module QingStor
30
30
 
31
31
  # list_buckets: Retrieve the bucket list.
32
32
  # Documentation URL: https://docs.qingcloud.com/qingstor/api/service/get.html
33
- def list_buckets(location: '')
34
- request = list_buckets_request location: location
33
+ def list_buckets(limit: nil,
34
+ offset: nil, location: '')
35
+ request = list_buckets_request limit: limit,
36
+ offset: offset, location: location
35
37
  request.send
36
38
  end
37
39
 
38
- def list_buckets_request(location: '')
40
+ def list_buckets_request(limit: nil,
41
+ offset: nil, location: '')
39
42
  input = {
40
43
  config: config,
41
44
  api_name: 'Get Service',
42
45
  request_method: 'GET',
43
46
  request_uri: '/',
44
47
  request_params: {
48
+ 'limit' => limit,
49
+ 'offset' => offset
45
50
  },
46
51
  request_headers: {
47
- 'Location' => location,
52
+ 'Location' => location
48
53
  },
49
54
  request_elements: {
50
55
  },
51
56
  request_body: nil,
57
+
52
58
  status_code: [
53
- 200, # OK
54
- ],
59
+ 200
60
+ ]
55
61
  }
56
62
 
57
63
  list_buckets_input_validate input
@@ -69,7 +75,7 @@ module QingStor
69
75
  def bucket(bucket_name, zone)
70
76
  properties = {
71
77
  'bucket-name' => bucket_name,
72
- 'zone' => zone,
78
+ 'zone' => zone
73
79
  }
74
80
  Bucket.new(config, properties)
75
81
  end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module QingStor
18
18
  module SDK
19
- VERSION = '2.2.4'.freeze
19
+ VERSION = '2.3.0'.freeze
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qingstor-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yunify SDK Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2020-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,33 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.2.7
27
27
  - !ruby/object:Gem::Dependency
28
- name: net-http-persistent
28
+ name: mimemagic
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.0
33
+ version: 0.3.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.0
40
+ version: 0.3.2
41
41
  - !ruby/object:Gem::Dependency
42
- name: mimemagic
42
+ name: net-http-persistent
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.2
47
+ version: 3.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.2
54
+ version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,75 +67,75 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.10.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: cucumber
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 11.3.0
75
+ version: 2.4.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 11.3.0
82
+ version: 2.4.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.5.0
89
+ version: 11.3.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.5.0
96
+ version: 11.3.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: simplecov
98
+ name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.16.1
103
+ version: 3.5.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.16.1
110
+ version: 3.5.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.49.0
117
+ version: 0.77.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.49.0
124
+ version: 0.77.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: cucumber
126
+ name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.4.0
131
+ version: 0.16.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.4.0
138
+ version: 0.16.1
139
139
  description: The official QingStor SDK for Ruby programming language.
140
140
  email:
141
141
  - sdk_group@yunify.com
@@ -181,8 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubyforge_project:
185
- rubygems_version: 2.7.6
184
+ rubygems_version: 3.0.8
186
185
  signing_key:
187
186
  specification_version: 4
188
187
  summary: SDK for QingStor