Show / Hide Table of Contents

Class ServicesResource

The "services" collection of methods.

Inheritance
object
ServicesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class ServicesResource

Constructors

ServicesResource(IClientService)

Constructs a new resource.

Declaration
public ServicesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

ServiceLevelObjectives

Gets the ServiceLevelObjectives resource.

Declaration
public virtual ServicesResource.ServiceLevelObjectivesResource ServiceLevelObjectives { get; }
Property Value
Type Description
ServicesResource.ServiceLevelObjectivesResource

Methods

Create(Service, string)

Create a Service.

Declaration
public virtual ServicesResource.CreateRequest Create(Service body, string parent)
Parameters
Type Name Description
Service body

The body of the request.

string parent

Required. Resource name (https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER]

Returns
Type Description
ServicesResource.CreateRequest

Delete(string)

Soft delete this Service.

Declaration
public virtual ServicesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Resource name of the Service to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

Returns
Type Description
ServicesResource.DeleteRequest

Get(string)

Get the named Service.

Declaration
public virtual ServicesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Resource name of the Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

Returns
Type Description
ServicesResource.GetRequest

List(string)

List Services for this Metrics Scope.

Declaration
public virtual ServicesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Resource name of the parent containing the listed services, either a project (https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

Returns
Type Description
ServicesResource.ListRequest

Patch(Service, string)

Update this Service.

Declaration
public virtual ServicesResource.PatchRequest Patch(Service body, string name)
Parameters
Type Name Description
Service body

The body of the request.

string name

Identifier. Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

Returns
Type Description
ServicesResource.PatchRequest
In this article
Back to top Generated by DocFX