google-apis-cloudfunctions_v1 0.8.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95848fac9f380f3d4dbc4a83c082c8114acd9666cba725736386e75d6b84bd0c
4
- data.tar.gz: 90c6a2bfaa0e07f4dc2035e846b38a1df8e5676ff028f3458caa49cf7e3a5c46
3
+ metadata.gz: 50f63f0843884da8589ebaf6fa3ba209e60d899ead50724e20f60c985e03f2fe
4
+ data.tar.gz: 45ba1c225e57ffe31237ed44c06752ced33c85e15df66f284cbb4a905616b42d
5
5
  SHA512:
6
- metadata.gz: b467c37e00b8b0e1f00d362c3b5314eb85b2a95551b196e03d85d5bea9396fd4e319e9f93ea4e8d4debbca2038d36000e89e4a777f8ddadb1ff6dc74fd487d75
7
- data.tar.gz: 58ddb4b88d69dcc104ef63cf5b5b672e880b6ac7b649d0efeb93c5f554b2188691a2eb282d814112556256165b320dd05fed3e3a68536451d0889489c435661f
6
+ metadata.gz: fff5d7974c35b5c4b3efdd230234b35bb91ab50abe60c2da4772483c9902430d94baab71bcda2e336045b3f68af652447193f742506dbba51ccd2f95027e5432
7
+ data.tar.gz: 1916df22c7f4eb15074e19fd5aef117dd691fcd81d839dc261620deb4fca8da63da06183cd9091e8fb6ad0607e386325d32738cf42651ca715a8cca1adfa23e9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudfunctions_v1
2
2
 
3
+ ### v0.12.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210819
6
+
7
+ ### v0.11.0 (2021-07-22)
8
+
9
+ * Regenerated from discovery document revision 20210715
10
+
11
+ ### v0.10.0 (2021-07-15)
12
+
13
+ * Regenerated from discovery document revision 20210708
14
+
15
+ ### v0.9.0 (2021-06-29)
16
+
17
+ * Regenerated using generator version 0.4.0
18
+
3
19
  ### v0.8.0 (2021-06-24)
4
20
 
5
21
  * Regenerated using generator version 0.3.0
@@ -217,7 +217,7 @@ module Google
217
217
  end
218
218
 
219
219
  # Describes a Cloud Function that contains user computation executed in response
220
- # to an event. It encapsulate function and triggers configurations.
220
+ # to an event. It encapsulate function and triggers configurations. Next tag: 35
221
221
  class CloudFunction
222
222
  include Google::Apis::Core::Hashable
223
223
 
@@ -237,14 +237,20 @@ module Google
237
237
  # @return [String]
238
238
  attr_accessor :build_id
239
239
 
240
+ # Output only. The Cloud Build Name of the function deployment. `projects//
241
+ # locations//builds/`.
242
+ # Corresponds to the JSON property `buildName`
243
+ # @return [String]
244
+ attr_accessor :build_name
245
+
240
246
  # Name of the Cloud Build Custom Worker Pool that should be used to build the
241
247
  # function. The format of this field is `projects/`project`/locations/`region`/
242
- # workerPools/`workerPool`` where `project` and `region` are the project id and
243
- # region respectively where the worker pool is defined and `workerPool` is the
244
- # short name of the worker pool. If the project id is not the same as the
245
- # function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.
246
- # gserviceaccount.com) must be granted the role Cloud Build Custom Workers
247
- # Builder (roles/cloudbuild.customworkers.builder) in the project.
248
+ # workerPools/`workerPool`` where ``project`` and ``region`` are the project id
249
+ # and region respectively where the worker pool is defined and ``workerPool`` is
250
+ # the short name of the worker pool. If the project id is not the same as the
251
+ # function, then the Cloud Functions Service Agent (`service-@gcf-admin-robot.
252
+ # iam.gserviceaccount.com`) must be granted the role Cloud Build Custom Workers
253
+ # Builder (`roles/cloudbuild.customworkers.builder`) in the project.
248
254
  # Corresponds to the JSON property `buildWorkerPool`
