Class: Google::Apis::LoggingV2::AppHubApplication

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppHubApplication

Returns a new instance of AppHubApplication.



82
83
84
# File 'lib/google/apis/logging_v2/classes.rb', line 82

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

Instance Attribute Details

#containerString

Resource container that owns the application. Example: "projects/ management_project" Corresponds to the JSON property container

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/logging_v2/classes.rb', line 70

def container
  @container
end

#idString

Application Id. Example: "my-app" Corresponds to the JSON property id

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/logging_v2/classes.rb', line 75

def id
  @id
end

#locationString

Location associated with the Application. Example: "us-east1" Corresponds to the JSON property location

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/logging_v2/classes.rb', line 80

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
91
# File 'lib/google/apis/logging_v2/classes.rb', line 87

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