google-cloud-billing-budgets-v1beta1 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/billing/budgets/v1beta1/budget_service/client.rb +5 -17
- data/lib/google/cloud/billing/budgets/v1beta1/budget_service_services_pb.rb +1 -1
- data/lib/google/cloud/billing/budgets/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/money.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da1c6e522919f540f03478792a3fb9db1205782459a58d5943d48905daa1f5e
|
4
|
+
data.tar.gz: 1471a2a295b72ce71dd908bdda9706dca141cc8c132a55c98e8c9b8e328575fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8087e67aad748be0993aff6bcd41da358fc6b814c0a80c7c2f0b8d7266a2c04d940ee6c073753b96c684dcfb57aecca738a4e0a81c793a02361580cc93d67b7
|
7
|
+
data.tar.gz: 54a15527a75427d488c9ea3fbd774e065c44fd6a545948dbe76a29157cfa72ccabd89ef8932cab0aed836c2a742e9ab8de5bf02c11870a69502bc42694cec8a7
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-billing-budgets-v1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `BILLING_BUDGETS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `BILLING_BUDGETS_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/billing/budgets/v1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/billing/budgets/v1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new d
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/billing/budgets/v1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/billing/budgets/v1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Billing::Budgets::V1beta1::CreateBudgetRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_budget request
|
38
38
|
```
|
39
39
|
|
@@ -71,34 +71,22 @@ module Google
|
|
71
71
|
|
72
72
|
default_config.rpcs.update_budget.timeout = 60.0
|
73
73
|
default_config.rpcs.update_budget.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [4, 14]
|
74
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
75
|
}
|
79
76
|
|
80
77
|
default_config.rpcs.get_budget.timeout = 60.0
|
81
78
|
default_config.rpcs.get_budget.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [4, 14]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.list_budgets.timeout = 60.0
|
89
83
|
default_config.rpcs.list_budgets.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config.rpcs.delete_budget.timeout = 60.0
|
97
88
|
default_config.rpcs.delete_budget.retry_policy = {
|
98
|
-
initial_delay: 0.1,
|
99
|
-
max_delay: 60.0,
|
100
|
-
multiplier: 1.3,
|
101
|
-
retry_codes: [4, 14]
|
89
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
102
90
|
}
|
103
91
|
|
104
92
|
default_config
|
@@ -169,7 +157,7 @@ module Google
|
|
169
157
|
!@config.endpoint.split(".").first.include?("-")
|
170
158
|
credentials ||= Credentials.default scope: @config.scope,
|
171
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
172
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
160
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
173
161
|
credentials = Credentials.new credentials, scope: @config.scope
|
174
162
|
end
|
175
163
|
@quota_project_id = @config.quota_project
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -19,28 +19,31 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a whole or partial calendar date,
|
23
|
-
# and time zone are either specified elsewhere or are
|
24
|
-
# is relative to the
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
25
|
+
# following:
|
25
26
|
#
|
26
|
-
# * A full date, with non-zero year, month and day values
|
27
|
-
# * A month and day value, with a zero year,
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
28
29
|
# * A year on its own, with zero month and day values
|
29
|
-
# * A year and month value, with a zero day,
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
31
|
+
# date
|
30
32
|
#
|
31
|
-
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
33
|
+
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
34
|
+
# `google.protobuf.Timestamp`.
|
32
35
|
# @!attribute [rw] year
|
33
36
|
# @return [::Integer]
|
34
|
-
# Year of date. Must be from 1 to 9999, or 0
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
35
38
|
# a year.
|
36
39
|
# @!attribute [rw] month
|
37
40
|
# @return [::Integer]
|
38
|
-
# Month of year. Must be from 1 to 12, or 0
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
39
42
|
# month and day.
|
40
43
|
# @!attribute [rw] day
|
41
44
|
# @return [::Integer]
|
42
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
43
|
-
#
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
44
47
|
# significant.
|
45
48
|
class Date
|
46
49
|
include ::Google::Protobuf::MessageExts
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# Represents an amount of money with its currency type.
|
23
23
|
# @!attribute [rw] currency_code
|
24
24
|
# @return [::String]
|
25
|
-
# The
|
25
|
+
# The three-letter currency code defined in ISO 4217.
|
26
26
|
# @!attribute [rw] units
|
27
27
|
# @return [::Integer]
|
28
28
|
# The whole units of the amount.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-billing-budgets-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.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: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|