249
255
  # @return [String]
250
256
  attr_accessor :build_worker_pool
@@ -299,6 +305,12 @@ module Google
299
305
  # @return [Fixnum]
300
306
  attr_accessor :max_instances
301
307
 
308
+ # A lower bound for the number function instances that may coexist at a given
309
+ # time.
310
+ # Corresponds to the JSON property `minInstances`
311
+ # @return [Fixnum]
312
+ attr_accessor :min_instances
313
+
302
314
  # A user-defined name of the function. Function names must be unique globally
303
315
  # and match pattern `projects/*/locations/*/functions/*`
304
316
  # Corresponds to the JSON property `name`
@@ -310,8 +322,8 @@ module Google
310
322
  # network name is used, the network must belong to the same project. Otherwise,
311
323
  # it must belong to a project within the same organization. The format of this
312
324
  # field is either `projects/`project`/global/networks/`network`` or ``network``,
313
- # where `project` is a project id where the network is defined, and `network` is
314
- # the short name of the network. This field is mutually exclusive with `
325
+ # where ``project`` is a project id where the network is defined, and ``network``
326
+ # is the short name of the network. This field is mutually exclusive with `
315
327
  # vpc_connector` and will be replaced by it. See [the VPC documentation](https://
316
328
  # cloud.google.com/compute/docs/vpc) for more information on connecting Cloud
317
329
  # projects.
@@ -321,20 +333,30 @@ module Google
321
333
 
322
334
  # The runtime in which to run the function. Required when deploying a new
323
335
  # function, optional when updating an existing function. For a complete list of
324
- # possible choices, see the [`gcloud` command reference](/sdk/gcloud/reference/
325
- # functions/deploy#--runtime).
336
+ # possible choices, see the [`gcloud` command reference](https://cloud.google.
337
+ # com/sdk/gcloud/reference/functions/deploy#--runtime).
326
338
  # Corresponds to the JSON property `runtime`
327
339
  # @return [String]
328
340
  attr_accessor :runtime
329
341
 
342
+ # Secret environment variables configuration.
343
+ # Corresponds to the JSON property `secretEnvironmentVariables`
344
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretEnvVar>]
345
+ attr_accessor :secret_environment_variables
346
+
347
+ # Secret volumes configuration.
348
+ # Corresponds to the JSON property `secretVolumes`
349
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretVolume>]
350
+ attr_accessor :secret_volumes
351
+
330
352
  # The email of the function's service account. If empty, defaults to ``
331
353
  # project_id`@appspot.gserviceaccount.com`.
332
354
  # Corresponds to the JSON property `serviceAccountEmail`
333
355
  # @return [String]
334
356
  attr_accessor :service_account_email
335
357
 
336
- # The Google Cloud Storage URL, starting with gs://, pointing to the zip archive
337
- # which contains the function.
358
+ # The Google Cloud Storage URL, starting with `gs://`, pointing to the zip
359
+ # archive which contains the function.
338
360
  # Corresponds to the JSON property `sourceArchiveUrl`
339
361
  # @return [String]
340
362
  attr_accessor :source_archive_url
@@ -352,7 +374,9 @@ module Google
352
374
  attr_accessor :source_token
353
375
 
354
376
  # The Google Cloud Storage signed URL used for source uploading, generated by
355
- # google.cloud.functions.v1.GenerateUploadUrl
377
+ # calling [google.cloud.functions.v1.GenerateUploadUrl]. The signature is
378
+ # validated on write methods (Create, Update) The signature is stripped from the
379
+ # Function object on read methods (Get, List)
356
380
  # Corresponds to the JSON property `sourceUploadUrl`
357
381
  # @return [String]
358
382
  attr_accessor :source_upload_url
@@ -405,6 +429,7 @@ module Google
405
429
  @available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
