class Feeds extends Resource (View source)

The "feeds" collection of methods.

Typical usage is:

 $cloudassetService = new Google\Service\CloudAsset(...);
 $feeds = $cloudassetService->feeds;

Methods

create(string $parent, CreateFeedRequest $postBody, array $optParams = [])

Creates a feed in a parent project/folder/organization to listen to its asset updates. (feeds.create)

delete(string $name, array $optParams = [])

Deletes an asset feed. (feeds.delete)

get(string $name, array $optParams = [])

Gets details about an asset feed. (feeds.get)

listFeeds(string $parent, array $optParams = [])

Lists all asset feeds in a parent project/folder/organization.

patch(string $name, UpdateFeedRequest $postBody, array $optParams = [])

Updates an asset feed configuration. (feeds.patch)

Details

Feed create(string $parent, CreateFeedRequest $postBody, array $optParams = [])

Creates a feed in a parent project/folder/organization to listen to its asset updates. (feeds.create)

Parameters

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").

CreateFeedRequest $postBody
array $optParams

Optional parameters.

Return Value

Feed

Exceptions

Exception

CloudassetEmpty delete(string $name, array $optParams = [])

Deletes an asset feed. (feeds.delete)

Parameters

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

array $optParams

Optional parameters.

Return Value

CloudassetEmpty

Exceptions

Exception

Feed get(string $name, array $optParams = [])

Gets details about an asset feed. (feeds.get)

Parameters

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

array $optParams

Optional parameters.

Return Value

Feed

Exceptions

Exception

ListFeedsResponse listFeeds(string $parent, array $optParams = [])

Lists all asset feeds in a parent project/folder/organization.

(feeds.listFeeds)

Parameters

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").

array $optParams

Optional parameters.

Return Value

ListFeedsResponse

Exceptions

Exception

Feed patch(string $name, UpdateFeedRequest $postBody, array $optParams = [])

Updates an asset feed configuration. (feeds.patch)

Parameters

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.

UpdateFeedRequest $postBody
array $optParams

Optional parameters.

Return Value

Feed

Exceptions

Exception