google-apis-cloudfunctions_v2alpha 0.38.0 → 0.40.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 +10 -0
- data/lib/google/apis/cloudfunctions_v2alpha/classes.rb +100 -14
- data/lib/google/apis/cloudfunctions_v2alpha/gem_version.rb +3 -3
- data/lib/google/apis/cloudfunctions_v2alpha/representations.rb +31 -0
- data/lib/google/apis/cloudfunctions_v2alpha/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: 99c505317e7fb6a88aac4c07822899937a1dfcb3fdc5efd45b422ffc7ad97071
|
4
|
+
data.tar.gz: 4b2debb37ada50623cefc6f76fe20b961e13f809f1aeed5ad00e0f4eda89f06d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d88b5f3a33b7413e4188e8f398febbff5a0fbb7e257d66e60fd96a40b44d9c7b33ed7fee58c606ae5c6614ca8fac40faac4137ac70db0f09f6fe8c60a60ba9
|
7
|
+
data.tar.gz: 44b20ce60b46b779bab99609bba3cae91ff3179b03f0764d6f9d7d8c4c57082cf017d4a4a717d433f330d7c6f965a03afca0b1cdf30472b826e2a1d631c1ea23
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-cloudfunctions_v2alpha
|
2
2
|
|
3
|
+
### v0.40.0 (2024-01-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240118
|
6
|
+
* Regenerated using generator version 0.13.1
|
7
|
+
|
8
|
+
### v0.39.0 (2024-01-23)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240104
|
11
|
+
* Regenerated using generator version 0.13.0
|
12
|
+
|
3
13
|
### v0.38.0 (2023-12-17)
|
4
14
|
|
5
15
|
* 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,27 +146,52 @@ 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
|
153
189
|
|
154
190
|
# Role that is assigned to the list of `members`, or principals. For example, `
|
155
|
-
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
191
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
192
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
193
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
194
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
156
195
|
# Corresponds to the JSON property `role`
|
157
196
|
# @return [String]
|
158
197
|
attr_accessor :role
|
@@ -174,6 +213,12 @@ module Google
|
|
174
213
|
class BuildConfig
|
175
214
|
include Google::Apis::Core::Hashable
|
176
215
|
|
216
|
+
# Security patches are applied automatically to the runtime without requiring
|
217
|
+
# the function to be redeployed.
|
218
|
+
# Corresponds to the JSON property `automaticUpdatePolicy`
|
219
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::AutomaticUpdatePolicy]
|
220
|
+
attr_accessor :automatic_update_policy
|
221
|
+
|
177
222
|
# Output only. The Cloud Build name of the latest successful deployment of the
|
178
223
|
# function.
|
179
224
|
# Corresponds to the JSON property `build`
|
@@ -190,10 +235,10 @@ module Google
|
|
190
235
|
# @return [String]
|
191
236
|
attr_accessor :docker_registry
|
192
237
|
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
238
|
+
# Repository in Artifact Registry to which the function docker image will be
|
239
|
+
# pushed after it is built by Cloud Build. If specified by user, it is created
|
240
|
+
# and managed by user with a customer managed encryption key. Otherwise, GCF
|
241
|
+
# will create and use a repository named 'gcf-artifacts' for every deployed
|
197
242
|
# region. It must match the pattern `projects/`project`/locations/`location`/
|
198
243
|
# repositories/`repository``. Cross-project repositories are not supported.
|
199
244
|
# Cross-location repositories are not supported. Repository format must be '
|
@@ -216,6 +261,11 @@ module Google
|
|
216
261
|
# @return [Hash<String,String>]
|
217
262
|
attr_accessor :environment_variables
|
218
263
|
|
264
|
+
# Security patches are only applied when a function is redeployed.
|
265
|
+
# Corresponds to the JSON property `onDeployUpdatePolicy`
|
266
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::OnDeployUpdatePolicy]
|
267
|
+
attr_accessor :on_deploy_update_policy
|
268
|
+
|
219
269
|
# The runtime in which to run the function. Required when deploying a new
|
220
270
|
# function, optional when updating an existing function. For a complete list of
|
221
271
|
# possible choices, see the [`gcloud` command reference](https://cloud.google.
|
@@ -224,6 +274,11 @@ module Google
|
|
224
274
|
# @return [String]
|
225
275
|
attr_accessor :runtime
|
226
276
|
|
277
|
+
# [Preview] Service account to be used for building the container
|
278
|
+
# Corresponds to the JSON property `serviceAccount`
|
279
|
+
# @return [String]
|
280
|
+
attr_accessor :service_account
|
281
|
+
|
227
282
|
# The location of the function source code.
|
228
283
|
# Corresponds to the JSON property `source`
|
229
284
|
# @return [Google::Apis::CloudfunctionsV2alpha::Source]
|
@@ -259,12 +314,15 @@ module Google
|
|
259
314
|
|
260
315
|
# Update properties of this object
|
261
316
|
def update!(**args)
|
317
|
+
@automatic_update_policy = args[:automatic_update_policy] if args.key?(:automatic_update_policy)
|
262
318
|
@build = args[:build] if args.key?(:build)
|
263
319
|
@docker_registry = args[:docker_registry] if args.key?(:docker_registry)
|
264
320
|
@docker_repository = args[:docker_repository] if args.key?(:docker_repository)
|
265
321
|
@entry_point = args[:entry_point] if args.key?(:entry_point)
|
266
322
|
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
323
|
+
@on_deploy_update_policy = args[:on_deploy_update_policy] if args.key?(:on_deploy_update_policy)
|
267
324
|
@runtime = args[:runtime] if args.key?(:runtime)
|
325
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
268
326
|
@source = args[:source] if args.key?(:source)
|
269
327
|
@source_provenance = args[:source_provenance] if args.key?(:source_provenance)
|
270
328
|
@source_token = args[:source_token] if args.key?(:source_token)
|
@@ -622,6 +680,13 @@ module Google
|
|
622
680
|
class GenerateUploadUrlRequest
|
623
681
|
include Google::Apis::Core::Hashable
|
624
682
|
|
683
|
+
# The function environment the generated upload url will be used for. The upload
|
684
|
+
# url for 2nd Gen functions can also be used for 1st gen functions, but not vice
|
685
|
+
# versa. If not specified, 2nd generation-style upload URLs are generated.
|
686
|
+
# Corresponds to the JSON property `environment`
|
687
|
+
# @return [String]
|
688
|
+
attr_accessor :environment
|
689
|
+
|
625
690
|
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
626
691
|
# encrypt/decrypt function source code objects in intermediate Cloud Storage
|
627
692
|
# buckets. When you generate an upload url and upload your source code, it gets
|
@@ -643,6 +708,7 @@ module Google
|
|
643
708
|
|
644
709
|
# Update properties of this object
|
645
710
|
def update!(**args)
|
711
|
+
@environment = args[:environment] if args.key?(:environment)
|
646
712
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
647
713
|
end
|
648
714
|
end
|
@@ -1372,6 +1438,26 @@ module Google
|
|
1372
1438
|
end
|
1373
1439
|
end
|
1374
1440
|
|
1441
|
+
# Security patches are only applied when a function is redeployed.
|
1442
|
+
class OnDeployUpdatePolicy
|
1443
|
+
include Google::Apis::Core::Hashable
|
1444
|
+
|
1445
|
+
# Output only. contains the runtime version which was used during latest
|
1446
|
+
# function deployment.
|
1447
|
+
# Corresponds to the JSON property `runtimeVersion`
|
1448
|
+
# @return [String]
|
1449
|
+
attr_accessor :runtime_version
|
1450
|
+
|
1451
|
+
def initialize(**args)
|
1452
|
+
update!(**args)
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
# Update properties of this object
|
1456
|
+
def update!(**args)
|
1457
|
+
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
1458
|
+
end
|
1459
|
+
end
|
1460
|
+
|
1375
1461
|
# This resource represents a long-running operation that is the result of a
|
1376
1462
|
# network API call.
|
1377
1463
|
class Operation
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudfunctionsV2alpha
|
18
18
|
# Version of the google-apis-cloudfunctions_v2alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240118"
|
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::CloudfunctionsV2alpha::AutomaticUpdatePolicy, decorator: Google::Apis::CloudfunctionsV2alpha::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::CloudfunctionsV2alpha::OnDeployUpdatePolicy, decorator: Google::Apis::CloudfunctionsV2alpha::OnDeployUpdatePolicy::Representation
|
357
|
+
|
336
358
|
property :runtime, as: 'runtime'
|
359
|
+
property :service_account, as: 'serviceAccount'
|
337
360
|
property :source, as: 'source', class: Google::Apis::CloudfunctionsV2alpha::Source, decorator: Google::Apis::CloudfunctionsV2alpha::Source::Representation
|
338
361
|
|
339
362
|
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudfunctionsV2alpha::SourceProvenance, decorator: Google::Apis::CloudfunctionsV2alpha::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_v2alpha',
|
48
50
|
client_version: Google::Apis::CloudfunctionsV2alpha::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_v2alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.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-28 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_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2alpha/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2alpha
|
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 V2alpha
|