google_api_logging v0.0.1 GoogleApi.Logging.V2.Api.Projects View Source
API calls for all endpoints tagged Projects
.
Link to this section Summary
Functions
Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed
Creates a logs-based metric
Deletes a logs-based metric
Gets a logs-based metric
Lists logs-based metrics
Creates or updates a logs-based metric
Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink
Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted
Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated sink might also have a new writer_identity; see the unique_writer_identity field
Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated sink might also have a new writer_identity; see the unique_writer_identity field
Link to this section Functions
logging_projects_logs_delete(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.Empty.t} | {:error, Tesla.Env.t}
Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `logName`. Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". For more information about log names, see LogEntry.
- logs_id (String): Part of `logName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
Returns
{:ok, %GoogleApi.Logging.V2.Model.Empty{}} on success {:error, info} on failure
logging_projects_logs_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.ListLogsResponse.t} | {:error, Tesla.Env.t}
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :page_token (String): Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- :page_size (Integer): Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
Returns
{:ok, %GoogleApi.Logging.V2.Model.ListLogsResponse{}} on success {:error, info} on failure
logging_projects_metrics_create(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogMetric.t} | {:error, Tesla.Env.t}
Creates a logs-based metric.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `parent`. The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :body (LogMetric):
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogMetric{}} on success {:error, info} on failure
logging_projects_metrics_delete(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.Empty.t} | {:error, Tesla.Env.t}
Deletes a logs-based metric.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `metricName`. The resource name of the metric to delete: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
- metrics_id (String): Part of `metricName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
Returns
{:ok, %GoogleApi.Logging.V2.Model.Empty{}} on success {:error, info} on failure
logging_projects_metrics_get(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogMetric.t} | {:error, Tesla.Env.t}
Gets a logs-based metric.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `metricName`. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
- metrics_id (String): Part of `metricName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogMetric{}} on success {:error, info} on failure
logging_projects_metrics_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.ListLogMetricsResponse.t} | {:error, Tesla.Env.t}
Lists logs-based metrics.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The name of the project containing the metrics: "projects/[PROJECT_ID]"
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :page_token (String): Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- :page_size (Integer): Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
Returns
{:ok, %GoogleApi.Logging.V2.Model.ListLogMetricsResponse{}} on success {:error, info} on failure
logging_projects_metrics_update(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogMetric.t} | {:error, Tesla.Env.t}
Creates or updates a logs-based metric.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `metricName`. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.
- metrics_id (String): Part of `metricName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :body (LogMetric):
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogMetric{}} on success {:error, info} on failure
logging_projects_sinks_create(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogSink.t} | {:error, Tesla.Env.t}
Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789".
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :unique_writer_identity (Boolean): Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Stackdriver Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
- :body (LogSink):
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogSink{}} on success {:error, info} on failure
logging_projects_sinks_delete(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.Empty.t} | {:error, Tesla.Env.t}
Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `sinkName`. Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id".
- sinks_id (String): Part of `sinkName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
Returns
{:ok, %GoogleApi.Logging.V2.Model.Empty{}} on success {:error, info} on failure
logging_projects_sinks_get(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogSink.t} | {:error, Tesla.Env.t}
Gets a sink.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `sinkName`. Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id".
- sinks_id (String): Part of `sinkName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogSink{}} on success {:error, info} on failure
logging_projects_sinks_list(Tesla.Env.client, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.ListSinksResponse.t} | {:error, Tesla.Env.t}
Lists sinks.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `parent`. Required. The parent resource whose sinks are to be listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :page_token (String): Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
- :page_size (Integer): Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
Returns
{:ok, %GoogleApi.Logging.V2.Model.ListSinksResponse{}} on success {:error, info} on failure
logging_projects_sinks_patch(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogSink.t} | {:error, Tesla.Env.t}
Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated sink might also have a new writer_identity; see the unique_writer_identity field.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `sinkName`. Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id".
- sinks_id (String): Part of `sinkName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :unique_writer_identity (Boolean): Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.
- :body (LogSink):
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogSink{}} on success {:error, info} on failure
logging_projects_sinks_update(Tesla.Env.client, String.t, String.t, keyword) :: {:ok, GoogleApi.Logging.V2.Model.LogSink.t} | {:error, Tesla.Env.t}
Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated sink might also have a new writer_identity; see the unique_writer_identity field.
Parameters
- connection (GoogleApi.Logging.V2.Connection): Connection to server
- projects_id (String): Part of `sinkName`. Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: "projects/my-project-id/sinks/my-sink-id".
- sinks_id (String): Part of `sinkName`. See documentation of `projectsId`.
opts (KeywordList): [optional] Optional parameters
- :key (String): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- :access_token (String): OAuth access token.
- :quota_user (String): Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- :pp (Boolean): Pretty-print response.
- :oauth_token (String): OAuth 2.0 token for the current user.
- :bearer_token (String): OAuth bearer token.
- :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
- :pretty_print (Boolean): Returns response with indentations and line breaks.
- :fields (String): Selector specifying which fields to include in a partial response.
- :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
- :callback (String): JSONP
- :__/xgafv (String): V1 error format.
- :alt (String): Data format for response.
- :unique_writer_identity (Boolean): Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false.
- :body (LogSink):
Returns
{:ok, %GoogleApi.Logging.V2.Model.LogSink{}} on success {:error, info} on failure