/// <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( gaxres::ProjectName projectName, ReportedErrorEvent @event, st::CancellationToken cancellationToken) => ReportErrorEventAsync( projectName, @event, 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="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( gaxres::ProjectName parent, string uri, st::CancellationToken cancellationToken) => ReportPhishingAsync( parent, uri, 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"> /// The asessment 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( gaxres::ProjectName parent, Assessment assessment, st::CancellationToken cancellationToken) => CreateAssessmentAsync( parent, assessment, 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"> /// 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 that completes when the RPC has completed. /// </returns> public virtual stt::Task BatchWriteSpansAsync( gaxres::ProjectName name, scg::IEnumerable <Span> spans, st::CancellationToken cancellationToken) => BatchWriteSpansAsync( name, spans, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill out the /// following profile fields if present within the resume: /// /// * personNames /// * addresses /// * emailAddress /// * phoneNumbers /// * personalUris /// * employmentRecords /// * educationRecords /// * skills /// /// Note that some attributes in these fields may not be populated if they're /// not present within the resume or unrecognizable by the resume parser. /// /// This API does not save the resume or profile. To create a profile from this /// resume, clients need to call the CreateProfile method again with the /// profile returned. /// /// This API supports the following list of formats: /// /// * PDF /// * TXT /// * DOC /// * RTF /// * DOCX /// /// An error is thrown if the input format is not supported. /// </summary> /// <param name="parent"> /// Required. /// /// The resource name of the project. /// /// The format is "projects/{project_id}", for example, /// "projects/api-test-project". /// </param> /// <param name="resume"> /// Required. /// /// The bytes of the resume file in common format. Currently the API supports /// the following formats: /// PDF, TXT, DOC, RTF and DOCX. /// </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 <ParseResumeResponse> ParseResumeAsync( gaxres::ProjectName parent, pb::ByteString resume, st::CancellationToken cancellationToken) => ParseResumeAsync( parent, resume, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <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"> /// Parent project name. /// </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( gaxres::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="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual DeleteEventsResponse DeleteEvents( gaxres::ProjectName projectName, gaxgrpc::CallSettings callSettings = null) => DeleteEvents( new DeleteEventsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), }, callSettings);
public virtual stt::Task <lro::Operation <Instance, CreateInstanceMetadata> > CreateInstanceAsync( gaxres::ProjectName parent, gcscv::InstanceName instanceId, Instance instance, st::CancellationToken cancellationToken) => CreateInstanceAsync( parent, instanceId, instance, 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"> /// A list of new spans. The span names must not match existing /// spans, or the results are undefined. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> public virtual void BatchWriteSpans( gaxres::ProjectName name, scg::IEnumerable <Span> spans, gaxgrpc::CallSettings callSettings = null) => BatchWriteSpans( new BatchWriteSpansRequest { ProjectName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), Spans = { gax::GaxPreconditions.CheckNotNull(spans, nameof(spans)) }, }, 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( gaxres::ProjectName projectName, ReportedErrorEvent @event, gaxgrpc::CallSettings callSettings = null) => ReportErrorEvent( new ReportErrorEventRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), Event = gax::GaxPreconditions.CheckNotNull(@event, nameof(@event)), }, callSettings);
/// <summary> /// Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill out the /// following profile fields if present within the resume: /// /// * personNames /// * addresses /// * emailAddress /// * phoneNumbers /// * personalUris /// * employmentRecords /// * educationRecords /// * skills /// /// Note that some attributes in these fields may not be populated if they're /// not present within the resume or unrecognizable by the resume parser. /// /// This API does not save the resume or profile. To create a profile from this /// resume, clients need to call the CreateProfile method again with the /// profile returned. /// /// This API supports the following list of formats: /// /// * PDF /// * TXT /// * DOC /// * RTF /// * DOCX /// /// An error is thrown if the input format is not supported. /// </summary> /// <param name="parent"> /// Required. /// /// The resource name of the project. /// /// The format is "projects/{project_id}", for example, /// "projects/api-test-project". /// </param> /// <param name="resume"> /// Required. /// /// The bytes of the resume file in common format. Currently the API supports /// the following formats: /// PDF, TXT, DOC, RTF and DOCX. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ParseResumeResponse ParseResume( gaxres::ProjectName parent, pb::ByteString resume, gaxgrpc::CallSettings callSettings = null) => ParseResume( new ParseResumeRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), Resume = gax::GaxPreconditions.CheckNotNull(resume, nameof(resume)), }, 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="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual ReportPhishingResponse ReportPhishing( gaxres::ProjectName parent, string uri, gaxgrpc::CallSettings callSettings = null) => ReportPhishing( new ReportPhishingRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), Uri = gax::GaxPreconditions.CheckNotNullOrEmpty(uri, nameof(uri)), }, 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"> /// The asessment details. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// The RPC response. /// </returns> public virtual Assessment CreateAssessment( gaxres::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> /// 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"> /// Parent project name. /// </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> /// The RPC response. /// </returns> public virtual ClientEvent CreateClientEvent( gaxres::ProjectName parent, ClientEvent clientEvent, gaxgrpc::CallSettings callSettings = null) => CreateClientEvent( new CreateClientEventRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), ClientEvent = gax::GaxPreconditions.CheckNotNull(clientEvent, nameof(clientEvent)), }, callSettings);
public virtual lro::Operation <Instance, CreateInstanceMetadata> CreateInstance( gaxres::ProjectName parent, gcscv::InstanceName instanceId, Instance instance, gaxgrpc::CallSettings callSettings = null) => CreateInstance( new CreateInstanceRequest { ParentAsProjectName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), InstanceIdAsInstanceName = gax::GaxPreconditions.CheckNotNull(instanceId, nameof(instanceId)), Instance = gax::GaxPreconditions.CheckNotNull(instance, nameof(instance)), }, callSettings);
/// <summary> /// Lists the specified groups. /// </summary> /// <param name="projectName"> /// [Required] The resource name of the Google Cloud Platform project. Written /// as <code>projects/</code> plus the /// <a href="https://support.google.com/cloud/answer/6158840">Google Cloud /// Platform project ID</a>. /// /// Example: <code>projects/my-project-123</code>. /// </param> /// <param name="timeRange"> /// [Optional] List data for the given time range. /// If not set a default time range is used. The field time_range_begin /// in the response will specify the beginning of this time range. /// Only <code>ErrorGroupStats</code> with a non-zero count in the given time /// range are returned, unless the request contains an explicit group_id list. /// If a group_id list is given, also <code>ErrorGroupStats</code> 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 0 uses a server-defined page size. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// A pageable sequence of <see cref="ErrorGroupStats"/> resources. /// </returns> public virtual gax::PagedEnumerable <ListGroupStatsResponse, ErrorGroupStats> ListGroupStats( gaxres::ProjectName projectName, QueryTimeRange timeRange, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) => ListGroupStats( new ListGroupStatsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), TimeRange = gax::GaxPreconditions.CheckNotNull(timeRange, nameof(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/` plus 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 0 uses a server-defined page size. /// </param> /// <param name="callSettings"> /// If not null, applies overrides to this RPC call. /// </param> /// <returns> /// A pageable sequence of <see cref="ErrorEvent"/> resources. /// </returns> public virtual gax::PagedEnumerable <ListEventsResponse, ErrorEvent> ListEvents( gaxres::ProjectName projectName, string groupId, string pageToken = null, int?pageSize = null, gaxgrpc::CallSettings callSettings = null) => ListEvents( new ListEventsRequest { ProjectNameAsProjectName = gax::GaxPreconditions.CheckNotNull(projectName, nameof(projectName)), GroupId = gax::GaxPreconditions.CheckNotNullOrEmpty(groupId, nameof(groupId)), PageToken = pageToken ?? "", PageSize = pageSize ?? 0, }, callSettings);
/// <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( gaxres::ProjectName projectName, st::CancellationToken cancellationToken) => DeleteEventsAsync( projectName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));