google-apis-cloudfunctions_v2beta 0.36.0 → 0.37.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 +5 -0
- data/lib/google/apis/cloudfunctions_v2beta/classes.rb +96 -13
- data/lib/google/apis/cloudfunctions_v2beta/gem_version.rb +3 -3
- data/lib/google/apis/cloudfunctions_v2beta/representations.rb +31 -0
- data/lib/google/apis/cloudfunctions_v2beta/service.rb +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b06fe42521ffdbf146ec697d5256b9a14608ce068a2aa51499addd6c0d750301
|
4
|
+
data.tar.gz: e1879e1241850d13351735769f6c91999be1017c2458170da689eb7a553e3882
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2fc2d55336a5648f11e0f84ce62e00b85cd50fb101b5ba28d21339233c7195b3fb82480f80a54d76c4446d48ef96fd20846a888e59812ef30571e68c10dd7d5
|
7
|
+
data.tar.gz: 90f0387f86cd93ab9f24a8911e1c8337a4b73d58ee02db71a2c6c4548cc79724dfc63136d88d0142292921bbc2a347d6047efadd15b538954575ae3a482b1dee
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-cloudfunctions_v2beta
|
2
2
|
|
3
|
+
### v0.37.0 (2024-01-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240104
|
6
|
+
* Regenerated using generator version 0.13.0
|
7
|
+
|
3
8
|
### v0.36.0 (2023-12-17)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20231207
|
@@ -93,6 +93,20 @@ module Google
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
# Security patches are applied automatically to the runtime without requiring
|
97
|
+
# the function to be redeployed.
|
98
|
+
class AutomaticUpdatePolicy
|
99
|
+
include Google::Apis::Core::Hashable
|
100
|
+
|
101
|
+
def initialize(**args)
|
102
|
+
update!(**args)
|
103
|
+
end
|
104
|
+
|
105
|
+
# Update properties of this object
|
106
|
+
def update!(**args)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
96
110
|
# Associates `members`, or principals, with a `role`.
|
97
111
|
class Binding
|
98
112
|
include Google::Apis::Core::Hashable
|
@@ -132,21 +146,43 @@ module Google
|
|
132
146
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
133
147
|
# email address that represents a Google group. For example, `admins@example.com`
|
134
148
|
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
135
|
-
# users of that domain. For example, `google.com` or `example.com`. * `
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
149
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
150
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
151
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
152
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
153
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
154
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
155
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
156
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
157
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
158
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
159
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
160
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
161
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
162
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
163
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
164
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
165
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
166
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
167
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
168
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
169
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
170
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
171
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
172
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
173
|
+
# address (plus unique identifier) representing a service account that has been
|
174
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
143
175
|
# 123456789012345678901`. If the service account is undeleted, this value
|
144
176
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
145
177
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
146
178
|
# An email address (plus unique identifier) representing a Google group that has
|
147
179
|
# been recently deleted. For example, `admins@example.com?uid=
|
148
180
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
149
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
181
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
182
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
183
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
184
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
185
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
150
186
|
# Corresponds to the JSON property `members`
|
151
187
|
# @return [Array<String>]
|
152
188
|
attr_accessor :members
|
@@ -174,6 +210,12 @@ module Google
|
|
174
210
|
class BuildConfig
|
175
211
|
include Google::Apis::Core::Hashable
|
176
212
|
|
213
|
+
# Security patches are applied automatically to the runtime without requiring
|
214
|
+
# the function to be redeployed.
|
215
|
+
# Corresponds to the JSON property `automaticUpdatePolicy`
|
216
|
+
# @return [Google::Apis::CloudfunctionsV2beta::AutomaticUpdatePolicy]
|
217
|
+
attr_accessor :automatic_update_policy
|
218
|
+
|
177
219
|
# Output only. The Cloud Build name of the latest successful deployment of the
|
178
220
|
# function.
|
179
221
|
# Corresponds to the JSON property `build`
|
@@ -190,10 +232,10 @@ module Google
|
|
190
232
|
# @return [String]
|
191
233
|
attr_accessor :docker_registry
|
192
234
|
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
235
|
+
# Repository in Artifact Registry to which the function docker image will be
|
236
|
+
# pushed after it is built by Cloud Build. If specified by user, it is created
|
237
|
+
# and managed by user with a customer managed encryption key. Otherwise, GCF
|
238
|
+
# will create and use a repository named 'gcf-artifacts' for every deployed
|
197
239
|
# region. It must match the pattern `projects/`project`/locations/`location`/
|
198
240
|
# repositories/`repository``. Cross-project repositories are not supported.
|
199
241
|
# Cross-location repositories are not supported. Repository format must be '
|
@@ -216,6 +258,11 @@ module Google
|
|
216
258
|
# @return [Hash<String,String>]
|
217
259
|
attr_accessor :environment_variables
|
218
260
|
|
261
|
+
# Security patches are only applied when a function is redeployed.
|
262
|
+
# Corresponds to the JSON property `onDeployUpdatePolicy`
|
263
|
+
# @return [Google::Apis::CloudfunctionsV2beta::OnDeployUpdatePolicy]
|
264
|
+
attr_accessor :on_deploy_update_policy
|
265
|
+
|
219
266
|
# The runtime in which to run the function. Required when deploying a new
|
220
267
|
# function, optional when updating an existing function. For a complete list of
|
221
268
|
# possible choices, see the [`gcloud` command reference](https://cloud.google.
|
@@ -224,6 +271,11 @@ module Google
|
|
224
271
|
# @return [String]
|
225
272
|
attr_accessor :runtime
|
226
273
|
|
274
|
+
# [Preview] Service account to be used for building the container
|
275
|
+
# Corresponds to the JSON property `serviceAccount`
|
276
|
+
# @return [String]
|
277
|
+
attr_accessor :service_account
|
278
|
+
|
227
279
|
# The location of the function source code.
|
228
280
|
# Corresponds to the JSON property `source`
|
229
281
|
# @return [Google::Apis::CloudfunctionsV2beta::Source]
|
@@ -259,12 +311,15 @@ module Google
|
|
259
311
|
|
260
312
|
# Update properties of this object
|
261
313
|
def update!(**args)
|
314
|
+
@automatic_update_policy = args[:automatic_update_policy] if args.key?(:automatic_update_policy)
|
262
315
|
@build = args[:build] if args.key?(:build)
|
263
316
|
@docker_registry = args[:docker_registry] if args.key?(:docker_registry)
|
264
317
|
@docker_repository = args[:docker_repository] if args.key?(:docker_repository)
|
265
318
|
@entry_point = args[:entry_point] if args.key?(:entry_point)
|
266
319
|
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
320
|
+
@on_deploy_update_policy = args[:on_deploy_update_policy] if args.key?(:on_deploy_update_policy)
|
267
321
|
@runtime = args[:runtime] if args.key?(:runtime)
|
322
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
268
323
|
@source = args[:source] if args.key?(:source)
|
269
324
|
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
270
325
|
@source_token = args[:source_token] if args.key?(:source_token)
|
@@ -622,6 +677,13 @@ module Google
|
|
622
677
|
class GenerateUploadUrlRequest
|
623
678
|
include Google::Apis::Core::Hashable
|
624
679
|
|
680
|
+
# The function environment the generated upload url will be used for. The upload
|
681
|
+
# url for 2nd Gen functions can also be used for 1st gen functions, but not vice
|
682
|
+
# versa. If not specified, 2nd generation-style upload URLs are generated.
|
683
|
+
# Corresponds to the JSON property `environment`
|
684
|
+
# @return [String]
|
685
|
+
attr_accessor :environment
|
686
|
+
|
625
687
|
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
626
688
|
# encrypt/decrypt function source code objects in intermediate Cloud Storage
|
627
689
|
# buckets. When you generate an upload url and upload your source code, it gets
|
@@ -643,6 +705,7 @@ module Google
|
|
643
705
|
|
644
706
|
# Update properties of this object
|
645
707
|
def update!(**args)
|
708
|
+
@environment = args[:environment] if args.key?(:environment)
|
646
709
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
647
710
|
end
|
648
711
|
end
|
@@ -1372,6 +1435,26 @@ module Google
|
|
1372
1435
|
end
|
1373
1436
|
end
|
1374
1437
|
|
1438
|
+
# Security patches are only applied when a function is redeployed.
|
1439
|
+
class OnDeployUpdatePolicy
|
1440
|
+
include Google::Apis::Core::Hashable
|
1441
|
+
|
1442
|
+
# Output only. contains the runtime version which was used during latest
|
1443
|
+
# function deployment.
|
1444
|
+
# Corresponds to the JSON property `runtimeVersion`
|
1445
|
+
# @return [String]
|
1446
|
+
attr_accessor :runtime_version
|
1447
|
+
|
1448
|
+
def initialize(**args)
|
1449
|
+
update!(**args)
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
# Update properties of this object
|
1453
|
+
def update!(**args)
|
1454
|
+
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
1455
|
+
end
|
1456
|
+
end
|
1457
|
+
|
1375
1458
|
# This resource represents a long-running operation that is the result of a
|
1376
1459
|
# network API call.
|
1377
1460
|
class Operation
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudfunctionsV2beta
|
18
18
|
# Version of the google-apis-cloudfunctions_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.37.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240104"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AutomaticUpdatePolicy
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Binding
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -202,6 +208,12 @@ module Google
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class OnDeployUpdatePolicy
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class Operation
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -315,6 +327,12 @@ module Google
|
|
315
327
|
end
|
316
328
|
end
|
317
329
|
|
330
|
+
class AutomaticUpdatePolicy
|
331
|
+
# @private
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
318
336
|
class Binding
|
319
337
|
# @private
|
320
338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -328,12 +346,17 @@ module Google
|
|
328
346
|
class BuildConfig
|
329
347
|
# @private
|
330
348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
+
property :automatic_update_policy, as: 'automaticUpdatePolicy', class: Google::Apis::CloudfunctionsV2beta::AutomaticUpdatePolicy, decorator: Google::Apis::CloudfunctionsV2beta::AutomaticUpdatePolicy::Representation
|
350
|
+
|
331
351
|
property :build, as: 'build'
|
332
352
|
property :docker_registry, as: 'dockerRegistry'
|
333
353
|
property :docker_repository, as: 'dockerRepository'
|
334
354
|
property :entry_point, as: 'entryPoint'
|
335
355
|
hash :environment_variables, as: 'environmentVariables'
|
356
|
+
property :on_deploy_update_policy, as: 'onDeployUpdatePolicy', class: Google::Apis::CloudfunctionsV2beta::OnDeployUpdatePolicy, decorator: Google::Apis::CloudfunctionsV2beta::OnDeployUpdatePolicy::Representation
|
357
|
+
|
336
358
|
property :runtime, as: 'runtime'
|
359
|
+
property :service_account, as: 'serviceAccount'
|
337
360
|
property :source, as: 'source', class: Google::Apis::CloudfunctionsV2beta::Source, decorator: Google::Apis::CloudfunctionsV2beta::Source::Representation
|
338
361
|
|
339
362
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudfunctionsV2beta::SourceProvenance, decorator: Google::Apis::CloudfunctionsV2beta::SourceProvenance::Representation
|
@@ -426,6 +449,7 @@ module Google
|
|
426
449
|
class GenerateUploadUrlRequest
|
427
450
|
# @private
|
428
451
|
class Representation < Google::Apis::Core::JsonRepresentation
|
452
|
+
property :environment, as: 'environment'
|
429
453
|
property :kms_key_name, as: 'kmsKeyName'
|
430
454
|
end
|
431
455
|
end
|
@@ -627,6 +651,13 @@ module Google
|
|
627
651
|
end
|
628
652
|
end
|
629
653
|
|
654
|
+
class OnDeployUpdatePolicy
|
655
|
+
# @private
|
656
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
657
|
+
property :runtime_version, as: 'runtimeVersion'
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
630
661
|
class Operation
|
631
662
|
# @private
|
632
663
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/functions
|
34
34
|
class CloudFunctionsService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://cloudfunctions.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,7 +45,7 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
47
49
|
client_name: 'google-apis-cloudfunctions_v2beta',
|
48
50
|
client_version: Google::Apis::CloudfunctionsV2beta::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudfunctions_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2beta/v0.37.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Functions API V2beta
|