Skip to content

Commit

Permalink
feat: Automated regeneration of gkehub v1 client (googleapis#9437)
Browse files Browse the repository at this point in the history
Auto-created at 2022-05-16 11:17:28 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 16, 2022
1 parent d999429 commit 671cebc
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 14 deletions.
25 changes: 25 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145794,6 +145794,22 @@
"/gkebackup:v1/gkebackup.projects.locations.restorePlans.testIamPermissions/resource": resource
"/gkebackup:v1/key": key
"/gkebackup:v1/quotaUser": quota_user
"/gkehub:v1/AnthosVMMembershipSpec": anthos_vm_membership_spec
"/gkehub:v1/AnthosVMMembershipSpec/subfeaturesSpec": subfeatures_spec
"/gkehub:v1/AnthosVMMembershipSpec/subfeaturesSpec/subfeatures_spec": subfeatures_spec
"/gkehub:v1/AnthosVMMembershipState": anthos_vm_membership_state
"/gkehub:v1/AnthosVMMembershipState/localControllerState": local_controller_state
"/gkehub:v1/AnthosVMMembershipState/subfeatureState": subfeature_state
"/gkehub:v1/AnthosVMMembershipState/subfeatureState/subfeature_state": subfeature_state
"/gkehub:v1/AnthosVMSubFeatureSpec": anthos_vm_sub_feature_spec
"/gkehub:v1/AnthosVMSubFeatureSpec/enabled": enabled
"/gkehub:v1/AnthosVMSubFeatureSpec/migrateSpec": migrate_spec
"/gkehub:v1/AnthosVMSubFeatureSpec/serviceMeshSpec": service_mesh_spec
"/gkehub:v1/AnthosVMSubFeatureState": anthos_vm_sub_feature_state
"/gkehub:v1/AnthosVMSubFeatureState/description": description
"/gkehub:v1/AnthosVMSubFeatureState/installationState": installation_state
"/gkehub:v1/AnthosVMSubFeatureState/migrateState": migrate_state
"/gkehub:v1/AnthosVMSubFeatureState/serviceMeshState": service_mesh_state
"/gkehub:v1/AppDevExperienceFeatureSpec": app_dev_experience_feature_spec
"/gkehub:v1/AppDevExperienceFeatureState": app_dev_experience_feature_state
"/gkehub:v1/AppDevExperienceFeatureState/networkingInstallSucceeded": networking_install_succeeded
Expand Down Expand Up @@ -146038,6 +146054,9 @@
"/gkehub:v1/ListOperationsResponse/nextPageToken": next_page_token
"/gkehub:v1/ListOperationsResponse/operations": operations
"/gkehub:v1/ListOperationsResponse/operations/operation": operation
"/gkehub:v1/LocalControllerState": local_controller_state
"/gkehub:v1/LocalControllerState/description": description
"/gkehub:v1/LocalControllerState/installationState": installation_state
"/gkehub:v1/Location": location
"/gkehub:v1/Location/displayName": display_name
"/gkehub:v1/Location/labels": labels
Expand Down Expand Up @@ -146068,10 +146087,12 @@
"/gkehub:v1/MembershipEndpoint/multiCloudCluster": multi_cloud_cluster
"/gkehub:v1/MembershipEndpoint/onPremCluster": on_prem_cluster
"/gkehub:v1/MembershipFeatureSpec": membership_feature_spec
"/gkehub:v1/MembershipFeatureSpec/anthosvm": anthosvm
"/gkehub:v1/MembershipFeatureSpec/configmanagement": configmanagement
"/gkehub:v1/MembershipFeatureSpec/identityservice": identityservice
"/gkehub:v1/MembershipFeatureSpec/mesh": mesh
"/gkehub:v1/MembershipFeatureState": membership_feature_state
"/gkehub:v1/MembershipFeatureState/anthosvm": anthosvm
"/gkehub:v1/MembershipFeatureState/appdevexperience": appdevexperience
"/gkehub:v1/MembershipFeatureState/configmanagement": configmanagement
"/gkehub:v1/MembershipFeatureState/identityservice": identityservice
Expand All @@ -146080,6 +146101,8 @@
"/gkehub:v1/MembershipFeatureState/state": state
"/gkehub:v1/MembershipState": membership_state
"/gkehub:v1/MembershipState/code": code
"/gkehub:v1/MigrateSpec": migrate_spec
"/gkehub:v1/MigrateState": migrate_state
"/gkehub:v1/MultiCloudCluster": multi_cloud_cluster
"/gkehub:v1/MultiCloudCluster/clusterMissing": cluster_missing
"/gkehub:v1/MultiCloudCluster/resourceLink": resource_link
Expand Down Expand Up @@ -146151,6 +146174,8 @@
"/gkehub:v1/ServiceMeshMembershipSpec/controlPlane": control_plane
"/gkehub:v1/ServiceMeshMembershipState": service_mesh_membership_state
"/gkehub:v1/ServiceMeshMembershipState/controlPlaneManagement": control_plane_management
"/gkehub:v1/ServiceMeshSpec": service_mesh_spec
"/gkehub:v1/ServiceMeshState": service_mesh_state
"/gkehub:v1/ServiceMeshStatusDetails": service_mesh_status_details
"/gkehub:v1/ServiceMeshStatusDetails/code": code
"/gkehub:v1/ServiceMeshStatusDetails/details": details
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-gkehub_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-gkehub_v1

### v0.27.0 (2022-05-16)

* Regenerated from discovery document revision 20220505

### v0.26.0 (2022-05-08)

* Regenerated from discovery document revision 20220429
Expand Down
218 changes: 218 additions & 0 deletions generated/google-apis-gkehub_v1/lib/google/apis/gkehub_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,129 @@ module Google
module Apis
module GkehubV1

# AnthosVMMembershipSpec contains the AnthosVM feature configuration for a
# membership/cluster.
class AnthosVmMembershipSpec
include Google::Apis::Core::Hashable

# List of configurations of the Anthos For VM subfeatures that are to be enabled
# Corresponds to the JSON property `subfeaturesSpec`
# @return [Array<Google::Apis::GkehubV1::AnthosVmSubFeatureSpec>]
attr_accessor :subfeatures_spec

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

# Update properties of this object
def update!(**args)
@subfeatures_spec = args[:subfeatures_spec] if args.key?(:subfeatures_spec)
end
end

# AnthosVMFeatureState contains the state of the AnthosVM feature. It represents
# the actual state in the cluster, while the AnthosVMMembershipSpec represents
# the desired state.
class AnthosVmMembershipState
include Google::Apis::Core::Hashable

# LocalControllerState contains the state of the local controller deployed in
# the cluster.
# Corresponds to the JSON property `localControllerState`
# @return [Google::Apis::GkehubV1::LocalControllerState]
attr_accessor :local_controller_state

# List of AnthosVM subfeature states
# Corresponds to the JSON property `subfeatureState`
# @return [Array<Google::Apis::GkehubV1::AnthosVmSubFeatureState>]
attr_accessor :subfeature_state

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

# Update properties of this object
def update!(**args)
@local_controller_state = args[:local_controller_state] if args.key?(:local_controller_state)
@subfeature_state = args[:subfeature_state] if args.key?(:subfeature_state)
end
end

# AnthosVMSubFeatureSpec contains the subfeature configuration for a membership/
# cluster.
class AnthosVmSubFeatureSpec
include Google::Apis::Core::Hashable

# Indicates whether the subfeature should be enabled on the cluster or not. If
# set to true, the subfeature's control plane and resources will be installed in
# the cluster. If set to false, the oneof spec if present will be ignored and
# nothing will be installed in the cluster.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled

# MigrateSpec contains the migrate subfeature configuration.
# Corresponds to the JSON property `migrateSpec`
# @return [Google::Apis::GkehubV1::MigrateSpec]
attr_accessor :migrate_spec

# ServiceMeshSpec contains the serviceMesh subfeature configuration.
# Corresponds to the JSON property `serviceMeshSpec`
# @return [Google::Apis::GkehubV1::ServiceMeshSpec]
attr_accessor :service_mesh_spec

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

# Update properties of this object
def update!(**args)
@enabled = args[:enabled] if args.key?(:enabled)
@migrate_spec = args[:migrate_spec] if args.key?(:migrate_spec)
@service_mesh_spec = args[:service_mesh_spec] if args.key?(:service_mesh_spec)
end
end

# AnthosVMSubFeatureState contains the state of the AnthosVM subfeatures.
class AnthosVmSubFeatureState
include Google::Apis::Core::Hashable

# Description represents human readable description of the subfeature state. If
# the deployment failed, this should also contain the reason for the failure.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# InstallationState represents the state of installation of the subfeature in
# the cluster.
# Corresponds to the JSON property `installationState`
# @return [String]
attr_accessor :installation_state

# MigrateState contains the state of Migrate subfeature
# Corresponds to the JSON property `migrateState`
# @return [Google::Apis::GkehubV1::MigrateState]
attr_accessor :migrate_state

# ServiceMeshState contains the state of Service Mesh subfeature
# Corresponds to the JSON property `serviceMeshState`
# @return [Google::Apis::GkehubV1::ServiceMeshState]
attr_accessor :service_mesh_state

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

# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@installation_state = args[:installation_state] if args.key?(:installation_state)
@migrate_state = args[:migrate_state] if args.key?(:migrate_state)
@service_mesh_state = args[:service_mesh_state] if args.key?(:service_mesh_state)
end
end

# Spec for App Dev Experience Feature.
class AppDevExperienceFeatureSpec
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1860,6 +1983,34 @@ def update!(**args)
end
end

# LocalControllerState contains the state of the local controller deployed in
# the cluster.
class LocalControllerState
include Google::Apis::Core::Hashable

# Description represents the human readable description of the current state of
# the local PE controller
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# InstallationState represents the state of deployment of the local PE
# controller in the cluster.
# Corresponds to the JSON property `installationState`
# @return [String]
attr_accessor :installation_state

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

# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@installation_state = args[:installation_state] if args.key?(:installation_state)
end
end

# A resource that represents Google Cloud Platform location.
class Location
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2068,6 +2219,12 @@ def update!(**args)
class MembershipFeatureSpec
include Google::Apis::Core::Hashable

# AnthosVMMembershipSpec contains the AnthosVM feature configuration for a
# membership/cluster.
# Corresponds to the JSON property `anthosvm`
# @return [Google::Apis::GkehubV1::AnthosVmMembershipSpec]
attr_accessor :anthosvm

# **Anthos Config Management**: Configuration for a single cluster. Intended to
# parallel the ConfigManagement CR.
# Corresponds to the JSON property `configmanagement`
Expand All @@ -2090,6 +2247,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@anthosvm = args[:anthosvm] if args.key?(:anthosvm)
@configmanagement = args[:configmanagement] if args.key?(:configmanagement)
@identityservice = args[:identityservice] if args.key?(:identityservice)
@mesh = args[:mesh] if args.key?(:mesh)
Expand All @@ -2101,6 +2259,13 @@ def update!(**args)
class MembershipFeatureState
include Google::Apis::Core::Hashable

# AnthosVMFeatureState contains the state of the AnthosVM feature. It represents
# the actual state in the cluster, while the AnthosVMMembershipSpec represents
# the desired state.
# Corresponds to the JSON property `anthosvm`
# @return [Google::Apis::GkehubV1::AnthosVmMembershipState]
attr_accessor :anthosvm

# State for App Dev Exp Feature.
# Corresponds to the JSON property `appdevexperience`
# @return [Google::Apis::GkehubV1::AppDevExperienceFeatureState]
Expand Down Expand Up @@ -2135,6 +2300,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@anthosvm = args[:anthosvm] if args.key?(:anthosvm)
@appdevexperience = args[:appdevexperience] if args.key?(:appdevexperience)
@configmanagement = args[:configmanagement] if args.key?(:configmanagement)
@identityservice = args[:identityservice] if args.key?(:identityservice)
Expand Down Expand Up @@ -2162,6 +2328,32 @@ def update!(**args)
end
end

# MigrateSpec contains the migrate subfeature configuration.
class MigrateSpec
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# MigrateState contains the state of Migrate subfeature
class MigrateState
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
class MultiCloudCluster
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2597,6 +2789,32 @@ def update!(**args)
end
end

# ServiceMeshSpec contains the serviceMesh subfeature configuration.
class ServiceMeshSpec
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# ServiceMeshState contains the state of Service Mesh subfeature
class ServiceMeshState
include Google::Apis::Core::Hashable

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

# Update properties of this object
def update!(**args)
end
end

# Structured and human-readable details for a status.
class ServiceMeshStatusDetails
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module GkehubV1
# Version of the google-apis-gkehub_v1 gem
GEM_VERSION = "0.26.0"
GEM_VERSION = "0.27.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.4.1"

# Revision of the discovery document this client was generated from
REVISION = "20220429"
REVISION = "20220505"
end
end
end
Loading

0 comments on commit 671cebc

Please sign in to comment.