Compute V1 Client - Class SignedUrlKey (1.8.3)

Reference documentation and code samples for the Compute V1 Client class SignedUrlKey.

Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs

Generated from protobuf message google.cloud.compute.v1.SignedUrlKey

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key_name string

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

↳ key_value string

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

getKeyName

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Returns
TypeDescription
string

hasKeyName

clearKeyName

setKeyName

Name of the key. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKeyValue

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

Returns
TypeDescription
string

hasKeyValue

clearKeyValue

setKeyValue

128-bit key value used for signing the URL. The key value must be a valid RFC 4648 Section 5 base64url encoded string.

Parameter
NameDescription
var string
Returns
TypeDescription
$this