Skip to content

Commit

Permalink
[CHANGE ME] Re-generated to pick up changes in the API or client libr…
Browse files Browse the repository at this point in the history
…ary generator.
  • Loading branch information
yoshi-automation committed Feb 28, 2019
1 parent 0ef82e0 commit e85a106
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 7 deletions.
38 changes: 37 additions & 1 deletion protos/google/pubsub/v1/pubsub.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Google LLC.
// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -651,6 +651,42 @@ message PushConfig {
// * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
// * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
map<string, string> attributes = 2;

// An authentication method used by push endpoints to verify the source of
// push requests. This can be used with push endpoints that are private by
// default to allow requests only from the Cloud Pub/Sub system, for example.
// This field is optional and should be set only by users interested in
// authenticated push.
// <b>EXPERIMENTAL:</b> This field a part of a closed alpha that may not be
// accessible to all users. It may be changed in backward-incompatible ways
// and is not subject to any SLA or deprecation policy. It is not recommended
// for production use.
oneof authentication_method {
// If specified, Pub/Sub will generate and attach an OIDC JWT token as an
// `Authorization` header in the HTTP request for every pushed message.
OidcToken oidc_token = 3;
}

// Contains information needed for generating an
// [OpenID Connect
// token](https://developers.google.com/identity/protocols/OpenIDConnect).
message OidcToken {
// [Service account
// email](https://cloud.google.com/iam/docs/service-accounts)
// to be used for generating the OIDC token. The caller (for
// CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
// have the iam.serviceAccounts.actAs permission for the service account.
// See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
string service_account_email = 1;

// Audience to be used when generating OIDC token. The audience claim
// identifies the recipients that the JWT is intended for. The audience
// value is a single case-sensitive string. Having multiple values (array)
// for the audience field is not supported. More info about the OIDC JWT
// token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
// Note: if not specified, the Push endpoint URL will be used.
string audience = 2;
}
}

// A message and its corresponding acknowledgment ID.
Expand Down
35 changes: 35 additions & 0 deletions src/v1/doc/google/pubsub/v1/doc_pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,47 @@ const ExpirationPolicy = {
* * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
*
* @property {Object} oidcToken
* If specified, Pub/Sub will generate and attach an OIDC JWT token as an
* `Authorization` header in the HTTP request for every pushed message.
*
* This object should have the same structure as [OidcToken]{@link google.pubsub.v1.OidcToken}
*
* @typedef PushConfig
* @memberof google.pubsub.v1
* @see [google.pubsub.v1.PushConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/pubsub/v1/pubsub.proto}
*/
const PushConfig = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
* Contains information needed for generating an
* [OpenID Connect
* token](https://developers.google.com/identity/protocols/OpenIDConnect).
*
* @property {string} serviceAccountEmail
* [Service account
* email](https://cloud.google.com/iam/docs/service-accounts)
* to be used for generating the OIDC token. The caller (for
* CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
* have the iam.serviceAccounts.actAs permission for the service account.
* See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
*
* @property {string} audience
* Audience to be used when generating OIDC token. The audience claim
* identifies the recipients that the JWT is intended for. The audience
* value is a single case-sensitive string. Having multiple values (array)
* for the audience field is not supported. More info about the OIDC JWT
* token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
* Note: if not specified, the Push endpoint URL will be used.
*
* @typedef OidcToken
* @memberof google.pubsub.v1
* @see [google.pubsub.v1.PushConfig.OidcToken definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/pubsub/v1/pubsub.proto}
*/
OidcToken: {
// This is for documentation. Actual contents will be loaded by gRPC.
}
};

/**
Expand Down
12 changes: 6 additions & 6 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"updateTime": "2019-02-13T12:21:35.607578Z",
"updateTime": "2019-02-28T12:18:55.555938Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.13",
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
"version": "0.16.14",
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "ca61898878f0926dd9dcc68ba90764f17133efe4",
"internalRef": "233680013"
"sha": "9c769d3a0e67e4df9b9e8eee480124c2700a7e6c",
"internalRef": "235997788"
}
},
{
"template": {
"name": "node_library",
"origin": "synthtool.gcp",
"version": "2019.1.16"
"version": "2019.2.26"
}
}
],
Expand Down

0 comments on commit e85a106

Please sign in to comment.