google-api-client 0.46.0 → 0.46.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
- data/generated/google/apis/admob_v1.rb +3 -2
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +31 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +2 -5
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +231 -1
- data/generated/google/apis/apigee_v1/representations.rb +87 -0
- data/generated/google/apis/apigee_v1/service.rb +201 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
- data/generated/google/apis/cloudshell_v1/service.rb +177 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1/service.rb +37 -35
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +126 -21
- data/generated/google/apis/compute_alpha/representations.rb +7 -0
- data/generated/google/apis/compute_alpha/service.rb +62 -3
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +83 -19
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +3 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +28 -8
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +3 -3
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +99 -0
- data/generated/google/apis/content_v2_1/representations.rb +47 -0
- data/generated/google/apis/content_v2_1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1/service.rb +54 -4
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +66 -35
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +29 -13
- data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +13 -10
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/service.rb +10 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/service.rb +10 -10
- data/generated/google/apis/documentai_v1beta3.rb +36 -0
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/fitness_v1.rb +13 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +116 -289
- data/generated/google/apis/healthcare_v1beta1/representations.rb +45 -81
- data/generated/google/apis/healthcare_v1beta1/service.rb +65 -61
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +48 -0
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/oauth2_v2.rb +40 -0
- data/generated/google/apis/oauth2_v2/classes.rb +165 -0
- data/generated/google/apis/oauth2_v2/representations.rb +68 -0
- data/generated/google/apis/oauth2_v2/service.rb +158 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +3 -2
- data/generated/google/apis/people_v1/service.rb +4 -4
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +55 -94
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +5 -2
- data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +4 -10
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +1 -4
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +49 -5
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +17 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +12 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +5 -2
- data/generated/google/apis/sts_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +10 -9
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +66 -70
- data/generated/google/apis/sts_v1beta/service.rb +2 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +241 -0
- data/generated/google/apis/workflows_v1beta.rb +3 -2
- data/generated/google/apis/workflows_v1beta/service.rb +2 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -0,0 +1,170 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module BillingbudgetsV1
|
24
|
+
|
25
|
+
class GoogleCloudBillingBudgetsV1Budget
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleCloudBillingBudgetsV1BudgetAmount
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleCloudBillingBudgetsV1Filter
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleCloudBillingBudgetsV1LastPeriodAmount
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GoogleCloudBillingBudgetsV1ListBudgetsResponse
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GoogleCloudBillingBudgetsV1NotificationsRule
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleCloudBillingBudgetsV1ThresholdRule
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleProtobufEmpty
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleTypeMoney
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudBillingBudgetsV1Budget
|
80
|
+
# @private
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
property :amount, as: 'amount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount::Representation
|
83
|
+
|
84
|
+
property :budget_filter, as: 'budgetFilter', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter::Representation
|
85
|
+
|
86
|
+
property :display_name, as: 'displayName'
|
87
|
+
property :etag, as: 'etag'
|
88
|
+
property :name, as: 'name'
|
89
|
+
property :notifications_rule, as: 'notificationsRule', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule::Representation
|
90
|
+
|
91
|
+
collection :threshold_rules, as: 'thresholdRules', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule::Representation
|
92
|
+
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
class GoogleCloudBillingBudgetsV1BudgetAmount
|
97
|
+
# @private
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
99
|
+
property :last_period_amount, as: 'lastPeriodAmount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount::Representation
|
100
|
+
|
101
|
+
property :specified_amount, as: 'specifiedAmount', class: Google::Apis::BillingbudgetsV1::GoogleTypeMoney, decorator: Google::Apis::BillingbudgetsV1::GoogleTypeMoney::Representation
|
102
|
+
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
class GoogleCloudBillingBudgetsV1Filter
|
107
|
+
# @private
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
109
|
+
property :credit_types_treatment, as: 'creditTypesTreatment'
|
110
|
+
hash :labels, as: 'labels', :class => Array do
|
111
|
+
include Representable::JSON::Collection
|
112
|
+
items
|
113
|
+
end
|
114
|
+
|
115
|
+
collection :projects, as: 'projects'
|
116
|
+
collection :services, as: 'services'
|
117
|
+
collection :subaccounts, as: 'subaccounts'
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleCloudBillingBudgetsV1LastPeriodAmount
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class GoogleCloudBillingBudgetsV1ListBudgetsResponse
|
128
|
+
# @private
|
129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
+
collection :budgets, as: 'budgets', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
131
|
+
|
132
|
+
property :next_page_token, as: 'nextPageToken'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class GoogleCloudBillingBudgetsV1NotificationsRule
|
137
|
+
# @private
|
138
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
139
|
+
property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients'
|
140
|
+
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
|
141
|
+
property :pubsub_topic, as: 'pubsubTopic'
|
142
|
+
property :schema_version, as: 'schemaVersion'
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
class GoogleCloudBillingBudgetsV1ThresholdRule
|
147
|
+
# @private
|
148
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
149
|
+
property :spend_basis, as: 'spendBasis'
|
150
|
+
property :threshold_percent, as: 'thresholdPercent'
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class GoogleProtobufEmpty
|
155
|
+
# @private
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class GoogleTypeMoney
|
161
|
+
# @private
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
+
property :currency_code, as: 'currencyCode'
|
164
|
+
property :nanos, as: 'nanos'
|
165
|
+
property :units, :numeric_string => true, as: 'units'
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
@@ -0,0 +1,249 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module BillingbudgetsV1
|
23
|
+
# Cloud Billing Budget API
|
24
|
+
#
|
25
|
+
# The Cloud Billing Budget API stores Cloud Billing budgets, which define a
|
26
|
+
# budget plan and the rules to execute as spend is tracked against that plan.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/billingbudgets_v1'
|
30
|
+
#
|
31
|
+
# Billingbudgets = Google::Apis::BillingbudgetsV1 # Alias the module
|
32
|
+
# service = Billingbudgets::CloudBillingBudgetService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
35
|
+
class CloudBillingBudgetService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://billingbudgets.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/
|
52
|
+
# quotas) for more information on the limits of the number of budgets you can
|
53
|
+
# create.
|
54
|
+
# @param [String] parent
|
55
|
+
# Required. The name of the billing account to create the budget in. Values are
|
56
|
+
# of the form `billingAccounts/`billingAccountId``.
|
57
|
+
# @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def create_billing_account_budget(parent, google_cloud_billing_budgets_v1_budget_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v1/{+parent}/budgets', options)
|
77
|
+
command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
78
|
+
command.request_object = google_cloud_billing_budgets_v1_budget_object
|
79
|
+
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
80
|
+
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
|
81
|
+
command.params['parent'] = parent unless parent.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Deletes a budget. Returns successfully if already deleted.
|
88
|
+
# @param [String] name
|
89
|
+
# Required. Name of the budget to delete. Values are of the form `
|
90
|
+
# billingAccounts/`billingAccountId`/budgets/`budgetId``.
|
91
|
+
# @param [String] fields
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
93
|
+
# @param [String] quota_user
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
97
|
+
# Request-specific options
|
98
|
+
#
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
100
|
+
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty] parsed result object
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
102
|
+
#
|
103
|
+
# @return [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty]
|
104
|
+
#
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
+
def delete_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
|
109
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
110
|
+
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty::Representation
|
111
|
+
command.response_class = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty
|
112
|
+
command.params['name'] = name unless name.nil?
|
113
|
+
command.query['fields'] = fields unless fields.nil?
|
114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
|
+
execute_or_queue_command(command, &block)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Returns a budget. WARNING: There are some fields exposed on the Google Cloud
|
119
|
+
# Console that aren't available on this API. When reading from the API, you will
|
120
|
+
# not see these fields in the return value, though they may have been set in the
|
121
|
+
# Cloud Console.
|
122
|
+
# @param [String] name
|
123
|
+
# Required. Name of budget to get. Values are of the form `billingAccounts/`
|
124
|
+
# billingAccountId`/budgets/`budgetId``.
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def get_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
145
|
+
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['fields'] = fields unless fields.nil?
|
148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
149
|
+
execute_or_queue_command(command, &block)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns a list of budgets for a billing account. WARNING: There are some
|
153
|
+
# fields exposed on the Google Cloud Console that aren't available on this API.
|
154
|
+
# When reading from the API, you will not see these fields in the return value,
|
155
|
+
# though they may have been set in the Cloud Console.
|
156
|
+
# @param [String] parent
|
157
|
+
# Required. Name of billing account to list budgets under. Values are of the
|
158
|
+
# form `billingAccounts/`billingAccountId``.
|
159
|
+
# @param [Fixnum] page_size
|
160
|
+
# Optional. The maximum number of budgets to return per page. The default and
|
161
|
+
# maximum value are 100.
|
162
|
+
# @param [String] page_token
|
163
|
+
# Optional. The value returned by the last `ListBudgetsResponse` which indicates
|
164
|
+
# that this is a continuation of a prior `ListBudgets` call, and that the system
|
165
|
+
# should return the next page of data.
|
166
|
+
# @param [String] fields
|
167
|
+
# Selector specifying which fields to include in a partial response.
|
168
|
+
# @param [String] quota_user
|
169
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
170
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
171
|
+
# @param [Google::Apis::RequestOptions] options
|
172
|
+
# Request-specific options
|
173
|
+
#
|
174
|
+
# @yield [result, err] Result & error if block supplied
|
175
|
+
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse] parsed result object
|
176
|
+
# @yieldparam err [StandardError] error object if request failed
|
177
|
+
#
|
178
|
+
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse]
|
179
|
+
#
|
180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
+
def list_billing_account_budgets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
184
|
+
command = make_simple_command(:get, 'v1/{+parent}/budgets', options)
|
185
|
+
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse::Representation
|
186
|
+
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse
|
187
|
+
command.params['parent'] = parent unless parent.nil?
|
188
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
189
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
190
|
+
command.query['fields'] = fields unless fields.nil?
|
191
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
192
|
+
execute_or_queue_command(command, &block)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Updates a budget and returns the updated budget. WARNING: There are some
|
196
|
+
# fields exposed on the Google Cloud Console that aren't available on this API.
|
197
|
+
# Budget fields that are not exposed in this API will not be changed by this
|
198
|
+
# method.
|
199
|
+
# @param [String] name
|
200
|
+
# Output only. Resource name of the budget. The resource name implies the scope
|
201
|
+
# of a budget. Values are of the form `billingAccounts/`billingAccountId`/
|
202
|
+
# budgets/`budgetId``.
|
203
|
+
# @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object
|
204
|
+
# @param [String] update_mask
|
205
|
+
# Optional. Indicates which fields in the provided budget to update. Read-only
|
206
|
+
# fields (such as `name`) cannot be changed. If this is not provided, then only
|
207
|
+
# fields with non-default values from the request are updated. See https://
|
208
|
+
# developers.google.com/protocol-buffers/docs/proto3#default for more details
|
209
|
+
# about default values.
|
210
|
+
# @param [String] fields
|
211
|
+
# Selector specifying which fields to include in a partial response.
|
212
|
+
# @param [String] quota_user
|
213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
+
# @param [Google::Apis::RequestOptions] options
|
216
|
+
# Request-specific options
|
217
|
+
#
|
218
|
+
# @yield [result, err] Result & error if block supplied
|
219
|
+
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
|
220
|
+
# @yieldparam err [StandardError] error object if request failed
|
221
|
+
#
|
222
|
+
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
|
223
|
+
#
|
224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
+
def patch_billing_account_budget(name, google_cloud_billing_budgets_v1_budget_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
229
|
+
command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
230
|
+
command.request_object = google_cloud_billing_budgets_v1_budget_object
|
231
|
+
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
|
232
|
+
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
|
233
|
+
command.params['name'] = name unless name.nil?
|
234
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
protected
|
241
|
+
|
242
|
+
def apply_command_defaults(command)
|
243
|
+
command.query['key'] = key unless key.nil?
|
244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
26
26
|
module CloudassetV1p4beta1
|
27
27
|
VERSION = 'V1p4beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201003'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -254,9 +254,9 @@ module Google
|
|
254
254
|
include Google::Apis::Core::Hashable
|
255
255
|
|
256
256
|
# Required. The uri of the Cloud Storage object. It's the same uri that is used
|
257
|
-
# by gsutil. For example: "gs://bucket_name/object_name". See [
|
258
|
-
#
|
259
|
-
#
|
257
|
+
# by gsutil. For example: "gs://bucket_name/object_name". See [Quickstart: Using
|
258
|
+
# the gsutil tool] (https://cloud.google.com/storage/docs/quickstart-gsutil) for
|
259
|
+
# examples.
|
260
260
|
# Corresponds to the JSON property `uri`
|
261
261
|
# @return [String]
|
262
262
|
attr_accessor :uri
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/cloud-search/docs/guides/
|
27
27
|
module CloudsearchV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200929'
|
30
30
|
|
31
31
|
# Index and serve your organization's data with Cloud Search
|
32
32
|
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|