google-apis-cloudfunctions_v1 0.12.0 → 0.16.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: 50f63f0843884da8589ebaf6fa3ba209e60d899ead50724e20f60c985e03f2fe
4
- data.tar.gz: 45ba1c225e57ffe31237ed44c06752ced33c85e15df66f284cbb4a905616b42d
3
+ metadata.gz: 77bc0979a9af8dd74b969266f9532edac65f9ee58a6fbb633482683c7c8c7d9b
4
+ data.tar.gz: d6fb33ff7b9bbcabb72a2eb6e8e8ccf09ec4bb3fdf40e6d1c360e74f7c8bde05
5
5
  SHA512:
6
- metadata.gz: fff5d7974c35b5c4b3efdd230234b35bb91ab50abe60c2da4772483c9902430d94baab71bcda2e336045b3f68af652447193f742506dbba51ccd2f95027e5432
7
- data.tar.gz: 1916df22c7f4eb15074e19fd5aef117dd691fcd81d839dc261620deb4fca8da63da06183cd9091e8fb6ad0607e386325d32738cf42651ca715a8cca1adfa23e9
6
+ metadata.gz: a19abc50d3482b5e0b5e22395f7c6f320f3c592958f193505c729aeb25d95fe3d0ee8633aa6a36ec2c84ab32b590e429b40083cc2d399916f5728dde439ccf65
7
+ data.tar.gz: c1c1ebfa1569b57b85ff183430c7af2ff5383f99e83fc46efc3522d7a4c8fa878b4a15a4d99ea2f32b82023649cdd6e94a183374e52e2b4189393659fd8045cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-cloudfunctions_v1
2
2
 
3
+ ### v0.16.0 (2021-11-13)
4
+
5
+ * Regenerated from discovery document revision 20211108
6
+
7
+ ### v0.15.0 (2021-11-05)
8
+
9
+ * Regenerated from discovery document revision 20211027
10
+
11
+ ### v0.14.0 (2021-10-22)
12
+
13
+ * Regenerated from discovery document revision 20211014
14
+ * Unspecified changes
15
+
16
+ ### v0.13.0 (2021-10-09)
17
+
18
+ * Regenerated from discovery document revision 20210929
19
+
3
20
  ### v0.12.0 (2021-09-01)
4
21
 
5
22
  * Regenerated from discovery document revision 20210819
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudfunctions service in particular.)
67
67
 
@@ -93,7 +93,7 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
- # Associates `members` with a `role`.
96
+ # Associates `members`, or principals, with a `role`.
97
97
  class Binding
98
98
  include Google::Apis::Core::Hashable
99
99
 
@@ -116,7 +116,7 @@ module Google
116
116
  # @return [Google::Apis::CloudfunctionsV1::Expr]
117
117
  attr_accessor :condition
118
118
 
119
- # Specifies the identities requesting access for a Cloud Platform resource. `
119
+ # Specifies the principals requesting access for a Cloud Platform resource. `
120
120
  # members` can have the following values: * `allUsers`: A special identifier
121
121
  # that represents anyone who is on the internet; with or without a Google
122
122
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -146,8 +146,8 @@ module Google
146
146
  # @return [Array<String>]
147
147
  attr_accessor :members
148
148
 
149
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
- # , or `roles/owner`.
149
+ # Role that is assigned to the list of `members`, or principals. For example, `
150
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
151
151
  # Corresponds to the JSON property `role`
152
152
  # @return [String]
153
153
  attr_accessor :role
@@ -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. Next tag: 35
220
+ # to an event. It encapsulate function and triggers configurations. Next tag: 36
221
221
  class CloudFunction
222
222
  include Google::Apis::Core::Hashable
223
223
 
@@ -260,6 +260,19 @@ module Google
260
260
  # @return [String]
261
261
  attr_accessor :description
262
262
 
263
+ # User managed repository created in Artifact Registry optionally with a
264
+ # customer managed encryption key. If specified, deployments will use Artifact
265
+ # Registry. If unspecified and the deployment is eligible to use Artifact
266
+ # Registry, GCF will create and use a repository named 'gcf-artifacts' for every
267
+ # deployed region. This is the repository to which the function docker image
268
+ # will be pushed after it is built by Cloud Build. It must match the pattern `
269
+ # projects/`project`/locations/`location`/repositories/`repository``. Cross-
270
+ # project repositories are not supported. Cross-location repositories are not
271
+ # supported. Repository format must be 'DOCKER'.
272
+ # Corresponds to the JSON property `dockerRepository`
273
+ # @return [String]
274
+ attr_accessor :docker_repository
275
+
263
276
  # The name of the function (as defined in source code) that will be executed.
264
277
  # Defaults to the resource name suffix, if not specified. For backward
