Class ProjectsResource.ConfigsResource.VariablesResource.WatchRequest
Watches a specific variable and waits for a change in the variable's value. When there is a change,
this method returns the new value or times out. If a variable is deleted while being watched, the
variableState
state is set to DELETED
and the method returns the last known variable value
. If
you set the deadline for watching to a larger value than internal timeout (60 seconds), the current
variable value is returned and the variableState
will be VARIABLE_STATE_UNSPECIFIED
. To learn
more about creating a watcher, read the Watching a Variable for
Changes documentation.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRuntimeConfig.v1beta1
Assembly: Google.Apis.CloudRuntimeConfig.v1beta1.dll
Syntax
public class ProjectsResource.ConfigsResource.VariablesResource.WatchRequest : CloudRuntimeConfigBaseServiceRequest<Variable>, IClientServiceRequest<Variable>, IClientServiceRequest
Constructors
WatchRequest(IClientService, WatchVariableRequest, string)
Constructs a new Watch request.
Declaration
public WatchRequest(IClientService service, WatchVariableRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
WatchVariableRequest | body | |
string | name |
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
Name
The name of the variable to watch, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
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 Watch parameter list.
Declaration
protected override void InitParameters()