Class: Google::Apis::GkehubV1alpha::KubernetesResource
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::KubernetesResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.
Instance Attribute Summary collapse
-
#connect_resources ⇒ Array<Google::Apis::GkehubV1alpha::ResourceManifest>
Output only.
-
#membership_cr_manifest ⇒ String
Input only.
-
#membership_resources ⇒ Array<Google::Apis::GkehubV1alpha::ResourceManifest>
Output only.
-
#resource_options ⇒ Google::Apis::GkehubV1alpha::ResourceOptions
ResourceOptions represent options for Kubernetes resource generation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KubernetesResource
constructor
A new instance of KubernetesResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KubernetesResource
Returns a new instance of KubernetesResource.
3603 3604 3605 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3603 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connect_resources ⇒ Array<Google::Apis::GkehubV1alpha::ResourceManifest>
Output only. The Kubernetes resources for installing the GKE Connect agent
This field is only populated in the Membership returned from a successful long-
running operation from CreateMembership or UpdateMembership. It is not
populated during normal GetMembership or ListMemberships requests. To get the
resource manifest after the initial registration, the caller should make a
UpdateMembership call with an empty field mask.
Corresponds to the JSON property connectResources
3575 3576 3577 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3575 def connect_resources @connect_resources end |
#membership_cr_manifest ⇒ String
Input only. The YAML representation of the Membership CR. This field is
ignored for GKE clusters where Hub can read the CR directly. Callers should
provide the CR that is currently present in the cluster during
CreateMembership or UpdateMembership, or leave this field empty if none exists.
The CR manifest is used to validate the cluster has not been registered with
another Membership.
Corresponds to the JSON property membershipCrManifest
3585 3586 3587 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3585 def membership_cr_manifest @membership_cr_manifest end |
#membership_resources ⇒ Array<Google::Apis::GkehubV1alpha::ResourceManifest>
Output only. Additional Kubernetes resources that need to be applied to the
cluster after Membership creation, and after every update. This field is only
populated in the Membership returned from a successful long-running operation
from CreateMembership or UpdateMembership. It is not populated during normal
GetMembership or ListMemberships requests. To get the resource manifest after
the initial registration, the caller should make a UpdateMembership call with
an empty field mask.
Corresponds to the JSON property membershipResources
3596 3597 3598 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3596 def membership_resources @membership_resources end |
#resource_options ⇒ Google::Apis::GkehubV1alpha::ResourceOptions
ResourceOptions represent options for Kubernetes resource generation.
Corresponds to the JSON property resourceOptions
3601 3602 3603 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3601 def @resource_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3608 3609 3610 3611 3612 3613 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3608 def update!(**args) @connect_resources = args[:connect_resources] if args.key?(:connect_resources) @membership_cr_manifest = args[:membership_cr_manifest] if args.key?(:membership_cr_manifest) @membership_resources = args[:membership_resources] if args.key?(:membership_resources) @resource_options = args[:resource_options] if args.key?(:resource_options) end |