Class ProjectsResource.TraceSinksResource.PatchRequest
Updates a sink. This method updates fields in the existing sink according to the provided update mask. The sink's name cannot be changed nor any output-only fields (e.g. the writer_identity).
Inheritance
Inherited Members
Namespace: Google.Apis.CloudTrace.v2beta1
Assembly: Google.Apis.CloudTrace.v2beta1.dll
Syntax
public class ProjectsResource.TraceSinksResource.PatchRequest : CloudTraceBaseServiceRequest<TraceSink>, IClientServiceRequest<TraceSink>, IClientServiceRequest
Constructors
PatchRequest(IClientService, TraceSink, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, TraceSink body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TraceSink | 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
Required. The full resource name of the sink to update, including the parent resource and the sink
identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
"projects/12345/traceSinks/my-sink-id"
.
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
UpdateMask
Required. Field mask that specifies the fields in trace_sink
that are to be updated. A sink field
is overwritten if, and only if, it is in the update mask. name
and writer_identity
fields cannot
be updated. An empty update_mask
is considered an error. For a detailed FieldMask
definition,
see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Example:
updateMask=output_config
.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()