Class: Google::Apis::CloudcontrolspartnerV1::Workload
- Inherits:
-
Object
- Object
- Google::Apis::CloudcontrolspartnerV1::Workload
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudcontrolspartner_v1/classes.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb
Overview
Contains metadata around the Workload resource in the Assured Workloads API.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#folder ⇒ String
Output only.
-
#folder_id ⇒ Fixnum
Output only.
-
#is_onboarded ⇒ Boolean
(also: #is_onboarded?)
Indicates whether a workload is fully onboarded.
-
#key_management_project_id ⇒ String
The project id of the key management project for the workload Corresponds to the JSON property
keyManagementProjectId
. -
#location ⇒ String
The Google Cloud location of the workload Corresponds to the JSON property
location
. -
#name ⇒ String
Identifier.
-
#partner ⇒ String
Partner associated with this workload.
-
#workload_onboarding_state ⇒ Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingState
Container for workload onboarding steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Workload
constructor
A new instance of Workload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Workload
Returns a new instance of Workload.
876 877 878 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 876 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time the resource was created.
Corresponds to the JSON property createTime
832 833 834 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 832 def create_time @create_time end |
#folder ⇒ String
Output only. The name of container folder of the assured workload
Corresponds to the JSON property folder
837 838 839 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 837 def folder @folder end |
#folder_id ⇒ Fixnum
Output only. Folder id this workload is associated with
Corresponds to the JSON property folderId
842 843 844 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 842 def folder_id @folder_id end |
#is_onboarded ⇒ Boolean Also known as: is_onboarded?
Indicates whether a workload is fully onboarded.
Corresponds to the JSON property isOnboarded
847 848 849 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 847 def is_onboarded @is_onboarded end |
#key_management_project_id ⇒ String
The project id of the key management project for the workload
Corresponds to the JSON property keyManagementProjectId
853 854 855 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 853 def key_management_project_id @key_management_project_id end |
#location ⇒ String
The Google Cloud location of the workload
Corresponds to the JSON property location
858 859 860 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 858 def location @location end |
#name ⇒ String
Identifier. Format: organizations/
organization/locations/
location/
customers/
customer/workloads/
workload`
Corresponds to the JSON property
name`
864 865 866 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 864 def name @name end |
#partner ⇒ String
Partner associated with this workload.
Corresponds to the JSON property partner
869 870 871 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 869 def partner @partner end |
#workload_onboarding_state ⇒ Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingState
Container for workload onboarding steps.
Corresponds to the JSON property workloadOnboardingState
874 875 876 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 874 def workload_onboarding_state @workload_onboarding_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
881 882 883 884 885 886 887 888 889 890 891 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 881 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @folder = args[:folder] if args.key?(:folder) @folder_id = args[:folder_id] if args.key?(:folder_id) @is_onboarded = args[:is_onboarded] if args.key?(:is_onboarded) @key_management_project_id = args[:key_management_project_id] if args.key?(:key_management_project_id) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) @partner = args[:partner] if args.key?(:partner) @workload_onboarding_state = args[:workload_onboarding_state] if args.key?(:workload_onboarding_state) end |