google-api-client 0.41.1 → 0.41.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/bin/generate-api +1 -3
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +78 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +149 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +6 -6
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +271 -11
- data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
- data/generated/google/apis/cloudbuild_v1/service.rb +0 -94
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +7 -1
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +54 -30
- data/generated/google/apis/compute_alpha/representations.rb +3 -0
- data/generated/google/apis/compute_alpha/service.rb +23 -29
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +55 -29
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +75 -29
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +84 -29
- data/generated/google/apis/compute_v1/representations.rb +17 -0
- data/generated/google/apis/compute_v1/service.rb +21 -29
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +94 -2
- data/generated/google/apis/container_v1/representations.rb +35 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +121 -17
- data/generated/google/apis/container_v1beta1/representations.rb +37 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +6 -5
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -5
- data/generated/google/apis/dataproc_v1beta2/representations.rb +4 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +74 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +74 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +42 -42
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +3 -6
- data/generated/google/apis/displayvideo_v1/service.rb +0 -4
- data/generated/google/apis/dns_v1beta2.rb +4 -4
- data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
- data/generated/google/apis/dns_v1beta2/service.rb +247 -180
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +9 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +9 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1.rb +34 -0
- data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
- data/generated/google/apis/gameservices_v1/representations.rb +971 -0
- data/generated/google/apis/gameservices_v1/service.rb +1472 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +33 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
- data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1/service.rb +3 -0
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +73 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +32 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +477 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +1 -6
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +73 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +32 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +477 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/service.rb +5 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -3
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
|
45
45
|
def initialize
|
46
46
|
super('https://www.googleapis.com/', '')
|
47
|
-
@batch_path = 'batch/androidpublisher'
|
47
|
+
@batch_path = 'batch/androidpublisher/v3'
|
48
48
|
end
|
49
49
|
|
50
50
|
# Commits an app edit.
|
@@ -2255,6 +2255,154 @@ module Google
|
|
2255
2255
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2256
2256
|
execute_or_queue_command(command, &block)
|
2257
2257
|
end
|
2258
|
+
|
2259
|
+
# Creates an APK which is suitable for inclusion in a system image from an
|
2260
|
+
# already uploaded Android App Bundle.
|
2261
|
+
# @param [String] package_name
|
2262
|
+
# Unique identifier of the Android app.
|
2263
|
+
# @param [Fixnum] version_code
|
2264
|
+
# The version code of the App Bundle.
|
2265
|
+
# @param [Google::Apis::AndroidpublisherV3::Variant] variant_object
|
2266
|
+
# @param [String] fields
|
2267
|
+
# Selector specifying which fields to include in a partial response.
|
2268
|
+
# @param [String] quota_user
|
2269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2271
|
+
# @param [Google::Apis::RequestOptions] options
|
2272
|
+
# Request-specific options
|
2273
|
+
#
|
2274
|
+
# @yield [result, err] Result & error if block supplied
|
2275
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
|
2276
|
+
# @yieldparam err [StandardError] error object if request failed
|
2277
|
+
#
|
2278
|
+
# @return [Google::Apis::AndroidpublisherV3::Variant]
|
2279
|
+
#
|
2280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2283
|
+
def create_systemapk_variant(package_name, version_code, variant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2284
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options)
|
2285
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
|
2286
|
+
command.request_object = variant_object
|
2287
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
|
2288
|
+
command.response_class = Google::Apis::AndroidpublisherV3::Variant
|
2289
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
2290
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
2291
|
+
command.query['fields'] = fields unless fields.nil?
|
2292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2293
|
+
execute_or_queue_command(command, &block)
|
2294
|
+
end
|
2295
|
+
|
2296
|
+
# Downloads a previously created system APK which is suitable for inclusion
|
2297
|
+
# in a system image.
|
2298
|
+
# @param [String] package_name
|
2299
|
+
# Unique identifier of the Android app.
|
2300
|
+
# @param [Fixnum] version_code
|
2301
|
+
# The version code of the App Bundle.
|
2302
|
+
# @param [Fixnum] variant_id
|
2303
|
+
# The ID of a previously created system APK variant.
|
2304
|
+
# @param [String] fields
|
2305
|
+
# Selector specifying which fields to include in a partial response.
|
2306
|
+
# @param [String] quota_user
|
2307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2309
|
+
# @param [IO, String] download_dest
|
2310
|
+
# IO stream or filename to receive content download
|
2311
|
+
# @param [Google::Apis::RequestOptions] options
|
2312
|
+
# Request-specific options
|
2313
|
+
#
|
2314
|
+
# @yield [result, err] Result & error if block supplied
|
2315
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2316
|
+
# @yieldparam err [StandardError] error object if request failed
|
2317
|
+
#
|
2318
|
+
# @return [void]
|
2319
|
+
#
|
2320
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2321
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2322
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2323
|
+
def download_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
|
2324
|
+
if download_dest.nil?
|
2325
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
|
2326
|
+
else
|
2327
|
+
command = make_download_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
|
2328
|
+
command.download_dest = download_dest
|
2329
|
+
end
|
2330
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
2331
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
2332
|
+
command.params['variantId'] = variant_id unless variant_id.nil?
|
2333
|
+
command.query['fields'] = fields unless fields.nil?
|
2334
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2335
|
+
execute_or_queue_command(command, &block)
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
# Returns a previously created system APK variant.
|
2339
|
+
# @param [String] package_name
|
2340
|
+
# Unique identifier of the Android app.
|
2341
|
+
# @param [Fixnum] version_code
|
2342
|
+
# The version code of the App Bundle.
|
2343
|
+
# @param [Fixnum] variant_id
|
2344
|
+
# The ID of a previously created system APK variant.
|
2345
|
+
# @param [String] fields
|
2346
|
+
# Selector specifying which fields to include in a partial response.
|
2347
|
+
# @param [String] quota_user
|
2348
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2349
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2350
|
+
# @param [Google::Apis::RequestOptions] options
|
2351
|
+
# Request-specific options
|
2352
|
+
#
|
2353
|
+
# @yield [result, err] Result & error if block supplied
|
2354
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
|
2355
|
+
# @yieldparam err [StandardError] error object if request failed
|
2356
|
+
#
|
2357
|
+
# @return [Google::Apis::AndroidpublisherV3::Variant]
|
2358
|
+
#
|
2359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2362
|
+
def get_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, options: nil, &block)
|
2363
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}', options)
|
2364
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
|
2365
|
+
command.response_class = Google::Apis::AndroidpublisherV3::Variant
|
2366
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
2367
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
2368
|
+
command.params['variantId'] = variant_id unless variant_id.nil?
|
2369
|
+
command.query['fields'] = fields unless fields.nil?
|
2370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2371
|
+
execute_or_queue_command(command, &block)
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
# Returns the list of previously created system APK variants.
|
2375
|
+
# @param [String] package_name
|
2376
|
+
# Unique identifier of the Android app.
|
2377
|
+
# @param [Fixnum] version_code
|
2378
|
+
# The version code of the App Bundle.
|
2379
|
+
# @param [String] fields
|
2380
|
+
# Selector specifying which fields to include in a partial response.
|
2381
|
+
# @param [String] quota_user
|
2382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2384
|
+
# @param [Google::Apis::RequestOptions] options
|
2385
|
+
# Request-specific options
|
2386
|
+
#
|
2387
|
+
# @yield [result, err] Result & error if block supplied
|
2388
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::SystemApksListResponse] parsed result object
|
2389
|
+
# @yieldparam err [StandardError] error object if request failed
|
2390
|
+
#
|
2391
|
+
# @return [Google::Apis::AndroidpublisherV3::SystemApksListResponse]
|
2392
|
+
#
|
2393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2396
|
+
def list_systemapk_variants(package_name, version_code, fields: nil, quota_user: nil, options: nil, &block)
|
2397
|
+
command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options)
|
2398
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::SystemApksListResponse::Representation
|
2399
|
+
command.response_class = Google::Apis::AndroidpublisherV3::SystemApksListResponse
|
2400
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
2401
|
+
command.params['versionCode'] = version_code unless version_code.nil?
|
2402
|
+
command.query['fields'] = fields unless fields.nil?
|
2403
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2404
|
+
execute_or_queue_command(command, &block)
|
2405
|
+
end
|
2258
2406
|
|
2259
2407
|
protected
|
2260
2408
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/artifacts/docs/
|
27
27
|
module ArtifactregistryV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200701'
|
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'
|
@@ -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 = '20200625'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigtable/
|
26
26
|
module BigtableadminV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200609'
|
29
29
|
|
30
30
|
# Administer your Cloud Bigtable tables and clusters
|
31
31
|
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
@@ -92,7 +92,7 @@ module Google
|
|
92
92
|
# `
|
93
93
|
# "audit_configs": [
|
94
94
|
# `
|
95
|
-
# "service": "allServices"
|
95
|
+
# "service": "allServices",
|
96
96
|
# "audit_log_configs": [
|
97
97
|
# `
|
98
98
|
# "log_type": "DATA_READ",
|
@@ -101,18 +101,18 @@ module Google
|
|
101
101
|
# ]
|
102
102
|
# `,
|
103
103
|
# `
|
104
|
-
# "log_type": "DATA_WRITE"
|
104
|
+
# "log_type": "DATA_WRITE"
|
105
105
|
# `,
|
106
106
|
# `
|
107
|
-
# "log_type": "ADMIN_READ"
|
107
|
+
# "log_type": "ADMIN_READ"
|
108
108
|
# `
|
109
109
|
# ]
|
110
110
|
# `,
|
111
111
|
# `
|
112
|
-
# "service": "sampleservice.googleapis.com"
|
112
|
+
# "service": "sampleservice.googleapis.com",
|
113
113
|
# "audit_log_configs": [
|
114
114
|
# `
|
115
|
-
# "log_type": "DATA_READ"
|
115
|
+
# "log_type": "DATA_READ"
|
116
116
|
# `,
|
117
117
|
# `
|
118
118
|
# "log_type": "DATA_WRITE",
|
@@ -164,7 +164,7 @@ module Google
|
|
164
164
|
# ]
|
165
165
|
# `,
|
166
166
|
# `
|
167
|
-
# "log_type": "DATA_WRITE"
|
167
|
+
# "log_type": "DATA_WRITE"
|
168
168
|
# `
|
169
169
|
# ]
|
170
170
|
# `
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
|
27
27
|
module BillingbudgetsV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200626'
|
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'
|
@@ -221,9 +221,9 @@ module Google
|
|
221
221
|
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
|
222
222
|
# specifying
|
223
223
|
# that usage from only this set of subaccounts should be included in the
|
224
|
-
# budget. If a subaccount is set to the name of the
|
225
|
-
# from the
|
226
|
-
# include usage from the
|
224
|
+
# budget. If a subaccount is set to the name of the resller account, usage
|
225
|
+
# from the reseller account will be included. If omitted, the report will
|
226
|
+
# include usage from the reseller account and all subaccounts, if they exist.
|
227
227
|
# Corresponds to the JSON property `subaccounts`
|
228
228
|
# @return [Array<String>]
|
229
229
|
attr_accessor :subaccounts
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
26
26
|
module CloudbuildV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200626'
|
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'
|
@@ -865,6 +865,25 @@ module Google
|
|
865
865
|
end
|
866
866
|
end
|
867
867
|
|
868
|
+
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
869
|
+
class HttpDelivery
|
870
|
+
include Google::Apis::Core::Hashable
|
871
|
+
|
872
|
+
# The URI to which JSON-containing HTTP POST requests should be sent.
|
873
|
+
# Corresponds to the JSON property `uri`
|
874
|
+
# @return [String]
|
875
|
+
attr_accessor :uri
|
876
|
+
|
877
|
+
def initialize(**args)
|
878
|
+
update!(**args)
|
879
|
+
end
|
880
|
+
|
881
|
+
# Update properties of this object
|
882
|
+
def update!(**args)
|
883
|
+
@uri = args[:uri] if args.key?(:uri)
|
884
|
+
end
|
885
|
+
end
|
886
|
+
|
868
887
|
# Container message for hash values.
|
869
888
|
class HashProp
|
870
889
|
include Google::Apis::Core::Hashable
|
@@ -941,19 +960,78 @@ module Google
|
|
941
960
|
end
|
942
961
|
end
|
943
962
|
|
944
|
-
#
|
945
|
-
|
963
|
+
# Notification is the container which holds the data that is relevant to this
|
964
|
+
# particular notification.
|
965
|
+
class Notification
|
946
966
|
include Google::Apis::Core::Hashable
|
947
967
|
|
948
|
-
# The
|
949
|
-
#
|
968
|
+
# The filter string to use for notification filtering.
|
969
|
+
# Currently, this is assumed to be a CEL program.
|
970
|
+
# See https://opensource.google/projects/cel for more.
|
971
|
+
# Corresponds to the JSON property `filter`
|
950
972
|
# @return [String]
|
951
|
-
attr_accessor :
|
973
|
+
attr_accessor :filter
|
974
|
+
|
975
|
+
# HTTPDelivery is the delivery configuration for an HTTP notification.
|
976
|
+
# Corresponds to the JSON property `httpDelivery`
|
977
|
+
# @return [Google::Apis::CloudbuildV1::HttpDelivery]
|
978
|
+
attr_accessor :http_delivery
|
979
|
+
|
980
|
+
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
981
|
+
# webhooks. See Slack webhook documentation at:
|
982
|
+
# https://api.slack.com/messaging/webhooks.
|
983
|
+
# Corresponds to the JSON property `slackDelivery`
|
984
|
+
# @return [Google::Apis::CloudbuildV1::SlackDelivery]
|
985
|
+
attr_accessor :slack_delivery
|
986
|
+
|
987
|
+
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
988
|
+
# Corresponds to the JSON property `smtpDelivery`
|
989
|
+
# @return [Google::Apis::CloudbuildV1::SmtpDelivery]
|
990
|
+
attr_accessor :smtp_delivery
|
991
|
+
|
992
|
+
# Escape hatch for users to supply custom delivery configs.
|
993
|
+
# Corresponds to the JSON property `structDelivery`
|
994
|
+
# @return [Hash<String,Object>]
|
995
|
+
attr_accessor :struct_delivery
|
952
996
|
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
997
|
+
def initialize(**args)
|
998
|
+
update!(**args)
|
999
|
+
end
|
1000
|
+
|
1001
|
+
# Update properties of this object
|
1002
|
+
def update!(**args)
|
1003
|
+
@filter = args[:filter] if args.key?(:filter)
|
1004
|
+
@http_delivery = args[:http_delivery] if args.key?(:http_delivery)
|
1005
|
+
@slack_delivery = args[:slack_delivery] if args.key?(:slack_delivery)
|
1006
|
+
@smtp_delivery = args[:smtp_delivery] if args.key?(:smtp_delivery)
|
1007
|
+
@struct_delivery = args[:struct_delivery] if args.key?(:struct_delivery)
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# NotifierConfig is the top-level configuration message.
|
1012
|
+
class NotifierConfig
|
1013
|
+
include Google::Apis::Core::Hashable
|
1014
|
+
|
1015
|
+
# The API version of this configuration format.
|
1016
|
+
# Corresponds to the JSON property `apiVersion`
|
1017
|
+
# @return [String]
|
1018
|
+
attr_accessor :api_version
|
1019
|
+
|
1020
|
+
# The type of notifier to use (e.g. SMTPNotifier).
|
1021
|
+
# Corresponds to the JSON property `kind`
|
1022
|
+
# @return [String]
|
1023
|
+
attr_accessor :kind
|
1024
|
+
|
1025
|
+
# NotifierMetadata contains the data which can be used to reference or describe
|
1026
|
+
# this notifier.
|
1027
|
+
# Corresponds to the JSON property `metadata`
|
1028
|
+
# @return [Google::Apis::CloudbuildV1::NotifierMetadata]
|
1029
|
+
attr_accessor :metadata
|
1030
|
+
|
1031
|
+
# NotifierSpec is the configuration container for notifications.
|
1032
|
+
# Corresponds to the JSON property `spec`
|
1033
|
+
# @return [Google::Apis::CloudbuildV1::NotifierSpec]
|
1034
|
+
attr_accessor :spec
|
957
1035
|
|
958
1036
|
def initialize(**args)
|
959
1037
|
update!(**args)
|
@@ -961,8 +1039,116 @@ module Google
|
|
961
1039
|
|
962
1040
|
# Update properties of this object
|
963
1041
|
def update!(**args)
|
964
|
-
@
|
965
|
-
@
|
1042
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
1043
|
+
@kind = args[:kind] if args.key?(:kind)
|
1044
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1045
|
+
@spec = args[:spec] if args.key?(:spec)
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# NotifierMetadata contains the data which can be used to reference or describe
|
1050
|
+
# this notifier.
|
1051
|
+
class NotifierMetadata
|
1052
|
+
include Google::Apis::Core::Hashable
|
1053
|
+
|
1054
|
+
# The human-readable and user-given name for the notifier.
|
1055
|
+
# For example: "repo-merge-email-notifier".
|
1056
|
+
# Corresponds to the JSON property `name`
|
1057
|
+
# @return [String]
|
1058
|
+
attr_accessor :name
|
1059
|
+
|
1060
|
+
# The string representing the name and version of notifier to deploy.
|
1061
|
+
# Expected to be of the form of "<registry-path>/<name>:<version>".
|
1062
|
+
# For example: "gcr.io/my-project/notifiers/smtp:1.2.34".
|
1063
|
+
# Corresponds to the JSON property `notifier`
|
1064
|
+
# @return [String]
|
1065
|
+
attr_accessor :notifier
|
1066
|
+
|
1067
|
+
def initialize(**args)
|
1068
|
+
update!(**args)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Update properties of this object
|
1072
|
+
def update!(**args)
|
1073
|
+
@name = args[:name] if args.key?(:name)
|
1074
|
+
@notifier = args[:notifier] if args.key?(:notifier)
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# NotifierSecret is the container that maps a secret name (reference) to its
|
1079
|
+
# Google Cloud Secret Manager resource path.
|
1080
|
+
class NotifierSecret
|
1081
|
+
include Google::Apis::Core::Hashable
|
1082
|
+
|
1083
|
+
# Name is the local name of the secret, such as the verbatim string
|
1084
|
+
# "my-smtp-password".
|
1085
|
+
# Corresponds to the JSON property `name`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :name
|
1088
|
+
|
1089
|
+
# Value is interpreted to be a resource path for fetching the actual
|
1090
|
+
# (versioned) secret data for this secret. For example, this would be a
|
1091
|
+
# Google Cloud Secret Manager secret version resource path like:
|
1092
|
+
# "projects/my-project/secrets/my-secret/versions/latest".
|
1093
|
+
# Corresponds to the JSON property `value`
|
1094
|
+
# @return [String]
|
1095
|
+
attr_accessor :value
|
1096
|
+
|
1097
|
+
def initialize(**args)
|
1098
|
+
update!(**args)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# Update properties of this object
|
1102
|
+
def update!(**args)
|
1103
|
+
@name = args[:name] if args.key?(:name)
|
1104
|
+
@value = args[:value] if args.key?(:value)
|
1105
|
+
end
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
# NotifierSecretRef contains the reference to a secret stored in the
|
1109
|
+
# corresponding NotifierSpec.
|
1110
|
+
class NotifierSecretRef
|
1111
|
+
include Google::Apis::Core::Hashable
|
1112
|
+
|
1113
|
+
# The value of `secret_ref` should be a `name` that is registered in a
|
1114
|
+
# `Secret` in the `secrets` list of the `Spec`.
|
1115
|
+
# Corresponds to the JSON property `secretRef`
|
1116
|
+
# @return [String]
|
1117
|
+
attr_accessor :secret_ref
|
1118
|
+
|
1119
|
+
def initialize(**args)
|
1120
|
+
update!(**args)
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
# Update properties of this object
|
1124
|
+
def update!(**args)
|
1125
|
+
@secret_ref = args[:secret_ref] if args.key?(:secret_ref)
|
1126
|
+
end
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
# NotifierSpec is the configuration container for notifications.
|
1130
|
+
class NotifierSpec
|
1131
|
+
include Google::Apis::Core::Hashable
|
1132
|
+
|
1133
|
+
# Notification is the container which holds the data that is relevant to this
|
1134
|
+
# particular notification.
|
1135
|
+
# Corresponds to the JSON property `notification`
|
1136
|
+
# @return [Google::Apis::CloudbuildV1::Notification]
|
1137
|
+
attr_accessor :notification
|
1138
|
+
|
1139
|
+
# Configurations for secret resources used by this particular notifier.
|
1140
|
+
# Corresponds to the JSON property `secrets`
|
1141
|
+
# @return [Array<Google::Apis::CloudbuildV1::NotifierSecret>]
|
1142
|
+
attr_accessor :secrets
|
1143
|
+
|
1144
|
+
def initialize(**args)
|
1145
|
+
update!(**args)
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
# Update properties of this object
|
1149
|
+
def update!(**args)
|
1150
|
+
@notification = args[:notification] if args.key?(:notification)
|
1151
|
+
@secrets = args[:secrets] if args.key?(:secrets)
|
966
1152
|
end
|
967
1153
|
end
|
968
1154
|
|
@@ -1241,6 +1427,58 @@ module Google
|
|
1241
1427
|
end
|
1242
1428
|
end
|
1243
1429
|
|
1430
|
+
# SMTPDelivery is the delivery configuration for an SMTP (email) notification.
|
1431
|
+
class SmtpDelivery
|
1432
|
+
include Google::Apis::Core::Hashable
|
1433
|
+
|
1434
|
+
# This is the SMTP account/email that appears in the `From:` of the email.
|
1435
|
+
# If empty, it is assumed to be sender.
|
1436
|
+
# Corresponds to the JSON property `fromAddress`
|
1437
|
+
# @return [String]
|
1438
|
+
attr_accessor :from_address
|
1439
|
+
|
1440
|
+
# NotifierSecretRef contains the reference to a secret stored in the
|
1441
|
+
# corresponding NotifierSpec.
|
1442
|
+
# Corresponds to the JSON property `password`
|
1443
|
+
# @return [Google::Apis::CloudbuildV1::NotifierSecretRef]
|
1444
|
+
attr_accessor :password
|
1445
|
+
|
1446
|
+
# The SMTP port of the server.
|
1447
|
+
# Corresponds to the JSON property `port`
|
1448
|
+
# @return [String]
|
1449
|
+
attr_accessor :port
|
1450
|
+
|
1451
|
+
# This is the list of addresses to which we send the email (i.e. in the `To:`
|
1452
|
+
# of the email).
|
1453
|
+
# Corresponds to the JSON property `recipientAddresses`
|
1454
|
+
# @return [Array<String>]
|
1455
|
+
attr_accessor :recipient_addresses
|
1456
|
+
|
1457
|
+
# This is the SMTP account/email that is used to send the message.
|
1458
|
+
# Corresponds to the JSON property `senderAddress`
|
1459
|
+
# @return [String]
|
1460
|
+
attr_accessor :sender_address
|
1461
|
+
|
1462
|
+
# The address of the SMTP server.
|
1463
|
+
# Corresponds to the JSON property `server`
|
1464
|
+
# @return [String]
|
1465
|
+
attr_accessor :server
|
1466
|
+
|
1467
|
+
def initialize(**args)
|
1468
|
+
update!(**args)
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
# Update properties of this object
|
1472
|
+
def update!(**args)
|
1473
|
+
@from_address = args[:from_address] if args.key?(:from_address)
|
1474
|
+
@password = args[:password] if args.key?(:password)
|
1475
|
+
@port = args[:port] if args.key?(:port)
|
1476
|
+
@recipient_addresses = args[:recipient_addresses] if args.key?(:recipient_addresses)
|
1477
|
+
@sender_address = args[:sender_address] if args.key?(:sender_address)
|
1478
|
+
@server = args[:server] if args.key?(:server)
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1244
1482
|
# Pairs a set of secret environment variables containing encrypted
|
1245
1483
|
# values with the Cloud KMS key to use to decrypt the value.
|
1246
1484
|
class Secret
|
@@ -1271,6 +1509,28 @@ module Google
|
|
1271
1509
|
end
|
1272
1510
|
end
|
1273
1511
|
|
1512
|
+
# SlackDelivery is the delivery configuration for delivering Slack messages via
|
1513
|
+
# webhooks. See Slack webhook documentation at:
|
1514
|
+
# https://api.slack.com/messaging/webhooks.
|
1515
|
+
class SlackDelivery
|
1516
|
+
include Google::Apis::Core::Hashable
|
1517
|
+
|
1518
|
+
# NotifierSecretRef contains the reference to a secret stored in the
|
1519
|
+
# corresponding NotifierSpec.
|
1520
|
+
# Corresponds to the JSON property `webhookUri`
|
1521
|
+
# @return [Google::Apis::CloudbuildV1::NotifierSecretRef]
|
1522
|
+
attr_accessor :webhook_uri
|
1523
|
+
|
1524
|
+
def initialize(**args)
|
1525
|
+
update!(**args)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# Update properties of this object
|
1529
|
+
def update!(**args)
|
1530
|
+
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
1531
|
+
end
|
1532
|
+
end
|
1533
|
+
|
1274
1534
|
# Location of the source in a supported storage service.
|
1275
1535
|
class Source
|
1276
1536
|
include Google::Apis::Core::Hashable
|