265
278
  # compatibility, if function with given name is not found, then the system will
@@ -289,6 +302,28 @@ module Google
289
302
  # @return [String]
290
303
  attr_accessor :ingress_settings
291
304
 
305
+ # Resource name of a KMS crypto key (managed by the user) used to encrypt/
306
+ # decrypt function resources. It must match the pattern `projects/`project`/
307
+ # locations/`location`/keyRings/`key_ring`/cryptoKeys/`crypto_key``. If
308
+ # specified, you must also provide an artifact registry repository using the `
309
+ # docker_repository` field that was created with the same KMS crypto key. The
310
+ # following service accounts need to be granted the role 'Cloud KMS CryptoKey
311
+ # Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/
312
+ # KeyRing/Project/Organization (least access preferred). 1. Google Cloud
313
+ # Functions service account (service-`project_number`@gcf-admin-robot.iam.
314
+ # gserviceaccount.com) - Required to protect the function's image. 2. Google
315
+ # Storage service account (service-`project_number`@gs-project-accounts.iam.
316
+ # gserviceaccount.com) - Required to protect the function's source code. If this
317
+ # service account does not exist, deploying a function without a KMS key or
318
+ # retrieving the service agent name provisions it. For more information, see
319
+ # https://cloud.google.com/storage/docs/projects#service-agents and https://
320
+ # cloud.google.com/storage/docs/getting-service-agent#gsutil. Google Cloud
321
+ # Functions delegates access to service agents to protect function resources in
322
+ # internal projects that are not accessible by the end user.
323
+ # Corresponds to the JSON property `kmsKeyName`
324
+ # @return [String]
325
+ attr_accessor :kms_key_name
326
+
292
327
  # Labels associated with this Cloud Function.
293
328
  # Corresponds to the JSON property `labels`
294
329
  # @return [Hash<String,String>]
@@ -432,11 +467,13 @@ module Google
432
467
  @build_name = args[:build_name] if args.key?(:build_name)
433
468
  @build_worker_pool = args[:build_worker_pool] if args.key?(:build_worker_pool)
434
469
  @description = args[:description] if args.key?(:description)
470
+ @docker_repository = args[:docker_repository] if args.key?(:docker_repository)
435
471
  @entry_point = args[:entry_point] if args.key?(:entry_point)
436
472
  @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
437
473
  @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
438
474
  @https_trigger = args[:https_trigger] if args.key?(:https_trigger)
439
475
  @ingress_settings = args[:ingress_settings] if args.key?(:ingress_settings)
476
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
440
477
  @labels = args[:labels] if args.key?(:labels)
441
478
  @max_instances = args[:max_instances] if args.key?(:max_instances)
442
479
  @min_instances = args[:min_instances] if args.key?(:min_instances)
@@ -953,31 +990,31 @@ module Google
953
990
 
954
991
  # An Identity and Access Management (IAM) policy, which specifies access
955
992
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
956
- # A `binding` binds one or more `members` to a single `role`. Members can be
957
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
958
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
959
- # role or a user-created custom role. For some types of Google Cloud resources,
960
- # a `binding` can also specify a `condition`, which is a logical expression that
961
- # allows access to a resource only if the expression evaluates to `true`. A
962
- # condition can add constraints based on attributes of the request, the resource,
963
- # or both. To learn which resources support conditions in their IAM policies,
964
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
965
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
966
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
967
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
968
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
969
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
970
- # title": "expirable access", "description": "Does not grant access after Sep
971
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
972
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
973
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
974
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
975
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
976
- # roles/resourcemanager.organizationViewer condition: title: expirable access
977
- # description: Does not grant access after Sep 2020 expression: request.time <
978
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
979
- # description of IAM and its features, see the [IAM documentation](https://cloud.
980
- # google.com/iam/docs/).
993
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
994
+ # Principals can be user accounts, service accounts, Google groups, and domains (
995
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
996
+ # an IAM predefined role or a user-created custom role. For some types of Google
997
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
998
+ # logical expression that allows access to a resource only if the expression
999
+ # evaluates to `true`. A condition can add constraints based on attributes of
1000
+ # the request, the resource, or both. To learn which resources support
1001
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1002
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1003
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1004
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1005
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1006
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1007
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1008
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1009
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1010
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1011
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1012
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1013
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1014
+ # access description: Does not grant access after Sep 2020 expression: request.
1015
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1016
+ # a description of IAM and its features, see the [IAM documentation](https://
1017
+ # cloud.google.com/iam/docs/).
981
1018
  class Policy
982
1019
  include Google::Apis::Core::Hashable
983
1020
 
@@ -986,9 +1023,14 @@ module Google
986
1023
  # @return [Array<Google::Apis::CloudfunctionsV1::AuditConfig>]
987
1024
  attr_accessor :audit_configs
