Show / Hide Table of Contents

Class ProjectsResource.AlertPoliciesResource.CreateRequest

Creates a new alerting policy.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<AlertPolicy>
MonitoringBaseServiceRequest<AlertPolicy>
ProjectsResource.AlertPoliciesResource.CreateRequest
Implements
IClientServiceRequest<AlertPolicy>
IClientServiceRequest
Inherited Members
MonitoringBaseServiceRequest<AlertPolicy>.Xgafv
MonitoringBaseServiceRequest<AlertPolicy>.AccessToken
MonitoringBaseServiceRequest<AlertPolicy>.Alt
MonitoringBaseServiceRequest<AlertPolicy>.Callback
MonitoringBaseServiceRequest<AlertPolicy>.Fields
MonitoringBaseServiceRequest<AlertPolicy>.Key
MonitoringBaseServiceRequest<AlertPolicy>.OauthToken
MonitoringBaseServiceRequest<AlertPolicy>.PrettyPrint
MonitoringBaseServiceRequest<AlertPolicy>.QuotaUser
MonitoringBaseServiceRequest<AlertPolicy>.UploadType
MonitoringBaseServiceRequest<AlertPolicy>.UploadProtocol
ClientServiceRequest<AlertPolicy>.Execute()
ClientServiceRequest<AlertPolicy>.ExecuteAsStream()
ClientServiceRequest<AlertPolicy>.ExecuteAsync()
ClientServiceRequest<AlertPolicy>.ExecuteAsync(CancellationToken)
ClientServiceRequest<AlertPolicy>.ExecuteAsStreamAsync()
ClientServiceRequest<AlertPolicy>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<AlertPolicy>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<AlertPolicy>.GenerateRequestUri()
ClientServiceRequest<AlertPolicy>.GetDefaultETagAction(String)
ClientServiceRequest<AlertPolicy>.ETagAction
ClientServiceRequest<AlertPolicy>.ModifyRequest
ClientServiceRequest<AlertPolicy>.RequestParameters
ClientServiceRequest<AlertPolicy>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class CreateRequest : MonitoringBaseServiceRequest<AlertPolicy>, IClientServiceRequest<AlertPolicy>, IClientServiceRequest

Constructors

CreateRequest(IClientService, AlertPolicy, String)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, AlertPolicy body, string name)
Parameters
Type Name Description
IClientService service
AlertPolicy body
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.MethodName

Name

Required. The project in which to create the alerting policy. The format is: projects/[PROJECT_ID_OR_NUMBER] Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. |name| must be a host project of a workspace, otherwise INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container.

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Monitoring.v3.MonitoringBaseServiceRequest<Google.Apis.Monitoring.v3.Data.AlertPolicy>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top