google-cloud-functions-v1 0.6.0 → 0.7.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: 31c4887ff7d578025e54857ed42310373e66cda417d021b98d98c3d9d6187c4b
4
- data.tar.gz: e45e3f695ed1cad3ebc728356ee46c4502efa98890a90e45018355d163c38443
3
+ metadata.gz: f24c101e70b11b99c3b0995f8e5ded3aad2d90adb67701fd2dd2568af5387662
4
+ data.tar.gz: 30bb9fdd212c76ab4484b5121705e3ae5945a742425a39163d5c6f24178bc865
5
5
  SHA512:
6
- metadata.gz: e30d410994321c2e651143c2a1561c00fd484058fd528fe6d33b96f217a58167177ce703f7994daa596feaf8e69f823ecb11e457562bdbe38e8e9fec8ab8df5c
7
- data.tar.gz: 3d9e6ee5616693dc85b166fbb136155ef2978fcd82a755f14f0c6677be4bd4db3d2314d32efe7f3f18dbba0f90700773f32d5b499226b22c1aec2f4c545a437b
6
+ metadata.gz: c504864c073610c7f278f3ab194f007c8f7fab7f61bbabf130515df23410a0180926a8e6f7848cda9f6a27447dbbe077d2b12732efe2c3ebaa2de6416e47db5d
7
+ data.tar.gz: b7d96aec8e03a6b2d3b502922d4eca727141d77235eece012a7259aa09385dd582ebf7b7b143437619eefa4d38263b6b4fb3fc3f80e93b245ab265c970750f0d
data/README.md CHANGED
@@ -69,6 +69,11 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
79
  This library is supported on Ruby 2.5+.
@@ -489,7 +489,7 @@ module Google
489
489
  # @param function [::Google::Cloud::Functions::V1::CloudFunction, ::Hash]
490
490
  # Required. New version of the function.
491
491
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
492
- # Required list of fields to be updated in this request.
492
+ # Required. The list of fields in `CloudFunction` that have to be updated.
493
493
  #
494
494
  # @yield [response, operation] Access the result along with the RPC operation
495
495
  # @yieldparam response [::Gapic::Operation]
@@ -785,7 +785,7 @@ module Google
785
785
  # @param options [::Gapic::CallOptions, ::Hash]
786
786
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
787
787
  #
788
- # @overload generate_upload_url(parent: nil)
788
+ # @overload generate_upload_url(parent: nil, kms_key_name: nil)
789
789
  # Pass arguments to `generate_upload_url` via keyword arguments. Note that at
790
790
  # least one keyword argument is required. To specify no parameters, or to keep all
791
791
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -793,6 +793,24 @@ module Google
793
793
  # @param parent [::String]
794
794
  # The project and location in which the Google Cloud Storage signed URL
795
795
  # should be generated, specified in the format `projects/*/locations/*`.
796
+ # @param kms_key_name [::String]
797
+ # Resource name of a KMS crypto key (managed by the user) used to
798
+ # encrypt/decrypt function source code objects in staging Cloud Storage
799
+ # buckets. When you generate an upload url and upload your source code, it
800
+ # gets copied to a staging Cloud Storage bucket in an internal regional
801
+ # project. The source code is then copied to a versioned directory in the
802
+ # sources bucket in the consumer project during the function deployment.
803
+ #
804
+ # It must match the pattern
805
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
806
+ #
807
+ # The Google Cloud Functions service account
808
+ # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
809
+ # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
810
+ # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
811
+ # Key/KeyRing/Project/Organization (least access preferred). GCF will
812
+ # delegate access to the Google Storage service account in the internal
813
+ # project.
796
814
  #
797
815
  # @yield [response, operation] Access the result along with the RPC operation
798
816
  # @yieldparam response [::Google::Cloud::Functions::V1::GenerateUploadUrlResponse]
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/functions/v1/functions.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -11,7 +13,6 @@ require 'google/longrunning/operations_pb'
11
13
  require 'google/protobuf/duration_pb'
12
14
  require 'google/protobuf/field_mask_pb'
