Class: Google::Apis::LoggingV2::LogBucket
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::LoggingV2::LogBucket
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/logging_v2/classes.rb,
 lib/google/apis/logging_v2/representations.rb,
 lib/google/apis/logging_v2/representations.rb
Overview
Describes a repository in which log entries are stored.
Instance Attribute Summary collapse
- 
  
    
      #analytics_enabled  ⇒ Boolean 
    
    
      (also: #analytics_enabled?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #cmek_settings  ⇒ Google::Apis::LoggingV2::CmekSettings 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Describes the customer-managed encryption key (CMEK) settings associated with a project, folder, organization, billing account, or flexible resource.Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. 
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #index_configs  ⇒ Array<Google::Apis::LoggingV2::IndexConfig> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #lifecycle_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #locked  ⇒ Boolean 
    
    
      (also: #locked?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #restricted_fields  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #retention_days  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LogBucket 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LogBucket. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ LogBucket
Returns a new instance of LogBucket.
| 1844 1845 1846 | # File 'lib/google/apis/logging_v2/classes.rb', line 1844 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#analytics_enabled ⇒ Boolean Also known as: analytics_enabled?
Optional. Whether log analytics is enabled for this bucket.Once enabled, log
analytics features cannot be disabled.
Corresponds to the JSON property analyticsEnabled
| 1772 1773 1774 | # File 'lib/google/apis/logging_v2/classes.rb', line 1772 def analytics_enabled @analytics_enabled end | 
#cmek_settings ⇒ Google::Apis::LoggingV2::CmekSettings
Describes the customer-managed encryption key (CMEK) settings associated with
a project, folder, organization, billing account, or flexible resource.Note:
CMEK for the Log Router can currently only be configured for Google Cloud
organizations. Once configured, it applies to all projects and folders in the
Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.
google.com/logging/docs/routing/managed-encryption) for more information.
Corresponds to the JSON property cmekSettings
| 1783 1784 1785 | # File 'lib/google/apis/logging_v2/classes.rb', line 1783 def cmek_settings @cmek_settings end | 
#create_time ⇒ String
Output only. The creation timestamp of the bucket. This is not set for any of
the default buckets.
Corresponds to the JSON property createTime
| 1789 1790 1791 | # File 'lib/google/apis/logging_v2/classes.rb', line 1789 def create_time @create_time end | 
#description ⇒ String
Optional. Describes this bucket.
Corresponds to the JSON property description
| 1794 1795 1796 | # File 'lib/google/apis/logging_v2/classes.rb', line 1794 def description @description end | 
#index_configs ⇒ Array<Google::Apis::LoggingV2::IndexConfig>
Optional. A list of indexed fields and related configuration data.
Corresponds to the JSON property indexConfigs
| 1799 1800 1801 | # File 'lib/google/apis/logging_v2/classes.rb', line 1799 def index_configs @index_configs end | 
#lifecycle_state ⇒ String
Output only. The bucket lifecycle state.
Corresponds to the JSON property lifecycleState
| 1804 1805 1806 | # File 'lib/google/apis/logging_v2/classes.rb', line 1804 def lifecycle_state @lifecycle_state end | 
#locked ⇒ Boolean Also known as: locked?
Optional. Whether the bucket is locked.The retention period on a locked bucket
cannot be changed. Locked buckets may only be deleted if they are empty.
Corresponds to the JSON property locked
| 1810 1811 1812 | # File 'lib/google/apis/logging_v2/classes.rb', line 1810 def locked @locked end | 
#name ⇒ String
Output only. The resource name of the bucket.For example:projects/my-project/
locations/global/buckets/my-bucketFor a list of supported locations, see
Supported Regions (https://cloud.google.com/logging/docs/region-support)For
the location of global it is unspecified where log entries are actually stored.
After a bucket has been created, the location cannot be changed.
Corresponds to the JSON property name
| 1820 1821 1822 | # File 'lib/google/apis/logging_v2/classes.rb', line 1820 def name @name end | 
#restricted_fields ⇒ Array<String>
Optional. Log entry field paths that are denied access in this bucket.The
following fields and their children are eligible: textPayload, jsonPayload,
protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field
will restrict all values. Adding a parent will block all child fields. (e.g.
foo.bar will block foo.bar.baz)
Corresponds to the JSON property restrictedFields
| 1829 1830 1831 | # File 'lib/google/apis/logging_v2/classes.rb', line 1829 def restricted_fields @restricted_fields end | 
#retention_days ⇒ Fixnum
Optional. Logs will be retained by default for this amount of time, after
which they will automatically be deleted. The minimum retention period is 1
day. If this value is set to zero at bucket creation time, the default time of
30 days will be used.
Corresponds to the JSON property retentionDays
| 1837 1838 1839 | # File 'lib/google/apis/logging_v2/classes.rb', line 1837 def retention_days @retention_days end | 
#update_time ⇒ String
Output only. The last update timestamp of the bucket.
Corresponds to the JSON property updateTime
| 1842 1843 1844 | # File 'lib/google/apis/logging_v2/classes.rb', line 1842 def update_time @update_time end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 | # File 'lib/google/apis/logging_v2/classes.rb', line 1849 def update!(**args) @analytics_enabled = args[:analytics_enabled] if args.key?(:analytics_enabled) @cmek_settings = args[:cmek_settings] if args.key?(:cmek_settings) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @index_configs = args[:index_configs] if args.key?(:index_configs) @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) @locked = args[:locked] if args.key?(:locked) @name = args[:name] if args.key?(:name) @restricted_fields = args[:restricted_fields] if args.key?(:restricted_fields) @retention_days = args[:retention_days] if args.key?(:retention_days) @update_time = args[:update_time] if args.key?(:update_time) end |