generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.37.1 vs generated/google/apis/servicenetworking_v1/classes.rb in google-api-client-0.37.2
- old
+ new
@@ -251,10 +251,28 @@
# Example: https://www.googleapis.com/oauth2/v1/certs
# Corresponds to the JSON property `jwksUri`
# @return [String]
attr_accessor :jwks_uri
+ # Defines the locations to extract the JWT.
+ # JWT locations can be either from HTTP headers or URL query parameters.
+ # The rule is that the first match wins. The checking order is: checking
+ # all headers first, then URL query parameters.
+ # If not specified, default to use following 3 locations:
+ # 1) Authorization: Bearer
+ # 2) x-goog-iap-jwt-assertion
+ # 3) access_token query parameter
+ # Default locations can be specified as followings:
+ # jwt_locations:
+ # - header: Authorization
+ # value_prefix: "Bearer "
+ # - header: x-goog-iap-jwt-assertion
+ # - query: access_token
+ # Corresponds to the JSON property `jwtLocations`
+ # @return [Array<Google::Apis::ServicenetworkingV1::JwtLocation>]
+ attr_accessor :jwt_locations
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
@@ -262,10 +280,11 @@
@audiences = args[:audiences] if args.key?(:audiences)
@authorization_url = args[:authorization_url] if args.key?(:authorization_url)
@id = args[:id] if args.key?(:id)
@issuer = args[:issuer] if args.key?(:issuer)
@jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
+ @jwt_locations = args[:jwt_locations] if args.key?(:jwt_locations)
end
end
# User-defined authentication requirements, including support for
# [JSON Web Token
@@ -1713,9 +1732,46 @@
@patch = args[:patch] if args.key?(:patch)
@post = args[:post] if args.key?(:post)
@put = args[:put] if args.key?(:put)
@response_body = args[:response_body] if args.key?(:response_body)
@selector = args[:selector] if args.key?(:selector)
+ end
+ end
+
+ # Specifies a location to extract JWT from an API request.
+ class JwtLocation
+ include Google::Apis::Core::Hashable
+
+ # Specifies HTTP header name to extract JWT token.
+ # Corresponds to the JSON property `header`
+ # @return [String]
+ attr_accessor :header
+
+ # Specifies URL query parameter name to extract JWT token.
+ # Corresponds to the JSON property `query`
+ # @return [String]
+ attr_accessor :query
+
+ # The value prefix. The value format is "value_prefix`token`"
+ # Only applies to "in" header type. Must be empty for "in" query type.
+ # If not empty, the header value has to match (case sensitive) this prefix.
+ # If not matched, JWT will not be extracted. If matched, JWT will be
+ # extracted after the prefix is removed.
+ # For example, for "Authorization: Bearer `JWT`",
+ # value_prefix="Bearer " with a space at the end.
+ # Corresponds to the JSON property `valuePrefix`
+ # @return [String]
+ attr_accessor :value_prefix
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @header = args[:header] if args.key?(:header)
+ @query = args[:query] if args.key?(:query)
+ @value_prefix = args[:value_prefix] if args.key?(:value_prefix)
end
end
# A description of a label.
class LabelDescriptor