generated/google/apis/logging_v2beta1/classes.rb in google-api-client-0.19.3 vs generated/google/apis/logging_v2beta1/classes.rb in google-api-client-0.19.4
- old
+ new
@@ -1553,10 +1553,18 @@
# The parameters to WriteLogEntries.
class WriteLogEntriesRequest
include Google::Apis::Core::Hashable
+ # Optional. If true, the request should expect normal response, but the entries
+ # won't be persisted nor exported. Useful for checking whether the logging API
+ # endpoints are working properly before sending valuable data.
+ # Corresponds to the JSON property `dryRun`
+ # @return [Boolean]
+ attr_accessor :dry_run
+ alias_method :dry_run?, :dry_run
+
# Required. The log entries to send to Stackdriver Logging. The order of log
# entries in this list does not matter. Values supplied in this method's
# log_name, resource, and labels fields are copied into those log entries in
# this list that do not include values for their corresponding fields. For more
# information, see the LogEntry type.If the timestamp or insert_id fields are
@@ -1624,9 +1632,10 @@
update!(**args)
end
# Update properties of this object
def update!(**args)
+ @dry_run = args[:dry_run] if args.key?(:dry_run)
@entries = args[:entries] if args.key?(:entries)
@labels = args[:labels] if args.key?(:labels)
@log_name = args[:log_name] if args.key?(:log_name)
@partial_success = args[:partial_success] if args.key?(:partial_success)
@resource = args[:resource] if args.key?(:resource)