bwapi 11.0.1.pre.607 → 11.0.1.pre.609
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 +8 -8
- data/lib/bwapi/client/admin.rb +2 -0
- data/lib/bwapi/client/admin/projects.rb +26 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Njg3N2U4Yzg2MzgwNGQwMzQ3NmFhNjBjYzI3ZDM1ZTQ4MGE2NmY2OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjI1ZDYxZThkZDEyNThhOTFjYmZiZWJlZDYyOWUzNjdjZGU0YTU0Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk0MWJhMTg4M2JmZTQ3N2RkZDkwYTc0NWI4YTJkZTIzNGI2YzFmNTZkNWM2
|
10
|
+
MmQ0YWI2NzZmMDlhODM3YTI5MTNjM2Y3NTNlOGE5ZmQ1MjE4ZGM3MWY3NzIz
|
11
|
+
ZTQ1ZGE2OTk0OTI0MDhlYTQwOTcxYTZkYTE0OTc2M2ViMmU2ZjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzlkNzBhMTM4YTMyNzA2NzM0YTQ2NmU4YmIxMGVjY2Y5NDQ3MzczZWY0Nzhj
|
14
|
+
ZjJiYWRjODNjNmVkOGQ2ZDkyZDllNTM1Nzc0ZTJmMmQ4N2Q3ZmRhNjI2OTc4
|
15
|
+
NzE3YTRlMjBmYzM0MTQ1ZjdhMGQwMmU3YTZlODFjODZjMjFkYTA=
|
data/lib/bwapi/client/admin.rb
CHANGED
@@ -5,6 +5,7 @@ require 'bwapi/client/admin/reseller'
|
|
5
5
|
require 'bwapi/client/admin/search'
|
6
6
|
require 'bwapi/client/admin/client'
|
7
7
|
require 'bwapi/client/admin/pricing_upgrades'
|
8
|
+
require 'bwapi/client/admin/projects'
|
8
9
|
|
9
10
|
module BWAPI
|
10
11
|
class Client
|
@@ -42,6 +43,7 @@ module BWAPI
|
|
42
43
|
include BWAPI::Client::Admin::Reseller
|
43
44
|
include BWAPI::Client::Admin::Search
|
44
45
|
include BWAPI::Client::Admin::PricingUpgrades
|
46
|
+
include BWAPI::Client::Admin::Projects
|
45
47
|
end
|
46
48
|
end
|
47
49
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Admin
|
4
|
+
# Become module for admin/projects endpoint
|
5
|
+
module Projects
|
6
|
+
# Lock an existing query in project
|
7
|
+
#
|
8
|
+
# @param project_id [Integer] Id of project
|
9
|
+
# @param query_id [Integer] Id of query
|
10
|
+
# @return [Hash] Locked query
|
11
|
+
def lock_query(project_id, query_id)
|
12
|
+
post "admin/projects/#{project_id}/queries/#{query_id}/lock"
|
13
|
+
end
|
14
|
+
|
15
|
+
# Unlock an existing query in project
|
16
|
+
#
|
17
|
+
# @param project_id [Integer] Id of project
|
18
|
+
# @param query_id [Integer] Id of query
|
19
|
+
# @return [Hash] Unlocked query
|
20
|
+
def unlock_query(project_id, query_id)
|
21
|
+
delete "admin/projects/#{project_id}/queries/#{query_id}/lock"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.1.pre.
|
4
|
+
version: 11.0.1.pre.609
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/bwapi/client/admin/clients/users/sharing.rb
|
153
153
|
- lib/bwapi/client/admin/demographics.rb
|
154
154
|
- lib/bwapi/client/admin/pricing_upgrades.rb
|
155
|
+
- lib/bwapi/client/admin/projects.rb
|
155
156
|
- lib/bwapi/client/admin/reseller.rb
|
156
157
|
- lib/bwapi/client/admin/search.rb
|
157
158
|
- lib/bwapi/client/aggregates.rb
|