google-apis-cloudfunctions_v1 0.7.0 → 0.11.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: 360f42f513c820e7681ca6736f1f27544a67ca75b5c59af2e06390ed8d09f7e1
4
- data.tar.gz: 52b1aa7c20664b74f061cb57d7086393de6ab6a918e057c402475c7a0e59f9b0
3
+ metadata.gz: 80aa4325bf8fd712da321cd7e619dd09793652f08a70a98c1e6df3ec7afeffbe
4
+ data.tar.gz: df63ff8b45b548b75a364d6d142c93232b3e341ae77b017edc333f08bc6608f0
5
5
  SHA512:
6
- metadata.gz: 47f936d7410a18e91adcd64847a11abc5bcb1e6bf3a065e3106d5f774e0b376ebcf5957d2ce07b04ea6dabecf80137f990e861b839ec8c5335ccba45868baf3e
7
- data.tar.gz: 230eca2644ce09739b5933c3578aa59d2e9fb856b2d7cf14aa716eff6b70939a4936b152290e25dc03be63f5c274b7be5d56fb92853828986198704654f290b4
6
+ metadata.gz: 396e74fc835d957f8b4fb68e59a2e3a268ffe0bafe15f620d4cf73643784aae31ae1067cecf0379b1de618998e74d68cbec1cc220a2d8bb15ff18bf147b29df5
7
+ data.tar.gz: 24743e1a591ded01a897a5de2e4e9f01154666c9ab4d2a6424bc3a2ac802cc0165ef5b18e809c14478f5c91c5b5de330ba29abb8b65786ee49ff0d49ce66a181
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudfunctions_v1
2
2
 
3
+ ### v0.11.0 (2021-07-22)
4
+
5
+ * Regenerated from discovery document revision 20210715
6
+
7
+ ### v0.10.0 (2021-07-15)
8
+
9
+ * Regenerated from discovery document revision 20210708
10
+
11
+ ### v0.9.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.8.0 (2021-06-24)
16
+
17
+ * Regenerated using generator version 0.3.0
18
+
3
19
  ### v0.7.0 (2021-05-19)
4
20
 
5
21
  * Unspecified changes
@@ -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
 
@@ -327,6 +327,16 @@ module Google
327
327
  # @return [String]
328
328
  attr_accessor :runtime
329
329
 
330
+ # Secret environment variables configuration.
331
+ # Corresponds to the JSON property `secretEnvironmentVariables`
332
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretEnvVar>]
333
+ attr_accessor :secret_environment_variables
334
+
335
+ # Secret volumes configuration.
336
+ # Corresponds to the JSON property `secretVolumes`
337
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretVolume>]
338
+ attr_accessor :secret_volumes
339
+
330
340
  # The email of the function's service account. If empty, defaults to ``
331
341
  # project_id`@appspot.gserviceaccount.com`.
332
342
  # Corresponds to the JSON property `serviceAccountEmail`
@@ -417,6 +427,8 @@ module Google
417
427
  @name = args[:name] if args.key?(:name)
418
428
  @network = args[:network] if args.key?(:network)
419
429
  @runtime = args[:runtime] if args.key?(:runtime)
430
+ @secret_environment_variables = args[:secret_environment_variables] if args.key?(:secret_environment_variables)
431
+ @secret_volumes = args[:secret_volumes] if args.key?(:secret_volumes)
420
432
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
421
433
  @source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
422
434
  @source_repository = args[:source_repository] if args.key?(:source_repository)
@@ -1029,6 +1041,131 @@ module Google
1029
1041
  end
1030
1042
  end
1031
1043
 
