Class ProjectsResource.ConfigsResource.VariablesResource.CreateRequest
Creates a variable within the given configuration. You cannot create a variable with a name that is a prefix of an existing variable name, or a name that has an existing variable name as a prefix. To learn more about creating a variable, read the Setting and Getting Data documentation.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRuntimeConfig.v1beta1
Assembly: Google.Apis.CloudRuntimeConfig.v1beta1.dll
Syntax
public class ProjectsResource.ConfigsResource.VariablesResource.CreateRequest : CloudRuntimeConfigBaseServiceRequest<Variable>, IClientServiceRequest<Variable>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Variable, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Variable body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Variable | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
The path to the RutimeConfig resource that this variable should belong to. The configuration
must exist beforehand; the path must be in the format:
projects/[PROJECT_ID]/configs/[CONFIG_NAME]
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RequestId
An optional but recommended unique request_id
. If the server receives two create()
requests
with the same request_id
, then the second request will be ignored and the first resource
created and stored in the backend is returned. Empty request_id
fields are ignored. It is
responsibility of the client to ensure uniqueness of the request_id
strings. request_id
strings are limited to 64 characters.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()