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.



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

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)


809
810
811
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 809

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)


814
815
816
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 814

def folder
  @folder
end

#folder_idFixnum

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

Returns:

  • (Fixnum)


819
820
821
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 819

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)


824
825
826
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 824

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)


830
831
832
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 830

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)


835
836
837
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 835

def location
  @location
end

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

#partnerString

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

Returns:

  • (String)


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

def partner
  @partner
end

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