Class: Google::Apis::GkehubV2::FeatureSpec

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

Overview

FeatureSpec contains user input per-feature spec information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FeatureSpec

Returns a new instance of FeatureSpec.



1451
1452
1453
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1451

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

Instance Attribute Details

#cloudbuildGoogle::Apis::GkehubV2::CloudBuildSpec

Cloud Build: Configurations for each Cloud Build enabled cluster. Corresponds to the JSON property cloudbuild



1416
1417
1418
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1416

def cloudbuild
  @cloudbuild
end

#configmanagementGoogle::Apis::GkehubV2::ConfigManagementSpec

Anthos Config Management: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. Corresponds to the JSON property configmanagement



1422
1423
1424
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1422

def configmanagement
  @configmanagement
end

#identityserviceGoogle::Apis::GkehubV2::IdentityServiceSpec

IdentityService: Configuration for a single membership. Corresponds to the JSON property identityservice



1427
1428
1429
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1427

def identityservice
  @identityservice
end

#originGoogle::Apis::GkehubV2::Origin

Origin defines where this FeatureSpec originated from. Corresponds to the JSON property origin



1432
1433
1434
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1432

def origin
  @origin
end

#policycontrollerGoogle::Apis::GkehubV2::PolicyControllerSpec

Policy Controller: Configuration for a single cluster. Intended to parallel the PolicyController CR. Corresponds to the JSON property policycontroller



1438
1439
1440
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1438

def policycontroller
  @policycontroller
end

#servicemeshGoogle::Apis::GkehubV2::ServiceMeshSpec

Service Mesh: Spec for a single Membership for the servicemesh feature Corresponds to the JSON property servicemesh



1443
1444
1445
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1443

def servicemesh
  @servicemesh
end

#workloadcertificateGoogle::Apis::GkehubV2::WorkloadCertificateSpec

WorkloadCertificate: The membership-specific input for WorkloadCertificate feature. Corresponds to the JSON property workloadcertificate



1449
1450
1451
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1449

def workloadcertificate
  @workloadcertificate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1456
1457
1458
1459
1460
1461
1462
1463
1464
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1456

def update!(**args)
  @cloudbuild = args[:cloudbuild] if args.key?(:cloudbuild)
  @configmanagement = args[:configmanagement] if args.key?(:configmanagement)
  @identityservice = args[:identityservice] if args.key?(:identityservice)
  @origin = args[:origin] if args.key?(:origin)
  @policycontroller = args[:policycontroller] if args.key?(:policycontroller)
  @servicemesh = args[:servicemesh] if args.key?(:servicemesh)
  @workloadcertificate = args[:workloadcertificate] if args.key?(:workloadcertificate)
end