Class: Google::Apis::LoggingV2::AppHub

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 App Hub.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppHub

Returns a new instance of AppHub.



47
48
49
# File 'lib/google/apis/logging_v2/classes.rb', line 47

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

Instance Attribute Details

#applicationGoogle::Apis::LoggingV2::AppHubApplication

Resource identifiers associated with an AppHub application AppHub resources are of the form projects//locations//applications/ projects//locations// applications//services/ projects//locations//applications//workloads/ These resources can be reconstructed from the components below. Corresponds to the JSON property application



35
36
37
# File 'lib/google/apis/logging_v2/classes.rb', line 35

def application
  @application
end

#serviceGoogle::Apis::LoggingV2::AppHubService

Metadata associated with an App Hub service. Corresponds to the JSON property service



40
41
42
# File 'lib/google/apis/logging_v2/classes.rb', line 40

def service
  @service
end

#workloadGoogle::Apis::LoggingV2::AppHubWorkload

Metadata associated with an App Hub workload. Corresponds to the JSON property workload



45
46
47
# File 'lib/google/apis/logging_v2/classes.rb', line 45

def workload
  @workload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52
53
54
55
56
# File 'lib/google/apis/logging_v2/classes.rb', line 52

def update!(**args)
  @application = args[:application] if args.key?(:application)
  @service = args[:service] if args.key?(:service)
  @workload = args[:workload] if args.key?(:workload)
end