Autogenerated update (2019-01-21)

Update:
- logging_v2
- logging_v2beta1
This commit is contained in:
Google APIs 2019-01-21 00:36:36 +00:00
parent 3845130574
commit c2db9e66f6
9 changed files with 121 additions and 31 deletions

View File

@ -75726,10 +75726,12 @@
"/logging:v2/LogEntrySourceLocation/function": function
"/logging:v2/LogEntrySourceLocation/line": line
"/logging:v2/LogExclusion": log_exclusion
"/logging:v2/LogExclusion/createTime": create_time
"/logging:v2/LogExclusion/description": description
"/logging:v2/LogExclusion/disabled": disabled
"/logging:v2/LogExclusion/filter": filter
"/logging:v2/LogExclusion/name": name
"/logging:v2/LogExclusion/updateTime": update_time
"/logging:v2/LogLine": log_line
"/logging:v2/LogLine/logMessage": log_message
"/logging:v2/LogLine/severity": severity
@ -75737,15 +75739,18 @@
"/logging:v2/LogLine/time": time
"/logging:v2/LogMetric": log_metric
"/logging:v2/LogMetric/bucketOptions": bucket_options
"/logging:v2/LogMetric/createTime": create_time
"/logging:v2/LogMetric/description": description
"/logging:v2/LogMetric/filter": filter
"/logging:v2/LogMetric/labelExtractors": label_extractors
"/logging:v2/LogMetric/labelExtractors/label_extractor": label_extractor
"/logging:v2/LogMetric/metricDescriptor": metric_descriptor
"/logging:v2/LogMetric/name": name
"/logging:v2/LogMetric/updateTime": update_time
"/logging:v2/LogMetric/valueExtractor": value_extractor
"/logging:v2/LogMetric/version": version
"/logging:v2/LogSink": log_sink
"/logging:v2/LogSink/createTime": create_time
"/logging:v2/LogSink/destination": destination
"/logging:v2/LogSink/endTime": end_time
"/logging:v2/LogSink/filter": filter
@ -75753,6 +75758,7 @@
"/logging:v2/LogSink/name": name
"/logging:v2/LogSink/outputVersionFormat": output_version_format
"/logging:v2/LogSink/startTime": start_time
"/logging:v2/LogSink/updateTime": update_time
"/logging:v2/LogSink/writerIdentity": writer_identity
"/logging:v2/MetricDescriptor": metric_descriptor
"/logging:v2/MetricDescriptor/description": description
@ -76147,15 +76153,18 @@
"/logging:v2beta1/LogLine/time": time
"/logging:v2beta1/LogMetric": log_metric
"/logging:v2beta1/LogMetric/bucketOptions": bucket_options
"/logging:v2beta1/LogMetric/createTime": create_time
"/logging:v2beta1/LogMetric/description": description
"/logging:v2beta1/LogMetric/filter": filter
"/logging:v2beta1/LogMetric/labelExtractors": label_extractors
"/logging:v2beta1/LogMetric/labelExtractors/label_extractor": label_extractor
"/logging:v2beta1/LogMetric/metricDescriptor": metric_descriptor
"/logging:v2beta1/LogMetric/name": name
"/logging:v2beta1/LogMetric/updateTime": update_time
"/logging:v2beta1/LogMetric/valueExtractor": value_extractor
"/logging:v2beta1/LogMetric/version": version
"/logging:v2beta1/LogSink": log_sink
"/logging:v2beta1/LogSink/createTime": create_time
"/logging:v2beta1/LogSink/destination": destination
"/logging:v2beta1/LogSink/endTime": end_time
"/logging:v2beta1/LogSink/filter": filter
@ -76163,6 +76172,7 @@
"/logging:v2beta1/LogSink/name": name
"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format
"/logging:v2beta1/LogSink/startTime": start_time
"/logging:v2beta1/LogSink/updateTime": update_time
"/logging:v2beta1/LogSink/writerIdentity": writer_identity
"/logging:v2beta1/MetricDescriptor": metric_descriptor
"/logging:v2beta1/MetricDescriptor/description": description

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2
VERSION = 'V2'
REVISION = '20181215'
REVISION = '20190115'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -625,8 +625,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
# A project number may optionally be used in place of PROJECT_ID. The project
# number is translated to its corresponding PROJECT_ID internally and the
# A project number may optionally be used in place of PROJECT_ID. The project
# number is translated to its corresponding PROJECT_ID internally and the
# log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be
# URL-encoded within log_name. Example: "organizations/1234567890/logs/
# cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than
@ -694,10 +694,10 @@ module Google
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
attr_accessor :source_location
# Optional. The span ID within the trace associated with the log entry. For
# Trace spans, this is the same format that the Trace API v2 uses: a 16-
# character hexadecimal encoding of an 8-byte array, such as <code>"
# 000000000000004a"</code>.
# Optional. The span ID within the trace associated with the log entry.For Trace
# spans, this is the same format that the Trace API v2 uses: a 16-character
# hexadecimal encoding of an 8-byte array, such as <code>"000000000000004a"</
# code>.
# Corresponds to the JSON property `spanId`
# @return [String]
attr_accessor :span_id
@ -854,13 +854,19 @@ module Google
class LogExclusion
include Google::Apis::Core::Hashable
# Output only. The creation timestamp of the exclusion.This field may not be
# present for older exclusions.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. A description of this exclusion.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Optional. If set to True, then this exclusion is disabled and it does not
# exclude any log entries. You can use exclusions.patch to change the value of
# exclude any log entries. You can update an exclusion to change the value of
# this field.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
@ -883,16 +889,24 @@ module Google
# @return [String]
attr_accessor :name
# Output only. The last update timestamp of the exclusion.This field may not be
# present for older exclusions.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@disabled = args[:disabled] if args.key?(:disabled)
@filter = args[:filter] if args.key?(:filter)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -959,6 +973,12 @@ module Google
# @return [Google::Apis::LoggingV2::BucketOptions]
attr_accessor :bucket_options
# Output only. The creation timestamp of the metric.This field may not be
# present for older metrics.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. A description of this metric, which is used in documentation. The
# maximum length of the description is 8000 characters.
# Corresponds to the JSON property `description`
@ -1006,6 +1026,12 @@ module Google
# @return [String]
attr_accessor :name
# Output only. The last update timestamp of the metric.This field may not be
# present for older metrics.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Optional. A value_extractor is required when using a distribution logs-based
# metric to extract the values to record from a log entry. Two functions are
# supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
@ -1036,11 +1062,13 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_options = args[:bucket_options] if args.key?(:bucket_options)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@filter = args[:filter] if args.key?(:filter)
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
@metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
@value_extractor = args[:value_extractor] if args.key?(:value_extractor)
@version = args[:version] if args.key?(:version)
end
@ -1054,13 +1082,19 @@ module Google
class LogSink
include Google::Apis::Core::Hashable
# Output only. The creation timestamp of the sink.This field may not be present
# for older sinks.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required. The export destination:
# "storage.googleapis.com/[GCS_BUCKET]"
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
# The sink's writer_identity, set when the sink is created, must have permission
# to write to the destination or else the log entries are not exported. For more
# information, see Exporting Logs With Sinks.
# information, see Exporting Logs with Sinks.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
@ -1104,12 +1138,18 @@ module Google
# @return [String]
attr_accessor :output_version_format
# Output only. The last update timestamp of the sink.This field may not be
# present for older sinks.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Output only. An IAM identity&mdash;a service account or group&mdash;under
# which Logging writes the exported log entries to the sink's destination. This
# field is set by sinks.create and sinks.update, based on the setting of
# field is set by sinks.create and sinks.update based on the value of
# unique_writer_identity in those methods.Until you grant this identity write-
# access to the destination, log entry exports from this sink will fail. For
# more information, see Granting access for a resource. Consult the destination
# more information, see Granting Access for a Resource. Consult the destination
# service's documentation to determine the appropriate IAM roles to assign to
# the identity.
# Corresponds to the JSON property `writerIdentity`
@ -1122,11 +1162,13 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@destination = args[:destination] if args.key?(:destination)
@filter = args[:filter] if args.key?(:filter)
@include_children = args[:include_children] if args.key?(:include_children)
@name = args[:name] if args.key?(:name)
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
@update_time = args[:update_time] if args.key?(:update_time)
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end
end

