Class ProjectsResource.DashboardsResource.CreateRequest
Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see Managing dashboards by API (https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the monitoring.dashboards.create permission on the specified project. For more information about permissions, see Cloud Identity and Access Management (https://cloud.google.com/iam).
Inheritance
Inherited Members
Namespace: Google.Apis.Monitoring.v1
Assembly: Google.Apis.Monitoring.v1.dll
Syntax
public class ProjectsResource.DashboardsResource.CreateRequest : MonitoringBaseServiceRequest<Dashboard>, IClientServiceRequest<Dashboard>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Dashboard, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Dashboard body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Dashboard | 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 project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard resource name.
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
ValidateOnly
If set, validate the request and preview the review, but do not actually save it.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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()