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.
853 854 855 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 853 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
809 810 811 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 809 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
814 815 816 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 814 def folder @folder end |
#folder_id ⇒ Fixnum
Output only. Folder id this workload is associated with
Corresponds to the JSON property folderId
819 820 821 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 819 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
824 825 826 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 824 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
830 831 832 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 830 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
835 836 837 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 835 def location @location end |
#name ⇒ String
Identifier. Format: organizations/
organization/locations/
location/
customers/
customer/workloads/
workload`
Corresponds to the JSON property
name`
841 842 843 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 841 def name @name end |
#partner ⇒ String
Partner associated with this workload.
Corresponds to the JSON property partner
846 847 848 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 846 def partner @partner end |
#workload_onboarding_state ⇒ Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingState
Container for workload onboarding steps.
Corresponds to the JSON property workloadOnboardingState
851 852 853 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 851 def workload_onboarding_state @workload_onboarding_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
858 859 860 861 862 863 864 865 866 867 868 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 858 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 |