google-api-client 0.21.2 → 0.22.0
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/CHANGELOG.md +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +181 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +59 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +42 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +31 -0
- data/generated/google/apis/bigquery_v2/representations.rb +16 -0
- data/generated/google/apis/bigquery_v2/service.rb +6 -3
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +0 -56
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +33 -0
- data/generated/google/apis/container_v1beta1/representations.rb +17 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -2
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +146 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +62 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -9
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +6 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +27 -15
- 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 +17 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +76 -28
- data/generated/google/apis/people_v1/representations.rb +19 -0
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +45 -12
- data/generated/google/apis/pubsub_v1/service.rb +41 -20
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +41 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +5 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -27
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -15
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -27
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -15
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +41 -41
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +4 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +44 -38
- data/generated/google/apis/storage_v1/service.rb +10 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +26 -0
- data/generated/google/apis/testing_v1/representations.rb +15 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -10
- data/generated/google/apis/resourceviews_v1beta1.rb +0 -50
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +0 -338
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +0 -201
- data/generated/google/apis/resourceviews_v1beta1/service.rb +0 -637
- data/generated/google/apis/resourceviews_v1beta2.rb +0 -50
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +0 -660
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +0 -301
- data/generated/google/apis/resourceviews_v1beta2/service.rb +0 -540
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/android-publisher
|
|
26
26
|
module AndroidpublisherV3
|
|
27
27
|
VERSION = 'V3'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180516'
|
|
29
29
|
|
|
30
30
|
# View and manage your Google Play Developer account
|
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
|
@@ -1779,6 +1779,48 @@ module Google
|
|
|
1779
1779
|
execute_or_queue_command(command, &block)
|
|
1780
1780
|
end
|
|
1781
1781
|
|
|
1782
|
+
# Refund a user's subscription or in-app purchase order.
|
|
1783
|
+
# @param [String] package_name
|
|
1784
|
+
# The package name of the application for which this subscription or in-app item
|
|
1785
|
+
# was purchased (for example, 'com.some.thing').
|
|
1786
|
+
# @param [String] order_id
|
|
1787
|
+
# The order ID provided to the user when the subscription or in-app order was
|
|
1788
|
+
# purchased.
|
|
1789
|
+
# @param [Boolean] revoke
|
|
1790
|
+
# Whether to revoke the purchased item. If set to true, access to the
|
|
1791
|
+
# subscription or in-app item will be terminated immediately. If the item is a
|
|
1792
|
+
# recurring subscription, all future payments will also be terminated. Consumed
|
|
1793
|
+
# in-app items need to be handled by developer's app. (optional)
|
|
1794
|
+
# @param [String] fields
|
|
1795
|
+
# Selector specifying which fields to include in a partial response.
|
|
1796
|
+
# @param [String] quota_user
|
|
1797
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
1798
|
+
# characters.
|
|
1799
|
+
# @param [String] user_ip
|
|
1800
|
+
# Deprecated. Please use quotaUser instead.
|
|
1801
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1802
|
+
# Request-specific options
|
|
1803
|
+
#
|
|
1804
|
+
# @yield [result, err] Result & error if block supplied
|
|
1805
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1806
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1807
|
+
#
|
|
1808
|
+
# @return [void]
|
|
1809
|
+
#
|
|
1810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1813
|
+
def refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1814
|
+
command = make_simple_command(:post, '{packageName}/orders/{orderId}:refund', options)
|
|
1815
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
|
1816
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
|
1817
|
+
command.query['revoke'] = revoke unless revoke.nil?
|
|
1818
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1821
|
+
execute_or_queue_command(command, &block)
|
|
1822
|
+
end
|
|
1823
|
+
|
|
1782
1824
|
# Checks the purchase and consumption status of an inapp item.
|
|
1783
1825
|
# @param [String] package_name
|
|
1784
1826
|
# The package name of the application the inapp product was sold in (for example,
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
|
26
26
|
module BigqueryV2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180517'
|
|
29
29
|
|
|
30
30
|
# View and manage your data in Google BigQuery
|
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -2122,6 +2122,11 @@ module Google
|
|
|
2122
2122
|
# @return [Array<Google::Apis::BigqueryV2::TableReference>]
|
|
2123
2123
|
attr_accessor :referenced_tables
|
|
2124
2124
|
|
|
2125
|
+
# [Output-only] Job resource usage breakdown by reservation.
|
|
2126
|
+
# Corresponds to the JSON property `reservationUsage`
|
|
2127
|
+
# @return [Array<Google::Apis::BigqueryV2::JobStatistics2::ReservationUsage>]
|
|
2128
|
+
attr_accessor :reservation_usage
|
|
2129
|
+
|
|
2125
2130
|
# [Output-only] The schema of the results. Present only for successful dry run
|
|
2126
2131
|
# of non-legacy SQL queries.
|
|
2127
2132
|
# Corresponds to the JSON property `schema`
|
|
@@ -2188,6 +2193,7 @@ module Google
|
|
|
2188
2193
|
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
|
|
2189
2194
|
@query_plan = args[:query_plan] if args.key?(:query_plan)
|
|
2190
2195
|
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
|
|
2196
|
+
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
|
|
2191
2197
|
@schema = args[:schema] if args.key?(:schema)
|
|
2192
2198
|
@statement_type = args[:statement_type] if args.key?(:statement_type)
|
|
2193
2199
|
@timeline = args[:timeline] if args.key?(:timeline)
|
|
@@ -2197,6 +2203,31 @@ module Google
|
|
|
2197
2203
|
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
|
2198
2204
|
@undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
|
|
2199
2205
|
end
|
|
2206
|
+
|
|
2207
|
+
#
|
|
2208
|
+
class ReservationUsage
|
|
2209
|
+
include Google::Apis::Core::Hashable
|
|
2210
|
+
|
|
2211
|
+
# [Output-only] Reservation name or "unreserved" for on-demand resources usage.
|
|
2212
|
+
# Corresponds to the JSON property `name`
|
|
2213
|
+
# @return [String]
|
|
2214
|
+
attr_accessor :name
|
|
2215
|
+
|
|
2216
|
+
# [Output-only] Slot-milliseconds the job spent in the given reservation.
|
|
2217
|
+
# Corresponds to the JSON property `slotMs`
|
|
2218
|
+
# @return [Fixnum]
|
|
2219
|
+
attr_accessor :slot_ms
|
|
2220
|
+
|
|
2221
|
+
def initialize(**args)
|
|
2222
|
+
update!(**args)
|
|
2223
|
+
end
|
|
2224
|
+
|
|
2225
|
+
# Update properties of this object
|
|
2226
|
+
def update!(**args)
|
|
2227
|
+
@name = args[:name] if args.key?(:name)
|
|
2228
|
+
@slot_ms = args[:slot_ms] if args.key?(:slot_ms)
|
|
2229
|
+
end
|
|
2230
|
+
end
|
|
2200
2231
|
end
|
|
2201
2232
|
|
|
2202
2233
|
#
|
|
@@ -204,6 +204,12 @@ module Google
|
|
|
204
204
|
|
|
205
205
|
class JobStatistics2
|
|
206
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
class ReservationUsage
|
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
210
|
+
|
|
211
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
212
|
+
end
|
|
207
213
|
|
|
208
214
|
include Google::Apis::Core::JsonObjectSupport
|
|
209
215
|
end
|
|
@@ -857,6 +863,8 @@ module Google
|
|
|
857
863
|
|
|
858
864
|
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
|
859
865
|
|
|
866
|
+
collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics2::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics2::ReservationUsage::Representation
|
|
867
|
+
|
|
860
868
|
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
|
861
869
|
|
|
862
870
|
property :statement_type, as: 'statementType'
|
|
@@ -869,6 +877,14 @@ module Google
|
|
|
869
877
|
collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
|
|
870
878
|
|
|
871
879
|
end
|
|
880
|
+
|
|
881
|
+
class ReservationUsage
|
|
882
|
+
# @private
|
|
883
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
884
|
+
property :name, as: 'name'
|
|
885
|
+
property :slot_ms, :numeric_string => true, as: 'slotMs'
|
|
886
|
+
end
|
|
887
|
+
end
|
|
872
888
|
end
|
|
873
889
|
|
|
874
890
|
class JobStatistics3
|
|
@@ -305,7 +305,8 @@ module Google
|
|
|
305
305
|
# [Required] Job ID of the job to cancel
|
|
306
306
|
# @param [String] location
|
|
307
307
|
# [Experimental] The geographic location of the job. Required except for US and
|
|
308
|
-
# EU.
|
|
308
|
+
# EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
|
|
309
|
+
# specifying_your_location.
|
|
309
310
|
# @param [String] fields
|
|
310
311
|
# Selector specifying which fields to include in a partial response.
|
|
311
312
|
# @param [String] quota_user
|
|
@@ -347,7 +348,8 @@ module Google
|
|
|
347
348
|
# [Required] Job ID of the requested job
|
|
348
349
|
# @param [String] location
|
|
349
350
|
# [Experimental] The geographic location of the job. Required except for US and
|
|
350
|
-
# EU.
|
|
351
|
+
# EU. See details at https://cloud.google.com/bigquery/docs/dataset-locations#
|
|
352
|
+
# specifying_your_location.
|
|
351
353
|
# @param [String] fields
|
|
352
354
|
# Selector specifying which fields to include in a partial response.
|
|
353
355
|
# @param [String] quota_user
|
|
@@ -387,7 +389,8 @@ module Google
|
|
|
387
389
|
# [Required] Job ID of the query job
|
|
388
390
|
# @param [String] location
|
|
389
391
|
# [Experimental] The geographic location where the job should run. Required
|
|
390
|
-
# except for US and EU.
|
|
392
|
+
# except for US and EU. See details at https://cloud.google.com/bigquery/docs/
|
|
393
|
+
# dataset-locations#specifying_your_location.
|
|
391
394
|
# @param [Fixnum] max_results
|
|
392
395
|
# Maximum number of results to read
|
|
393
396
|
# @param [String] page_token
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/bigquery/
|
|
27
27
|
module BigquerydatatransferV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180521'
|
|
30
30
|
|
|
31
31
|
# View and manage your data in Google BigQuery
|
|
32
32
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -169,7 +169,7 @@ module Google
|
|
|
169
169
|
attr_accessor :transfer_type
|
|
170
170
|
|
|
171
171
|
# The number of seconds to wait for an update from the data source
|
|
172
|
-
# before
|
|
172
|
+
# before the Data Transfer Service marks the transfer as FAILED.
|
|
173
173
|
# Corresponds to the JSON property `updateDeadlineSeconds`
|
|
174
174
|
# @return [Fixnum]
|
|
175
175
|
attr_accessor :update_deadline_seconds
|
|
@@ -225,7 +225,7 @@ module Google
|
|
|
225
225
|
# @return [String]
|
|
226
226
|
attr_accessor :display_name
|
|
227
227
|
|
|
228
|
-
#
|
|
228
|
+
# Deprecated. This field has no effect.
|
|
229
229
|
# Corresponds to the JSON property `fields`
|
|
230
230
|
# @return [Array<Google::Apis::BigquerydatatransferV1::DataSourceParameter>]
|
|
231
231
|
attr_accessor :fields
|
|
@@ -251,14 +251,13 @@ module Google
|
|
|
251
251
|
# @return [String]
|
|
252
252
|
attr_accessor :param_id
|
|
253
253
|
|
|
254
|
-
#
|
|
255
|
-
# parameter_id. Only applicable when parameter type is RECORD.
|
|
254
|
+
# Deprecated. This field has no effect.
|
|
256
255
|
# Corresponds to the JSON property `recurse`
|
|
257
256
|
# @return [Boolean]
|
|
258
257
|
attr_accessor :recurse
|
|
259
258
|
alias_method :recurse?, :recurse
|
|
260
259
|
|
|
261
|
-
#
|
|
260
|
+
# Deprecated. This field has no effect.
|
|
262
261
|
# Corresponds to the JSON property `repeated`
|
|
263
262
|
# @return [Boolean]
|
|
264
263
|
attr_accessor :repeated
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/iot
|
|
27
27
|
module CloudiotV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180516'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -48,62 +48,6 @@ module Google
|
|
|
48
48
|
@batch_path = 'batch'
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# List devices in a device registry.
|
|
52
|
-
# @param [String] parent
|
|
53
|
-
# The device registry path. Required. For example,
|
|
54
|
-
# `projects/my-project/locations/us-central1/registries/my-registry`.
|
|
55
|
-
# @param [Array<String>, String] device_ids
|
|
56
|
-
# A list of device string identifiers. If empty, it will ignore this field.
|
|
57
|
-
# For example, `['device0', 'device12']`. This field cannot hold more than
|
|
58
|
-
# 10,000 entries.
|
|
59
|
-
# @param [Array<Fixnum>, Fixnum] device_num_ids
|
|
60
|
-
# A list of device numerical ids. If empty, it will ignore this field. This
|
|
61
|
-
# field cannot hold more than 10,000 entries.
|
|
62
|
-
# @param [String] field_mask
|
|
63
|
-
# The fields of the `Device` resource to be returned in the response. The
|
|
64
|
-
# fields `id`, and `num_id` are always returned by default, along with any
|
|
65
|
-
# other fields specified.
|
|
66
|
-
# @param [Fixnum] page_size
|
|
67
|
-
# The maximum number of devices to return in the response. If this value
|
|
68
|
-
# is zero, the service will select a default size. A call may return fewer
|
|
69
|
-
# objects than requested, but if there is a non-empty `page_token`, it
|
|
70
|
-
# indicates that more entries are available.
|
|
71
|
-
# @param [String] page_token
|
|
72
|
-
# The value returned by the last `ListDevicesResponse`; indicates
|
|
73
|
-
# that this is a continuation of a prior `ListDevices` call, and
|
|
74
|
-
# that the system should return the next page of data.
|
|
75
|
-
# @param [String] fields
|
|
76
|
-
# Selector specifying which fields to include in a partial response.
|
|
77
|
-
# @param [String] quota_user
|
|
78
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
79
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
80
|
-
# @param [Google::Apis::RequestOptions] options
|
|
81
|
-
# Request-specific options
|
|
82
|
-
#
|
|
83
|
-
# @yield [result, err] Result & error if block supplied
|
|
84
|
-
# @yieldparam result [Google::Apis::CloudiotV1::ListDevicesResponse] parsed result object
|
|
85
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
86
|
-
#
|
|
87
|
-
# @return [Google::Apis::CloudiotV1::ListDevicesResponse]
|
|
88
|
-
#
|
|
89
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
90
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
91
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
92
|
-
def list_project_location_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
93
|
-
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
|
94
|
-
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
|
|
95
|
-
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
|
|
96
|
-
command.params['parent'] = parent unless parent.nil?
|
|
97
|
-
command.query['deviceIds'] = device_ids unless device_ids.nil?
|
|
98
|
-
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
|
|
99
|
-
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
|
100
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
101
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
102
|
-
command.query['fields'] = fields unless fields.nil?
|
|
103
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
104
|
-
execute_or_queue_command(command, &block)
|
|
105
|
-
end
|
|
106
|
-
|
|
107
51
|
# Creates a device registry that contains devices.
|
|
108
52
|
# @param [String] parent
|
|
109
53
|
# The project and cloud region where this device registry must be created.
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/kms/
|
|
27
27
|
module CloudkmsV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180518'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
|
27
27
|
module CloudresourcemanagerV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180521'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -823,6 +823,10 @@ module Google
|
|
|
823
823
|
# `resourcemanager.projects.create` on the specified parent for the new
|
|
824
824
|
# project. The parent is identified by a specified ResourceId,
|
|
825
825
|
# which must include both an ID and a type, such as organization.
|
|
826
|
+
# This method does not associate the new project with a billing account.
|
|
827
|
+
# You can set or update the billing account associated with a project using
|
|
828
|
+
# the [`projects.updateBillingInfo`]
|
|
829
|
+
# (/billing/reference/rest/v1/projects/updateBillingInfo) method.
|
|
826
830
|
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
|
827
831
|
# @param [String] fields
|
|
828
832
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
|
27
27
|
module CloudresourcemanagerV1beta1
|
|
28
28
|
VERSION = 'V1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180521'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -283,6 +283,10 @@ module Google
|
|
|
283
283
|
# Google Cloud Storage. The parent is identified by a specified
|
|
284
284
|
# ResourceId, which must include both an ID and a type, such as
|
|
285
285
|
# project, folder, or organization.
|
|
286
|
+
# This method does not associate the new project with a billing account.
|
|
287
|
+
# You can set or update the billing account associated with a project using
|
|
288
|
+
# the [`projects.updateBillingInfo`]
|
|
289
|
+
# (/billing/reference/rest/v1/projects/updateBillingInfo) method.
|
|
286
290
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
287
291
|
# @param [Boolean] use_legacy_stack
|
|
288
292
|
# A safety hatch to opt out of the new reliable project creation process.
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/container-engine/
|
|
27
27
|
module ContainerV1beta1
|
|
28
28
|
VERSION = 'V1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180518'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -120,6 +120,27 @@ module Google
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
# Configuration for Binary Authorization.
|
|
124
|
+
class BinaryAuthorization
|
|
125
|
+
include Google::Apis::Core::Hashable
|
|
126
|
+
|
|
127
|
+
# Enable Binary Authorization for this cluster. If enabled, all container
|
|
128
|
+
# images will be validated by Google Binauthz.
|
|
129
|
+
# Corresponds to the JSON property `enabled`
|
|
130
|
+
# @return [Boolean]
|
|
131
|
+
attr_accessor :enabled
|
|
132
|
+
alias_method :enabled?, :enabled
|
|
133
|
+
|
|
134
|
+
def initialize(**args)
|
|
135
|
+
update!(**args)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Update properties of this object
|
|
139
|
+
def update!(**args)
|
|
140
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
123
144
|
# CancelOperationRequest cancels a single operation.
|
|
124
145
|
class CancelOperationRequest
|
|
125
146
|
include Google::Apis::Core::Hashable
|
|
@@ -218,6 +239,11 @@ module Google
|
|
|
218
239
|
# @return [Google::Apis::ContainerV1beta1::AddonsConfig]
|
|
219
240
|
attr_accessor :addons_config
|
|
220
241
|
|
|
242
|
+
# Configuration for Binary Authorization.
|
|
243
|
+
# Corresponds to the JSON property `binaryAuthorization`
|
|
244
|
+
# @return [Google::Apis::ContainerV1beta1::BinaryAuthorization]
|
|
245
|
+
attr_accessor :binary_authorization
|
|
246
|
+
|
|
221
247
|
# The IP address range of the container pods in this cluster, in
|
|
222
248
|
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
|
223
249
|
# notation (e.g. `10.96.0.0/14`). Leave blank to have
|
|
@@ -503,6 +529,7 @@ module Google
|
|
|
503
529
|
# Update properties of this object
|
|
504
530
|
def update!(**args)
|
|
505
531
|
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
|
532
|
+
@binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization)
|
|
506
533
|
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
|
507
534
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
508
535
|
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
|
@@ -557,6 +584,11 @@ module Google
|
|
|
557
584
|
# @return [Google::Apis::ContainerV1beta1::AddonsConfig]
|
|
558
585
|
attr_accessor :desired_addons_config
|
|
559
586
|
|
|
587
|
+
# Configuration for Binary Authorization.
|
|
588
|
+
# Corresponds to the JSON property `desiredBinaryAuthorization`
|
|
589
|
+
# @return [Google::Apis::ContainerV1beta1::BinaryAuthorization]
|
|
590
|
+
attr_accessor :desired_binary_authorization
|
|
591
|
+
|
|
560
592
|
# The desired image type for the node pool.
|
|
561
593
|
# NOTE: Set the "desired_node_pool" field as well.
|
|
562
594
|
# Corresponds to the JSON property `desiredImageType`
|
|
@@ -641,6 +673,7 @@ module Google
|
|
|
641
673
|
# Update properties of this object
|
|
642
674
|
def update!(**args)
|
|
643
675
|
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
|
676
|
+
@desired_binary_authorization = args[:desired_binary_authorization] if args.key?(:desired_binary_authorization)
|
|
644
677
|
@desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type)
|
|
645
678
|
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
|
646
679
|
@desired_master_authorized_networks_config = args[:desired_master_authorized_networks_config] if args.key?(:desired_master_authorized_networks_config)
|
|
@@ -40,6 +40,12 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
class BinaryAuthorization
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
43
49
|
class CancelOperationRequest
|
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
51
|
|
|
@@ -400,6 +406,13 @@ module Google
|
|
|
400
406
|
end
|
|
401
407
|
end
|
|
402
408
|
|
|
409
|
+
class BinaryAuthorization
|
|
410
|
+
# @private
|
|
411
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
412
|
+
property :enabled, as: 'enabled'
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
403
416
|
class CancelOperationRequest
|
|
404
417
|
# @private
|
|
405
418
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -430,6 +443,8 @@ module Google
|
|
|
430
443
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
431
444
|
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1beta1::AddonsConfig, decorator: Google::Apis::ContainerV1beta1::AddonsConfig::Representation
|
|
432
445
|
|
|
446
|
+
property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation
|
|
447
|
+
|
|
433
448
|
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
|
434
449
|
property :create_time, as: 'createTime'
|
|
435
450
|
property :current_master_version, as: 'currentMasterVersion'
|
|
@@ -487,6 +502,8 @@ module Google
|
|
|
487
502
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
488
503
|
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1beta1::AddonsConfig, decorator: Google::Apis::ContainerV1beta1::AddonsConfig::Representation
|
|
489
504
|
|
|
505
|
+
property :desired_binary_authorization, as: 'desiredBinaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation
|
|
506
|
+
|
|
490
507
|
property :desired_image_type, as: 'desiredImageType'
|
|
491
508
|
collection :desired_locations, as: 'desiredLocations'
|
|
492
509
|
property :desired_master_authorized_networks_config, as: 'desiredMasterAuthorizedNetworksConfig', class: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig, decorator: Google::Apis::ContainerV1beta1::MasterAuthorizedNetworksConfig::Representation
|