406
430
  @build_environment_variables = args[:build_environment_variables] if args.key?(:build_environment_variables)
407
431
  @build_id = args[:build_id] if args.key?(:build_id)
432
+ @build_name = args[:build_name] if args.key?(:build_name)
408
433
  @build_worker_pool = args[:build_worker_pool] if args.key?(:build_worker_pool)
409
434
  @description = args[:description] if args.key?(:description)
410
435
  @entry_point = args[:entry_point] if args.key?(:entry_point)
@@ -414,9 +439,12 @@ module Google
414
439
  @ingress_settings = args[:ingress_settings] if args.key?(:ingress_settings)
415
440
  @labels = args[:labels] if args.key?(:labels)
416
441
  @max_instances = args[:max_instances] if args.key?(:max_instances)
442
+ @min_instances = args[:min_instances] if args.key?(:min_instances)
417
443
  @name = args[:name] if args.key?(:name)
418
444
  @network = args[:network] if args.key?(:network)
419
445
  @runtime = args[:runtime] if args.key?(:runtime)
446
+ @secret_environment_variables = args[:secret_environment_variables] if args.key?(:secret_environment_variables)
447
+ @secret_volumes = args[:secret_volumes] if args.key?(:secret_volumes)
420
448
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
421
449
  @source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
422
450
  @source_repository = args[:source_repository] if args.key?(:source_repository)
@@ -868,7 +896,7 @@ module Google
868
896
  attr_accessor :build_id
869
897
 
870
898
  # The Cloud Build Name of the function deployment. This field is only populated
871
- # for Create and Update operations. projects//locations//builds/.
899
+ # for Create and Update operations. `projects//locations//builds/`.
872
900
  # Corresponds to the JSON property `buildName`
873
901
  # @return [String]
874
902
  attr_accessor :build_name
@@ -884,8 +912,8 @@ module Google
884
912
  # @return [String]
885
913
  attr_accessor :source_token
886
914
 
887
- # Target of the operation - for example projects/project-1/locations/region-1/
888
- # functions/function-1
915
+ # Target of the operation - for example `projects/project-1/locations/region-1/
916
+ # functions/function-1`
889
917
  # Corresponds to the JSON property `target`
890
918
  # @return [String]
891
919
  attr_accessor :target
@@ -947,7 +975,7 @@ module Google
947
975
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
948
976
  # roles/resourcemanager.organizationViewer condition: title: expirable access
949
977
  # description: Does not grant access after Sep 2020 expression: request.time <
950
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
978
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
951
979
  # description of IAM and its features, see the [IAM documentation](https://cloud.
952
980
  # google.com/iam/docs/).
953
981
  class Policy
@@ -1029,6 +1057,131 @@ module Google
1029
1057
  end
1030
1058
  end
1031
1059
 
