google-api-client 0.14.5 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +63 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +18 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +14 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +28 -50
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +116 -111
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +17 -17
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +8 -0
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +51 -58
- data/generated/google/apis/cloudtrace_v2/representations.rb +14 -15
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +157 -17
- data/generated/google/apis/compute_alpha/representations.rb +52 -0
- data/generated/google/apis/compute_alpha/service.rb +57 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +46 -17
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +10 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +4767 -337
- data/generated/google/apis/compute_v1/representations.rb +2044 -27
- data/generated/google/apis/compute_v1/service.rb +111 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +34 -1
- data/generated/google/apis/container_v1beta1/representations.rb +17 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +0 -2
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +5 -1
- data/generated/google/apis/{ml_v1beta1.rb → firestore_v1beta1.rb} +11 -8
- data/generated/google/apis/firestore_v1beta1/classes.rb +2115 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +899 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +734 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +93 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +35 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +35 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +4 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +4 -9
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/service.rb +102 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +4 -9
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +17 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -11
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +81 -26
- data/generated/google/apis/sheets_v4/representations.rb +23 -0
- data/generated/google/apis/sheets_v4/service.rb +5 -5
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +97 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +18 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +121 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +41 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +4 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/ml_v1beta1/classes.rb +0 -2396
- data/generated/google/apis/ml_v1beta1/representations.rb +0 -755
- data/generated/google/apis/ml_v1beta1/service.rb +0 -975
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/identity-toolkit/v3/
|
26
26
|
module IdentitytoolkitV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170927'
|
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'
|
@@ -69,6 +69,11 @@ module Google
|
|
69
69
|
# @return [String]
|
70
70
|
attr_accessor :session_id
|
71
71
|
|
72
|
+
# All sign-in methods this user has used.
|
73
|
+
# Corresponds to the JSON property `signinMethods`
|
74
|
+
# @return [Array<String>]
|
75
|
+
attr_accessor :signin_methods
|
76
|
+
|
72
77
|
def initialize(**args)
|
73
78
|
update!(**args)
|
74
79
|
end
|
@@ -83,6 +88,7 @@ module Google
|
|
83
88
|
@provider_id = args[:provider_id] if args.key?(:provider_id)
|
84
89
|
@registered = args[:registered] if args.key?(:registered)
|
85
90
|
@session_id = args[:session_id] if args.key?(:session_id)
|
91
|
+
@signin_methods = args[:signin_methods] if args.key?(:signin_methods)
|
86
92
|
end
|
87
93
|
end
|
88
94
|
|
@@ -137,6 +143,62 @@ module Google
|
|
137
143
|
end
|
138
144
|
end
|
139
145
|
|
146
|
+
# Response of email signIn.
|
147
|
+
class EmailLinkSigninResponse
|
148
|
+
include Google::Apis::Core::Hashable
|
149
|
+
|
150
|
+
# The user's email.
|
151
|
+
# Corresponds to the JSON property `email`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :email
|
154
|
+
|
155
|
+
# Expiration time of STS id token in seconds.
|
156
|
+
# Corresponds to the JSON property `expiresIn`
|
157
|
+
# @return [Fixnum]
|
158
|
+
attr_accessor :expires_in
|
159
|
+
|
160
|
+
# The STS id token to login the newly signed in user.
|
161
|
+
# Corresponds to the JSON property `idToken`
|
162
|
+
# @return [String]
|
163
|
+
attr_accessor :id_token
|
164
|
+
|
165
|
+
# Whether the user is new.
|
166
|
+
# Corresponds to the JSON property `isNewUser`
|
167
|
+
# @return [Boolean]
|
168
|
+
attr_accessor :is_new_user
|
169
|
+
alias_method :is_new_user?, :is_new_user
|
170
|
+
|
171
|
+
# The fixed string "identitytoolkit#EmailLinkSigninResponse".
|
172
|
+
# Corresponds to the JSON property `kind`
|
173
|
+
# @return [String]
|
174
|
+
attr_accessor :kind
|
175
|
+
|
176
|
+
# The RP local ID of the user.
|
177
|
+
# Corresponds to the JSON property `localId`
|
178
|
+
# @return [String]
|
179
|
+
attr_accessor :local_id
|
180
|
+
|
181
|
+
# The refresh token for the signed in user.
|
182
|
+
# Corresponds to the JSON property `refreshToken`
|
183
|
+
# @return [String]
|
184
|
+
attr_accessor :refresh_token
|
185
|
+
|
186
|
+
def initialize(**args)
|
187
|
+
update!(**args)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Update properties of this object
|
191
|
+
def update!(**args)
|
192
|
+
@email = args[:email] if args.key?(:email)
|
193
|
+
@expires_in = args[:expires_in] if args.key?(:expires_in)
|
194
|
+
@id_token = args[:id_token] if args.key?(:id_token)
|
195
|
+
@is_new_user = args[:is_new_user] if args.key?(:is_new_user)
|
196
|
+
@kind = args[:kind] if args.key?(:kind)
|
197
|
+
@local_id = args[:local_id] if args.key?(:local_id)
|
198
|
+
@refresh_token = args[:refresh_token] if args.key?(:refresh_token)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
140
202
|
# Template for an email template.
|
141
203
|
class EmailTemplate
|
142
204
|
include Google::Apis::Core::Hashable
|
@@ -451,6 +513,37 @@ module Google
|
|
451
513
|
end
|
452
514
|
end
|
453
515
|
|
516
|
+
# Request to sign in with email.
|
517
|
+
class IdentitytoolkitRelyingpartyEmailLinkSigninRequest
|
518
|
+
include Google::Apis::Core::Hashable
|
519
|
+
|
520
|
+
# The email address of the user.
|
521
|
+
# Corresponds to the JSON property `email`
|
522
|
+
# @return [String]
|
523
|
+
attr_accessor :email
|
524
|
+
|
525
|
+
# Token for linking flow.
|
526
|
+
# Corresponds to the JSON property `idToken`
|
527
|
+
# @return [String]
|
528
|
+
attr_accessor :id_token
|
529
|
+
|
530
|
+
# The confirmation code.
|
531
|
+
# Corresponds to the JSON property `oobCode`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :oob_code
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@email = args[:email] if args.key?(:email)
|
542
|
+
@id_token = args[:id_token] if args.key?(:id_token)
|
543
|
+
@oob_code = args[:oob_code] if args.key?(:oob_code)
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
454
547
|
# Request to get the account information.
|
455
548
|
class GetAccountInfoRequest
|
456
549
|
include Google::Apis::Core::Hashable
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class EmailLinkSigninResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class EmailTemplate
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -82,6 +88,12 @@ module Google
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
83
89
|
end
|
84
90
|
|
91
|
+
class IdentitytoolkitRelyingpartyEmailLinkSigninRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
85
97
|
class GetAccountInfoRequest
|
86
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
99
|
|
@@ -273,6 +285,7 @@ module Google
|
|
273
285
|
property :provider_id, as: 'providerId'
|
274
286
|
property :registered, as: 'registered'
|
275
287
|
property :session_id, as: 'sessionId'
|
288
|
+
collection :signin_methods, as: 'signinMethods'
|
276
289
|
end
|
277
290
|
end
|
278
291
|
|
@@ -293,6 +306,19 @@ module Google
|
|
293
306
|
end
|
294
307
|
end
|
295
308
|
|
309
|
+
class EmailLinkSigninResponse
|
310
|
+
# @private
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
312
|
+
property :email, as: 'email'
|
313
|
+
property :expires_in, :numeric_string => true, as: 'expiresIn'
|
314
|
+
property :id_token, as: 'idToken'
|
315
|
+
property :is_new_user, as: 'isNewUser'
|
316
|
+
property :kind, as: 'kind'
|
317
|
+
property :local_id, as: 'localId'
|
318
|
+
property :refresh_token, as: 'refreshToken'
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
296
322
|
class EmailTemplate
|
297
323
|
# @private
|
298
324
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -371,6 +397,15 @@ module Google
|
|
371
397
|
end
|
372
398
|
end
|
373
399
|
|
400
|
+
class IdentitytoolkitRelyingpartyEmailLinkSigninRequest
|
401
|
+
# @private
|
402
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
403
|
+
property :email, as: 'email'
|
404
|
+
property :id_token, as: 'idToken'
|
405
|
+
property :oob_code, as: 'oobCode'
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
374
409
|
class GetAccountInfoRequest
|
375
410
|
# @private
|
376
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -158,6 +158,41 @@ module Google
|
|
158
158
|
execute_or_queue_command(command, &block)
|
159
159
|
end
|
160
160
|
|
161
|
+
# Reset password for a user.
|
162
|
+
# @param [Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyEmailLinkSigninRequest] identitytoolkit_relyingparty_email_link_signin_request_object
|
163
|
+
# @param [String] fields
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# Overrides userIp if both are provided.
|
169
|
+
# @param [String] user_ip
|
170
|
+
# IP address of the site where the request originates. Use this if you want to
|
171
|
+
# enforce per-user limits.
|
172
|
+
# @param [Google::Apis::RequestOptions] options
|
173
|
+
# Request-specific options
|
174
|
+
#
|
175
|
+
# @yield [result, err] Result & error if block supplied
|
176
|
+
# @yieldparam result [Google::Apis::IdentitytoolkitV3::EmailLinkSigninResponse] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::IdentitytoolkitV3::EmailLinkSigninResponse]
|
180
|
+
#
|
181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
|
+
def email_relyingparty_link_signin(identitytoolkit_relyingparty_email_link_signin_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:post, 'emailLinkSignin', options)
|
186
|
+
command.request_representation = Google::Apis::IdentitytoolkitV3::IdentitytoolkitRelyingpartyEmailLinkSigninRequest::Representation
|
187
|
+
command.request_object = identitytoolkit_relyingparty_email_link_signin_request_object
|
188
|
+
command.response_representation = Google::Apis::IdentitytoolkitV3::EmailLinkSigninResponse::Representation
|
189
|
+
command.response_class = Google::Apis::IdentitytoolkitV3::EmailLinkSigninResponse
|
190
|
+
command.query['fields'] = fields unless fields.nil?
|
191
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
192
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
161
196
|
# Returns the account info.
|
162
197
|
# @param [Google::Apis::IdentitytoolkitV3::GetAccountInfoRequest] get_account_info_request_object
|
163
198
|
# @param [String] fields
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171002'
|
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'
|
@@ -1120,7 +1120,9 @@ module Google
|
|
1120
1120
|
attr_accessor :description
|
1121
1121
|
|
1122
1122
|
# A concise name for the metric, which can be displayed in user interfaces. Use
|
1123
|
-
# sentence case without an ending period, for example "Request count".
|
1123
|
+
# sentence case without an ending period, for example "Request count". This
|
1124
|
+
# field is optional but it is recommended to be set for any metrics associated
|
1125
|
+
# with user-visible concepts, such as Quota.
|
1124
1126
|
# Corresponds to the JSON property `displayName`
|
1125
1127
|
# @return [String]
|
1126
1128
|
attr_accessor :display_name
|
@@ -1140,14 +1142,7 @@ module Google
|
|
1140
1142
|
# @return [String]
|
1141
1143
|
attr_accessor :metric_kind
|
1142
1144
|
|
1143
|
-
# The resource name of the metric descriptor.
|
1144
|
-
# the name typically includes: (1) the parent resource name that defines the
|
1145
|
-
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
1146
|
-
# which also appears in the type field of this descriptor. For example,
|
1147
|
-
# following is the resource name of a custom metric within the GCP project my-
|
1148
|
-
# project-id:
|
1149
|
-
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
1150
|
-
# 2Fpaid%2Famount"
|
1145
|
+
# The resource name of the metric descriptor.
|
1151
1146
|
# Corresponds to the JSON property `name`
|
1152
1147
|
# @return [String]
|
1153
1148
|
attr_accessor :name
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2beta1
|
27
27
|
VERSION = 'V2beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171002'
|
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'
|
@@ -1043,7 +1043,9 @@ module Google
|
|
1043
1043
|
attr_accessor :description
|
1044
1044
|
|
1045
1045
|
# A concise name for the metric, which can be displayed in user interfaces. Use
|
1046
|
-
# sentence case without an ending period, for example "Request count".
|
1046
|
+
# sentence case without an ending period, for example "Request count". This
|
1047
|
+
# field is optional but it is recommended to be set for any metrics associated
|
1048
|
+
# with user-visible concepts, such as Quota.
|
1047
1049
|
# Corresponds to the JSON property `displayName`
|
1048
1050
|
# @return [String]
|
1049
1051
|
attr_accessor :display_name
|
@@ -1063,14 +1065,7 @@ module Google
|
|
1063
1065
|
# @return [String]
|
1064
1066
|
attr_accessor :metric_kind
|
1065
1067
|
|
1066
|
-
# The resource name of the metric descriptor.
|
1067
|
-
# the name typically includes: (1) the parent resource name that defines the
|
1068
|
-
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
1069
|
-
# which also appears in the type field of this descriptor. For example,
|
1070
|
-
# following is the resource name of a custom metric within the GCP project my-
|
1071
|
-
# project-id:
|
1072
|
-
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
1073
|
-
# 2Fpaid%2Famount"
|
1068
|
+
# The resource name of the metric descriptor.
|
1074
1069
|
# Corresponds to the JSON property `name`
|
1075
1070
|
# @return [String]
|
1076
1071
|
attr_accessor :name
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/ml/
|
26
26
|
module MlV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170928'
|
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'
|
@@ -541,6 +541,59 @@ module Google
|
|
541
541
|
execute_or_queue_command(command, &block)
|
542
542
|
end
|
543
543
|
|
544
|
+
# Updates a specific model resource.
|
545
|
+
# Currently the only supported fields to update are `description` and
|
546
|
+
# `default_version.name`.
|
547
|
+
# @param [String] name
|
548
|
+
# Required. The project name.
|
549
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
|
550
|
+
# @param [String] update_mask
|
551
|
+
# Required. Specifies the path, relative to `Model`, of the field to update.
|
552
|
+
# For example, to change the description of a model to "foo" and set its
|
553
|
+
# default version to "version_1", the `update_mask` parameter would be
|
554
|
+
# specified as `description`, `default_version.name`, and the `PATCH`
|
555
|
+
# request body would specify the new value, as follows:
|
556
|
+
# `
|
557
|
+
# "description": "foo",
|
558
|
+
# "defaultVersion": `
|
559
|
+
# "name":"version_1"
|
560
|
+
# `
|
561
|
+
# `
|
562
|
+
# In this example, the model is blindly overwritten since no etag is given.
|
563
|
+
# To adopt etag mechanism, include `etag` field in the mask, and include the
|
564
|
+
# `etag` value in your model resource.
|
565
|
+
# Currently the supported update masks are `description`,
|
566
|
+
# `default_version.name`, `labels`, and `etag`.
|
567
|
+
# @param [String] fields
|
568
|
+
# Selector specifying which fields to include in a partial response.
|
569
|
+
# @param [String] quota_user
|
570
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
571
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
572
|
+
# @param [Google::Apis::RequestOptions] options
|
573
|
+
# Request-specific options
|
574
|
+
#
|
575
|
+
# @yield [result, err] Result & error if block supplied
|
576
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
577
|
+
# @yieldparam err [StandardError] error object if request failed
|
578
|
+
#
|
579
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
580
|
+
#
|
581
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
582
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
583
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
584
|
+
def patch_project_model(name, google_cloud_ml_v1__model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
585
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
586
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
587
|
+
command.request_object = google_cloud_ml_v1__model_object
|
588
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
589
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
590
|
+
command.params['name'] = name unless name.nil?
|
591
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
592
|
+
command.query['fields'] = fields unless fields.nil?
|
593
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
594
|
+
execute_or_queue_command(command, &block)
|
595
|
+
end
|
596
|
+
|
544
597
|
# Sets the access control policy on the specified resource. Replaces any
|
545
598
|
# existing policy.
|
546
599
|
# @param [String] resource
|
@@ -771,6 +824,55 @@ module Google
|
|
771
824
|
execute_or_queue_command(command, &block)
|
772
825
|
end
|
773
826
|
|
827
|
+
# Updates the specified Version resource.
|
828
|
+
# Currently the only supported field to update is `description`.
|
829
|
+
# @param [String] name
|
830
|
+
# Required. The name of the model.
|
831
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
|
832
|
+
# @param [String] update_mask
|
833
|
+
# Required. Specifies the path, relative to `Version`, of the field to
|
834
|
+
# update. Must be present and non-empty.
|
835
|
+
# For example, to change the description of a version to "foo", the
|
836
|
+
# `update_mask` parameter would be specified as `description`, and the
|
837
|
+
# `PATCH` request body would specify the new value, as follows:
|
838
|
+
# `
|
839
|
+
# "description": "foo"
|
840
|
+
# `
|
841
|
+
# In this example, the version is blindly overwritten since no etag is given.
|
842
|
+
# To adopt etag mechanism, include `etag` field in the mask, and include the
|
843
|
+
# `etag` value in your version resource.
|
844
|
+
# Currently the only supported update masks are `description`, `labels`, and
|
845
|
+
# `etag`.
|
846
|
+
# @param [String] fields
|
847
|
+
# Selector specifying which fields to include in a partial response.
|
848
|
+
# @param [String] quota_user
|
849
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
850
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
851
|
+
# @param [Google::Apis::RequestOptions] options
|
852
|
+
# Request-specific options
|
853
|
+
#
|
854
|
+
# @yield [result, err] Result & error if block supplied
|
855
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
856
|
+
# @yieldparam err [StandardError] error object if request failed
|
857
|
+
#
|
858
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
859
|
+
#
|
860
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
861
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
862
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
863
|
+
def patch_project_model_version(name, google_cloud_ml_v1__version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
864
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
865
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
866
|
+
command.request_object = google_cloud_ml_v1__version_object
|
867
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
868
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
869
|
+
command.params['name'] = name unless name.nil?
|
870
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
871
|
+
command.query['fields'] = fields unless fields.nil?
|
872
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
873
|
+
execute_or_queue_command(command, &block)
|
874
|
+
end
|
875
|
+
|
774
876
|
# Designates a version to be the default for the model.
|
775
877
|
# The default version is used for prediction requests made against the model
|
776
878
|
# that don't specify a version.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/monitoring/api/
|
28
28
|
module MonitoringV3
|
29
29
|
VERSION = 'V3'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171001'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|