Reference documentation and code samples for the Google Cloud Run V2 Client class CreateInstanceRequest.
Generated from protobuf message google.cloud.run.v2.CreateInstanceRequest
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
↳ instance
↳ instance_id
string
Required. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the instance becomes {parent}/instances/{instance_id}.
↳ validate_only
bool
Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
getParent
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
string
setParent
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
var
string
$this
getInstance
Generated from protobuf field .google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];
hasInstance
clearInstance
setInstance
Generated from protobuf field .google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];
$this
getInstanceId
Required. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters.
The name of the instance becomes {parent}/instances/{instance_id}.
string
setInstanceId
Required. The unique identifier for the Instance. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters.
The name of the instance becomes {parent}/instances/{instance_id}.
var
string
$this
getValidateOnly
Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
bool
setValidateOnly
Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
var
bool
$this
static::build
parent
string
Please see InstancesClient::locationName() for help formatting this field.
instance

