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
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
↳ 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |