App Hub V1 API - Class Google::Cloud::AppHub::V1::Workload (v0.1.1)

Reference documentation and code samples for the App Hub V1 API class Google::Cloud::AppHub::V1::Workload.

Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attributes

def attributes() -> ::Google::Cloud::AppHub::V1::Attributes
Returns

#attributes=

def attributes=(value) -> ::Google::Cloud::AppHub::V1::Attributes
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
Returns
  • (::String) — Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.

#discovered_workload

def discovered_workload() -> ::String
Returns
  • (::String) — Required. Immutable. The resource name of the original discovered workload.

#discovered_workload=

def discovered_workload=(value) -> ::String
Parameter
  • value (::String) — Required. Immutable. The resource name of the original discovered workload.
Returns
  • (::String) — Required. Immutable. The resource name of the original discovered workload.

#display_name

def display_name() -> ::String
Returns
  • (::String) — Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
Returns
  • (::String) — Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.

#name

def name() -> ::String
Returns
  • (::String) — Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"
Returns
  • (::String) — Identifier. The resource name of the Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"

#state

def state() -> ::Google::Cloud::AppHub::V1::Workload::State
Returns

#uid

def uid() -> ::String
Returns
  • (::String) — Output only. A universally unique identifier (UUID) for the Workload in the UUID4 format.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#workload_properties

def workload_properties() -> ::Google::Cloud::AppHub::V1::WorkloadProperties
Returns

#workload_reference

def workload_reference() -> ::Google::Cloud::AppHub::V1::WorkloadReference
Returns