Class: Google::Apis::ServiceusageV1::LogDescriptor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceusage_v1/classes.rb,
generated/google/apis/serviceusage_v1/representations.rb,
generated/google/apis/serviceusage_v1/representations.rb

Overview

A description of a log type. Example in YAML format:

  • name: library.googleapis.com/activity_history description: The history of borrowing and returning library items. display_name: Activity labels:
  • key: /customer_id description: Identifier of a library customer

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogDescriptor

Returns a new instance of LogDescriptor.



2743
2744
2745
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2743

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

A human-readable description of this log. This information appears in the documentation and can contain details. Corresponds to the JSON property description

Returns:

  • (String)


2720
2721
2722
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2720

def description
  @description
end

#display_nameString

The human-readable name for this log. This information appears on the user interface and should be concise. Corresponds to the JSON property displayName

Returns:

  • (String)


2726
2727
2728
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2726

def display_name
  @display_name
end

#labelsArray<Google::Apis::ServiceusageV1::LabelDescriptor>

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid. Corresponds to the JSON property labels



2733
2734
2735
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2733

def labels
  @labels
end

#nameString

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.]. Corresponds to the JSON property name

Returns:

  • (String)


2741
2742
2743
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2741

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2748
2749
2750
2751
2752
2753
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 2748

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
end