13
15
  require 'google/protobuf/timestamp_pb'
14
- require 'google/protobuf'
15
16
 
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_file("google/cloud/functions/v1/functions.proto", :syntax => :proto3) do
@@ -43,6 +44,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
44
  repeated :secret_volumes, :message, 30, "google.cloud.functions.v1.SecretVolume"
44
45
  optional :source_token, :string, 31
45
46
  optional :docker_repository, :string, 34
47
+ optional :docker_registry, :enum, 35, "google.cloud.functions.v1.CloudFunction.DockerRegistry"
46
48
  oneof :source_code do
47
49
  optional :source_archive_url, :string, 3
48
50
  optional :source_repository, :message, 4, "google.cloud.functions.v1.SourceRepository"
@@ -64,6 +66,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
64
66
  value :ALLOW_INTERNAL_ONLY, 2
65
67
  value :ALLOW_INTERNAL_AND_GCLB, 3
66
68
  end
69
+ add_enum "google.cloud.functions.v1.CloudFunction.DockerRegistry" do
70
+ value :DOCKER_REGISTRY_UNSPECIFIED, 0
71
+ value :CONTAINER_REGISTRY, 1
72
+ value :ARTIFACT_REGISTRY, 2
73
+ end
67
74
  add_message "google.cloud.functions.v1.SourceRepository" do
68
75
  optional :url, :string, 1
69
76
  optional :deployed_url, :string, 2
@@ -141,6 +148,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
141
148
  end
142
149
  add_message "google.cloud.functions.v1.GenerateUploadUrlRequest" do
143
150
  optional :parent, :string, 1
151
+ optional :kms_key_name, :string, 2
144
152
  end
145
153
  add_message "google.cloud.functions.v1.GenerateUploadUrlResponse" do
146
154
  optional :upload_url, :string, 1
@@ -170,6 +178,7 @@ module Google
170
178
  CloudFunction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction").msgclass
171
179
  CloudFunction::VpcConnectorEgressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings").enummodule
172
180
  CloudFunction::IngressSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.IngressSettings").enummodule
181
+ CloudFunction::DockerRegistry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.CloudFunction.DockerRegistry").enummodule
173
182
  SourceRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.SourceRepository").msgclass
174
183
  HttpsTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.HttpsTrigger").msgclass
175
184
  HttpsTrigger::SecurityLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v1.HttpsTrigger.SecurityLevel").enummodule
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/functions/v1/operations.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/protobuf/any_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
- require 'google/api/annotations_pb'
7
- require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/functions/v1/operations.proto", :syntax => :proto3) do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,7 +23,6 @@ module Google
23
23
  module V1
24
24
  # Describes a Cloud Function that contains user computation executed in
25
25
  # response to an event. It encapsulate function and triggers configurations.
26
- # Next tag: 36
27
26
  # @!attribute [rw] name
28
27
  # @return [::String]
29
28
  # A user-defined name of the function. Function names must be unique
@@ -167,8 +166,9 @@ module Google
167
166
  # the `docker_repository` field that was created with the same KMS crypto
168
167
  # key.
169
168
  #
170
- # The following service accounts need to be granted Cloud KMS crypto key
171
- # encrypter/decrypter roles on the key.
169
+ # The following service accounts need to be granted the role 'Cloud KMS
170
+ # CryptoKey Encrypter/Decrypter (roles/cloudkms.cryptoKeyEncrypterDecrypter)'
171
+ # on the Key/KeyRing/Project/Organization (least access preferred).
172
172
  #
173
173
  # 1. Google Cloud Functions service account
174
174
  # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) -
@@ -232,6 +232,14 @@ module Google
232
232
  # Cross-project repositories are not supported.
233
233
  # Cross-location repositories are not supported.
234
234
  # Repository format must be 'DOCKER'.
