Exemplo n.º 1
0
 /// <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,
     CallSettings callSettings = null)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 /// <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(
     string projectName,
     ReportedErrorEvent @event,
     CancellationToken cancellationToken) => ReportErrorEventAsync(
     projectName,
     @event,
     CallSettings.FromCancellationToken(cancellationToken));
Exemplo n.º 3
0
        /// <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 override ReportErrorEventResponse ReportErrorEvent(
            string projectName,
            ReportedErrorEvent @event,
            CallSettings callSettings = null)
        {
            ReportErrorEventRequest request = new ReportErrorEventRequest
            {
                ProjectName = projectName,
                Event       = @event,
            };

            Modify_ReportErrorEventRequest(ref request, ref callSettings);
            return(_callReportErrorEvent.Sync(request, callSettings));
        }