google-cloud-billing 0.1.0 → 0.1.1

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: 11a59099ca8b230a8410edba49daa2e679b1dee30bfafea2926b66469f28251c
4
- data.tar.gz: 6f23007fafa84090a46a49d474f04083667da626f3f896200d00d1e8092272ca
3
+ metadata.gz: 9b3d83573839a601872fb1997608a55f68819a7c39debfe889c72b93355063a2
4
+ data.tar.gz: b12f1bead8f7b75943e4b5e2a965c12bf352e83c31cc396809554eac83009175
5
5
  SHA512:
6
- metadata.gz: 61e7f198f886584edb7cba6543acad1ad4b321d219897840e9dfa9d844b71f9982e00d43af805467290dc8ec6a2ce440c2e7cac1c717138c0b11658ecca9a853
7
- data.tar.gz: 46d732b5a455cf555a1b8e4a2ec13323a688b7f6c1e7f4ac5d68e47efd260015eae016a0083eac0c09df7e710d94dcb97f80dd80d5b75f5f9e63df377ef0cf1e
6
+ metadata.gz: e8eb55c753286053036d64e55b138d8ec7dcc919ffdf715b0025f613e0afbe3a51fca40099264f11e69ca8fcf1e79bb681de47bfa3d921273fdeb2e38785e12c
7
+ data.tar.gz: e14be566bef92b85c19e7a7e43d98076f8025a5d841d3f663645abbd2cdd25245ff2780fce5ee37f9fb39d1af4d3eee1a10b4445a2e20dcfafbde6e37b4b5f27
data/AUTHENTICATION.md CHANGED
@@ -26,7 +26,7 @@ export BILLING_CREDENTIALS=path/to/keyfile.json
26
26
  ```ruby
27
27
  require "google/cloud/billing"
28
28
 
29
- client = Google::Cloud::Billing.new
29
+ client = Google::Cloud::Billing.cloud_billing_service
30
30
  ```
31
31
 
32
32
  ## Credential Lookup
@@ -49,7 +49,7 @@ code.
49
49
 
50
50
  When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
51
51
  Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
52
- (GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
52
+ (GCF) and Cloud Run, the **Credentials** are discovered
53
53
  automatically. Code should be written as if already authenticated.
54
54
 
55
55
  ### Environment Variables
@@ -63,7 +63,8 @@ environment variable, or the **Credentials JSON** itself can be stored for
63
63
  environments such as Docker containers where writing files is difficult or not
64
64
  encouraged.
65
65
 
66
- The environment variables that google-cloud-billing checks for credentials are configured on `Google::Cloud::Billing::V1::CloudBilling::Credentials`:
66
+ The environment variables that google-cloud-billing checks for credentials are
67
+ configured on `Google::Cloud::Billing::V1::CloudBilling::Credentials`:
67
68
 
68
69
  1. `BILLING_CREDENTIALS` - Path to JSON file, or JSON contents
69
70
  2. `BILLING_KEYFILE` - Path to JSON file, or JSON contents
@@ -76,17 +77,18 @@ require "google/cloud/billing"
76
77
 
77
78
  ENV["BILLING_CREDENTIALS"] = "path/to/keyfile.json"
78
79
 
79
- client = Google::Cloud::Billing.new
80
+ client = Google::Cloud::Billing.cloud_billing_service
80
81
  ```
81
82
 
82
83
  ### Configuration
83
84
 
84
- The **Credentials JSON** can be configured instead of placing them in environment variables. Either on an individual client initialization:
85
+ The **Credentials JSON** can be configured instead of placing them in
86
+ environment variables. Either on an individual client initialization:
85
87
 
86
88
  ```ruby
87
89
  require "google/cloud/billing"
88
90
 
89
- client = Google::Cloud::Billing.new do |config|
91
+ client = Google::Cloud::Billing.cloud_billing_service do |config|
90
92
  config.credentials = "path/to/keyfile.json"
91
93
  end
92
94
  ```
@@ -100,7 +102,7 @@ Google::Cloud::Billing.configure do |config|
100
102
  config.credentials = "path/to/keyfile.json"
101
103
  end
102
104
 
103
- client = Google::Cloud::Billing.new
105
+ client = Google::Cloud::Billing.cloud_billing_service
104
106
  ```
105
107
 
106
108
  ### Cloud SDK
@@ -138,15 +140,15 @@ environments](#google-cloud-platform-environments), you need a Google
138
140
  Developers service account.
139
141
 
140
142
  1. Visit the [Google Developers Console][dev-console].
141
- 1. Create a new project or click on an existing project.
142
- 1. Activate the slide-out navigation tray and select **API Manager**. From
143
+ 2. Create a new project or click on an existing project.
144
+ 3. Activate the slide-out navigation tray and select **API Manager**. From
143
145
  here, you will enable the APIs that your application requires.
144
146
 
145
147
  ![Enable the APIs that your application requires][enable-apis]
146
148
 
147
149
  *Note: You may need to enable billing in order to use these services.*
148
150
 
149
- 1. Select **Credentials** from the side navigation.
151
+ 4. Select **Credentials** from the side navigation.
150
152
 
151
153
  You should see a screen like one of the following.
152
154
 
@@ -165,8 +167,3 @@ Developers service account.
165
167
 
166
168
  The key file you download will be used by this library to authenticate API
167
169
  requests and should be stored in a secure location.
168
-
169
- ## Troubleshooting
170
-
171
- If you're having trouble authenticating you can ask for help by following the
172
- {file:TROUBLESHOOTING.md Troubleshooting Guide}.
@@ -14,9 +14,8 @@
14
14
 
15
15
 
16
16
  ##
17
- # This file is here to be autorequired by bundler, so that the .langage and
18
- # #langage methods can be available, but the library and all dependencies
19
- # won't be loaded until required and used.
17
+ # This file is here to be autorequired by bundler, but the library and all
18
+ # dependencies won't be loaded until required and used.
20
19
 
21
20
 
22
21
  gem "google-cloud-core"
@@ -24,7 +23,7 @@ require "google/cloud" unless defined? Google::Cloud.new
24
23
  require "google/cloud/config"
25
24
  require "googleauth"
26
25
 
27
- # Set the default langage configuration
26
+ # Set the default configuration
28
27
  Google::Cloud.configure.add_config! :billing do |config|
29
28
  config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
30
29
  config.add_field! :lib_name, nil, match: String
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Billing
19
- VERSION = "0.1.0".freeze
19
+ VERSION = "0.1.1".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-billing-v1