235
+ # @!attribute [rw] docker_registry
236
+ # @return [::Google::Cloud::Functions::V1::CloudFunction::DockerRegistry]
237
+ # Docker Registry to use for this deployment.
238
+ #
239
+ # If `docker_repository` field is specified, this field will be automatically
240
+ # set as `ARTIFACT_REGISTRY`.
241
+ # If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
242
+ # This field may be overridden by the backend for eligible deployments.
235
243
  class CloudFunction
236
244
  include ::Google::Protobuf::MessageExts
237
245
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -297,6 +305,23 @@ module Google
297
305
  # Allow HTTP traffic from private VPC sources and through GCLB.
298
306
  ALLOW_INTERNAL_AND_GCLB = 3
299
307
  end
308
+
309
+ # Docker Registry to use for storing function Docker images.
310
+ module DockerRegistry
311
+ # Unspecified.
312
+ DOCKER_REGISTRY_UNSPECIFIED = 0
313
+
314
+ # Docker images will be stored in multi-regional Container Registry
315
+ # repositories named `gcf`.
316
+ CONTAINER_REGISTRY = 1
317
+
318
+ # Docker images will be stored in regional Artifact Registry repositories.
319
+ # By default, GCF will create and use repositories named `gcf-artifacts`
320
+ # in every region in which a function is deployed. But the repository to
321
+ # use can also be specified by the user using the `docker_repository`
322
+ # field.
323
+ ARTIFACT_REGISTRY = 2
324
+ end
300
325
  end
301
326
 
302
327
  # Describes SourceRepository, used to represent parameters related to
@@ -434,8 +459,7 @@ module Google
434
459
 
435
460
  # Configuration for a secret environment variable. It has the information
436
461
  # necessary to fetch the secret value from secret manager and expose it as an
437
- # environment variable. Secret value is not a part of the configuration. Secret
438
- # values are only fetched when a new clone starts.
462
+ # environment variable.
439
463
  # @!attribute [rw] key
440
464
  # @return [::String]
441
465
  # Name of the environment variable.
@@ -452,7 +476,7 @@ module Google
452
476
  # @return [::String]
453
477
  # Version of the secret (version number or the string 'latest'). It is
454
478
  # recommended to use a numeric version for secret environment variables as
455
- # any updates to the secret value is not reflected until new clones start.
479
+ # any updates to the secret value is not reflected until new instances start.
456
480
  class SecretEnvVar
457
481
  include ::Google::Protobuf::MessageExts
458
482
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -527,7 +551,7 @@ module Google
527
551
  # Required. New version of the function.
528
552
  # @!attribute [rw] update_mask
529
553
  # @return [::Google::Protobuf::FieldMask]
530
- # Required list of fields to be updated in this request.
554
+ # Required. The list of fields in `CloudFunction` that have to be updated.
531
555
  class UpdateFunctionRequest
532
556
  include ::Google::Protobuf::MessageExts
533
557
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -627,6 +651,25 @@ module Google
627
651
  # @return [::String]
628
652
  # The project and location in which the Google Cloud Storage signed URL
629
653
  # should be generated, specified in the format `projects/*/locations/*`.
654
+ # @!attribute [rw] kms_key_name
655
+ # @return [::String]
656
+ # Resource name of a KMS crypto key (managed by the user) used to
657
+ # encrypt/decrypt function source code objects in staging Cloud Storage
658
+ # buckets. When you generate an upload url and upload your source code, it
659
+ # gets copied to a staging Cloud Storage bucket in an internal regional
660
+ # project. The source code is then copied to a versioned directory in the
661
+ # sources bucket in the consumer project during the function deployment.
662
+ #
663
+ # It must match the pattern
664
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
665
+ #
666
+ # The Google Cloud Functions service account
667
+ # (service-\\{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
668
+ # granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
669
+ # (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
670
+ # Key/KeyRing/Project/Organization (least access preferred). GCF will
671
+ # delegate access to the Google Storage service account in the internal
672
+ # project.
630
673
  class GenerateUploadUrlRequest
631
674
  include ::Google::Protobuf::MessageExts
632
675
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-functions-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.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: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.3.5
232
+ rubygems_version: 3.3.14
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: API Client library for the Cloud Functions V1 API