View File

@ -396,10 +396,12 @@ module Google
class LogExclusion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :disabled, as: 'disabled'
property :filter, as: 'filter'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
@ -419,12 +421,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2::BucketOptions, decorator: Google::Apis::LoggingV2::BucketOptions::Representation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :filter, as: 'filter'
hash :label_extractors, as: 'labelExtractors'
property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2::MetricDescriptor, decorator: Google::Apis::LoggingV2::MetricDescriptor::Representation
property :name, as: 'name'
property :update_time, as: 'updateTime'
property :value_extractor, as: 'valueExtractor'
property :version, as: 'version'
end
@ -433,11 +437,13 @@ module Google
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :destination, as: 'destination'
property :filter, as: 'filter'
property :include_children, as: 'includeChildren'
property :name, as: 'name'
property :output_version_format, as: 'outputVersionFormat'
property :update_time, as: 'updateTime'
property :writer_identity, as: 'writerIdentity'
end
end

View File

@ -503,7 +503,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -565,7 +565,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -1349,7 +1349,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -1411,7 +1411,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -2051,7 +2051,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -2113,7 +2113,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -2806,7 +2806,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -2868,7 +2868,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent
@ -3099,7 +3099,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2beta1
VERSION = 'V2beta1'
REVISION = '20181215'
REVISION = '20190115'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -570,8 +570,8 @@ module Google
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
# A project number may optionally be used in place of PROJECT_ID. The project
# number is translated to its corresponding PROJECT_ID internally and the
# A project number may optionally be used in place of PROJECT_ID. The project
# number is translated to its corresponding PROJECT_ID internally and the
# log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be
# URL-encoded within log_name. Example: "organizations/1234567890/logs/
# cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must be less than
@ -639,10 +639,10 @@ module Google
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
attr_accessor :source_location
# Optional. The span ID within the trace associated with the log entry. For
# Trace spans, this is the same format that the Trace API v2 uses: a 16-
# character hexadecimal encoding of an 8-byte array, such as <code>"
# 000000000000004a"</code>.
# Optional. The span ID within the trace associated with the log entry.For Trace
# spans, this is the same format that the Trace API v2 uses: a 16-character
# hexadecimal encoding of an 8-byte array, such as <code>"000000000000004a"</
# code>.
# Corresponds to the JSON property `spanId`
# @return [String]
attr_accessor :span_id
@ -854,6 +854,12 @@ module Google
# @return [Google::Apis::LoggingV2beta1::BucketOptions]
attr_accessor :bucket_options
# Output only. The creation timestamp of the metric.This field may not be
# present for older metrics.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Optional. A description of this metric, which is used in documentation. The
# maximum length of the description is 8000 characters.
# Corresponds to the JSON property `description`
@ -901,6 +907,12 @@ module Google
# @return [String]
attr_accessor :name
# Output only. The last update timestamp of the metric.This field may not be
# present for older metrics.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Optional. A value_extractor is required when using a distribution logs-based
# metric to extract the values to record from a log entry. Two functions are
# supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
@ -931,11 +943,13 @@ module Google
# Update properties of this object
def update!(**args)
@bucket_options = args[:bucket_options] if args.key?(:bucket_options)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@filter = args[:filter] if args.key?(:filter)
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
@metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
@value_extractor = args[:value_extractor] if args.key?(:value_extractor)
@version = args[:version] if args.key?(:version)
end
@ -949,13 +963,19 @@ module Google
class LogSink
include Google::Apis::Core::Hashable
# Output only. The creation timestamp of the sink.This field may not be present
# for older sinks.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required. The export destination:
# "storage.googleapis.com/[GCS_BUCKET]"
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
# The sink's writer_identity, set when the sink is created, must have permission
# to write to the destination or else the log entries are not exported. For more
# information, see Exporting Logs With Sinks.
# information, see Exporting Logs with Sinks.
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :destination
@ -999,12 +1019,18 @@ module Google
# @return [String]
attr_accessor :output_version_format
# Output only. The last update timestamp of the sink.This field may not be
# present for older sinks.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Output only. An IAM identity&mdash;a service account or group&mdash;under
# which Logging writes the exported log entries to the sink's destination. This
# field is set by sinks.create and sinks.update, based on the setting of
# field is set by sinks.create and sinks.update based on the value of
# unique_writer_identity in those methods.Until you grant this identity write-
# access to the destination, log entry exports from this sink will fail. For
# more information, see Granting access for a resource. Consult the destination
# more information, see Granting Access for a Resource. Consult the destination
# service's documentation to determine the appropriate IAM roles to assign to
# the identity.
# Corresponds to the JSON property `writerIdentity`
@ -1017,11 +1043,13 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@destination = args[:destination] if args.key?(:destination)
@filter = args[:filter] if args.key?(:filter)
@include_children = args[:include_children] if args.key?(:include_children)
@name = args[:name] if args.key?(:name)
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
@update_time = args[:update_time] if args.key?(:update_time)
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end
end

