google-apis-eventarc_v1 0.55.0 → 0.56.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: ebf0cc7b44a764b06d9f49a7d61a44d955ef8a7cb98bcd5c2b6237b7d0e1c209
4
- data.tar.gz: 2c02b9c4c45d56911cf7d9f974a45156c8461f79522ca2f5a9d3be7c2dd780e1
3
+ metadata.gz: ad3d14ff96c115544d2bc9389de8b80e5fc055e2c54bc017d469798847d8c763
4
+ data.tar.gz: c76823d8b05c894b622c951292993e7273ebca1c0982e74480c7991c9c7e0f2f
5
5
  SHA512:
6
- metadata.gz: 0d8e4643904a2e5bbd5abd5cb4939b79c4aebf96b5d661e39eef3bc567134b2a84b4d5f1ef69f619f983f634c8ed5e23aa1b10b5013bcaf6447595c5705f03be
7
- data.tar.gz: 67787bb0d666ef5ea2c7d681ba6388fa859fb120696747969b8c0105b2f6b5e7f334f907731e2a326b312ae09335f4442a1fa25f318a069a9e3d4e5461a255a1
6
+ metadata.gz: b59f416a0c69a467d14e3c726a50ac1444a8e96f75d123a4e47d0eb28c39bf52c0ad8efe2ee9e51e5d9eca2374a36d081962738d14b0ddcfcd23135a908b875f
7
+ data.tar.gz: 560efaee3e41fb09df73de71db0c9b355efe29efb623c0ee1280e50de4af7fafea7ee8fa928f1b9b48e498d6d48e7fab233e57f4905fc96cac4a551ba9b7b680
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-eventarc_v1
2
2
 
3
+ ### v0.56.0 (2024-11-10)
4
+
5
+ * Regenerated from discovery document revision 20241029
6
+
3
7
  ### v0.55.0 (2024-11-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20241021
@@ -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?hl=en#
997
- # sa_common for more information. Eventarc service agents must have roles/roles/
998
- # iam.serviceAccountTokenCreator role to allow Pipeline to create OAuth2 tokens
999
- # for authenticated requests.
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?hl=en#sa_common for more information. Eventarc service agents must
1032
- # have roles/roles/iam.serviceAccountTokenCreator role to allow the Pipeline to
1033
- # create OpenID tokens for authenticated requests.
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 construct a new HTTP request to be sent
1054
- # to the final destination. The result of the CEL expression must be a map of
1055
- # key/value pairs such that: - If a map named `headers` exists on the result of
1056
- # the expression, then its key/value pairs are directly mapped to the HTTP
1057
- # request headers. The headers values are constructed from the corresponding
1058
- # value type’s canonical representation. If the `headers` field doesn’t exist
1059
- # then the resulting HTTP request will be without headers. - If a field named `
1060
- # body` exists on the result of the expression then its value is directly mapped
1061
- # to the body of the request. If the value of the `body` field is of type bytes
1062
- # or string then it is used for the HTTP request body as-is, with no conversion.
1063
- # If the body field is of any other type then it is converted to a JSON string.
1064
- # If the body field doesn’t exist then the resulting HTTP request will be
1065
- # without a body. - Any other fields in the resulting expression will be ignored.
1066
- # The CEL expression may access the incoming CloudEvent message in its
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. - Each attribute of the
1069
- # incoming CloudEvent message can be accessed using the `message.` value, where
1070
- # is replaced with the name of the attribute. Headers added to the request by
1071
- # previous filters in the chain can be accessed in the CEL expression using the `
1072
- # headers` variable. The `headers` variable defines a map of key/value pairs
1073
- # corresponding to the HTTP headers added by previous mediation steps and not
1074
- # the headers present on the original incoming request. For example, the
1075
- # following CEL expression can be used to construct a Headers-only HTTP request
1076
- # by adding an additional header to the headers added by previous mediations in
1077
- # the Pipeline: ``` `"headers": headers.merge(`"new-header-key": "new-header-
1078
- # value"`)` ``` Additionally, the following CEL extension functions are provided
1079
- # for use in this CEL expression: - toBase64Url: map.toBase64Url() -> string -
1080
- # Converts a CelValue to a base64url encoded string - toJsonString: map.
1081
- # toJsonString() -> string - Converts a CelValue to a JSON string - merge: map1.
1082
- # merge(map2) -> map3 - Merges the passed CEL map with the existing CEL map the
1083
- # function is applied to. - If the same key exists in both maps, if the key's
1084
- # value is type map both maps are merged else the value from the passed map is
1085
- # used. - toMap: list(map).toMap() -> map - Converts a CEL list of CEL maps to a
1086
- # single CEL map - toDestinationPayloadFormat(): message.data.
1087
- # toDestinationPayloadFormat() -> string or bytes - Converts the message data to
1088
- # the destination payload format specified in Pipeline.Destination.
1089
- # output_payload_format - This function is meant to be applied to the message.
1090
- # data field. - If the destination payload format is not set, the function will
1091
- # return the message data unchanged. - toCloudEventJsonWithPayloadFormat:
1092
- # message.toCloudEventJsonWithPayloadFormat() -> map - Converts a message to the
1093
- # corresponding structure of JSON format for CloudEvents - This function applies
1094
- # toDestinationPayloadFormat() to the message data. It also sets the
1095
- # corresponding datacontenttype of the CloudEvent, as indicated by Pipeline.
1096
- # Destination.output_payload_format. If no output_payload_format is set it will
1097
- # use the existing datacontenttype on the CloudEvent if present, else leave
1098
- # datacontenttype absent. - This function expects that the content of the
1099
- # message will adhere to the standard CloudEvent format. If it doesn’t then this
1100
- # function will fail. - The result is a CEL map that corresponds to the JSON
1101
- # representation of the CloudEvent. To convert that data to a JSON string it can
1102
- # be chained with the toJsonString function. If a binding is not specified here,
1103
- # by default the message is treated as a CloudEvent and is mapped to the HTTP
1104
- # request according to the CloudEvent HTTP Protocol Binding Binary Content Mode.
1105
- # The Pipeline converts the data field of the message to the format provided in
1106
- # Pipeline.Destination.output_payload_format and maps it to the body field of
1107
- # the result. It also sets the corresponding Content-Type header to the
1108
- # output_payload_format type. If the Pipeline.Destination.output_payload_format
1109
- # is not set, then the Pipeline will treat the data field of the message as
1110
- # opaque binary data and attach it to the request body as bytes. In this case
1111
- # the Content-type header will be set to the value of the datacontenttype
1112
- # attribute set on the incoming CloudEvent message if present and the `
1113
- # application/octet-stream` MIME type otherwise. The Pipeline expects that the
1114
- # content of the message will adhere to the standard CloudEvent format. If it
1115
- # doesnt then the outgoing message request may fail with a persistent error.
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: `http://10.10.10.8:80/route`, `http://svc.us-central1.p.local:8080/`
1122
- # . Only HTTP and HTTPS protocols are supported. The host can be either a static
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 0 and 600. The default value for this field is 60.
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 0 and 600. The default value for this field is 5.
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.55.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 = "20241021"
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.55.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-03 00:00:00.000000000 Z
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.55.0
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.21
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