/// <summary> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST /// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="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( string projectName, ReportedErrorEvent @event, st::CancellationToken cancellationToken) => ReportErrorEventAsync( projectName, @event, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="event"> /// [Required] The error event to be reported. /// </param> /// <param name="cancellationToken"> /// A <see cref="CancellationToken"/> to use for this RPC. /// </param> /// <returns> /// A Task containing the RPC response. /// </returns> public virtual Task <ReportErrorEventResponse> ReportErrorEventAsync( ProjectName projectName, ReportedErrorEvent @event, CancellationToken cancellationToken) => ReportErrorEventAsync( projectName, @event, CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST /// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="event"> /// [Required] The error event to be reported. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ReportErrorEventResponse ReportErrorEvent( string projectName, ReportedErrorEvent @event, gaxgrpc::CallSettings callSettings = null) => ReportErrorEvent( new ReportErrorEventRequest { ProjectName = gax::GaxPreconditions.CheckNotNullOrEmpty(projectName, nameof(projectName)), Event = gax::GaxPreconditions.CheckNotNull(@event, nameof(@event)), }, callSettings);
/// <summary> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST /// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="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( gaxres::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> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="event"> /// [Required] The error event to be reported. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ReportErrorEventResponse ReportErrorEvent( ProjectName projectName, ReportedErrorEvent @event, CallSettings callSettings = null) => ReportErrorEvent( new ReportErrorEventRequest { ProjectNameAsProjectName = projectName, Event = @event, }, callSettings);
/// <summary> /// Report an individual error event. /// /// This endpoint accepts <strong>either</strong> an OAuth token, /// <strong>or</strong> an /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> /// for authentication. To use an API key, append it to the URL as the value of /// a `key` parameter. For example: /// <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre> /// </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="event"> /// [Required] The error event to be reported. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ReportErrorEventResponse ReportErrorEvent( ProjectName projectName, ReportedErrorEvent @event, CallSettings callSettings = null) => ReportErrorEvent( new ReportErrorEventRequest { ProjectNameAsProjectName = GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), Event = GaxPreconditions.CheckNotNull(@event, nameof(@event)), }, callSettings);