public abstract class FeedsServiceClientReference documentation and code samples for the Chronicle v1 API class FeedsServiceClient.
FeedsService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Chronicle.V1Assembly
Google.Cloud.Chronicle.V1.dll
Remarks
FeedsService contains procedures for managing Chronicle third-party feeds.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the FeedsService service, which is a host of "chronicle.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default FeedsService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default FeedsService scopes are:
GrpcClient
public virtual FeedsService.FeedsServiceClient GrpcClient { get; }The underlying gRPC FeedsService client
| Property Value | |
|---|---|
| Type | Description |
FeedsServiceFeedsServiceClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
Create()
public static FeedsServiceClient Create()Synchronously creates a FeedsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeedsServiceClientBuilder.
| Returns | |
|---|---|
| Type | Description |
FeedsServiceClient |
The created FeedsServiceClient. |
CreateAsync(CancellationToken)
public static Task<FeedsServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a FeedsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeedsServiceClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedsServiceClient |
The task representing the created FeedsServiceClient. |
CreateFeed(CreateFeedRequest, CallSettings)
public virtual Feed CreateFeed(CreateFeedRequest request, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
CreateFeedRequest request = new CreateFeedRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
Feed = new Feed(),
};
// Make the request
Feed response = feedsServiceClient.CreateFeed(request);
CreateFeed(InstanceName, Feed, CallSettings)
public virtual Feed CreateFeed(InstanceName parent, Feed feed, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
Feed feed = new Feed();
// Make the request
Feed response = feedsServiceClient.CreateFeed(parent, feed);
CreateFeed(string, Feed, CallSettings)
public virtual Feed CreateFeed(string parent, Feed feed, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
Feed feed = new Feed();
// Make the request
Feed response = feedsServiceClient.CreateFeed(parent, feed);
CreateFeedAsync(CreateFeedRequest, CallSettings)
public virtual Task<Feed> CreateFeedAsync(CreateFeedRequest request, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeedRequest request = new CreateFeedRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
Feed = new Feed(),
};
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(request);
CreateFeedAsync(CreateFeedRequest, CancellationToken)
public virtual Task<Feed> CreateFeedAsync(CreateFeedRequest request, CancellationToken cancellationToken)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFeedRequest request = new CreateFeedRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
Feed = new Feed(),
};
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(request);
CreateFeedAsync(InstanceName, Feed, CallSettings)
public virtual Task<Feed> CreateFeedAsync(InstanceName parent, Feed feed, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
Feed feed = new Feed();
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(parent, feed);
CreateFeedAsync(InstanceName, Feed, CancellationToken)
public virtual Task<Feed> CreateFeedAsync(InstanceName parent, Feed feed, CancellationToken cancellationToken)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
Feed feed = new Feed();
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(parent, feed);
CreateFeedAsync(string, Feed, CallSettings)
public virtual Task<Feed> CreateFeedAsync(string parent, Feed feed, CallSettings callSettings = null)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
Feed feed = new Feed();
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(parent, feed);
CreateFeedAsync(string, Feed, CancellationToken)
public virtual Task<Feed> CreateFeedAsync(string parent, Feed feed, CancellationToken cancellationToken)Creates a feed.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
feed |
FeedRequired. Feed to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
Feed feed = new Feed();
// Make the request
Feed response = await feedsServiceClient.CreateFeedAsync(parent, feed);
DeleteFeed(DeleteFeedRequest, CallSettings)
public virtual void DeleteFeed(DeleteFeedRequest request, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
DeleteFeedRequest request = new DeleteFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
DeleteBacklog = false,
};
// Make the request
feedsServiceClient.DeleteFeed(request);
DeleteFeed(FeedName, CallSettings)
public virtual void DeleteFeed(FeedName name, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
feedsServiceClient.DeleteFeed(name);
DeleteFeed(string, CallSettings)
public virtual void DeleteFeed(string name, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
feedsServiceClient.DeleteFeed(name);
DeleteFeedAsync(DeleteFeedRequest, CallSettings)
public virtual Task DeleteFeedAsync(DeleteFeedRequest request, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeedRequest request = new DeleteFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
DeleteBacklog = false,
};
// Make the request
await feedsServiceClient.DeleteFeedAsync(request);
DeleteFeedAsync(DeleteFeedRequest, CancellationToken)
public virtual Task DeleteFeedAsync(DeleteFeedRequest request, CancellationToken cancellationToken)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFeedRequest request = new DeleteFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
DeleteBacklog = false,
};
// Make the request
await feedsServiceClient.DeleteFeedAsync(request);
DeleteFeedAsync(FeedName, CallSettings)
public virtual Task DeleteFeedAsync(FeedName name, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
await feedsServiceClient.DeleteFeedAsync(name);
DeleteFeedAsync(FeedName, CancellationToken)
public virtual Task DeleteFeedAsync(FeedName name, CancellationToken cancellationToken)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
await feedsServiceClient.DeleteFeedAsync(name);
DeleteFeedAsync(string, CallSettings)
public virtual Task DeleteFeedAsync(string name, CallSettings callSettings = null)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
await feedsServiceClient.DeleteFeedAsync(name);
DeleteFeedAsync(string, CancellationToken)
public virtual Task DeleteFeedAsync(string name, CancellationToken cancellationToken)Deletes a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
await feedsServiceClient.DeleteFeedAsync(name);
DisableFeed(DisableFeedRequest, CallSettings)
public virtual Feed DisableFeed(DisableFeedRequest request, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
request |
DisableFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
DisableFeedRequest request = new DisableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = feedsServiceClient.DisableFeed(request);
DisableFeed(FeedName, CallSettings)
public virtual Feed DisableFeed(FeedName name, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = feedsServiceClient.DisableFeed(name);
DisableFeed(string, CallSettings)
public virtual Feed DisableFeed(string name, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = feedsServiceClient.DisableFeed(name);
DisableFeedAsync(DisableFeedRequest, CallSettings)
public virtual Task<Feed> DisableFeedAsync(DisableFeedRequest request, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
request |
DisableFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
DisableFeedRequest request = new DisableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(request);
DisableFeedAsync(DisableFeedRequest, CancellationToken)
public virtual Task<Feed> DisableFeedAsync(DisableFeedRequest request, CancellationToken cancellationToken)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
request |
DisableFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
DisableFeedRequest request = new DisableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(request);
DisableFeedAsync(FeedName, CallSettings)
public virtual Task<Feed> DisableFeedAsync(FeedName name, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(name);
DisableFeedAsync(FeedName, CancellationToken)
public virtual Task<Feed> DisableFeedAsync(FeedName name, CancellationToken cancellationToken)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(name);
DisableFeedAsync(string, CallSettings)
public virtual Task<Feed> DisableFeedAsync(string name, CallSettings callSettings = null)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(name);
DisableFeedAsync(string, CancellationToken)
public virtual Task<Feed> DisableFeedAsync(string name, CancellationToken cancellationToken)Disable feed for ingestion. Make FeedState ARCHIVED.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.DisableFeedAsync(name);
EnableFeed(EnableFeedRequest, CallSettings)
public virtual Feed EnableFeed(EnableFeedRequest request, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
request |
EnableFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
EnableFeedRequest request = new EnableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = feedsServiceClient.EnableFeed(request);
EnableFeed(FeedName, CallSettings)
public virtual Feed EnableFeed(FeedName name, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = feedsServiceClient.EnableFeed(name);
EnableFeed(string, CallSettings)
public virtual Feed EnableFeed(string name, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = feedsServiceClient.EnableFeed(name);
EnableFeedAsync(EnableFeedRequest, CallSettings)
public virtual Task<Feed> EnableFeedAsync(EnableFeedRequest request, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
request |
EnableFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
EnableFeedRequest request = new EnableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(request);
EnableFeedAsync(EnableFeedRequest, CancellationToken)
public virtual Task<Feed> EnableFeedAsync(EnableFeedRequest request, CancellationToken cancellationToken)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
request |
EnableFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
EnableFeedRequest request = new EnableFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(request);
EnableFeedAsync(FeedName, CallSettings)
public virtual Task<Feed> EnableFeedAsync(FeedName name, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(name);
EnableFeedAsync(FeedName, CancellationToken)
public virtual Task<Feed> EnableFeedAsync(FeedName name, CancellationToken cancellationToken)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(name);
EnableFeedAsync(string, CallSettings)
public virtual Task<Feed> EnableFeedAsync(string name, CallSettings callSettings = null)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(name);
EnableFeedAsync(string, CancellationToken)
public virtual Task<Feed> EnableFeedAsync(string name, CancellationToken cancellationToken)Enable feed for ingestion.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.EnableFeedAsync(name);
FetchServiceAccountForCustomer(FetchServiceAccountForCustomerRequest, CallSettings)
public virtual FeedServiceAccount FetchServiceAccountForCustomer(FetchServiceAccountForCustomerRequest request, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchServiceAccountForCustomerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedServiceAccount |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FetchServiceAccountForCustomerRequest request = new FetchServiceAccountForCustomerRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
FeedServiceAccount response = feedsServiceClient.FetchServiceAccountForCustomer(request);
FetchServiceAccountForCustomer(InstanceName, CallSettings)
public virtual FeedServiceAccount FetchServiceAccountForCustomer(InstanceName parent, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedServiceAccount |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
FeedServiceAccount response = feedsServiceClient.FetchServiceAccountForCustomer(parent);
FetchServiceAccountForCustomer(string, CallSettings)
public virtual FeedServiceAccount FetchServiceAccountForCustomer(string parent, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedServiceAccount |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
FeedServiceAccount response = feedsServiceClient.FetchServiceAccountForCustomer(parent);
FetchServiceAccountForCustomerAsync(FetchServiceAccountForCustomerRequest, CallSettings)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(FetchServiceAccountForCustomerRequest request, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchServiceAccountForCustomerRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FetchServiceAccountForCustomerRequest request = new FetchServiceAccountForCustomerRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(request);
FetchServiceAccountForCustomerAsync(FetchServiceAccountForCustomerRequest, CancellationToken)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(FetchServiceAccountForCustomerRequest request, CancellationToken cancellationToken)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchServiceAccountForCustomerRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FetchServiceAccountForCustomerRequest request = new FetchServiceAccountForCustomerRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(request);
FetchServiceAccountForCustomerAsync(InstanceName, CallSettings)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(InstanceName parent, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(parent);
FetchServiceAccountForCustomerAsync(InstanceName, CancellationToken)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(InstanceName parent, CancellationToken cancellationToken)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(parent);
FetchServiceAccountForCustomerAsync(string, CallSettings)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(string parent, CallSettings callSettings = null)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(parent);
FetchServiceAccountForCustomerAsync(string, CancellationToken)
public virtual Task<FeedServiceAccount> FetchServiceAccountForCustomerAsync(string parent, CancellationToken cancellationToken)Fetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedServiceAccount |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
FeedServiceAccount response = await feedsServiceClient.FetchServiceAccountForCustomerAsync(parent);
GenerateSecret(FeedName, CallSettings)
public virtual GenerateSecretResponse GenerateSecret(FeedName name, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateSecretResponse |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
GenerateSecretResponse response = feedsServiceClient.GenerateSecret(name);
GenerateSecret(GenerateSecretRequest, CallSettings)
public virtual GenerateSecretResponse GenerateSecret(GenerateSecretRequest request, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateSecretRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateSecretResponse |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
GenerateSecretRequest request = new GenerateSecretRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
GenerateSecretResponse response = feedsServiceClient.GenerateSecret(request);
GenerateSecret(string, CallSettings)
public virtual GenerateSecretResponse GenerateSecret(string name, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateSecretResponse |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
GenerateSecretResponse response = feedsServiceClient.GenerateSecret(name);
GenerateSecretAsync(FeedName, CallSettings)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(FeedName name, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(name);
GenerateSecretAsync(FeedName, CancellationToken)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(FeedName name, CancellationToken cancellationToken)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(name);
GenerateSecretAsync(GenerateSecretRequest, CallSettings)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(GenerateSecretRequest request, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateSecretRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateSecretRequest request = new GenerateSecretRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(request);
GenerateSecretAsync(GenerateSecretRequest, CancellationToken)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(GenerateSecretRequest request, CancellationToken cancellationToken)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateSecretRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GenerateSecretRequest request = new GenerateSecretRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(request);
GenerateSecretAsync(string, CallSettings)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(string name, CallSettings callSettings = null)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(name);
GenerateSecretAsync(string, CancellationToken)
public virtual Task<GenerateSecretResponse> GenerateSecretAsync(string name, CancellationToken cancellationToken)Generates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateSecretResponse |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
GenerateSecretResponse response = await feedsServiceClient.GenerateSecretAsync(name);
GetFeed(FeedName, CallSettings)
public virtual Feed GetFeed(FeedName name, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = feedsServiceClient.GetFeed(name);
GetFeed(GetFeedRequest, CallSettings)
public virtual Feed GetFeed(GetFeedRequest request, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
GetFeedRequest request = new GetFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = feedsServiceClient.GetFeed(request);
GetFeed(string, CallSettings)
public virtual Feed GetFeed(string name, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = feedsServiceClient.GetFeed(name);
GetFeedAsync(FeedName, CallSettings)
public virtual Task<Feed> GetFeedAsync(FeedName name, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(name);
GetFeedAsync(FeedName, CancellationToken)
public virtual Task<Feed> GetFeedAsync(FeedName name, CancellationToken cancellationToken)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedNameRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName name = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(name);
GetFeedAsync(GetFeedRequest, CallSettings)
public virtual Task<Feed> GetFeedAsync(GetFeedRequest request, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeedRequest request = new GetFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(request);
GetFeedAsync(GetFeedRequest, CancellationToken)
public virtual Task<Feed> GetFeedAsync(GetFeedRequest request, CancellationToken cancellationToken)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeedRequest request = new GetFeedRequest
{
FeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
};
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(request);
GetFeedAsync(string, CallSettings)
public virtual Task<Feed> GetFeedAsync(string name, CallSettings callSettings = null)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(name);
GetFeedAsync(string, CancellationToken)
public virtual Task<Feed> GetFeedAsync(string name, CancellationToken cancellationToken)Gets a feed.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
Feed response = await feedsServiceClient.GetFeedAsync(name);
GetFeedPack(FeedPackName, CallSettings)
public virtual FeedPack GetFeedPack(FeedPackName name, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedPackNameRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedPack |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedPackName name = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]");
// Make the request
FeedPack response = feedsServiceClient.GetFeedPack(name);
GetFeedPack(GetFeedPackRequest, CallSettings)
public virtual FeedPack GetFeedPack(GetFeedPackRequest request, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedPackRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedPack |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
GetFeedPackRequest request = new GetFeedPackRequest
{
FeedPackName = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]"),
};
// Make the request
FeedPack response = feedsServiceClient.GetFeedPack(request);
GetFeedPack(string, CallSettings)
public virtual FeedPack GetFeedPack(string name, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
FeedPack |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feedPacks/[FEED_PACK]";
// Make the request
FeedPack response = feedsServiceClient.GetFeedPack(name);
GetFeedPackAsync(FeedPackName, CallSettings)
public virtual Task<FeedPack> GetFeedPackAsync(FeedPackName name, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedPackNameRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedPackName name = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]");
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(name);
GetFeedPackAsync(FeedPackName, CancellationToken)
public virtual Task<FeedPack> GetFeedPackAsync(FeedPackName name, CancellationToken cancellationToken)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
FeedPackNameRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedPackName name = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]");
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(name);
GetFeedPackAsync(GetFeedPackRequest, CallSettings)
public virtual Task<FeedPack> GetFeedPackAsync(GetFeedPackRequest request, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedPackRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeedPackRequest request = new GetFeedPackRequest
{
FeedPackName = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]"),
};
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(request);
GetFeedPackAsync(GetFeedPackRequest, CancellationToken)
public virtual Task<FeedPack> GetFeedPackAsync(GetFeedPackRequest request, CancellationToken cancellationToken)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeedPackRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeedPackRequest request = new GetFeedPackRequest
{
FeedPackName = FeedPackName.FromProjectLocationInstanceFeedPack("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_PACK]"),
};
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(request);
GetFeedPackAsync(string, CallSettings)
public virtual Task<FeedPack> GetFeedPackAsync(string name, CallSettings callSettings = null)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feedPacks/[FEED_PACK]";
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(name);
GetFeedPackAsync(string, CancellationToken)
public virtual Task<FeedPack> GetFeedPackAsync(string name, CancellationToken cancellationToken)Gets a feed pack.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeedPack |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feedPacks/[FEED_PACK]";
// Make the request
FeedPack response = await feedsServiceClient.GetFeedPackAsync(name);
ImportPushLogs(FeedName, CallSettings)
public virtual HttpBody ImportPushLogs(FeedName parent, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeedNameRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
HttpBody |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedName parent = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
HttpBody response = feedsServiceClient.ImportPushLogs(parent);
ImportPushLogs(ImportPushLogsRequest, CallSettings)
public virtual HttpBody ImportPushLogs(ImportPushLogsRequest request, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportPushLogsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
HttpBody |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
ImportPushLogsRequest request = new ImportPushLogsRequest
{
ParentAsFeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
HttpBody = new HttpBody(),
Secret = "",
};
// Make the request
HttpBody response = feedsServiceClient.ImportPushLogs(request);
ImportPushLogs(string, CallSettings)
public virtual HttpBody ImportPushLogs(string parent, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
HttpBody |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
HttpBody response = feedsServiceClient.ImportPushLogs(parent);
ImportPushLogsAsync(FeedName, CallSettings)
public virtual Task<HttpBody> ImportPushLogsAsync(FeedName parent, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeedNameRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName parent = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(parent);
ImportPushLogsAsync(FeedName, CancellationToken)
public virtual Task<HttpBody> ImportPushLogsAsync(FeedName parent, CancellationToken cancellationToken)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeedNameRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedName parent = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]");
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(parent);
ImportPushLogsAsync(ImportPushLogsRequest, CallSettings)
public virtual Task<HttpBody> ImportPushLogsAsync(ImportPushLogsRequest request, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportPushLogsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ImportPushLogsRequest request = new ImportPushLogsRequest
{
ParentAsFeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
HttpBody = new HttpBody(),
Secret = "",
};
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(request);
ImportPushLogsAsync(ImportPushLogsRequest, CancellationToken)
public virtual Task<HttpBody> ImportPushLogsAsync(ImportPushLogsRequest request, CancellationToken cancellationToken)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
request |
ImportPushLogsRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ImportPushLogsRequest request = new ImportPushLogsRequest
{
ParentAsFeedName = FeedName.FromProjectLocationInstanceFeed("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED]"),
HttpBody = new HttpBody(),
Secret = "",
};
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(request);
ImportPushLogsAsync(string, CallSettings)
public virtual Task<HttpBody> ImportPushLogsAsync(string parent, CallSettings callSettings = null)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(parent);
ImportPushLogsAsync(string, CancellationToken)
public virtual Task<HttpBody> ImportPushLogsAsync(string parent, CancellationToken cancellationToken)Import logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskHttpBody |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feeds/[FEED]";
// Make the request
HttpBody response = await feedsServiceClient.ImportPushLogsAsync(parent);
ListFeedPacks(InstanceName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacks(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this content pack will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedPacksResponseFeedPack |
A pageable sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedPacks(ListFeedPacksRequest, CallSettings)
public virtual PagedEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacks(ListFeedPacksRequest request, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedPacksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedPacksResponseFeedPack |
A pageable sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
ListFeedPacksRequest request = new ListFeedPacksRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedPacks(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this content pack will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedPacksResponseFeedPack |
A pageable sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedPacksAsync(InstanceName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacksAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this content pack will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedPacksResponseFeedPack |
A pageable asynchronous sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedPacksAsync(ListFeedPacksRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacksAsync(ListFeedPacksRequest request, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedPacksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedPacksResponseFeedPack |
A pageable asynchronous sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeedPacksRequest request = new ListFeedPacksRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedPacksAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> ListFeedPacksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Packs for which feeds can be configured.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this content pack will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedPacksResponseFeedPack |
A pageable asynchronous sequence of FeedPack resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedAsyncEnumerable<ListFeedPacksResponse, FeedPack> response = feedsServiceClient.ListFeedPacksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedPack item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedPacksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedPack item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedPack> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedPack item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemas(InstanceName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemas(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent, which owns this collection of FeedSourceTypeSchemas. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemas(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemas(ListFeedSourceTypeSchemasRequest, CallSettings)
public virtual PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemas(ListFeedSourceTypeSchemasRequest request, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedSourceTypeSchemasRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
ListFeedSourceTypeSchemasRequest request = new ListFeedSourceTypeSchemasRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemas(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemas(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of FeedSourceTypeSchemas. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemas(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemasAsync(InstanceName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemasAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent, which owns this collection of FeedSourceTypeSchemas. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable asynchronous sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemasAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemasAsync(ListFeedSourceTypeSchemasRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemasAsync(ListFeedSourceTypeSchemasRequest request, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedSourceTypeSchemasRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable asynchronous sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeedSourceTypeSchemasRequest request = new ListFeedSourceTypeSchemasRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemasAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedSourceTypeSchemasAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> ListFeedSourceTypeSchemasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all FeedSourceTypeSchemas.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of FeedSourceTypeSchemas. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedSourceTypeSchemasResponseFeedSourceTypeSchema |
A pageable asynchronous sequence of FeedSourceTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedAsyncEnumerable<ListFeedSourceTypeSchemasResponse, FeedSourceTypeSchema> response = feedsServiceClient.ListFeedSourceTypeSchemasAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (FeedSourceTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedSourceTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FeedSourceTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<FeedSourceTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (FeedSourceTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeeds(InstanceName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedsResponse, Feed> ListFeeds(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedsResponseFeed |
A pageable sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeeds(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeeds(ListFeedsRequest, CallSettings)
public virtual PagedEnumerable<ListFeedsResponse, Feed> ListFeeds(ListFeedsRequest request, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedsResponseFeed |
A pageable sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
ListFeedsRequest request = new ListFeedsRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeeds(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeeds(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeedsResponse, Feed> ListFeeds(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeedsResponseFeed |
A pageable sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeeds(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedsAsync(InstanceName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedsResponse, Feed> ListFeedsAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedsResponseFeed |
A pageable asynchronous sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
InstanceName parent = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedAsyncEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeedsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedsAsync(ListFeedsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedsResponse, Feed> ListFeedsAsync(ListFeedsRequest request, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFeedsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedsResponseFeed |
A pageable asynchronous sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeedsRequest request = new ListFeedsRequest
{
ParentAsInstanceName = InstanceName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
};
// Make the request
PagedAsyncEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeedsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeedsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeedsResponse, Feed> ListFeedsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all feeds for the customer.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeedsResponseFeed |
A pageable asynchronous sequence of Feed resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]";
// Make the request
PagedAsyncEnumerable<ListFeedsResponse, Feed> response = feedsServiceClient.ListFeedsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Feed item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeedsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feed item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feed> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feed item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemas(FeedSourceTypeSchemaName, string, int?, CallSettings)
public virtual PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemas(FeedSourceTypeSchemaName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeedSourceTypeSchemaNameRequired. The parent, which owns this collection of LogTypeSchemas. Format: Format: projects/{project}/locations/{location}/instances/{instance}/feedSourceTypeSchemas/{feed_source_type} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
FeedSourceTypeSchemaName parent = FeedSourceTypeSchemaName.FromProjectLocationInstanceFeedSourceType("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_SOURCE_TYPE]");
// Make the request
PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemas(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemas(ListLogTypeSchemasRequest, CallSettings)
public virtual PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemas(ListLogTypeSchemasRequest request, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogTypeSchemasRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
ListLogTypeSchemasRequest request = new ListLogTypeSchemasRequest
{
ParentAsFeedSourceTypeSchemaName = FeedSourceTypeSchemaName.FromProjectLocationInstanceFeedSourceType("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_SOURCE_TYPE]"),
};
// Make the request
PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemas(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemas(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemas(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of LogTypeSchemas. Format: Format: projects/{project}/locations/{location}/instances/{instance}/feedSourceTypeSchemas/{feed_source_type} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feedSourceTypeSchemas/[FEED_SOURCE_TYPE]";
// Make the request
PagedEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemas(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemasAsync(FeedSourceTypeSchemaName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemasAsync(FeedSourceTypeSchemaName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
parent |
FeedSourceTypeSchemaNameRequired. The parent, which owns this collection of LogTypeSchemas. Format: Format: projects/{project}/locations/{location}/instances/{instance}/feedSourceTypeSchemas/{feed_source_type} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable asynchronous sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
FeedSourceTypeSchemaName parent = FeedSourceTypeSchemaName.FromProjectLocationInstanceFeedSourceType("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_SOURCE_TYPE]");
// Make the request
PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemasAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemasAsync(ListLogTypeSchemasRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemasAsync(ListLogTypeSchemasRequest request, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLogTypeSchemasRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable asynchronous sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
ListLogTypeSchemasRequest request = new ListLogTypeSchemasRequest
{
ParentAsFeedSourceTypeSchemaName = FeedSourceTypeSchemaName.FromProjectLocationInstanceFeedSourceType("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEED_SOURCE_TYPE]"),
};
// Make the request
PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemasAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLogTypeSchemasAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> ListLogTypeSchemasAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List all LogTypeSchemas compatible with a given FeedSourceType.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of LogTypeSchemas. Format: Format: projects/{project}/locations/{location}/instances/{instance}/feedSourceTypeSchemas/{feed_source_type} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLogTypeSchemasResponseLogTypeSchema |
A pageable asynchronous sequence of LogTypeSchema resources. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/feedSourceTypeSchemas/[FEED_SOURCE_TYPE]";
// Make the request
PagedAsyncEnumerable<ListLogTypeSchemasResponse, LogTypeSchema> response = feedsServiceClient.ListLogTypeSchemasAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (LogTypeSchema item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLogTypeSchemasResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (LogTypeSchema item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LogTypeSchema> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LogTypeSchema item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateFeed(Feed, FieldMask, CallSettings)
public virtual Feed UpdateFeed(Feed feed, FieldMask updateMask, CallSettings callSettings = null)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
feed |
FeedRequired. Feed to update. Updates full feed object. |
updateMask |
FieldMaskOptional. Specifies which fields to update. If empty, update the full feed.
To update the display name, pass only |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
Feed feed = new Feed();
FieldMask updateMask = new FieldMask();
// Make the request
Feed response = feedsServiceClient.UpdateFeed(feed, updateMask);
UpdateFeed(UpdateFeedRequest, CallSettings)
public virtual Feed UpdateFeed(UpdateFeedRequest request, CallSettings callSettings = null)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Feed |
The RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = FeedsServiceClient.Create();
// Initialize request argument(s)
UpdateFeedRequest request = new UpdateFeedRequest
{
Feed = new Feed(),
UpdateMask = new FieldMask(),
};
// Make the request
Feed response = feedsServiceClient.UpdateFeed(request);
UpdateFeedAsync(Feed, FieldMask, CallSettings)
public virtual Task<Feed> UpdateFeedAsync(Feed feed, FieldMask updateMask, CallSettings callSettings = null)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
feed |
FeedRequired. Feed to update. Updates full feed object. |
updateMask |
FieldMaskOptional. Specifies which fields to update. If empty, update the full feed.
To update the display name, pass only |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
Feed feed = new Feed();
FieldMask updateMask = new FieldMask();
// Make the request
Feed response = await feedsServiceClient.UpdateFeedAsync(feed, updateMask);
UpdateFeedAsync(Feed, FieldMask, CancellationToken)
public virtual Task<Feed> UpdateFeedAsync(Feed feed, FieldMask updateMask, CancellationToken cancellationToken)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
feed |
FeedRequired. Feed to update. Updates full feed object. |
updateMask |
FieldMaskOptional. Specifies which fields to update. If empty, update the full feed.
To update the display name, pass only |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
Feed feed = new Feed();
FieldMask updateMask = new FieldMask();
// Make the request
Feed response = await feedsServiceClient.UpdateFeedAsync(feed, updateMask);
UpdateFeedAsync(UpdateFeedRequest, CallSettings)
public virtual Task<Feed> UpdateFeedAsync(UpdateFeedRequest request, CallSettings callSettings = null)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeedRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeedRequest request = new UpdateFeedRequest
{
Feed = new Feed(),
UpdateMask = new FieldMask(),
};
// Make the request
Feed response = await feedsServiceClient.UpdateFeedAsync(request);
UpdateFeedAsync(UpdateFeedRequest, CancellationToken)
public virtual Task<Feed> UpdateFeedAsync(UpdateFeedRequest request, CancellationToken cancellationToken)Updates the full feed.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeedRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeed |
A Task containing the RPC response. |
// Create client
FeedsServiceClient feedsServiceClient = await FeedsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFeedRequest request = new UpdateFeedRequest
{
Feed = new Feed(),
UpdateMask = new FieldMask(),
};
// Make the request
Feed response = await feedsServiceClient.UpdateFeedAsync(request);