Class: Google::Apis::SecuritycenterV1beta2::OnboardingState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Resource capturing onboarding information for a given CRM resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnboardingState

Returns a new instance of OnboardingState.



2414
2415
2416
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2414

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The resource name of the OnboardingState. Format: organizations/organization/ onboardingState Format: folders/folder/onboardingState Format: projects/ project/onboardingState Corresponds to the JSON property name

Returns:

  • (String)


2406
2407
2408
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2406

def name
  @name
end

#onboarding_levelString

Describes the level a given organization, folder, or project is onboarded with SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown. Corresponds to the JSON property onboardingLevel

Returns:

  • (String)


2412
2413
2414
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2412

def onboarding_level
  @onboarding_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2419
2420
2421
2422
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2419

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @onboarding_level = args[:onboarding_level] if args.key?(:onboarding_level)
end