cloudability 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +26 -18
- data/cloudability.gemspec +1 -1
- data/lib/cloudability/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0818af0c42ece91d70ee6e83c9a4e1f6f1b0620
|
|
4
|
+
data.tar.gz: e39407c91bee9e7546100cd11f97034c20da121b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03641553e0c9803deafe49655c9e3a2e9362e096e45803f333b9fe3bfa7b0fe87b609382d6a250af753bfbd9f56fe2f9751cf02cd5d7d25feea5e33b87fb96fe
|
|
7
|
+
data.tar.gz: 611214e52136937a2523216589474741d159b15bc7d28fcb443d0353b37be0ce1d508247f3a6ad1f142f9461d0ddcaa4829251c8104fe8920020956fd0b24d97
|
data/README.md
CHANGED
|
@@ -34,6 +34,7 @@ Or install it yourself as:
|
|
|
34
34
|
* Billing Reports
|
|
35
35
|
* Cost Reporrts
|
|
36
36
|
* Usage Reports
|
|
37
|
+
* Users
|
|
37
38
|
|
|
38
39
|
You will need to generate an API token to use the API. Read more [here](https://support.cloudability.com/hc/en-us/articles/204308448-API-setup-and-documentation).
|
|
39
40
|
|
|
@@ -41,44 +42,51 @@ Feel free to shoot me an email at colby@aley.me if you have any questions or nee
|
|
|
41
42
|
|
|
42
43
|
### Examples
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
client = Cloudability::Client.new(auth_token: 'auth_token')
|
|
46
|
+
|
|
47
|
+
#### Users
|
|
48
|
+
|
|
49
|
+
client.users # List users in your organization
|
|
50
|
+
client.add_user # Add a user to your organization
|
|
51
|
+
client.update_user # Update a user in your organization
|
|
52
|
+
client.delete_user # Delete a user in your organization.
|
|
45
53
|
|
|
46
54
|
#### Credentials
|
|
47
55
|
|
|
48
|
-
credentials =
|
|
56
|
+
credentials = client.credentials # Get all of your connected credentials
|
|
49
57
|
puts first_account.last.account_created_at
|
|
50
58
|
puts credentials.first.account_identifier
|
|
51
59
|
|
|
52
60
|
#### Organizations
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
client.invite_user('colby@cloudability.com', name: 'Colby Aley') # Invite a user to your org
|
|
63
|
+
client.delete_invite(1) # Delete invite 1
|
|
64
|
+
client.update_invite(103,1) # Update invitation 103 to have role id 1
|
|
65
|
+
client.my_organization # Get info about your org
|
|
66
|
+
client.organization_invitations # List invitations for your org
|
|
67
|
+
client.organization_roles # List roles for your org
|
|
60
68
|
|
|
61
69
|
#### Budgets
|
|
62
70
|
|
|
63
|
-
|
|
71
|
+
client.budgets # List your current budgets
|
|
64
72
|
|
|
65
73
|
#### Billing Reports
|
|
66
74
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
client.billing_report # Generate a report of your spend
|
|
76
|
+
client.billing_report(vendor: 'Amazon', by: 'period')
|
|
77
|
+
client.billing_report(by: 'vendor')
|
|
70
78
|
|
|
71
79
|
#### Cost Reports
|
|
72
80
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
client.cost_reports # List cost reports
|
|
82
|
+
client.cost_measures # List measures supported by server
|
|
83
|
+
client.cost_filters # List filters supported by the server
|
|
76
84
|
|
|
77
85
|
#### Usage Reports
|
|
78
86
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
client.usage_reports # List usage reports
|
|
88
|
+
client.usage_measures # List measures supported by server
|
|
89
|
+
client.usage_filters # List filters supported by the server
|
|
82
90
|
|
|
83
91
|
## Contributing
|
|
84
92
|
|
data/cloudability.gemspec
CHANGED
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
|
17
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
gem.require_paths = ["lib"]
|
|
20
|
-
gem.add_dependency('httparty', "
|
|
20
|
+
gem.add_dependency('httparty', ">= 0.9.0")
|
|
21
21
|
gem.add_dependency('hashie')
|
|
22
22
|
|
|
23
23
|
gem.add_development_dependency('rspec')
|
data/lib/cloudability/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudability
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Colby Aley
|
|
@@ -9,20 +9,20 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-11-
|
|
12
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- - "
|
|
18
|
+
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: 0.9.0
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- - "
|
|
25
|
+
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: 0.9.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|