Class LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Monitoring.v1
Assembly: Google.Apis.Monitoring.v1.dll
Syntax
public class LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(MonitoredProject, string)
Adds a MonitoredProject with the given project ID to the specified Metrics Scope.
Declaration
public virtual LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource.CreateRequest Create(MonitoredProject body, string parent)
Parameters
Type | Name | Description |
---|---|---|
MonitoredProject | body | The body of the request. |
string | parent | Required. The resource name of the existing Metrics Scope that will monitor this project. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER} |
Returns
Type | Description |
---|---|
LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource.CreateRequest |
Delete(string)
Deletes a MonitoredProject from the specified Metrics Scope.
Declaration
public virtual LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the MonitoredProject. Example: locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}Authorization requires the following Google IAM (https://cloud.google.com/iam) permissions on both the Metrics Scope and on the MonitoredProject: monitoring.metricsScopes.link |
Returns
Type | Description |
---|---|
LocationsResource.GlobalResource.MetricsScopesResource.ProjectsResource.DeleteRequest |