1060
+ # Configuration for a secret environment variable. It has the information
1061
+ # necessary to fetch the secret value from secret manager and expose it as an
1062
+ # environment variable. Secret value is not a part of the configuration. Secret
1063
+ # values are only fetched when a new clone starts.
1064
+ class SecretEnvVar
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # Name of the environment variable.
1068
+ # Corresponds to the JSON property `key`
1069
+ # @return [String]
1070
+ attr_accessor :key
1071
+
1072
+ # Project identifier (preferrably project number but can also be the project ID)
1073
+ # of the project that contains the secret. If not set, it will be populated with
1074
+ # the function's project assuming that the secret exists in the same project as
1075
+ # of the function.
1076
+ # Corresponds to the JSON property `projectId`
1077
+ # @return [String]
1078
+ attr_accessor :project_id
1079
+
1080
+ # Name of the secret in secret manager (not the full resource name).
1081
+ # Corresponds to the JSON property `secret`
1082
+ # @return [String]
1083
+ attr_accessor :secret
1084
+
1085
+ # Version of the secret (version number or the string 'latest'). It is
1086
+ # recommended to use a numeric version for secret environment variables as any
1087
+ # updates to the secret value is not reflected until new clones start.
1088
+ # Corresponds to the JSON property `version`
1089
+ # @return [String]
1090
+ attr_accessor :version
1091
+
1092
+ def initialize(**args)
1093
+ update!(**args)
1094
+ end
1095
+
1096
+ # Update properties of this object
1097
+ def update!(**args)
1098
+ @key = args[:key] if args.key?(:key)
1099
+ @project_id = args[:project_id] if args.key?(:project_id)
1100
+ @secret = args[:secret] if args.key?(:secret)
1101
+ @version = args[:version] if args.key?(:version)
1102
+ end
1103
+ end
1104
+
1105
+ # Configuration for a single version.
1106
+ class SecretVersion
1107
+ include Google::Apis::Core::Hashable
1108
+
1109
+ # Relative path of the file under the mount path where the secret value for this
1110
+ # version will be fetched and made available. For example, setting the
1111
+ # mount_path as '/etc/secrets' and path as `/secret_foo` would mount the secret
1112
+ # value file at `/etc/secrets/secret_foo`.
1113
+ # Corresponds to the JSON property `path`
1114
+ # @return [String]
1115
+ attr_accessor :path
1116
+
1117
+ # Version of the secret (version number or the string 'latest'). It is
1118
+ # preferrable to use `latest` version with secret volumes as secret value
1119
+ # changes are reflected immediately.
1120
+ # Corresponds to the JSON property `version`
1121
+ # @return [String]
1122
+ attr_accessor :version
1123
+
1124
+ def initialize(**args)
1125
+ update!(**args)
1126
+ end
1127
+
1128
+ # Update properties of this object
1129
+ def update!(**args)
1130
+ @path = args[:path] if args.key?(:path)
1131
+ @version = args[:version] if args.key?(:version)
1132
+ end
1133
+ end
1134
+
1135
+ # Configuration for a secret volume. It has the information necessary to fetch
1136
+ # the secret value from secret manager and make it available as files mounted at
1137
+ # the requested paths within the application container. Secret value is not a
1138
+ # part of the configuration. Every filesystem read operation performs a lookup
1139
+ # in secret manager to retrieve the secret value.
1140
+ class SecretVolume
1141
+ include Google::Apis::Core::Hashable
1142
+
1143
+ # The path within the container to mount the secret volume. For example, setting
1144
+ # the mount_path as `/etc/secrets` would mount the secret value files under the `
1145
+ # /etc/secrets` directory. This directory will also be completely shadowed and
1146
+ # unavailable to mount any other secrets. Recommended mount paths: /etc/secrets
1147
+ # Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
1148
+ # Corresponds to the JSON property `mountPath`
1149
+ # @return [String]
1150
+ attr_accessor :mount_path
1151
+
1152
+ # Project identifier (preferrably project number but can also be the project ID)
1153
+ # of the project that contains the secret. If not set, it will be populated with
1154
+ # the function's project assuming that the secret exists in the same project as
1155
+ # of the function.
1156
+ # Corresponds to the JSON property `projectId`
1157
+ # @return [String]
1158
+ attr_accessor :project_id
1159
+
1160
+ # Name of the secret in secret manager (not the full resource name).
1161
+ # Corresponds to the JSON property `secret`
1162
+ # @return [String]
1163
+ attr_accessor :secret
1164
+
1165
+ # List of secret versions to mount for this secret. If empty, the `latest`
1166
+ # version of the secret will be made available in a file named after the secret
1167
+ # under the mount point.
1168
+ # Corresponds to the JSON property `versions`
1169
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretVersion>]
1170
+ attr_accessor :versions
1171
+
1172
+ def initialize(**args)
1173
+ update!(**args)
1174
+ end
1175
+
1176
+ # Update properties of this object
1177
+ def update!(**args)
1178
+ @mount_path = args[:mount_path] if args.key?(:mount_path)
1179
+ @project_id = args[:project_id] if args.key?(:project_id)
1180
+ @secret = args[:secret] if args.key?(:secret)
1181
+ @versions = args[:versions] if args.key?(:versions)
1182
+ end
1183
+ end
1184
+
1032
1185
  # Request message for `SetIamPolicy` method.
