Class: Google::Apis::LoggingV2::AppHubService

Inherits:
Object
  • Object
show all
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

Metadata associated with an App Hub service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppHubService

Returns a new instance of AppHubService.



113
114
115
# File 'lib/google/apis/logging_v2/classes.rb', line 113

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

Instance Attribute Details

#criticality_typeString

Service criticality type Example: "CRITICAL" Corresponds to the JSON property criticalityType

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/logging_v2/classes.rb', line 101

def criticality_type
  @criticality_type
end

#environment_typeString

Service environment type Example: "DEV" Corresponds to the JSON property environmentType

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/logging_v2/classes.rb', line 106

def environment_type
  @environment_type
end

#idString

Service Id. Example: "my-service" Corresponds to the JSON property id

Returns:

  • (String)


111
112
113
# File 'lib/google/apis/logging_v2/classes.rb', line 111

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



118
119
120
121
122
# File 'lib/google/apis/logging_v2/classes.rb', line 118

def update!(**args)
  @criticality_type = args[:criticality_type] if args.key?(:criticality_type)
  @environment_type = args[:environment_type] if args.key?(:environment_type)
  @id = args[:id] if args.key?(:id)
end