Class ProjectsResource.LocationsResource.TraceScopesResource.CreateRequest
Create a new TraceScope.
Inheritance
ProjectsResource.LocationsResource.TraceScopesResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudObservability.v1
Assembly: Google.Apis.CloudObservability.v1.dll
Syntax
public class ProjectsResource.LocationsResource.TraceScopesResource.CreateRequest : CloudObservabilityBaseServiceRequest<TraceScope>, IClientServiceRequest<TraceScope>, IClientServiceRequest
Constructors
CreateRequest(IClientService, TraceScope, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, TraceScope body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| TraceScope | 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
Required. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
TraceScopeId
Required. A client-assigned identifier for the trace scope.
Declaration
[RequestParameter("traceScopeId", RequestParameterType.Query)]
public virtual string TraceScopeId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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()