1033
1186
  class SetIamPolicyRequest
1034
1187
  include Google::Apis::Core::Hashable
@@ -1057,7 +1210,7 @@ module Google
1057
1210
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1058
1211
  # roles/resourcemanager.organizationViewer condition: title: expirable access
1059
1212
  # description: Does not grant access after Sep 2020 expression: request.time <
1060
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1213
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1061
1214
  # description of IAM and its features, see the [IAM documentation](https://cloud.
1062
1215
  # google.com/iam/docs/).
1063
1216
  # Corresponds to the JSON property `policy`
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudfunctionsV1
18
18
  # Version of the google-apis-cloudfunctions_v1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210409"
25
+ REVISION = "20210819"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,24 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class SecretEnvVar
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SecretVersion
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class SecretVolume
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
157
175
  class SetIamPolicyRequest
158
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
177
 
@@ -233,6 +251,7 @@ module Google
233
251
  property :available_memory_mb, as: 'availableMemoryMb'
234
252
  hash :build_environment_variables, as: 'buildEnvironmentVariables'
235
253
  property :build_id, as: 'buildId'
254
+ property :build_name, as: 'buildName'
236
255
  property :build_worker_pool, as: 'buildWorkerPool'
237
256
  property :description, as: 'description'
238
257
  property :entry_point, as: 'entryPoint'
@@ -244,9 +263,14 @@ module Google
244
263
  property :ingress_settings, as: 'ingressSettings'
245
264
  hash :labels, as: 'labels'
246
265
  property :max_instances, as: 'maxInstances'
266
+ property :min_instances, as: 'minInstances'
247
267
  property :name, as: 'name'
248
268
  property :network, as: 'network'
249
269
  property :runtime, as: 'runtime'
270
+ collection :secret_environment_variables, as: 'secretEnvironmentVariables', class: Google::Apis::CloudfunctionsV1::SecretEnvVar, decorator: Google::Apis::CloudfunctionsV1::SecretEnvVar::Representation
271
+
272
+ collection :secret_volumes, as: 'secretVolumes', class: Google::Apis::CloudfunctionsV1::SecretVolume, decorator: Google::Apis::CloudfunctionsV1::SecretVolume::Representation
273
+
250
274
  property :service_account_email, as: 'serviceAccountEmail'
251
275
  property :source_archive_url, as: 'sourceArchiveUrl'
252
276
  property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1::SourceRepository, decorator: Google::Apis::CloudfunctionsV1::SourceRepository::Representation
@@ -409,6 +433,35 @@ module Google
409
433
  end
410
434
  end
411
435
 
436
+ class SecretEnvVar
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :key, as: 'key'
440
+ property :project_id, as: 'projectId'
441
+ property :secret, as: 'secret'
442
+ property :version, as: 'version'
443
+ end
444
+ end
445
+
446
+ class SecretVersion
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :path, as: 'path'
450
+ property :version, as: 'version'
451
+ end
452
+ end
453
+
454
+ class SecretVolume
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ property :mount_path, as: 'mountPath'
458
+ property :project_id, as: 'projectId'
459
+ property :secret, as: 'secret'
460
+ collection :versions, as: 'versions', class: Google::Apis::CloudfunctionsV1::SecretVersion, decorator: Google::Apis::CloudfunctionsV1::SecretVersion::Representation
461
+
462
+ end
463
+ end
464
+
412
465
  class SetIamPolicyRequest
413
466
  # @private
414
467
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudfunctions_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.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: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-09-06 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.3'
19
+ version: '0.4'
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.3'
29
+ version: '0.4'
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/master/generated/google-apis-cloudfunctions_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v1/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudfunctions_v1
63
63
  post_install_message:
64
64
  rdoc_options: []