blob: 14cd8d6a7c0f0da2e8253d5462560f6216beb257 [file] [log] [blame]
type: com.google.api.codegen.ConfigProto
language_settings:
java:
package_name: com.google.cloud.logging.spi.v2
interface_names:
google.logging.v2.ConfigServiceV2: Config
google.logging.v2.LoggingServiceV2: Logging
google.logging.v2.MetricsServiceV2: Metrics
python:
package_name: google.cloud.gapic.logging.v2
go:
package_name: cloud.google.com/go/logging/apiv2
domain_layer_location: cloud.google.com/go/logging
csharp:
package_name: Google.Cloud.Logging.V2
ruby:
package_name: Google::Cloud::Logging::V2
php:
package_name: Google\Cloud\Logging\V2
nodejs:
package_name: logging.v2
domain_layer_location: google-cloud
license_header:
copyright_file: copyright-google.txt
license_file: license-header-apache-2.0.txt
collections:
- name_pattern: projects/{project}
entity_name: project
- name_pattern: projects/{project}/logs/{log}
entity_name: log
- name_pattern: projects/{project}/sinks/{sink}
entity_name: sink
- name_pattern: projects/{project}/metrics/{metric}
entity_name: metric
- name_pattern: organizations/{organization}
entity_name: organization
- name_pattern: organizations/{organization}/logs/{log}
entity_name: organization_log
- name_pattern: organizations/{organization}/sinks/{sink}
entity_name: organization_sink
- name_pattern: folders/{folder}
entity_name: folder
- name_pattern: folders/{folder}/logs/{log}
entity_name: folder_log
- name_pattern: folders/{folder}/sinks/{sink}
entity_name: folder_sink
- name_pattern: billingAccounts/{billing_account}
entity_name: billing
- name_pattern: billingAccounts/{billing_account}/logs/{log}
entity_name: billing_log
- name_pattern: billingAccounts/{billing_account}/sinks/{sink}
entity_name: billing_sink
collection_oneofs:
- oneof_name: parent_oneof
collection_names:
- project
- organization
- folder
- billing
- oneof_name: sink_oneof
collection_names:
- sink
- organization_sink
- folder_sink
- billing_sink
- oneof_name: log_oneof
collection_names:
- log
- organization_log
- folder_log
- billing_log
- oneof_name: metric_oneof
collection_names:
- metric
interfaces:
- name: google.logging.v2.ConfigServiceV2
collections:
- name_pattern: projects/{project}
entity_name: project
- name_pattern: projects/{project}/sinks/{sink}
entity_name: sink
retry_codes_def:
- name: idempotent
retry_codes:
- UNAVAILABLE
- DEADLINE_EXCEEDED
- name: non_idempotent
retry_codes:
- UNAVAILABLE
retry_params_def:
- name: default
initial_retry_delay_millis: 100
retry_delay_multiplier: 1.2
max_retry_delay_millis: 1000
initial_rpc_timeout_millis: 2000
rpc_timeout_multiplier: 1.5
max_rpc_timeout_millis: 30000
total_timeout_millis: 45000
methods:
- name: ListSinks
flattening:
groups:
- parameters:
- parent
required_fields:
- parent
request_object_method: true
page_streaming:
request:
token_field: page_token
page_size_field: page_size
response:
token_field: next_page_token
resources_field: sinks
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
parent: parent_oneof
resource_name_treatment: STATIC_TYPES
- name: GetSink
flattening:
groups:
- parameters:
- sink_name
required_fields:
- sink_name
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
sink_name: sink_oneof
resource_name_treatment: STATIC_TYPES
- name: CreateSink
flattening:
groups:
- parameters:
- parent
- sink
required_fields:
- parent
- sink
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
parent: parent_oneof
resource_name_treatment: STATIC_TYPES
- name: UpdateSink
flattening:
groups:
- parameters:
- sink_name
- sink
required_fields:
- sink_name
- sink
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
sink_name: sink_oneof
resource_name_treatment: STATIC_TYPES
- name: DeleteSink
flattening:
groups:
- parameters:
- sink_name
required_fields:
- sink_name
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
sink_name: sink_oneof
resource_name_treatment: STATIC_TYPES
- name: google.logging.v2.MetricsServiceV2
collections:
- name_pattern: projects/{project}
entity_name: project
- name_pattern: projects/{project}/metrics/{metric}
entity_name: metric
retry_codes_def:
- name: idempotent
retry_codes:
- UNAVAILABLE
- DEADLINE_EXCEEDED
- name: non_idempotent
retry_codes:
- UNAVAILABLE
retry_params_def:
- name: default
initial_retry_delay_millis: 100
retry_delay_multiplier: 1.2
max_retry_delay_millis: 1000
initial_rpc_timeout_millis: 2000
rpc_timeout_multiplier: 1.5
max_rpc_timeout_millis: 30000
total_timeout_millis: 45000
methods:
- name: ListLogMetrics
flattening:
groups:
- parameters:
- parent
required_fields:
- parent
request_object_method: true
page_streaming:
request:
token_field: page_token
page_size_field: page_size
response:
token_field: next_page_token
resources_field: metrics
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
parent: parent_oneof
resource_name_treatment: STATIC_TYPES
- name: GetLogMetric
flattening:
groups:
- parameters:
- metric_name
required_fields:
- metric_name
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
metric_name: metric_oneof
resource_name_treatment: STATIC_TYPES
- name: CreateLogMetric
flattening:
groups:
- parameters:
- parent
- metric
required_fields:
- parent
- metric
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
parent: parent_oneof
resource_name_treatment: STATIC_TYPES
- name: UpdateLogMetric
flattening:
groups:
- parameters:
- metric_name
- metric
required_fields:
- metric_name
- metric
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
metric_name: metric_oneof
resource_name_treatment: STATIC_TYPES
- name: DeleteLogMetric
flattening:
groups:
- parameters:
- metric_name
required_fields:
- metric_name
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
metric_name: metric_oneof
resource_name_treatment: STATIC_TYPES
- name: google.logging.v2.LoggingServiceV2
smoke_test:
method: WriteLogEntries
init_fields:
- entries
- log_name%project=$PROJECT_ID
- log_name%log="test-$RANDOM"
collections:
- name_pattern: projects/{project}
entity_name: project
- name_pattern: projects/{project}/logs/{log}
entity_name: log
retry_codes_def:
- name: idempotent
retry_codes:
- UNAVAILABLE
- DEADLINE_EXCEEDED
- name: non_idempotent
retry_codes:
- UNAVAILABLE
retry_params_def:
- name: default
initial_retry_delay_millis: 100
retry_delay_multiplier: 1.2
max_retry_delay_millis: 1000
initial_rpc_timeout_millis: 2000
rpc_timeout_multiplier: 1.5
max_rpc_timeout_millis: 30000
total_timeout_millis: 45000
- name: list
initial_retry_delay_millis: 100
retry_delay_multiplier: 1.2
max_retry_delay_millis: 1000
initial_rpc_timeout_millis: 7000
rpc_timeout_multiplier: 1.5
max_rpc_timeout_millis: 30000
total_timeout_millis: 45000
methods:
- name: DeleteLog
flattening:
groups:
- parameters:
- log_name
required_fields:
- log_name
request_object_method: false
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
log_name: log_oneof
resource_name_treatment: STATIC_TYPES
- name: WriteLogEntries
flattening:
groups:
- parameters:
- log_name
- resource
- labels
- entries
required_fields:
- entries
request_object_method: true
retry_codes_name: non_idempotent
retry_params_name: default
timeout_millis: 30000
field_name_patterns:
log_name: log_oneof
resource_name_treatment: STATIC_TYPES
batching:
thresholds:
element_count_threshold: 1000
request_byte_threshold: 1048576 # 1 MiB
delay_threshold_millis: 50
flow_control_element_limit: 100000
flow_control_byte_limit: 10485760 # 10 MiB
flow_control_limit_exceeded_behavior: THROW_EXCEPTION
batch_descriptor:
batched_field: entries
discriminator_fields:
- log_name
- resource
- labels
- name: ListLogEntries
flattening:
groups:
- parameters:
- resource_names
- filter
- order_by
required_fields:
- resource_names
request_object_method: true
page_streaming:
request:
page_size_field: page_size
token_field: page_token
response:
token_field: next_page_token
resources_field: entries
retry_codes_name: idempotent
retry_params_name: list
timeout_millis: 30000
resource_name_treatment: STATIC_TYPES
- name: ListMonitoredResourceDescriptors
request_object_method: true
page_streaming:
request:
page_size_field: page_size
token_field: page_token
response:
token_field: next_page_token
resources_field: resource_descriptors
retry_codes_name: idempotent
retry_params_name: default
timeout_millis: 30000
resource_name_treatment: STATIC_TYPES
- name: ListLogs
flattening:
groups:
- parameters:
- parent
required_fields:
- parent
request_object_method: true
page_streaming:
request:
page_size_field: page_size
token_field: page_token
response:
token_field: next_page_token
resources_field: log_names
retry_codes_name: idempotent
retry_params_name: default
field_name_patterns:
parent: parent_oneof
timeout_millis: 30000
resource_name_treatment: STATIC_TYPES
resource_name_generation:
- message_name: DeleteLogRequest
field_entity_map:
log_name: log_oneof
- message_name: WriteLogEntriesRequest
field_entity_map:
log_name: log_oneof
- message_name: ListLogEntriesRequest
field_entity_map:
log_name: log_oneof
- message_name: LogEntry
field_entity_map:
log_name: log_oneof
- message_name: LogSink
field_entity_map:
destination: "*"
- message_name: ListSinksRequest
field_entity_map:
parent: parent_oneof
- message_name: GetSinkRequest
field_entity_map:
sink_name: sink_oneof
- message_name: CreateSinkRequest
field_entity_map:
parent: parent_oneof
- message_name: UpdateSinkRequest
field_entity_map:
sink_name: sink_oneof
- message_name: DeleteSinkRequest
field_entity_map:
sink_name: sink_oneof
- message_name: ListLogMetricsRequest
field_entity_map:
parent: parent_oneof
- message_name: GetLogMetricRequest
field_entity_map:
metric_name: metric_oneof
- message_name: CreateLogMetricRequest
field_entity_map:
parent: parent_oneof
- message_name: UpdateLogMetricRequest
field_entity_map:
metric_name: metric_oneof
- message_name: DeleteLogMetricRequest
field_entity_map:
metric_name: metric_oneof
- message_name: ListLogsRequest
field_entity_map:
parent: parent_oneof