View File

@ -374,12 +374,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_options, as: 'bucketOptions', class: Google::Apis::LoggingV2beta1::BucketOptions, decorator: Google::Apis::LoggingV2beta1::BucketOptions::Representation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :filter, as: 'filter'
hash :label_extractors, as: 'labelExtractors'
property :metric_descriptor, as: 'metricDescriptor', class: Google::Apis::LoggingV2beta1::MetricDescriptor, decorator: Google::Apis::LoggingV2beta1::MetricDescriptor::Representation
property :name, as: 'name'
property :update_time, as: 'updateTime'
property :value_extractor, as: 'valueExtractor'
property :version, as: 'version'
end
@ -388,11 +390,13 @@ module Google
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :destination, as: 'destination'
property :filter, as: 'filter'
property :include_children, as: 'includeChildren'
property :name, as: 'name'
property :output_version_format, as: 'outputVersionFormat'
property :update_time, as: 'updateTime'
property :writer_identity, as: 'writerIdentity'
end
end

View File

@ -497,7 +497,7 @@ module Google
end
# Updates a sink. This method replaces the following fields in the existing sink
# with values from the new sink: destination, and filter. The updated sink might
# with values from the new sink: destination, and filter.The updated sink might
# also have a new writer_identity; see the unique_writer_identity field.
# @param [String] sink_name
# Required. The full resource name of the sink to update, including the parent