/// <summary> /// Deletes all error events of a given project. /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/{projectID}`, where `{projectID}` is the /// [Google Cloud Platform project /// ID](https://support.google.com/cloud/answer/6158840). /// /// Example: `projects/my-project-123`. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual DeleteEventsResponse DeleteEvents(gagr::ProjectName projectName, gaxgrpc::CallSettings callSettings = null) => DeleteEvents(new DeleteEventsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), }, callSettings);
/// <summary> /// Lists the specified groups. /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` /// and `{projectNumber}` can be found in the /// [Google Cloud Console](https://support.google.com/cloud/answer/6158840). /// /// Examples: `projects/my-project-123`, `projects/5551234`. /// </param> /// <param name="timeRange"> /// Optional. List data for the given time range. /// If not set, a default time range is used. The field /// &lt;code&gt;time_range_begin&lt;/code&gt; in the response will specify the beginning /// of this time range. /// Only &lt;code&gt;ErrorGroupStats&lt;/code&gt; with a non-zero count in the given time /// range are returned, unless the request contains an explicit /// &lt;code&gt;group_id&lt;/code&gt; list. If a &lt;code&gt;group_id&lt;/code&gt; list is given, also /// &lt;code&gt;ErrorGroupStats&lt;/code&gt; with zero occurrences are returned. /// </param> /// <param name="pageToken"> /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first /// page. /// </param> /// <param name="pageSize"> /// The size of page to request. The response will not be larger than this, but may be smaller. A value of /// <c>null</c> or <c>0</c> uses a server-defined page size. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A pageable asynchronous sequence of <see cref="ErrorGroupStats"/> resources.</returns> public virtual gax::PagedAsyncEnumerable <ListGroupStatsResponse, ErrorGroupStats> ListGroupStatsAsync(gagr::ProjectName projectName, QueryTimeRange timeRange, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) => ListGroupStatsAsync(new ListGroupStatsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), TimeRange = timeRange, PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
/// <summary> /// Lists the specified events. /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/{projectID}`, where `{projectID}` is the /// [Google Cloud Platform project /// ID](https://support.google.com/cloud/answer/6158840). /// /// Example: `projects/my-project-123`. /// </param> /// <param name="groupId"> /// Required. The group for which events shall be returned. /// </param> /// <param name="pageToken"> /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first /// page. /// </param> /// <param name="pageSize"> /// The size of page to request. The response will not be larger than this, but may be smaller. A value of /// <c>null</c> or <c>0</c> uses a server-defined page size. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A pageable asynchronous sequence of <see cref="ErrorEvent"/> resources.</returns> public virtual gax::PagedAsyncEnumerable <ListEventsResponse, ErrorEvent> ListEventsAsync(gagr::ProjectName projectName, string groupId, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) => ListEventsAsync(new ListEventsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), GroupId = gax::GaxPreconditions.CheckNotNullOrEmpty(groupId, nameof(groupId)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
/// <summary> /// Report events issued when end user interacts with customer's application /// that uses Cloud Talent Solution. You may inspect the created events in /// [self service /// tools](https://console.cloud.google.com/talent-solution/overview). /// [Learn /// more](https://cloud.google.com/talent-solution/docs/management-tools) /// about self service tools. /// </summary> /// <param name="parent"> /// Required. Resource name of the tenant under which the event is created. /// /// The format is "projects/{project_id}/tenants/{tenant_id}", for example, /// "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant /// is created, for example, "projects/foo". /// </param> /// <param name="clientEvent"> /// Required. Events issued when end user interacts with customer's application that /// uses Cloud Talent Solution. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ClientEvent> CreateClientEventAsync(gagr::ProjectName parent, ClientEvent clientEvent, gaxgrpc::CallSettings callSettings = null) => CreateClientEventAsync(new CreateClientEventRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), ClientEvent = gax::GaxPreconditions.CheckNotNull(clientEvent, nameof(clientEvent)), }, callSettings);
/// <summary> /// Report events issued when end user interacts with customer's application /// that uses Cloud Talent Solution. You may inspect the created events in /// [self service /// tools](https://console.cloud.google.com/talent-solution/overview). /// [Learn /// more](https://cloud.google.com/talent-solution/docs/management-tools) /// about self service tools. /// </summary> /// <param name="parent"> /// Required. Resource name of the tenant under which the event is created. /// /// The format is "projects/{project_id}/tenants/{tenant_id}", for example, /// "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant /// is created, for example, "projects/foo". /// </param> /// <param name="clientEvent"> /// Required. Events issued when end user interacts with customer's application that /// uses Cloud Talent Solution. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ClientEvent> CreateClientEventAsync(gagr::ProjectName parent, ClientEvent clientEvent, st::CancellationToken cancellationToken) => CreateClientEventAsync(parent, clientEvent, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Deletes all error events of a given project. /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/` plus the /// [Google Cloud Platform project /// ID](https://support.google.com/cloud/answer/6158840). /// Example: `projects/my-project-123`. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <DeleteEventsResponse> DeleteEventsAsync(gagr::ProjectName projectName, st::CancellationToken cancellationToken) => DeleteEventsAsync(projectName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Returns the list of all answer records in the specified project in reverse /// chronological order. /// </summary> /// <param name="parent"> /// Required. The project to list all answer records for in reverse /// chronological order. Format: `projects/{Project ID}/locations/{Location /// ID&gt;`. /// </param> /// <param name="pageToken"> /// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first /// page. /// </param> /// <param name="pageSize"> /// The size of page to request. The response will not be larger than this, but may be smaller. A value of /// <c>null</c> or <c>0</c> uses a server-defined page size. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A pageable asynchronous sequence of <see cref="AnswerRecord"/> resources.</returns> public virtual gax::PagedAsyncEnumerable <ListAnswerRecordsResponse, AnswerRecord> ListAnswerRecordsAsync(gagr::ProjectName parent, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) => ListAnswerRecordsAsync(new ListAnswerRecordsRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
/// <summary> /// Report an individual error event and record the event to a log. /// /// This endpoint accepts **either** an OAuth token, /// **or** an [API key](https://support.google.com/cloud/answer/6158862) /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// /// `POST /// https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` /// /// **Note:** [Error Reporting](/error-reporting) is a global service built /// on Cloud Logging and doesn't analyze logs stored /// in regional log buckets or logs routed to other Google Cloud projects. /// /// For more information, see /// [Using Error Reporting with regionalized /// logs](/error-reporting/docs/regionalization). /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/{projectId}`, where `{projectId}` is the /// [Google Cloud Platform project /// ID](https://support.google.com/cloud/answer/6158840). /// /// Example: // `projects/my-project-123`. /// </param> /// <param name="event"> /// Required. The error event to be reported. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ReportErrorEventResponse> ReportErrorEventAsync(gagr::ProjectName projectName, ReportedErrorEvent @event, st::CancellationToken cancellationToken) => ReportErrorEventAsync(projectName, @event, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Sends new spans to new or existing traces. You cannot update /// existing spans. /// </summary> /// <param name="name"> /// Required. The name of the project where the spans belong. The format is /// `projects/[PROJECT_ID]`. /// </param> /// <param name="spans"> /// Required. A list of new spans. The span names must not match existing /// spans, or the results are undefined. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task BatchWriteSpansAsync(gagr::ProjectName name, scg::IEnumerable <Span> spans, st::CancellationToken cancellationToken) => BatchWriteSpansAsync(name, spans, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Report an individual error event and record the event to a log. /// /// This endpoint accepts **either** an OAuth token, /// **or** an [API key](https://support.google.com/cloud/answer/6158862) /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// /// `POST /// https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` /// /// **Note:** [Error Reporting](/error-reporting) is a global service built /// on Cloud Logging and doesn't analyze logs stored /// in regional log buckets or logs routed to other Google Cloud projects. /// /// For more information, see /// [Using Error Reporting with regionalized /// logs](/error-reporting/docs/regionalization). /// </summary> /// <param name="projectName"> /// Required. The resource name of the Google Cloud Platform project. Written /// as `projects/{projectId}`, where `{projectId}` is the /// [Google Cloud Platform project /// ID](https://support.google.com/cloud/answer/6158840). /// /// Example: // `projects/my-project-123`. /// </param> /// <param name="event"> /// Required. The error event to be reported. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ReportErrorEventResponse> ReportErrorEventAsync(gagr::ProjectName projectName, ReportedErrorEvent @event, gaxgrpc::CallSettings callSettings = null) => ReportErrorEventAsync(new ReportErrorEventRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), Event = gax::GaxPreconditions.CheckNotNull(@event, nameof(@event)), }, callSettings);
/// <summary> /// Creates an Assessment of the likelihood an event is legitimate. /// </summary> /// <param name="parent"> /// Required. The name of the project in which the assessment will be created, /// in the format "projects/{project_number}". /// </param> /// <param name="assessment"> /// Required. The assessment details. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Assessment> CreateAssessmentAsync(gagr::ProjectName parent, Assessment assessment, st::CancellationToken cancellationToken) => CreateAssessmentAsync(parent, assessment, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Creates an Assessment of the likelihood an event is legitimate. /// </summary> /// <param name="parent"> /// Required. The name of the project in which the assessment will be created, /// in the format "projects/{project_number}". /// </param> /// <param name="assessment"> /// Required. The assessment details. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>The RPC response.</returns> public virtual Assessment CreateAssessment(gagr::ProjectName parent, Assessment assessment, gaxgrpc::CallSettings callSettings = null) => CreateAssessment(new CreateAssessmentRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), Assessment = gax::GaxPreconditions.CheckNotNull(assessment, nameof(assessment)), }, callSettings);
/// <summary> /// Reports a URI suspected of containing phishing content to be reviewed. Once /// the report review is complete, its result can be found in the Cloud /// Security Command Center findings dashboard for Phishing Protection. If the /// result verifies the existence of malicious phishing content, the site will /// be added the to [Google's Social Engineering /// lists](https://support.google.com/webmasters/answer/6350487/) in order to /// protect users that could get exposed to this threat in the future. /// </summary> /// <param name="parent"> /// Required. The name of the project for which the report will be created, /// in the format "projects/{project_number}". /// </param> /// <param name="uri"> /// Required. The URI that is being reported for phishing content to be analyzed. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ReportPhishingResponse> ReportPhishingAsync(gagr::ProjectName parent, string uri, st::CancellationToken cancellationToken) => ReportPhishingAsync(parent, uri, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Reports a URI suspected of containing phishing content to be reviewed. Once /// the report review is complete, its result can be found in the Cloud /// Security Command Center findings dashboard for Phishing Protection. If the /// result verifies the existence of malicious phishing content, the site will /// be added the to [Google's Social Engineering /// lists](https://support.google.com/webmasters/answer/6350487/) in order to /// protect users that could get exposed to this threat in the future. /// </summary> /// <param name="parent"> /// Required. The name of the project for which the report will be created, /// in the format "projects/{project_number}". /// </param> /// <param name="uri"> /// Required. The URI that is being reported for phishing content to be analyzed. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ReportPhishingResponse> ReportPhishingAsync(gagr::ProjectName parent, string uri, gaxgrpc::CallSettings callSettings = null) => ReportPhishingAsync(new ReportPhishingRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), Uri = gax::GaxPreconditions.CheckNotNullOrEmpty(uri, nameof(uri)), }, callSettings);