1044
+ # Configuration for a secret environment variable. It has the information
1045
+ # necessary to fetch the secret value from secret manager and expose it as an
1046
+ # environment variable. Secret value is not a part of the configuration. Secret
1047
+ # values are only fetched when a new clone starts.
1048
+ class SecretEnvVar
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # Name of the environment variable.
1052
+ # Corresponds to the JSON property `key`
1053
+ # @return [String]
1054
+ attr_accessor :key
1055
+
1056
+ # Project identifier (preferrably project number but can also be the project ID)
1057
+ # of the project that contains the secret. If not set, it will be populated with
1058
+ # the function's project assuming that the secret exists in the same project as
1059
+ # of the function.
1060
+ # Corresponds to the JSON property `projectId`
1061
+ # @return [String]
1062
+ attr_accessor :project_id
1063
+
1064
+ # Name of the secret in secret manager (not the full resource name).
1065
+ # Corresponds to the JSON property `secret`
1066
+ # @return [String]
1067
+ attr_accessor :secret
1068
+
1069
+ # Version of the secret (version number or the string 'latest'). It is
1070
+ # recommended to use a numeric version for secret environment variables as any
1071
+ # updates to the secret value is not reflected until new clones start.
1072
+ # Corresponds to the JSON property `version`
1073
+ # @return [String]
1074
+ attr_accessor :version
1075
+
1076
+ def initialize(**args)
1077
+ update!(**args)
1078
+ end
1079
+
1080
+ # Update properties of this object
1081
+ def update!(**args)
1082
+ @key = args[:key] if args.key?(:key)
1083
+ @project_id = args[:project_id] if args.key?(:project_id)
1084
+ @secret = args[:secret] if args.key?(:secret)
1085
+ @version = args[:version] if args.key?(:version)
1086
+ end
1087
+ end
1088
+
1089
+ # Configuration for a single version.
1090
+ class SecretVersion
1091
+ include Google::Apis::Core::Hashable
1092
+
1093
+ # Relative path of the file under the mount path where the secret value for this
1094
+ # version will be fetched and made available. For example, setting the
1095
+ # mount_path as '/etc/secrets' and path as `/secret_foo` would mount the secret
1096
+ # value file at `/etc/secrets/secret_foo`.
1097
+ # Corresponds to the JSON property `path`
1098
+ # @return [String]
1099
+ attr_accessor :path
1100
+
1101
+ # Version of the secret (version number or the string 'latest'). It is
1102
+ # preferrable to use `latest` version with secret volumes as secret value
1103
+ # changes are reflected immediately.
1104
+ # Corresponds to the JSON property `version`
1105
+ # @return [String]
1106
+ attr_accessor :version
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @path = args[:path] if args.key?(:path)
1115
+ @version = args[:version] if args.key?(:version)
1116
+ end
1117
+ end
1118
+
1119
+ # Configuration for a secret volume. It has the information necessary to fetch
1120
+ # the secret value from secret manager and make it available as files mounted at
1121
+ # the requested paths within the application container. Secret value is not a
1122
+ # part of the configuration. Every filesystem read operation performs a lookup
1123
+ # in secret manager to retrieve the secret value.
1124
+ class SecretVolume
1125
+ include Google::Apis::Core::Hashable
1126
+
1127
+ # The path within the container to mount the secret volume. For example, setting
1128
+ # the mount_path as `/etc/secrets` would mount the secret value files under the `
1129
+ # /etc/secrets` directory. This directory will also be completely shadowed and
1130
+ # unavailable to mount any other secrets. Recommended mount paths: /etc/secrets
1131
+ # Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
1132
+ # Corresponds to the JSON property `mountPath`
1133
+ # @return [String]
1134
+ attr_accessor :mount_path
1135
+
1136
+ # Project identifier (preferrably project number but can also be the project ID)
1137
+ # of the project that contains the secret. If not set, it will be populated with
1138
+ # the function's project assuming that the secret exists in the same project as
1139
+ # of the function.
1140
+ # Corresponds to the JSON property `projectId`
1141
+ # @return [String]
1142
+ attr_accessor :project_id
1143
+
1144
+ # Name of the secret in secret manager (not the full resource name).
1145
+ # Corresponds to the JSON property `secret`
1146
+ # @return [String]
1147
+ attr_accessor :secret
1148
+
1149
+ # List of secret versions to mount for this secret. If empty, the `latest`
1150
+ # version of the secret will be made available in a file named after the secret
1151
+ # under the mount point.
1152
+ # Corresponds to the JSON property `versions`
1153
+ # @return [Array<Google::Apis::CloudfunctionsV1::SecretVersion>]
1154
+ attr_accessor :versions
1155
+
1156
+ def initialize(**args)
1157
+ update!(**args)
1158
+ end
1159
+
1160
+ # Update properties of this object
1161
+ def update!(**args)
1162
+ @mount_path = args[:mount_path] if args.key?(:mount_path)
1163
+ @project_id = args[:project_id] if args.key?(:project_id)
1164
+ @secret = args[:secret] if args.key?(:secret)
1165
+ @versions = args[:versions] if args.key?(:versions)
1166
+ end
1167
+ end
1168
+
1032
1169
  # Request message for `SetIamPolicy` method.
1033
1170
  class SetIamPolicyRequest
1034
1171
  include Google::Apis::Core::Hashable
@@ -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.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.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 = "20210715"
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
 
@@ -247,6 +265,10 @@ module Google
247
265
  property :name, as: 'name'
248
266
  property :network, as: 'network'
249
267
  property :runtime, as: 'runtime'
268
+ collection :secret_environment_variables, as: 'secretEnvironmentVariables', class: Google::Apis::CloudfunctionsV1::SecretEnvVar, decorator: Google::Apis::CloudfunctionsV1::SecretEnvVar::Representation
269
+
270
+ collection :secret_volumes, as: 'secretVolumes', class: Google::Apis::CloudfunctionsV1::SecretVolume, decorator: Google::Apis::CloudfunctionsV1::SecretVolume::Representation
271
+
250
272
  property :service_account_email, as: 'serviceAccountEmail'
251
273
  property :source_archive_url, as: 'sourceArchiveUrl'
252
274
  property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1::SourceRepository, decorator: Google::Apis::CloudfunctionsV1::SourceRepository::Representation
@@ -409,6 +431,35 @@ module Google
409
431
  end
410
432
  end
411
433
 
434
+ class SecretEnvVar
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :key, as: 'key'
438
+ property :project_id, as: 'projectId'
439
+ property :secret, as: 'secret'
440
+ property :version, as: 'version'
441
+ end
442
+ end
443
+
444
+ class SecretVersion
445
+ # @private
446
+ class Representation < Google::Apis::Core::JsonRepresentation
447
+ property :path, as: 'path'
448
+ property :version, as: 'version'
449
+ end
450
+ end
451
+
452
+ class SecretVolume
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :mount_path, as: 'mountPath'
456
+ property :project_id, as: 'projectId'
457
+ property :secret, as: 'secret'
458
+ collection :versions, as: 'versions', class: Google::Apis::CloudfunctionsV1::SecretVersion, decorator: Google::Apis::CloudfunctionsV1::SecretVersion::Representation
459
+
460
+ end
461
+ end
462
+
412
463
  class SetIamPolicyRequest
413
464
  # @private
414
465
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudfunctions_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.11.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Functions API V1. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudfunctions_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v1/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v1/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudfunctions_v1
57
63
  post_install_message:
58
64
  rdoc_options: []