Class ProjectsResource.LocationsResource.ObservationSourcesResource
The "observationSources" collection of methods.
Inherited Members
Namespace: Google.Apis.APIManagement.v1alpha
Assembly: Google.Apis.APIManagement.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.ObservationSourcesResource
Constructors
ObservationSourcesResource(IClientService)
Constructs a new resource.
Declaration
public ObservationSourcesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(ObservationSource, string)
CreateObservationSource creates a new ObservationSource but does not affect any deployed infrastructure. It is a configuration that can be used in an Observation Job to collect data about APIs running in user's dataplane.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationSourcesResource.CreateRequest Create(ObservationSource body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ObservationSource | body | The body of the request. |
string | parent | Required. Value for parent. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationSourcesResource.CreateRequest |
Delete(string)
DeleteObservationSource deletes an observation source. This method will fail if the observation source is currently being used by any ObservationJob, even if not enabled.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationSourcesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the resource Format: projects/{project}/locations/{location}/observationSources/{source} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationSourcesResource.DeleteRequest |
Get(string)
GetObservationSource retrieves a single ObservationSource by name.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationSourcesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the ObservationSource to retrieve. Format: projects/{project}/locations/{location}/observationSources/{source} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationSourcesResource.GetRequest |
List(string)
ListObservationSources gets all ObservationSources for a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ObservationSourcesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of ObservationSources. Format: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ObservationSourcesResource.ListRequest |