google-cloud-billing 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5308627b4b3c0a88df8d248f7323c58461c9efc175df5e71fd87fcdc45ddd3b3
4
- data.tar.gz: 9821f6470e8766192bc5b2b69dc1d098d091b0bce2b6ba727842c74fcb0758b6
3
+ metadata.gz: 45499194a427cd5351994eea075cd704724381563172002913ab5189287fb674
4
+ data.tar.gz: ae5a294b364baa17e1b244b067a838885219d27fc0e65cc751a7e2fe3723278a
5
5
  SHA512:
6
- metadata.gz: df9529f12b3ec24daa02b53e88c98a42ad0bc699eed73b01a8f0dca107ecc55fe58b528861a7e137eb026e204a286cb3a77b961bd979d29795e5a63701829294
7
- data.tar.gz: ce8233e54d88fdc423b4bca1286d2066a0848ca4f28343d41fb9553e208cc4f9b6c5e723013e0e78737704dab84f5076eabe335bde66ff3eee0d80652223f2e1
6
+ metadata.gz: 7ac69eb9603b111438f04537c9bb241c61e68a114e48ae7f7606e45d6f13f9c9ac36bff6fb01dbc02241611a90a076edc3661179a4904bbc252dd60af4f5d8cd
7
+ data.tar.gz: 5ae8db42bc4715094b2a678df5f130e6e1f40bb6daff4f2de4529575c20f94782294f6b6e49e99c3582b318a831a408ee38dcc24b854a57a3fad9f6b49f31cbf
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-billing
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- `Google::Cloud::Billing::V1::CloudBilling::Credentials`):
67
+ `::Google::Cloud::Billing::V1::CloudBilling::Credentials`):
68
68
 
69
69
  1. `BILLING_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `BILLING_KEYFILE` - Path to JSON file, or JSON contents
@@ -16,4 +16,4 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google/cloud/billing"
19
+ require "google/cloud/billing" unless defined? Google::Cloud::Billing::VERSION
@@ -16,21 +16,26 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
19
23
  require "google/cloud/billing/version"
24
+
20
25
  require "googleauth"
21
26
  gem "google-cloud-core"
22
- require "google/cloud" unless defined? Google::Cloud.new
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
23
28
  require "google/cloud/config"
24
29
 
25
30
  # Set the default configuration
26
- Google::Cloud.configure.add_config! :billing do |config|
27
- config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
28
- config.add_field! :lib_name, nil, match: String
29
- config.add_field! :lib_version, nil, match: String
30
- config.add_field! :interceptors, nil, match: Array
31
- config.add_field! :timeout, nil, match: Numeric
32
- config.add_field! :metadata, nil, match: Hash
33
- config.add_field! :retry_policy, nil, match: [Hash, Proc]
31
+ ::Google::Cloud.configure.add_config! :billing do |config|
32
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
33
+ config.add_field! :lib_name, nil, match: ::String
34
+ config.add_field! :lib_version, nil, match: ::String
35
+ config.add_field! :interceptors, nil, match: ::Array
36
+ config.add_field! :timeout, nil, match: ::Numeric
37
+ config.add_field! :metadata, nil, match: ::Hash
38
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
34
39
  end
35
40
 
36
41
  module Google
@@ -51,7 +56,7 @@ module Google
51
56
  #
52
57
  # Retrieves GCP Console billing accounts and associates them with projects.
53
58
  #
54
- # @param version [String, Symbol] The API version to connect to. Optional.
59
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
55
60
  # Defaults to `:v1`.
56
61
  # @return [CloudBilling::Client] A client object for the specified version.
57
62
  #
@@ -83,7 +88,7 @@ module Google
83
88
  # Provides pricing information and metadata on Google Cloud Platform services
84
89
  # and SKUs.
85
90
  #
86
- # @param version [String, Symbol] The API version to connect to. Optional.
91
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
87
92
  # Defaults to `:v1`.
88
93
  # @return [CloudCatalog::Client] A client object for the specified version.
89
94
  #
@@ -124,12 +129,12 @@ module Google
124
129
  # * `:retry_codes` (*type:* `Array<String>`) -
125
130
  # The error codes that should trigger a retry.
126
131
  #
127
- # @return [Google::Cloud::Config] The default configuration used by this library
132
+ # @return [::Google::Cloud::Config] The default configuration used by this library
128
133
  #
129
134
  def self.configure
130
- yield Google::Cloud.configure.billing if block_given?
135
+ yield ::Google::Cloud.configure.billing if block_given?
131
136
 
132
- Google::Cloud.configure.billing
137
+ ::Google::Cloud.configure.billing
133
138
  end
134
139
  end
135
140
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Billing
19
- VERSION = "0.2.0".freeze
19
+ VERSION = "0.2.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.2.0
4
+ version: 0.2.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-04-13 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.10'
75
+ version: '5.14'
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: '5.10'
82
+ version: '5.14'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest-autotest
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '5.2'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '12.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '12.0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: redcarpet
127
141
  requirement: !ruby/object:Gem::Requirement