988
1025
 
989
- # Associates a list of `members` to a `role`. Optionally, may specify a `
990
- # condition` that determines how and when the `bindings` are applied. Each of
991
- # the `bindings` must contain at least one member.
1026
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1027
+ # specify a `condition` that determines how and when the `bindings` are applied.
1028
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1029
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1030
+ # can be Google groups. Each occurrence of a principal counts towards these
1031
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1032
+ # example.com`, and not to any other principal, then you can add another 1,450
1033
+ # principals to the `bindings` in the `Policy`.
992
1034
  # Corresponds to the JSON property `bindings`
993
1035
  # @return [Array<Google::Apis::CloudfunctionsV1::Binding>]
994
1036
  attr_accessor :bindings
@@ -1188,31 +1230,31 @@ module Google
1188
1230
 
1189
1231
  # An Identity and Access Management (IAM) policy, which specifies access
1190
1232
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1191
- # A `binding` binds one or more `members` to a single `role`. Members can be
1192
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1193
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1194
- # role or a user-created custom role. For some types of Google Cloud resources,
1195
- # a `binding` can also specify a `condition`, which is a logical expression that
1196
- # allows access to a resource only if the expression evaluates to `true`. A
1197
- # condition can add constraints based on attributes of the request, the resource,
1198
- # or both. To learn which resources support conditions in their IAM policies,
1199
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1200
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1201
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1202
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1203
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1204
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1205
- # title": "expirable access", "description": "Does not grant access after Sep
1206
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1207
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1208
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1209
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1210
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1211
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1212
- # description: Does not grant access after Sep 2020 expression: request.time <
1213
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1214
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1215
- # google.com/iam/docs/).
1233
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1234
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1235
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1236
+ # an IAM predefined role or a user-created custom role. For some types of Google
1237
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1238
+ # logical expression that allows access to a resource only if the expression
1239
+ # evaluates to `true`. A condition can add constraints based on attributes of
1240
+ # the request, the resource, or both. To learn which resources support
1241
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1242
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1243
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1244
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1245
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1246
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1247
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1248
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1249
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1250
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1251
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1252
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1253
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1254
+ # access description: Does not grant access after Sep 2020 expression: request.
1255
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1256
+ # a description of IAM and its features, see the [IAM documentation](https://
1257
+ # cloud.google.com/iam/docs/).
1216
1258
  # Corresponds to the JSON property `policy`
1217
1259
  # @return [Google::Apis::CloudfunctionsV1::Policy]
1218
1260
  attr_accessor :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.12.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210819"
25
+ REVISION = "20211108"
26
26
  end
27
27
  end
28
28
  end
@@ -254,6 +254,7 @@ module Google
254
254
  property :build_name, as: 'buildName'
255
255
  property :build_worker_pool, as: 'buildWorkerPool'
256
256
  property :description, as: 'description'
257
+ property :docker_repository, as: 'dockerRepository'
257
258
  property :entry_point, as: 'entryPoint'
258
259
  hash :environment_variables, as: 'environmentVariables'
259
260
  property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
@@ -261,6 +262,7 @@ module Google
261
262
  property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
262
263
 
263
264
  property :ingress_settings, as: 'ingressSettings'
265
+ property :kms_key_name, as: 'kmsKeyName'
264
266
  hash :labels, as: 'labels'
265
267
  property :max_instances, as: 'maxInstances'
266
268
  property :min_instances, as: 'minInstances'
@@ -400,13 +400,16 @@ module Google
400
400
  # REQUIRED: The resource for which the policy is being requested. See the
401
401
  # operation documentation for the appropriate value for this field.
402
402
  # @param [Fixnum] options_requested_policy_version
403
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
404
- # 3. Requests specifying an invalid value will be rejected. Requests for
405
- # policies with any conditional bindings must specify version 3. Policies
406
- # without any conditional bindings may specify any valid value or leave the
407
- # field unset. To learn which resources support conditions in their IAM policies,
408
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
409
- # resource-policies).
403
+ # Optional. The maximum policy version that will be used to format the policy.
404
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
405
+ # rejected. Requests for policies with any conditional role bindings must
406
+ # specify version 3. Policies with no conditional role bindings may specify any
407
+ # valid value or leave the field unset. The policy in the response might use the
408
+ # policy version that you specified, or it might use a lower policy version. For
409
+ # example, if you specify version 3, but the policy has no conditional role
410
+ # bindings, the response uses version 1. To learn which resources support
411
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
412
+ # google.com/iam/help/conditions/resource-policies).
410
413
  # @param [String] fields
411
414
  # Selector specifying which fields to include in a partial response.
412
415
  # @param [String] quota_user
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.12.0
4
+ version: 0.16.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-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudfunctions_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v1/v0.16.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: