Class FeedsResource
The "feeds" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudAsset.v1
Assembly: Google.Apis.CloudAsset.v1.dll
Syntax
public class FeedsResource
Constructors
FeedsResource(IClientService)
Constructs a new resource.
Declaration
public FeedsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreateFeedRequest, string)
Creates a feed in a parent project/folder/organization to listen to its asset updates.
Declaration
public virtual FeedsResource.CreateRequest Create(CreateFeedRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
CreateFeedRequest | body | The body of the request. |
string | parent | Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). |
Returns
Type | Description |
---|---|
FeedsResource.CreateRequest |
Delete(string)
Deletes an asset feed.
Declaration
public virtual FeedsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the feed and it must be in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id |
Returns
Type | Description |
---|---|
FeedsResource.DeleteRequest |
Get(string)
Gets details about an asset feed.
Declaration
public virtual FeedsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Feed and it must be in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id |
Returns
Type | Description |
---|---|
FeedsResource.GetRequest |
List(string)
Lists all asset feeds in a parent project/folder/organization.
Declaration
public virtual FeedsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent project/folder/organization whose feeds are to be listed. It can only be using project/folder/organization number (such as "folders/12345")", or a project ID (such as "projects/my-project-id"). |
Returns
Type | Description |
---|---|
FeedsResource.ListRequest |
Patch(UpdateFeedRequest, string)
Updates an asset feed configuration.
Declaration
public virtual FeedsResource.PatchRequest Patch(UpdateFeedRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
UpdateFeedRequest | body | The body of the request. |
string | name | Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization. |
Returns
Type | Description |
---|---|
FeedsResource.PatchRequest |