Class ProjectsResource.LocationsResource.ObservationJobsResource
The "observationJobs" collection of methods.
Inherited Members
Namespace: Google.Apis.APIManagement.v1alpha
Assembly: Google.Apis.APIManagement.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.ObservationJobsResource
Constructors
ObservationJobsResource(IClientService)
Constructs a new resource.
Declaration
public ObservationJobsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
ApiObservations
Gets the ApiObservations resource.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.ApiObservationsResource ApiObservations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.ApiObservationsResource |
Methods
Create(ObservationJob, string)
CreateObservationJob creates a new ObservationJob but does not have any effecton its own. It is a configuration that can be used in an Observation Job to collect data about existing APIs.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.CreateRequest Create(ObservationJob body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ObservationJob | body | The body of the request. |
string | parent | Required. The parent resource where this ObservationJob will be created. Format: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.CreateRequest |
Delete(string)
DeleteObservationJob deletes an ObservationJob. This method will fail if the observation job is currently being used by any ObservationSource, even if not enabled.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the resource Format: projects/{project}/locations/{location}/observationJobs/{observation_job} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.DeleteRequest |
Disable(DisableObservationJobRequest, string)
Disables the given ObservationJob.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.DisableRequest Disable(DisableObservationJobRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
DisableObservationJobRequest | body | The body of the request. |
string | name | Required. The name of the ObservationJob to disable. Format: projects/{project}/locations/{location}/observationJobs/{job} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.DisableRequest |
Enable(EnableObservationJobRequest, string)
Enables the given ObservationJob.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.EnableRequest Enable(EnableObservationJobRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
EnableObservationJobRequest | body | The body of the request. |
string | name | Required. The name of the ObservationJob to enable. Format: projects/{project}/locations/{location}/observationJobs/{job} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.EnableRequest |
Get(string)
GetObservationJob retrieves a single ObservationJob by name.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the ObservationJob to retrieve. Format: projects/{project}/locations/{location}/observationJobs/{job} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.GetRequest |
List(string)
ListObservationJobs gets all ObservationJobs for a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationJobsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of ObservationJobs. Format: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationJobsResource.ListRequest |