google-apis-eventarc_v1 0.55.0 → 0.56.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 +4 -0
- data/lib/google/apis/eventarc_v1/classes.rb +142 -76
- data/lib/google/apis/eventarc_v1/gem_version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad3d14ff96c115544d2bc9389de8b80e5fc055e2c54bc017d469798847d8c763
|
4
|
+
data.tar.gz: c76823d8b05c894b622c951292993e7273ebca1c0982e74480c7991c9c7e0f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b59f416a0c69a467d14e3c726a50ac1444a8e96f75d123a4e47d0eb28c39bf52c0ad8efe2ee9e51e5d9eca2374a36d081962738d14b0ddcfcd23135a908b875f
|
7
|
+
data.tar.gz: 560efaee3e41fb09df73de71db0c9b355efe29efb623c0ee1280e50de4af7fafea7ee8fa928f1b9b48e498d6d48e7fab233e57f4905fc96cac4a551ba9b7b680
|
data/CHANGELOG.md
CHANGED
@@ -993,10 +993,10 @@ module Google
|
|
993
993
|
# Required. Service account email used to generate the [OAuth token](https://
|
994
994
|
# developers.google.com/identity/protocols/OAuth2). The principal who calls this
|
995
995
|
# API must have iam.serviceAccounts.actAs permission in the service account. See
|
996
|
-
# https://cloud.google.com/iam/docs/understanding-service-accounts
|
997
|
-
#
|
998
|
-
#
|
999
|
-
#
|
996
|
+
# https://cloud.google.com/iam/docs/understanding-service-accounts for more
|
997
|
+
# information. Eventarc service agents must have roles/roles/iam.
|
998
|
+
# serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens for
|
999
|
+
# authenticated requests.
|
1000
1000
|
# Corresponds to the JSON property `serviceAccount`
|
1001
1001
|
# @return [String]
|
1002
1002
|
attr_accessor :service_account
|
@@ -1028,9 +1028,9 @@ module Google
|
|
1028
1028
|
# Required. Service account email used to generate the OIDC Token. The principal
|
1029
1029
|
# who calls this API must have iam.serviceAccounts.actAs permission in the
|
1030
1030
|
# service account. See https://cloud.google.com/iam/docs/understanding-service-
|
1031
|
-
# accounts
|
1032
|
-
#
|
1033
|
-
#
|
1031
|
+
# accounts for more information. Eventarc service agents must have roles/roles/
|
1032
|
+
# iam.serviceAccountTokenCreator role to allow the Pipeline to create OpenID
|
1033
|
+
# tokens for authenticated requests.
|
1034
1034
|
# Corresponds to the JSON property `serviceAccount`
|
1035
1035
|
# @return [String]
|
1036
1036
|
attr_accessor :service_account
|
@@ -1050,78 +1050,109 @@ module Google
|
|
1050
1050
|
class GoogleCloudEventarcV1PipelineDestinationHttpEndpoint
|
1051
1051
|
include Google::Apis::Core::Hashable
|
1052
1052
|
|
1053
|
-
# Optional. The CEL expression used to
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
# the
|
1057
|
-
#
|
1058
|
-
#
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
1062
|
-
#
|
1063
|
-
#
|
1064
|
-
#
|
1065
|
-
#
|
1066
|
-
#
|
1053
|
+
# Optional. The CEL expression used to modify how the destination-bound HTTP
|
1054
|
+
# request is constructed. If a binding expression is not specified here, the
|
1055
|
+
# message is treated as a CloudEvent and is mapped to the HTTP request according
|
1056
|
+
# to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this
|
1057
|
+
# representation, all fields except the `data` and `datacontenttype` field on
|
1058
|
+
# the message are mapped to HTTP request headers with a prefix of `ce-`. To
|
1059
|
+
# construct the HTTP request payload and the value of the content-type HTTP
|
1060
|
+
# header, the payload format is defined as follows: 1) Use the
|
1061
|
+
# output_payload_format_type on the Pipeline.Destination if it is set, else: 2)
|
1062
|
+
# Use the input_payload_format_type on the Pipeline if it is set, else: 3) Treat
|
1063
|
+
# the payload as opaque binary data. The `data` field of the message is
|
1064
|
+
# converted to the payload format or left as-is for case 3) and then attached as
|
1065
|
+
# the payload of the HTTP request. The `content-type` header on the HTTP request
|
1066
|
+
# is set to the payload format type or left empty for case 3). However, if a
|
1067
|
+
# mediation has updated the `datacontenttype` field on the message so that it is
|
1068
|
+
# not the same as the payload format type but it is still a prefix of the
|
1069
|
+
# payload format type, then the `content-type` header on the HTTP request is set
|
1070
|
+
# to this `datacontenttype` value. For example, if the `datacontenttype` is "
|
1071
|
+
# application/json" and the payload format type is "application/json; charset=
|
1072
|
+
# utf-8", then the `content-type` header on the HTTP request is set to "
|
1073
|
+
# application/json; charset=utf-8". If a non-empty binding expression is
|
1074
|
+
# specified then this expression is used to modify the default CloudEvent HTTP
|
1075
|
+
# Protocol Binding Binary Content representation. The result of the CEL
|
1076
|
+
# expression must be a map of key/value pairs which is used as follows: - If a
|
1077
|
+
# map named `headers` exists on the result of the expression, then its key/value
|
1078
|
+
# pairs are directly mapped to the HTTP request headers. The headers values are
|
1079
|
+
# constructed from the corresponding value type's canonical representation. If
|
1080
|
+
# the `headers` field doesn't exist then the resulting HTTP request will be the
|
1081
|
+
# headers of the CloudEvent HTTP Binding Binary Content Mode representation of
|
1082
|
+
# the final message. Note: If the specified binding expression, has updated the `
|
1083
|
+
# datacontenttype` field on the message so that it is not the same as the
|
1084
|
+
# payload format type but it is still a prefix of the payload format type, then
|
1085
|
+
# the `content-type` header in the `headers` map is set to this `datacontenttype`
|
1086
|
+
# value. - If a field named `body` exists on the result of the expression then
|
1087
|
+
# its value is directly mapped to the body of the request. If the value of the `
|
1088
|
+
# body` field is of type bytes or string then it is used for the HTTP request
|
1089
|
+
# body as-is, with no conversion. If the body field is of any other type then it
|
1090
|
+
# is converted to a JSON string. If the body field does not exist then the
|
1091
|
+
# resulting payload of the HTTP request will be data value of the CloudEvent
|
1092
|
+
# HTTP Binding Binary Content Mode representation of the final message as
|
1093
|
+
# described earlier. - Any other fields in the resulting expression will be
|
1094
|
+
# ignored. The CEL expression may access the incoming CloudEvent message in its
|
1067
1095
|
# definition, as follows: - The `data` field of the incoming CloudEvent message
|
1068
|
-
# can be accessed using the `message.data` value.
|
1069
|
-
#
|
1070
|
-
#
|
1071
|
-
#
|
1072
|
-
# headers
|
1073
|
-
#
|
1074
|
-
# the headers
|
1075
|
-
#
|
1076
|
-
#
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
#
|
1080
|
-
#
|
1081
|
-
#
|
1082
|
-
#
|
1083
|
-
#
|
1084
|
-
#
|
1085
|
-
#
|
1086
|
-
#
|
1087
|
-
#
|
1088
|
-
#
|
1089
|
-
#
|
1090
|
-
#
|
1091
|
-
#
|
1092
|
-
#
|
1093
|
-
#
|
1094
|
-
#
|
1095
|
-
#
|
1096
|
-
#
|
1097
|
-
#
|
1098
|
-
#
|
1099
|
-
#
|
1100
|
-
#
|
1101
|
-
#
|
1102
|
-
#
|
1103
|
-
#
|
1104
|
-
#
|
1105
|
-
#
|
1106
|
-
#
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
#
|
1114
|
-
# content of the message will adhere to the standard CloudEvent
|
1115
|
-
# doesn
|
1096
|
+
# can be accessed using the `message.data` value. Subfields of `message.data`
|
1097
|
+
# may also be accessed if an input_payload_format has been specified on the
|
1098
|
+
# Pipeline. - Each attribute of the incoming CloudEvent message can be accessed
|
1099
|
+
# using the `message.` value, where is replaced with the name of the attribute. -
|
1100
|
+
# Existing headers can be accessed in the CEL expression using the `headers`
|
1101
|
+
# variable. The `headers` variable defines a map of key/value pairs
|
1102
|
+
# corresponding to the HTTP headers of the CloudEvent HTTP Binding Binary
|
1103
|
+
# Content Mode representation of the final message as described earlier. For
|
1104
|
+
# example, the following CEL expression can be used to construct an HTTP request
|
1105
|
+
# by adding an additional header to the HTTP headers of the CloudEvent HTTP
|
1106
|
+
# Binding Binary Content Mode representation of the final message and by
|
1107
|
+
# overwriting the body of the request: ``` ` "headers": headers.merge(`"new-
|
1108
|
+
# header-key": "new-header-value"`), "body": "new-body" ` ``` Additionally, the
|
1109
|
+
# following CEL extension functions are provided for use in this CEL expression:
|
1110
|
+
# - toBase64Url: map.toBase64Url() -> string - Converts a CelValue to a
|
1111
|
+
# base64url encoded string - toJsonString: map.toJsonString() -> string -
|
1112
|
+
# Converts a CelValue to a JSON string - merge: map1.merge(map2) -> map3 -
|
1113
|
+
# Merges the passed CEL map with the existing CEL map the function is applied to.
|
1114
|
+
# - If the same key exists in both maps, if the key's value is type map both
|
1115
|
+
# maps are merged else the value from the passed map is used. - denormalize: map.
|
1116
|
+
# denormalize() -> map - Denormalizes a CEL map such that every value of type
|
1117
|
+
# map or key in the map is expanded to return a single level map. - The
|
1118
|
+
# resulting keys are "." separated indices of the map keys. - For example: ` "a":
|
1119
|
+
# 1, "b": ` "c": 2, "d": 3 ` "e": [4, 5] ` .denormalize() -> ` "a": 1, "b.c": 2,
|
1120
|
+
# "b.d": 3, "e.0": 4, "e.1": 5 ` - setField: map.setField(key, value) ->
|
1121
|
+
# message - Sets the field of the message with the given key to the given value.
|
1122
|
+
# - If the field is not present it will be added. - If the field is present it
|
1123
|
+
# will be overwritten. - The key can be a dot separated path to set a field in a
|
1124
|
+
# nested message. - Key must be of type string. - Value may be any valid type. -
|
1125
|
+
# removeFields: map.removeFields([key1, key2, ...]) -> message - Removes the
|
1126
|
+
# fields of the map with the given keys. - The keys can be a dot separated path
|
1127
|
+
# to remove a field in a nested message. - If a key is not found it will be
|
1128
|
+
# ignored. - Keys must be of type string. - toMap: [map1, map2, ...].toMap() ->
|
1129
|
+
# map - Converts a CEL list of CEL maps to a single CEL map -
|
1130
|
+
# toDestinationPayloadFormat(): message.data.toDestinationPayloadFormat() ->
|
1131
|
+
# string or bytes - Converts the message data to the destination payload format
|
1132
|
+
# specified in Pipeline.Destination.output_payload_format - This function is
|
1133
|
+
# meant to be applied to the message.data field. - If the destination payload
|
1134
|
+
# format is not set, the function will return the message data unchanged. -
|
1135
|
+
# toCloudEventJsonWithPayloadFormat: message.toCloudEventJsonWithPayloadFormat()
|
1136
|
+
# -> map - Converts a message to the corresponding structure of JSON format for
|
1137
|
+
# CloudEvents - This function applies toDestinationPayloadFormat() to the
|
1138
|
+
# message data. It also sets the corresponding datacontenttype of the CloudEvent,
|
1139
|
+
# as indicated by Pipeline.Destination.output_payload_format. If no
|
1140
|
+
# output_payload_format is set it will use the existing datacontenttype on the
|
1141
|
+
# CloudEvent if present, else leave datacontenttype absent. - This function
|
1142
|
+
# expects that the content of the message will adhere to the standard CloudEvent
|
1143
|
+
# format. If it doesn't then this function will fail. - The result is a CEL map
|
1144
|
+
# that corresponds to the JSON representation of the CloudEvent. To convert that
|
1145
|
+
# data to a JSON string it can be chained with the toJsonString function. The
|
1146
|
+
# Pipeline expects that the message it receives adheres to the standard
|
1147
|
+
# CloudEvent format. If it doesn't then the outgoing message request may fail
|
1148
|
+
# with a persistent error.
|
1116
1149
|
# Corresponds to the JSON property `messageBindingTemplate`
|
1117
1150
|
# @return [String]
|
1118
1151
|
attr_accessor :message_binding_template
|
1119
1152
|
|
1120
1153
|
# Required. The URI of the HTTP enpdoint. The value must be a RFC2396 URI string.
|
1121
|
-
# Examples: `
|
1122
|
-
#
|
1123
|
-
# IP addressable from the VPC specified by the network config, or an internal
|
1124
|
-
# DNS hostname of the service resolvable via Cloud DNS.
|
1154
|
+
# Examples: `https://svc.us-central1.p.local:8080/route`. Only the HTTPS
|
1155
|
+
# protocol is supported.
|
1125
1156
|
# Corresponds to the JSON property `uri`
|
1126
1157
|
# @return [String]
|
1127
1158
|
attr_accessor :uri
|
@@ -1182,7 +1213,42 @@ module Google
|
|
1182
1213
|
class GoogleCloudEventarcV1PipelineMediationTransformation
|
1183
1214
|
include Google::Apis::Core::Hashable
|
1184
1215
|
|
1185
|
-
# Optional. The template to apply to transform messages.
|
1216
|
+
# Optional. The CEL expression template to apply to transform messages. The
|
1217
|
+
# following CEL extension functions are provided for use in this CEL expression:
|
1218
|
+
# - merge: map1.merge(map2) -> map3 - Merges the passed CEL map with the
|
1219
|
+
# existing CEL map the function is applied to. - If the same key exists in both
|
1220
|
+
# maps, if the key's value is type map both maps are merged else the value from
|
1221
|
+
# the passed map is used. - denormalize: map.denormalize() -> map - Denormalizes
|
1222
|
+
# a CEL map such that every value of type map or key in the map is expanded to
|
1223
|
+
# return a single level map. - The resulting keys are "." separated indices of
|
1224
|
+
# the map keys. - For example: ` "a": 1, "b": ` "c": 2, "d": 3 ` "e": [4, 5] ` .
|
1225
|
+
# denormalize() -> ` "a": 1, "b.c": 2, "b.d": 3, "e.0": 4, "e.1": 5 ` - setField:
|
1226
|
+
# map.setField(key, value) -> message - Sets the field of the message with the
|
1227
|
+
# given key to the given value. - If the field is not present it will be added. -
|
1228
|
+
# If the field is present it will be overwritten. - The key can be a dot
|
1229
|
+
# separated path to set a field in a nested message. - Key must be of type
|
1230
|
+
# string. - Value may be any valid type. - removeFields: map.removeFields([key1,
|
1231
|
+
# key2, ...]) -> message - Removes the fields of the map with the given keys. -
|
1232
|
+
# The keys can be a dot separated path to remove a field in a nested message. -
|
1233
|
+
# If a key is not found it will be ignored. - Keys must be of type string. -
|
1234
|
+
# toMap: [map1, map2, ...].toMap() -> map - Converts a CEL list of CEL maps to a
|
1235
|
+
# single CEL map - toDestinationPayloadFormat(): message.data.
|
1236
|
+
# toDestinationPayloadFormat() -> string or bytes - Converts the message data to
|
1237
|
+
# the destination payload format specified in Pipeline.Destination.
|
1238
|
+
# output_payload_format - This function is meant to be applied to the message.
|
1239
|
+
# data field. - If the destination payload format is not set, the function will
|
1240
|
+
# return the message data unchanged. - toCloudEventJsonWithPayloadFormat:
|
1241
|
+
# message.toCloudEventJsonWithPayloadFormat() -> map - Converts a message to the
|
1242
|
+
# corresponding structure of JSON format for CloudEvents - This function applies
|
1243
|
+
# toDestinationPayloadFormat() to the message data. It also sets the
|
1244
|
+
# corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.
|
1245
|
+
# Destination.output_payload_format. If no output_payload_format is set it will
|
1246
|
+
# use the existing datacontenttype on the CloudEvent if present, else leave
|
1247
|
+
# datacontenttype absent. - This function expects that the content of the
|
1248
|
+
# message will adhere to the standard CloudEvent format. If it doesn't then this
|
1249
|
+
# function will fail. - The result is a CEL map that corresponds to the JSON
|
1250
|
+
# representation of the CloudEvent. To convert that data to a JSON string it can
|
1251
|
+
# be chained with the toJsonString function.
|
1186
1252
|
# Corresponds to the JSON property `transformationTemplate`
|
1187
1253
|
# @return [String]
|
1188
1254
|
attr_accessor :transformation_template
|
@@ -1296,13 +1362,13 @@ module Google
|
|
1296
1362
|
attr_accessor :max_attempts
|
1297
1363
|
|
1298
1364
|
# Optional. The maximum amount of seconds to wait between retry attempts. The
|
1299
|
-
# value must be between
|
1365
|
+
# value must be between 1 and 600. The default value for this field is 60.
|
1300
1366
|
# Corresponds to the JSON property `maxRetryDelay`
|
1301
1367
|
# @return [String]
|
1302
1368
|
attr_accessor :max_retry_delay
|
1303
1369
|
|
1304
1370
|
# Optional. The minimum amount of seconds to wait between retry attempts. The
|
1305
|
-
# value must be between
|
1371
|
+
# value must be between 1 and 600. The default value for this field is 5.
|
1306
1372
|
# Corresponds to the JSON property `minRetryDelay`
|
1307
1373
|
# @return [String]
|
1308
1374
|
attr_accessor :min_retry_delay
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module EventarcV1
|
18
18
|
# Version of the google-apis-eventarc_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.56.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241029"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-eventarc_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.56.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: 2024-11-
|
11
|
+
date: 2024-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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-eventarc_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-eventarc_v1/v0.56.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-eventarc_v1
|
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.5.
|
78
|
+
rubygems_version: 3.5.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Eventarc API V1
|