Class: Google::Apis::CloudcontrolspartnerV1::Workload

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Time the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


832
833
834
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 832

def create_time
  @create_time
end

#folderString

Output only. The name of container folder of the assured workload Corresponds to the JSON property folder

Returns:

  • (String)


837
838
839
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 837

def folder
  @folder
end

#folder_idFixnum

Output only. Folder id this workload is associated with Corresponds to the JSON property folderId

Returns:

  • (Fixnum)


842
843
844
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 842

def folder_id
  @folder_id
end

#is_onboardedBoolean Also known as: is_onboarded?

Indicates whether a workload is fully onboarded. Corresponds to the JSON property isOnboarded

Returns:

  • (Boolean)


847
848
849
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 847

def is_onboarded
  @is_onboarded
end

#key_management_project_idString

The project id of the key management project for the workload Corresponds to the JSON property keyManagementProjectId

Returns:

  • (String)


853
854
855
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 853

def key_management_project_id
  @key_management_project_id
end

#locationString

The Google Cloud location of the workload Corresponds to the JSON property location

Returns:

  • (String)


858
859
860
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 858

def location
  @location
end

#nameString

Identifier. Format: organizations/organization/locations/location/ customers/customer/workloads/workload` Corresponds to the JSON propertyname`

Returns:

  • (String)


864
865
866
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 864

def name
  @name
end

#partnerString

Partner associated with this workload. Corresponds to the JSON property partner

Returns:

  • (String)


869
870
871
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 869

def partner
  @partner
end

#workload_onboarding_stateGoogle::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