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
- (::Google::Cloud::AppHub::V1::Attributes) — Optional. Consumer provided attributes.
#attributes=
def attributes=(value) -> ::Google::Cloud::AppHub::V1::Attributes
Parameter
- value (::Google::Cloud::AppHub::V1::Attributes) — Optional. Consumer provided attributes.
Returns
- (::Google::Cloud::AppHub::V1::Attributes) — Optional. Consumer provided attributes.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Create time.
#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
- (::Google::Cloud::AppHub::V1::Workload::State) — Output only. Workload state.
#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
- (::Google::Protobuf::Timestamp) — Output only. Update time.
#workload_properties
def workload_properties() -> ::Google::Cloud::AppHub::V1::WorkloadProperties
Returns
- (::Google::Cloud::AppHub::V1::WorkloadProperties) — Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
#workload_reference
def workload_reference() -> ::Google::Cloud::AppHub::V1::WorkloadReference
Returns
- (::Google::Cloud::AppHub::V1::WorkloadReference) — Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.