sigs.k8s.io/cluster-api@v1.6.3/exp/runtime/hooks/api/v1alpha1/zz_generated.openapi.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by openapi-gen. DO NOT EDIT.
    21  
    22  // This file was autogenerated by openapi-gen. Do not edit it manually!
    23  
    24  package v1alpha1
    25  
    26  import (
    27  	common "k8s.io/kube-openapi/pkg/common"
    28  	spec "k8s.io/kube-openapi/pkg/validation/spec"
    29  )
    30  
    31  func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
    32  	return map[string]common.OpenAPIDefinition{
    33  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterClusterUpgradeRequest":           schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeRequest(ref),
    34  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterClusterUpgradeResponse":          schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeResponse(ref),
    35  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneInitializedRequest":  schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedRequest(ref),
    36  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneInitializedResponse": schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedResponse(ref),
    37  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneUpgradeRequest":      schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeRequest(ref),
    38  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.AfterControlPlaneUpgradeResponse":     schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeResponse(ref),
    39  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterCreateRequest":           schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateRequest(ref),
    40  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterCreateResponse":          schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateResponse(ref),
    41  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterDeleteRequest":           schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteRequest(ref),
    42  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterDeleteResponse":          schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteResponse(ref),
    43  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterUpgradeRequest":          schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeRequest(ref),
    44  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.BeforeClusterUpgradeResponse":         schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeResponse(ref),
    45  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonRequest":                        schema_runtime_hooks_api_v1alpha1_CommonRequest(ref),
    46  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonResponse":                       schema_runtime_hooks_api_v1alpha1_CommonResponse(ref),
    47  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.CommonRetryResponse":                  schema_runtime_hooks_api_v1alpha1_CommonRetryResponse(ref),
    48  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoverVariablesRequest":             schema_runtime_hooks_api_v1alpha1_DiscoverVariablesRequest(ref),
    49  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoverVariablesResponse":            schema_runtime_hooks_api_v1alpha1_DiscoverVariablesResponse(ref),
    50  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoveryRequest":                     schema_runtime_hooks_api_v1alpha1_DiscoveryRequest(ref),
    51  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.DiscoveryResponse":                    schema_runtime_hooks_api_v1alpha1_DiscoveryResponse(ref),
    52  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler":                     schema_runtime_hooks_api_v1alpha1_ExtensionHandler(ref),
    53  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequest":               schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequest(ref),
    54  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem":           schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequestItem(ref),
    55  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponse":              schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponse(ref),
    56  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem":          schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponseItem(ref),
    57  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook":                     schema_runtime_hooks_api_v1alpha1_GroupVersionHook(ref),
    58  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference":                      schema_runtime_hooks_api_v1alpha1_HolderReference(ref),
    59  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequest":              schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequest(ref),
    60  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem":          schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequestItem(ref),
    61  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyResponse":             schema_runtime_hooks_api_v1alpha1_ValidateTopologyResponse(ref),
    62  		"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable":                             schema_runtime_hooks_api_v1alpha1_Variable(ref),
    63  	}
    64  }
    65  
    66  func schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
    67  	return common.OpenAPIDefinition{
    68  		Schema: spec.Schema{
    69  			SchemaProps: spec.SchemaProps{
    70  				Description: "AfterClusterUpgradeRequest is the request of the AfterClusterUpgrade hook.",
    71  				Type:        []string{"object"},
    72  				Properties: map[string]spec.Schema{
    73  					"kind": {
    74  						SchemaProps: spec.SchemaProps{
    75  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
    76  							Type:        []string{"string"},
    77  							Format:      "",
    78  						},
    79  					},
    80  					"apiVersion": {
    81  						SchemaProps: spec.SchemaProps{
    82  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
    83  							Type:        []string{"string"},
    84  							Format:      "",
    85  						},
    86  					},
    87  					"settings": {
    88  						SchemaProps: spec.SchemaProps{
    89  							Description: "Settings defines key value pairs to be passed to the call.",
    90  							Type:        []string{"object"},
    91  							AdditionalProperties: &spec.SchemaOrBool{
    92  								Allows: true,
    93  								Schema: &spec.Schema{
    94  									SchemaProps: spec.SchemaProps{
    95  										Default: "",
    96  										Type:    []string{"string"},
    97  										Format:  "",
    98  									},
    99  								},
   100  							},
   101  						},
   102  					},
   103  					"cluster": {
   104  						SchemaProps: spec.SchemaProps{
   105  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   106  							Default:     map[string]interface{}{},
   107  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   108  						},
   109  					},
   110  					"kubernetesVersion": {
   111  						SchemaProps: spec.SchemaProps{
   112  							Description: "KubernetesVersion is the Kubernetes version after upgrade.",
   113  							Default:     "",
   114  							Type:        []string{"string"},
   115  							Format:      "",
   116  						},
   117  					},
   118  				},
   119  				Required: []string{"cluster", "kubernetesVersion"},
   120  			},
   121  		},
   122  		Dependencies: []string{
   123  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   124  	}
   125  }
   126  
   127  func schema_runtime_hooks_api_v1alpha1_AfterClusterUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   128  	return common.OpenAPIDefinition{
   129  		Schema: spec.Schema{
   130  			SchemaProps: spec.SchemaProps{
   131  				Description: "AfterClusterUpgradeResponse is the response of the AfterClusterUpgrade hook.",
   132  				Type:        []string{"object"},
   133  				Properties: map[string]spec.Schema{
   134  					"kind": {
   135  						SchemaProps: spec.SchemaProps{
   136  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   137  							Type:        []string{"string"},
   138  							Format:      "",
   139  						},
   140  					},
   141  					"apiVersion": {
   142  						SchemaProps: spec.SchemaProps{
   143  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   144  							Type:        []string{"string"},
   145  							Format:      "",
   146  						},
   147  					},
   148  					"status": {
   149  						SchemaProps: spec.SchemaProps{
   150  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   151  							Default:     "",
   152  							Type:        []string{"string"},
   153  							Format:      "",
   154  							Enum:        []interface{}{"Failure", "Success"}},
   155  					},
   156  					"message": {
   157  						SchemaProps: spec.SchemaProps{
   158  							Description: "A human-readable description of the status of the call.",
   159  							Default:     "",
   160  							Type:        []string{"string"},
   161  							Format:      "",
   162  						},
   163  					},
   164  				},
   165  				Required: []string{"status", "message"},
   166  			},
   167  		},
   168  	}
   169  }
   170  
   171  func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   172  	return common.OpenAPIDefinition{
   173  		Schema: spec.Schema{
   174  			SchemaProps: spec.SchemaProps{
   175  				Description: "AfterControlPlaneInitializedRequest is the request of the AfterControlPlaneInitialized hook.",
   176  				Type:        []string{"object"},
   177  				Properties: map[string]spec.Schema{
   178  					"kind": {
   179  						SchemaProps: spec.SchemaProps{
   180  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   181  							Type:        []string{"string"},
   182  							Format:      "",
   183  						},
   184  					},
   185  					"apiVersion": {
   186  						SchemaProps: spec.SchemaProps{
   187  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   188  							Type:        []string{"string"},
   189  							Format:      "",
   190  						},
   191  					},
   192  					"settings": {
   193  						SchemaProps: spec.SchemaProps{
   194  							Description: "Settings defines key value pairs to be passed to the call.",
   195  							Type:        []string{"object"},
   196  							AdditionalProperties: &spec.SchemaOrBool{
   197  								Allows: true,
   198  								Schema: &spec.Schema{
   199  									SchemaProps: spec.SchemaProps{
   200  										Default: "",
   201  										Type:    []string{"string"},
   202  										Format:  "",
   203  									},
   204  								},
   205  							},
   206  						},
   207  					},
   208  					"cluster": {
   209  						SchemaProps: spec.SchemaProps{
   210  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   211  							Default:     map[string]interface{}{},
   212  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   213  						},
   214  					},
   215  				},
   216  				Required: []string{"cluster"},
   217  			},
   218  		},
   219  		Dependencies: []string{
   220  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   221  	}
   222  }
   223  
   224  func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneInitializedResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   225  	return common.OpenAPIDefinition{
   226  		Schema: spec.Schema{
   227  			SchemaProps: spec.SchemaProps{
   228  				Description: "AfterControlPlaneInitializedResponse is the response of the AfterControlPlaneInitialized hook.",
   229  				Type:        []string{"object"},
   230  				Properties: map[string]spec.Schema{
   231  					"kind": {
   232  						SchemaProps: spec.SchemaProps{
   233  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   234  							Type:        []string{"string"},
   235  							Format:      "",
   236  						},
   237  					},
   238  					"apiVersion": {
   239  						SchemaProps: spec.SchemaProps{
   240  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   241  							Type:        []string{"string"},
   242  							Format:      "",
   243  						},
   244  					},
   245  					"status": {
   246  						SchemaProps: spec.SchemaProps{
   247  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   248  							Default:     "",
   249  							Type:        []string{"string"},
   250  							Format:      "",
   251  							Enum:        []interface{}{"Failure", "Success"}},
   252  					},
   253  					"message": {
   254  						SchemaProps: spec.SchemaProps{
   255  							Description: "A human-readable description of the status of the call.",
   256  							Default:     "",
   257  							Type:        []string{"string"},
   258  							Format:      "",
   259  						},
   260  					},
   261  				},
   262  				Required: []string{"status", "message"},
   263  			},
   264  		},
   265  	}
   266  }
   267  
   268  func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   269  	return common.OpenAPIDefinition{
   270  		Schema: spec.Schema{
   271  			SchemaProps: spec.SchemaProps{
   272  				Description: "AfterControlPlaneUpgradeRequest is the request of the AfterControlPlaneUpgrade hook.",
   273  				Type:        []string{"object"},
   274  				Properties: map[string]spec.Schema{
   275  					"kind": {
   276  						SchemaProps: spec.SchemaProps{
   277  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   278  							Type:        []string{"string"},
   279  							Format:      "",
   280  						},
   281  					},
   282  					"apiVersion": {
   283  						SchemaProps: spec.SchemaProps{
   284  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   285  							Type:        []string{"string"},
   286  							Format:      "",
   287  						},
   288  					},
   289  					"settings": {
   290  						SchemaProps: spec.SchemaProps{
   291  							Description: "Settings defines key value pairs to be passed to the call.",
   292  							Type:        []string{"object"},
   293  							AdditionalProperties: &spec.SchemaOrBool{
   294  								Allows: true,
   295  								Schema: &spec.Schema{
   296  									SchemaProps: spec.SchemaProps{
   297  										Default: "",
   298  										Type:    []string{"string"},
   299  										Format:  "",
   300  									},
   301  								},
   302  							},
   303  						},
   304  					},
   305  					"cluster": {
   306  						SchemaProps: spec.SchemaProps{
   307  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   308  							Default:     map[string]interface{}{},
   309  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   310  						},
   311  					},
   312  					"kubernetesVersion": {
   313  						SchemaProps: spec.SchemaProps{
   314  							Description: "KubernetesVersion is the Kubernetes version of the Control Plane after the upgrade.",
   315  							Default:     "",
   316  							Type:        []string{"string"},
   317  							Format:      "",
   318  						},
   319  					},
   320  				},
   321  				Required: []string{"cluster", "kubernetesVersion"},
   322  			},
   323  		},
   324  		Dependencies: []string{
   325  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   326  	}
   327  }
   328  
   329  func schema_runtime_hooks_api_v1alpha1_AfterControlPlaneUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   330  	return common.OpenAPIDefinition{
   331  		Schema: spec.Schema{
   332  			SchemaProps: spec.SchemaProps{
   333  				Description: "AfterControlPlaneUpgradeResponse is the response of the AfterControlPlaneUpgrade hook.",
   334  				Type:        []string{"object"},
   335  				Properties: map[string]spec.Schema{
   336  					"kind": {
   337  						SchemaProps: spec.SchemaProps{
   338  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   339  							Type:        []string{"string"},
   340  							Format:      "",
   341  						},
   342  					},
   343  					"apiVersion": {
   344  						SchemaProps: spec.SchemaProps{
   345  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   346  							Type:        []string{"string"},
   347  							Format:      "",
   348  						},
   349  					},
   350  					"status": {
   351  						SchemaProps: spec.SchemaProps{
   352  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   353  							Default:     "",
   354  							Type:        []string{"string"},
   355  							Format:      "",
   356  							Enum:        []interface{}{"Failure", "Success"}},
   357  					},
   358  					"message": {
   359  						SchemaProps: spec.SchemaProps{
   360  							Description: "A human-readable description of the status of the call.",
   361  							Default:     "",
   362  							Type:        []string{"string"},
   363  							Format:      "",
   364  						},
   365  					},
   366  					"retryAfterSeconds": {
   367  						SchemaProps: spec.SchemaProps{
   368  							Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.",
   369  							Default:     0,
   370  							Type:        []string{"integer"},
   371  							Format:      "int32",
   372  						},
   373  					},
   374  				},
   375  				Required: []string{"status", "message", "retryAfterSeconds"},
   376  			},
   377  		},
   378  	}
   379  }
   380  
   381  func schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   382  	return common.OpenAPIDefinition{
   383  		Schema: spec.Schema{
   384  			SchemaProps: spec.SchemaProps{
   385  				Description: "BeforeClusterCreateRequest is the request of the BeforeClusterCreate hook.",
   386  				Type:        []string{"object"},
   387  				Properties: map[string]spec.Schema{
   388  					"kind": {
   389  						SchemaProps: spec.SchemaProps{
   390  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   391  							Type:        []string{"string"},
   392  							Format:      "",
   393  						},
   394  					},
   395  					"apiVersion": {
   396  						SchemaProps: spec.SchemaProps{
   397  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   398  							Type:        []string{"string"},
   399  							Format:      "",
   400  						},
   401  					},
   402  					"settings": {
   403  						SchemaProps: spec.SchemaProps{
   404  							Description: "Settings defines key value pairs to be passed to the call.",
   405  							Type:        []string{"object"},
   406  							AdditionalProperties: &spec.SchemaOrBool{
   407  								Allows: true,
   408  								Schema: &spec.Schema{
   409  									SchemaProps: spec.SchemaProps{
   410  										Default: "",
   411  										Type:    []string{"string"},
   412  										Format:  "",
   413  									},
   414  								},
   415  							},
   416  						},
   417  					},
   418  					"cluster": {
   419  						SchemaProps: spec.SchemaProps{
   420  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   421  							Default:     map[string]interface{}{},
   422  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   423  						},
   424  					},
   425  				},
   426  				Required: []string{"cluster"},
   427  			},
   428  		},
   429  		Dependencies: []string{
   430  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   431  	}
   432  }
   433  
   434  func schema_runtime_hooks_api_v1alpha1_BeforeClusterCreateResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   435  	return common.OpenAPIDefinition{
   436  		Schema: spec.Schema{
   437  			SchemaProps: spec.SchemaProps{
   438  				Description: "BeforeClusterCreateResponse is the response of the BeforeClusterCreate hook.",
   439  				Type:        []string{"object"},
   440  				Properties: map[string]spec.Schema{
   441  					"kind": {
   442  						SchemaProps: spec.SchemaProps{
   443  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   444  							Type:        []string{"string"},
   445  							Format:      "",
   446  						},
   447  					},
   448  					"apiVersion": {
   449  						SchemaProps: spec.SchemaProps{
   450  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   451  							Type:        []string{"string"},
   452  							Format:      "",
   453  						},
   454  					},
   455  					"status": {
   456  						SchemaProps: spec.SchemaProps{
   457  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   458  							Default:     "",
   459  							Type:        []string{"string"},
   460  							Format:      "",
   461  							Enum:        []interface{}{"Failure", "Success"}},
   462  					},
   463  					"message": {
   464  						SchemaProps: spec.SchemaProps{
   465  							Description: "A human-readable description of the status of the call.",
   466  							Default:     "",
   467  							Type:        []string{"string"},
   468  							Format:      "",
   469  						},
   470  					},
   471  					"retryAfterSeconds": {
   472  						SchemaProps: spec.SchemaProps{
   473  							Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.",
   474  							Default:     0,
   475  							Type:        []string{"integer"},
   476  							Format:      "int32",
   477  						},
   478  					},
   479  				},
   480  				Required: []string{"status", "message", "retryAfterSeconds"},
   481  			},
   482  		},
   483  	}
   484  }
   485  
   486  func schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   487  	return common.OpenAPIDefinition{
   488  		Schema: spec.Schema{
   489  			SchemaProps: spec.SchemaProps{
   490  				Description: "BeforeClusterDeleteRequest is the request of the BeforeClusterDelete hook.",
   491  				Type:        []string{"object"},
   492  				Properties: map[string]spec.Schema{
   493  					"kind": {
   494  						SchemaProps: spec.SchemaProps{
   495  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   496  							Type:        []string{"string"},
   497  							Format:      "",
   498  						},
   499  					},
   500  					"apiVersion": {
   501  						SchemaProps: spec.SchemaProps{
   502  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   503  							Type:        []string{"string"},
   504  							Format:      "",
   505  						},
   506  					},
   507  					"settings": {
   508  						SchemaProps: spec.SchemaProps{
   509  							Description: "Settings defines key value pairs to be passed to the call.",
   510  							Type:        []string{"object"},
   511  							AdditionalProperties: &spec.SchemaOrBool{
   512  								Allows: true,
   513  								Schema: &spec.Schema{
   514  									SchemaProps: spec.SchemaProps{
   515  										Default: "",
   516  										Type:    []string{"string"},
   517  										Format:  "",
   518  									},
   519  								},
   520  							},
   521  						},
   522  					},
   523  					"cluster": {
   524  						SchemaProps: spec.SchemaProps{
   525  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   526  							Default:     map[string]interface{}{},
   527  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   528  						},
   529  					},
   530  				},
   531  				Required: []string{"cluster"},
   532  			},
   533  		},
   534  		Dependencies: []string{
   535  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   536  	}
   537  }
   538  
   539  func schema_runtime_hooks_api_v1alpha1_BeforeClusterDeleteResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   540  	return common.OpenAPIDefinition{
   541  		Schema: spec.Schema{
   542  			SchemaProps: spec.SchemaProps{
   543  				Description: "BeforeClusterDeleteResponse is the response of the BeforeClusterDelete hook.",
   544  				Type:        []string{"object"},
   545  				Properties: map[string]spec.Schema{
   546  					"kind": {
   547  						SchemaProps: spec.SchemaProps{
   548  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   549  							Type:        []string{"string"},
   550  							Format:      "",
   551  						},
   552  					},
   553  					"apiVersion": {
   554  						SchemaProps: spec.SchemaProps{
   555  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   556  							Type:        []string{"string"},
   557  							Format:      "",
   558  						},
   559  					},
   560  					"status": {
   561  						SchemaProps: spec.SchemaProps{
   562  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   563  							Default:     "",
   564  							Type:        []string{"string"},
   565  							Format:      "",
   566  							Enum:        []interface{}{"Failure", "Success"}},
   567  					},
   568  					"message": {
   569  						SchemaProps: spec.SchemaProps{
   570  							Description: "A human-readable description of the status of the call.",
   571  							Default:     "",
   572  							Type:        []string{"string"},
   573  							Format:      "",
   574  						},
   575  					},
   576  					"retryAfterSeconds": {
   577  						SchemaProps: spec.SchemaProps{
   578  							Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.",
   579  							Default:     0,
   580  							Type:        []string{"integer"},
   581  							Format:      "int32",
   582  						},
   583  					},
   584  				},
   585  				Required: []string{"status", "message", "retryAfterSeconds"},
   586  			},
   587  		},
   588  	}
   589  }
   590  
   591  func schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   592  	return common.OpenAPIDefinition{
   593  		Schema: spec.Schema{
   594  			SchemaProps: spec.SchemaProps{
   595  				Description: "BeforeClusterUpgradeRequest is the request of the BeforeClusterUpgrade hook.",
   596  				Type:        []string{"object"},
   597  				Properties: map[string]spec.Schema{
   598  					"kind": {
   599  						SchemaProps: spec.SchemaProps{
   600  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   601  							Type:        []string{"string"},
   602  							Format:      "",
   603  						},
   604  					},
   605  					"apiVersion": {
   606  						SchemaProps: spec.SchemaProps{
   607  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   608  							Type:        []string{"string"},
   609  							Format:      "",
   610  						},
   611  					},
   612  					"settings": {
   613  						SchemaProps: spec.SchemaProps{
   614  							Description: "Settings defines key value pairs to be passed to the call.",
   615  							Type:        []string{"object"},
   616  							AdditionalProperties: &spec.SchemaOrBool{
   617  								Allows: true,
   618  								Schema: &spec.Schema{
   619  									SchemaProps: spec.SchemaProps{
   620  										Default: "",
   621  										Type:    []string{"string"},
   622  										Format:  "",
   623  									},
   624  								},
   625  							},
   626  						},
   627  					},
   628  					"cluster": {
   629  						SchemaProps: spec.SchemaProps{
   630  							Description: "Cluster is the cluster object the lifecycle hook corresponds to.",
   631  							Default:     map[string]interface{}{},
   632  							Ref:         ref("sigs.k8s.io/cluster-api/api/v1beta1.Cluster"),
   633  						},
   634  					},
   635  					"fromKubernetesVersion": {
   636  						SchemaProps: spec.SchemaProps{
   637  							Description: "FromKubernetesVersion is the current Kubernetes version of the cluster.",
   638  							Default:     "",
   639  							Type:        []string{"string"},
   640  							Format:      "",
   641  						},
   642  					},
   643  					"toKubernetesVersion": {
   644  						SchemaProps: spec.SchemaProps{
   645  							Description: "ToKubernetesVersion is the target Kubernetes version of the upgrade.",
   646  							Default:     "",
   647  							Type:        []string{"string"},
   648  							Format:      "",
   649  						},
   650  					},
   651  				},
   652  				Required: []string{"cluster", "fromKubernetesVersion", "toKubernetesVersion"},
   653  			},
   654  		},
   655  		Dependencies: []string{
   656  			"sigs.k8s.io/cluster-api/api/v1beta1.Cluster"},
   657  	}
   658  }
   659  
   660  func schema_runtime_hooks_api_v1alpha1_BeforeClusterUpgradeResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   661  	return common.OpenAPIDefinition{
   662  		Schema: spec.Schema{
   663  			SchemaProps: spec.SchemaProps{
   664  				Description: "BeforeClusterUpgradeResponse is the response of the BeforeClusterUpgrade hook.",
   665  				Type:        []string{"object"},
   666  				Properties: map[string]spec.Schema{
   667  					"kind": {
   668  						SchemaProps: spec.SchemaProps{
   669  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   670  							Type:        []string{"string"},
   671  							Format:      "",
   672  						},
   673  					},
   674  					"apiVersion": {
   675  						SchemaProps: spec.SchemaProps{
   676  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   677  							Type:        []string{"string"},
   678  							Format:      "",
   679  						},
   680  					},
   681  					"status": {
   682  						SchemaProps: spec.SchemaProps{
   683  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   684  							Default:     "",
   685  							Type:        []string{"string"},
   686  							Format:      "",
   687  							Enum:        []interface{}{"Failure", "Success"}},
   688  					},
   689  					"message": {
   690  						SchemaProps: spec.SchemaProps{
   691  							Description: "A human-readable description of the status of the call.",
   692  							Default:     "",
   693  							Type:        []string{"string"},
   694  							Format:      "",
   695  						},
   696  					},
   697  					"retryAfterSeconds": {
   698  						SchemaProps: spec.SchemaProps{
   699  							Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.",
   700  							Default:     0,
   701  							Type:        []string{"integer"},
   702  							Format:      "int32",
   703  						},
   704  					},
   705  				},
   706  				Required: []string{"status", "message", "retryAfterSeconds"},
   707  			},
   708  		},
   709  	}
   710  }
   711  
   712  func schema_runtime_hooks_api_v1alpha1_CommonRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   713  	return common.OpenAPIDefinition{
   714  		Schema: spec.Schema{
   715  			SchemaProps: spec.SchemaProps{
   716  				Description: "CommonRequest is the data structure common to all request types. Note: By embedding CommonRequest in a runtime.Object the RequestObject interface is satisfied.",
   717  				Type:        []string{"object"},
   718  				Properties: map[string]spec.Schema{
   719  					"settings": {
   720  						SchemaProps: spec.SchemaProps{
   721  							Description: "Settings defines key value pairs to be passed to the call.",
   722  							Type:        []string{"object"},
   723  							AdditionalProperties: &spec.SchemaOrBool{
   724  								Allows: true,
   725  								Schema: &spec.Schema{
   726  									SchemaProps: spec.SchemaProps{
   727  										Default: "",
   728  										Type:    []string{"string"},
   729  										Format:  "",
   730  									},
   731  								},
   732  							},
   733  						},
   734  					},
   735  				},
   736  			},
   737  		},
   738  	}
   739  }
   740  
   741  func schema_runtime_hooks_api_v1alpha1_CommonResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   742  	return common.OpenAPIDefinition{
   743  		Schema: spec.Schema{
   744  			SchemaProps: spec.SchemaProps{
   745  				Description: "CommonResponse is the data structure common to all response types. Note: By embedding CommonResponse in a runtime.Object the ResponseObject interface is satisfied.",
   746  				Type:        []string{"object"},
   747  				Properties: map[string]spec.Schema{
   748  					"status": {
   749  						SchemaProps: spec.SchemaProps{
   750  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   751  							Default:     "",
   752  							Type:        []string{"string"},
   753  							Format:      "",
   754  							Enum:        []interface{}{"Failure", "Success"}},
   755  					},
   756  					"message": {
   757  						SchemaProps: spec.SchemaProps{
   758  							Description: "A human-readable description of the status of the call.",
   759  							Default:     "",
   760  							Type:        []string{"string"},
   761  							Format:      "",
   762  						},
   763  					},
   764  				},
   765  				Required: []string{"status", "message"},
   766  			},
   767  		},
   768  	}
   769  }
   770  
   771  func schema_runtime_hooks_api_v1alpha1_CommonRetryResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   772  	return common.OpenAPIDefinition{
   773  		Schema: spec.Schema{
   774  			SchemaProps: spec.SchemaProps{
   775  				Description: "CommonRetryResponse is the data structure which contains all common and retry fields. Note: By embedding CommonRetryResponse in a runtime.Object the RetryResponseObject interface is satisfied.",
   776  				Type:        []string{"object"},
   777  				Properties: map[string]spec.Schema{
   778  					"status": {
   779  						SchemaProps: spec.SchemaProps{
   780  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   781  							Default:     "",
   782  							Type:        []string{"string"},
   783  							Format:      "",
   784  							Enum:        []interface{}{"Failure", "Success"}},
   785  					},
   786  					"message": {
   787  						SchemaProps: spec.SchemaProps{
   788  							Description: "A human-readable description of the status of the call.",
   789  							Default:     "",
   790  							Type:        []string{"string"},
   791  							Format:      "",
   792  						},
   793  					},
   794  					"retryAfterSeconds": {
   795  						SchemaProps: spec.SchemaProps{
   796  							Description: "RetryAfterSeconds when set to a non-zero value signifies that the hook will be called again at a future time.",
   797  							Default:     0,
   798  							Type:        []string{"integer"},
   799  							Format:      "int32",
   800  						},
   801  					},
   802  				},
   803  				Required: []string{"status", "message", "retryAfterSeconds"},
   804  			},
   805  		},
   806  	}
   807  }
   808  
   809  func schema_runtime_hooks_api_v1alpha1_DiscoverVariablesRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   810  	return common.OpenAPIDefinition{
   811  		Schema: spec.Schema{
   812  			SchemaProps: spec.SchemaProps{
   813  				Description: "DiscoverVariablesRequest is the request of the DiscoverVariables hook.",
   814  				Type:        []string{"object"},
   815  				Properties: map[string]spec.Schema{
   816  					"kind": {
   817  						SchemaProps: spec.SchemaProps{
   818  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   819  							Type:        []string{"string"},
   820  							Format:      "",
   821  						},
   822  					},
   823  					"apiVersion": {
   824  						SchemaProps: spec.SchemaProps{
   825  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   826  							Type:        []string{"string"},
   827  							Format:      "",
   828  						},
   829  					},
   830  					"settings": {
   831  						SchemaProps: spec.SchemaProps{
   832  							Description: "Settings defines key value pairs to be passed to the call.",
   833  							Type:        []string{"object"},
   834  							AdditionalProperties: &spec.SchemaOrBool{
   835  								Allows: true,
   836  								Schema: &spec.Schema{
   837  									SchemaProps: spec.SchemaProps{
   838  										Default: "",
   839  										Type:    []string{"string"},
   840  										Format:  "",
   841  									},
   842  								},
   843  							},
   844  						},
   845  					},
   846  				},
   847  			},
   848  		},
   849  	}
   850  }
   851  
   852  func schema_runtime_hooks_api_v1alpha1_DiscoverVariablesResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   853  	return common.OpenAPIDefinition{
   854  		Schema: spec.Schema{
   855  			SchemaProps: spec.SchemaProps{
   856  				Description: "DiscoverVariablesResponse is the response of the DiscoverVariables hook.",
   857  				Type:        []string{"object"},
   858  				Properties: map[string]spec.Schema{
   859  					"kind": {
   860  						SchemaProps: spec.SchemaProps{
   861  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   862  							Type:        []string{"string"},
   863  							Format:      "",
   864  						},
   865  					},
   866  					"apiVersion": {
   867  						SchemaProps: spec.SchemaProps{
   868  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   869  							Type:        []string{"string"},
   870  							Format:      "",
   871  						},
   872  					},
   873  					"status": {
   874  						SchemaProps: spec.SchemaProps{
   875  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   876  							Default:     "",
   877  							Type:        []string{"string"},
   878  							Format:      "",
   879  							Enum:        []interface{}{"Failure", "Success"}},
   880  					},
   881  					"message": {
   882  						SchemaProps: spec.SchemaProps{
   883  							Description: "A human-readable description of the status of the call.",
   884  							Default:     "",
   885  							Type:        []string{"string"},
   886  							Format:      "",
   887  						},
   888  					},
   889  					"variables": {
   890  						SchemaProps: spec.SchemaProps{
   891  							Description: "Variables are variable schemas for variables defined by the DiscoverVariables hook.",
   892  							Type:        []string{"array"},
   893  							Items: &spec.SchemaOrArray{
   894  								Schema: &spec.Schema{
   895  									SchemaProps: spec.SchemaProps{
   896  										Default: map[string]interface{}{},
   897  										Ref:     ref("sigs.k8s.io/cluster-api/api/v1beta1.ClusterClassVariable"),
   898  									},
   899  								},
   900  							},
   901  						},
   902  					},
   903  				},
   904  				Required: []string{"status", "message", "variables"},
   905  			},
   906  		},
   907  		Dependencies: []string{
   908  			"sigs.k8s.io/cluster-api/api/v1beta1.ClusterClassVariable"},
   909  	}
   910  }
   911  
   912  func schema_runtime_hooks_api_v1alpha1_DiscoveryRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
   913  	return common.OpenAPIDefinition{
   914  		Schema: spec.Schema{
   915  			SchemaProps: spec.SchemaProps{
   916  				Description: "DiscoveryRequest is the request of the Discovery hook.",
   917  				Type:        []string{"object"},
   918  				Properties: map[string]spec.Schema{
   919  					"kind": {
   920  						SchemaProps: spec.SchemaProps{
   921  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   922  							Type:        []string{"string"},
   923  							Format:      "",
   924  						},
   925  					},
   926  					"apiVersion": {
   927  						SchemaProps: spec.SchemaProps{
   928  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   929  							Type:        []string{"string"},
   930  							Format:      "",
   931  						},
   932  					},
   933  				},
   934  			},
   935  		},
   936  	}
   937  }
   938  
   939  func schema_runtime_hooks_api_v1alpha1_DiscoveryResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
   940  	return common.OpenAPIDefinition{
   941  		Schema: spec.Schema{
   942  			SchemaProps: spec.SchemaProps{
   943  				Description: "DiscoveryResponse is the response of the Discovery hook.",
   944  				Type:        []string{"object"},
   945  				Properties: map[string]spec.Schema{
   946  					"kind": {
   947  						SchemaProps: spec.SchemaProps{
   948  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
   949  							Type:        []string{"string"},
   950  							Format:      "",
   951  						},
   952  					},
   953  					"apiVersion": {
   954  						SchemaProps: spec.SchemaProps{
   955  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
   956  							Type:        []string{"string"},
   957  							Format:      "",
   958  						},
   959  					},
   960  					"status": {
   961  						SchemaProps: spec.SchemaProps{
   962  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
   963  							Default:     "",
   964  							Type:        []string{"string"},
   965  							Format:      "",
   966  							Enum:        []interface{}{"Failure", "Success"}},
   967  					},
   968  					"message": {
   969  						SchemaProps: spec.SchemaProps{
   970  							Description: "A human-readable description of the status of the call.",
   971  							Default:     "",
   972  							Type:        []string{"string"},
   973  							Format:      "",
   974  						},
   975  					},
   976  					"handlers": {
   977  						VendorExtensible: spec.VendorExtensible{
   978  							Extensions: spec.Extensions{
   979  								"x-kubernetes-list-map-keys": []interface{}{
   980  									"name",
   981  								},
   982  								"x-kubernetes-list-type": "map",
   983  							},
   984  						},
   985  						SchemaProps: spec.SchemaProps{
   986  							Description: "Handlers defines the current ExtensionHandlers supported by an Extension.",
   987  							Type:        []string{"array"},
   988  							Items: &spec.SchemaOrArray{
   989  								Schema: &spec.Schema{
   990  									SchemaProps: spec.SchemaProps{
   991  										Default: map[string]interface{}{},
   992  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler"),
   993  									},
   994  								},
   995  							},
   996  						},
   997  					},
   998  				},
   999  				Required: []string{"status", "message", "handlers"},
  1000  			},
  1001  		},
  1002  		Dependencies: []string{
  1003  			"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ExtensionHandler"},
  1004  	}
  1005  }
  1006  
  1007  func schema_runtime_hooks_api_v1alpha1_ExtensionHandler(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1008  	return common.OpenAPIDefinition{
  1009  		Schema: spec.Schema{
  1010  			SchemaProps: spec.SchemaProps{
  1011  				Description: "ExtensionHandler represents the discovery information for an extension handler which includes the hook it supports.",
  1012  				Type:        []string{"object"},
  1013  				Properties: map[string]spec.Schema{
  1014  					"name": {
  1015  						SchemaProps: spec.SchemaProps{
  1016  							Description: "Name is the name of the ExtensionHandler.",
  1017  							Default:     "",
  1018  							Type:        []string{"string"},
  1019  							Format:      "",
  1020  						},
  1021  					},
  1022  					"requestHook": {
  1023  						SchemaProps: spec.SchemaProps{
  1024  							Description: "RequestHook defines the versioned runtime hook which this ExtensionHandler serves.",
  1025  							Default:     map[string]interface{}{},
  1026  							Ref:         ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook"),
  1027  						},
  1028  					},
  1029  					"timeoutSeconds": {
  1030  						SchemaProps: spec.SchemaProps{
  1031  							Description: "TimeoutSeconds defines the timeout duration for client calls to the ExtensionHandler. This is defaulted to 10 if left undefined.",
  1032  							Type:        []string{"integer"},
  1033  							Format:      "int32",
  1034  						},
  1035  					},
  1036  					"failurePolicy": {
  1037  						SchemaProps: spec.SchemaProps{
  1038  							Description: "FailurePolicy defines how failures in calls to the ExtensionHandler should be handled by a client. This is defaulted to FailurePolicyFail if not defined.",
  1039  							Type:        []string{"string"},
  1040  							Format:      "",
  1041  						},
  1042  					},
  1043  				},
  1044  				Required: []string{"name", "requestHook"},
  1045  			},
  1046  		},
  1047  		Dependencies: []string{
  1048  			"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GroupVersionHook"},
  1049  	}
  1050  }
  1051  
  1052  func schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1053  	return common.OpenAPIDefinition{
  1054  		Schema: spec.Schema{
  1055  			SchemaProps: spec.SchemaProps{
  1056  				Description: "GeneratePatchesRequest is the request of the GeneratePatches hook.",
  1057  				Type:        []string{"object"},
  1058  				Properties: map[string]spec.Schema{
  1059  					"kind": {
  1060  						SchemaProps: spec.SchemaProps{
  1061  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1062  							Type:        []string{"string"},
  1063  							Format:      "",
  1064  						},
  1065  					},
  1066  					"apiVersion": {
  1067  						SchemaProps: spec.SchemaProps{
  1068  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1069  							Type:        []string{"string"},
  1070  							Format:      "",
  1071  						},
  1072  					},
  1073  					"settings": {
  1074  						SchemaProps: spec.SchemaProps{
  1075  							Description: "Settings defines key value pairs to be passed to the call.",
  1076  							Type:        []string{"object"},
  1077  							AdditionalProperties: &spec.SchemaOrBool{
  1078  								Allows: true,
  1079  								Schema: &spec.Schema{
  1080  									SchemaProps: spec.SchemaProps{
  1081  										Default: "",
  1082  										Type:    []string{"string"},
  1083  										Format:  "",
  1084  									},
  1085  								},
  1086  							},
  1087  						},
  1088  					},
  1089  					"variables": {
  1090  						SchemaProps: spec.SchemaProps{
  1091  							Description: "Variables are global variables for all templates.",
  1092  							Type:        []string{"array"},
  1093  							Items: &spec.SchemaOrArray{
  1094  								Schema: &spec.Schema{
  1095  									SchemaProps: spec.SchemaProps{
  1096  										Default: map[string]interface{}{},
  1097  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"),
  1098  									},
  1099  								},
  1100  							},
  1101  						},
  1102  					},
  1103  					"items": {
  1104  						SchemaProps: spec.SchemaProps{
  1105  							Description: "Items is the list of templates to generate patches for.",
  1106  							Type:        []string{"array"},
  1107  							Items: &spec.SchemaOrArray{
  1108  								Schema: &spec.Schema{
  1109  									SchemaProps: spec.SchemaProps{
  1110  										Default: map[string]interface{}{},
  1111  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem"),
  1112  									},
  1113  								},
  1114  							},
  1115  						},
  1116  					},
  1117  				},
  1118  				Required: []string{"variables", "items"},
  1119  			},
  1120  		},
  1121  		Dependencies: []string{
  1122  			"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesRequestItem", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"},
  1123  	}
  1124  }
  1125  
  1126  func schema_runtime_hooks_api_v1alpha1_GeneratePatchesRequestItem(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1127  	return common.OpenAPIDefinition{
  1128  		Schema: spec.Schema{
  1129  			SchemaProps: spec.SchemaProps{
  1130  				Description: "GeneratePatchesRequestItem represents a template to generate patches for.",
  1131  				Type:        []string{"object"},
  1132  				Properties: map[string]spec.Schema{
  1133  					"uid": {
  1134  						SchemaProps: spec.SchemaProps{
  1135  							Description: "UID is an identifier for this template. It allows us to correlate the template in the request with the corresponding generated patches in the response.",
  1136  							Default:     "",
  1137  							Type:        []string{"string"},
  1138  							Format:      "",
  1139  						},
  1140  					},
  1141  					"holderReference": {
  1142  						SchemaProps: spec.SchemaProps{
  1143  							Description: "HolderReference is a reference to the object where the template is used.",
  1144  							Default:     map[string]interface{}{},
  1145  							Ref:         ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference"),
  1146  						},
  1147  					},
  1148  					"object": {
  1149  						SchemaProps: spec.SchemaProps{
  1150  							Description: "Object contains the template as a raw object.",
  1151  							Default:     map[string]interface{}{},
  1152  							Ref:         ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
  1153  						},
  1154  					},
  1155  					"variables": {
  1156  						SchemaProps: spec.SchemaProps{
  1157  							Description: "Variables are variables specific for the current template. For example some builtin variables like MachineDeployment replicas and version are context-sensitive and thus are only added to templates for MachineDeployments and with values which correspond to the current MachineDeployment.",
  1158  							Type:        []string{"array"},
  1159  							Items: &spec.SchemaOrArray{
  1160  								Schema: &spec.Schema{
  1161  									SchemaProps: spec.SchemaProps{
  1162  										Default: map[string]interface{}{},
  1163  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"),
  1164  									},
  1165  								},
  1166  							},
  1167  						},
  1168  					},
  1169  				},
  1170  				Required: []string{"uid", "holderReference", "object", "variables"},
  1171  			},
  1172  		},
  1173  		Dependencies: []string{
  1174  			"k8s.io/apimachinery/pkg/runtime.RawExtension", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"},
  1175  	}
  1176  }
  1177  
  1178  func schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1179  	return common.OpenAPIDefinition{
  1180  		Schema: spec.Schema{
  1181  			SchemaProps: spec.SchemaProps{
  1182  				Description: "GeneratePatchesResponse is the response of the GeneratePatches hook. NOTE: The patches in GeneratePatchesResponse will be applied in the order in which they are defined to the templates of the request. Thus applying changes consecutively when iterating through internal and external patches.",
  1183  				Type:        []string{"object"},
  1184  				Properties: map[string]spec.Schema{
  1185  					"kind": {
  1186  						SchemaProps: spec.SchemaProps{
  1187  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1188  							Type:        []string{"string"},
  1189  							Format:      "",
  1190  						},
  1191  					},
  1192  					"apiVersion": {
  1193  						SchemaProps: spec.SchemaProps{
  1194  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1195  							Type:        []string{"string"},
  1196  							Format:      "",
  1197  						},
  1198  					},
  1199  					"status": {
  1200  						SchemaProps: spec.SchemaProps{
  1201  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
  1202  							Default:     "",
  1203  							Type:        []string{"string"},
  1204  							Format:      "",
  1205  							Enum:        []interface{}{"Failure", "Success"}},
  1206  					},
  1207  					"message": {
  1208  						SchemaProps: spec.SchemaProps{
  1209  							Description: "A human-readable description of the status of the call.",
  1210  							Default:     "",
  1211  							Type:        []string{"string"},
  1212  							Format:      "",
  1213  						},
  1214  					},
  1215  					"items": {
  1216  						SchemaProps: spec.SchemaProps{
  1217  							Description: "Items is the list of generated patches.",
  1218  							Type:        []string{"array"},
  1219  							Items: &spec.SchemaOrArray{
  1220  								Schema: &spec.Schema{
  1221  									SchemaProps: spec.SchemaProps{
  1222  										Default: map[string]interface{}{},
  1223  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem"),
  1224  									},
  1225  								},
  1226  							},
  1227  						},
  1228  					},
  1229  				},
  1230  				Required: []string{"status", "message", "items"},
  1231  			},
  1232  		},
  1233  		Dependencies: []string{
  1234  			"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.GeneratePatchesResponseItem"},
  1235  	}
  1236  }
  1237  
  1238  func schema_runtime_hooks_api_v1alpha1_GeneratePatchesResponseItem(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1239  	return common.OpenAPIDefinition{
  1240  		Schema: spec.Schema{
  1241  			SchemaProps: spec.SchemaProps{
  1242  				Description: "GeneratePatchesResponseItem is a generated patch.",
  1243  				Type:        []string{"object"},
  1244  				Properties: map[string]spec.Schema{
  1245  					"uid": {
  1246  						SchemaProps: spec.SchemaProps{
  1247  							Description: "UID identifies the corresponding template in the request on which the patch should be applied.",
  1248  							Default:     "",
  1249  							Type:        []string{"string"},
  1250  							Format:      "",
  1251  						},
  1252  					},
  1253  					"patchType": {
  1254  						SchemaProps: spec.SchemaProps{
  1255  							Description: "PatchType defines the type of the patch. One of: \"JSONPatch\" or \"JSONMergePatch\".\n\nPossible enum values:\n - `\"JSONMergePatch\"` identifies a https://datatracker.ietf.org/doc/html/rfc7386 JSON merge patch.\n - `\"JSONPatch\"` identifies a https://datatracker.ietf.org/doc/html/rfc6902 JSON patch.",
  1256  							Default:     "",
  1257  							Type:        []string{"string"},
  1258  							Format:      "",
  1259  							Enum:        []interface{}{"JSONMergePatch", "JSONPatch"}},
  1260  					},
  1261  					"patch": {
  1262  						SchemaProps: spec.SchemaProps{
  1263  							Description: "Patch contains the patch which should be applied to the template. It must be of the corresponding PatchType.",
  1264  							Type:        []string{"string"},
  1265  							Format:      "byte",
  1266  						},
  1267  					},
  1268  				},
  1269  				Required: []string{"uid", "patchType", "patch"},
  1270  			},
  1271  		},
  1272  	}
  1273  }
  1274  
  1275  func schema_runtime_hooks_api_v1alpha1_GroupVersionHook(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1276  	return common.OpenAPIDefinition{
  1277  		Schema: spec.Schema{
  1278  			SchemaProps: spec.SchemaProps{
  1279  				Description: "GroupVersionHook defines the runtime hook when the ExtensionHandler is called.",
  1280  				Type:        []string{"object"},
  1281  				Properties: map[string]spec.Schema{
  1282  					"apiVersion": {
  1283  						SchemaProps: spec.SchemaProps{
  1284  							Description: "APIVersion is the group and version of the Hook",
  1285  							Default:     "",
  1286  							Type:        []string{"string"},
  1287  							Format:      "",
  1288  						},
  1289  					},
  1290  					"hook": {
  1291  						SchemaProps: spec.SchemaProps{
  1292  							Description: "Hook is the name of the hook",
  1293  							Default:     "",
  1294  							Type:        []string{"string"},
  1295  							Format:      "",
  1296  						},
  1297  					},
  1298  				},
  1299  				Required: []string{"apiVersion", "hook"},
  1300  			},
  1301  		},
  1302  	}
  1303  }
  1304  
  1305  func schema_runtime_hooks_api_v1alpha1_HolderReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1306  	return common.OpenAPIDefinition{
  1307  		Schema: spec.Schema{
  1308  			SchemaProps: spec.SchemaProps{
  1309  				Description: "HolderReference represents a reference to an object which holds a template.",
  1310  				Type:        []string{"object"},
  1311  				Properties: map[string]spec.Schema{
  1312  					"apiVersion": {
  1313  						SchemaProps: spec.SchemaProps{
  1314  							Description: "API version of the referent.",
  1315  							Default:     "",
  1316  							Type:        []string{"string"},
  1317  							Format:      "",
  1318  						},
  1319  					},
  1320  					"kind": {
  1321  						SchemaProps: spec.SchemaProps{
  1322  							Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1323  							Default:     "",
  1324  							Type:        []string{"string"},
  1325  							Format:      "",
  1326  						},
  1327  					},
  1328  					"namespace": {
  1329  						SchemaProps: spec.SchemaProps{
  1330  							Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/",
  1331  							Default:     "",
  1332  							Type:        []string{"string"},
  1333  							Format:      "",
  1334  						},
  1335  					},
  1336  					"name": {
  1337  						SchemaProps: spec.SchemaProps{
  1338  							Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
  1339  							Default:     "",
  1340  							Type:        []string{"string"},
  1341  							Format:      "",
  1342  						},
  1343  					},
  1344  					"fieldPath": {
  1345  						SchemaProps: spec.SchemaProps{
  1346  							Description: "FieldPath is the path to the field of the object which references the template.",
  1347  							Default:     "",
  1348  							Type:        []string{"string"},
  1349  							Format:      "",
  1350  						},
  1351  					},
  1352  				},
  1353  				Required: []string{"apiVersion", "kind", "namespace", "name", "fieldPath"},
  1354  			},
  1355  		},
  1356  	}
  1357  }
  1358  
  1359  func schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1360  	return common.OpenAPIDefinition{
  1361  		Schema: spec.Schema{
  1362  			SchemaProps: spec.SchemaProps{
  1363  				Description: "ValidateTopologyRequest is the request of the ValidateTopology hook.",
  1364  				Type:        []string{"object"},
  1365  				Properties: map[string]spec.Schema{
  1366  					"kind": {
  1367  						SchemaProps: spec.SchemaProps{
  1368  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1369  							Type:        []string{"string"},
  1370  							Format:      "",
  1371  						},
  1372  					},
  1373  					"apiVersion": {
  1374  						SchemaProps: spec.SchemaProps{
  1375  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1376  							Type:        []string{"string"},
  1377  							Format:      "",
  1378  						},
  1379  					},
  1380  					"settings": {
  1381  						SchemaProps: spec.SchemaProps{
  1382  							Description: "Settings defines key value pairs to be passed to the call.",
  1383  							Type:        []string{"object"},
  1384  							AdditionalProperties: &spec.SchemaOrBool{
  1385  								Allows: true,
  1386  								Schema: &spec.Schema{
  1387  									SchemaProps: spec.SchemaProps{
  1388  										Default: "",
  1389  										Type:    []string{"string"},
  1390  										Format:  "",
  1391  									},
  1392  								},
  1393  							},
  1394  						},
  1395  					},
  1396  					"variables": {
  1397  						SchemaProps: spec.SchemaProps{
  1398  							Description: "Variables are global variables for all templates.",
  1399  							Type:        []string{"array"},
  1400  							Items: &spec.SchemaOrArray{
  1401  								Schema: &spec.Schema{
  1402  									SchemaProps: spec.SchemaProps{
  1403  										Default: map[string]interface{}{},
  1404  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"),
  1405  									},
  1406  								},
  1407  							},
  1408  						},
  1409  					},
  1410  					"items": {
  1411  						SchemaProps: spec.SchemaProps{
  1412  							Description: "Items is the list of templates to validate.",
  1413  							Type:        []string{"array"},
  1414  							Items: &spec.SchemaOrArray{
  1415  								Schema: &spec.Schema{
  1416  									SchemaProps: spec.SchemaProps{
  1417  										Ref: ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem"),
  1418  									},
  1419  								},
  1420  							},
  1421  						},
  1422  					},
  1423  				},
  1424  				Required: []string{"variables", "items"},
  1425  			},
  1426  		},
  1427  		Dependencies: []string{
  1428  			"sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.ValidateTopologyRequestItem", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"},
  1429  	}
  1430  }
  1431  
  1432  func schema_runtime_hooks_api_v1alpha1_ValidateTopologyRequestItem(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1433  	return common.OpenAPIDefinition{
  1434  		Schema: spec.Schema{
  1435  			SchemaProps: spec.SchemaProps{
  1436  				Description: "ValidateTopologyRequestItem represents a template to validate.",
  1437  				Type:        []string{"object"},
  1438  				Properties: map[string]spec.Schema{
  1439  					"holderReference": {
  1440  						SchemaProps: spec.SchemaProps{
  1441  							Description: "HolderReference is a reference to the object where the template is used.",
  1442  							Default:     map[string]interface{}{},
  1443  							Ref:         ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference"),
  1444  						},
  1445  					},
  1446  					"object": {
  1447  						SchemaProps: spec.SchemaProps{
  1448  							Description: "Object contains the template as a raw object.",
  1449  							Default:     map[string]interface{}{},
  1450  							Ref:         ref("k8s.io/apimachinery/pkg/runtime.RawExtension"),
  1451  						},
  1452  					},
  1453  					"variables": {
  1454  						SchemaProps: spec.SchemaProps{
  1455  							Description: "Variables are variables specific for the current template. For example some builtin variables like MachineDeployment replicas and version are context-sensitive and thus are only added to templates for MachineDeployments and with values which correspond to the current MachineDeployment.",
  1456  							Type:        []string{"array"},
  1457  							Items: &spec.SchemaOrArray{
  1458  								Schema: &spec.Schema{
  1459  									SchemaProps: spec.SchemaProps{
  1460  										Default: map[string]interface{}{},
  1461  										Ref:     ref("sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"),
  1462  									},
  1463  								},
  1464  							},
  1465  						},
  1466  					},
  1467  				},
  1468  				Required: []string{"holderReference", "object", "variables"},
  1469  			},
  1470  		},
  1471  		Dependencies: []string{
  1472  			"k8s.io/apimachinery/pkg/runtime.RawExtension", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.HolderReference", "sigs.k8s.io/cluster-api/exp/runtime/hooks/api/v1alpha1.Variable"},
  1473  	}
  1474  }
  1475  
  1476  func schema_runtime_hooks_api_v1alpha1_ValidateTopologyResponse(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1477  	return common.OpenAPIDefinition{
  1478  		Schema: spec.Schema{
  1479  			SchemaProps: spec.SchemaProps{
  1480  				Description: "ValidateTopologyResponse is the response of the ValidateTopology hook.",
  1481  				Type:        []string{"object"},
  1482  				Properties: map[string]spec.Schema{
  1483  					"kind": {
  1484  						SchemaProps: spec.SchemaProps{
  1485  							Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
  1486  							Type:        []string{"string"},
  1487  							Format:      "",
  1488  						},
  1489  					},
  1490  					"apiVersion": {
  1491  						SchemaProps: spec.SchemaProps{
  1492  							Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
  1493  							Type:        []string{"string"},
  1494  							Format:      "",
  1495  						},
  1496  					},
  1497  					"status": {
  1498  						SchemaProps: spec.SchemaProps{
  1499  							Description: "Status of the call. One of \"Success\" or \"Failure\".\n\nPossible enum values:\n - `\"Failure\"` represents a failure response.\n - `\"Success\"` represents a success response.",
  1500  							Default:     "",
  1501  							Type:        []string{"string"},
  1502  							Format:      "",
  1503  							Enum:        []interface{}{"Failure", "Success"}},
  1504  					},
  1505  					"message": {
  1506  						SchemaProps: spec.SchemaProps{
  1507  							Description: "A human-readable description of the status of the call.",
  1508  							Default:     "",
  1509  							Type:        []string{"string"},
  1510  							Format:      "",
  1511  						},
  1512  					},
  1513  				},
  1514  				Required: []string{"status", "message"},
  1515  			},
  1516  		},
  1517  	}
  1518  }
  1519  
  1520  func schema_runtime_hooks_api_v1alpha1_Variable(ref common.ReferenceCallback) common.OpenAPIDefinition {
  1521  	return common.OpenAPIDefinition{
  1522  		Schema: spec.Schema{
  1523  			SchemaProps: spec.SchemaProps{
  1524  				Description: "Variable represents a variable value.",
  1525  				Type:        []string{"object"},
  1526  				Properties: map[string]spec.Schema{
  1527  					"name": {
  1528  						SchemaProps: spec.SchemaProps{
  1529  							Description: "Name of the variable.",
  1530  							Default:     "",
  1531  							Type:        []string{"string"},
  1532  							Format:      "",
  1533  						},
  1534  					},
  1535  					"value": {
  1536  						SchemaProps: spec.SchemaProps{
  1537  							Description: "Value of the variable.",
  1538  							Default:     map[string]interface{}{},
  1539  							Ref:         ref("k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"),
  1540  						},
  1541  					},
  1542  				},
  1543  				Required: []string{"name", "value"},
  1544  			},
  1545  		},
  1546  		Dependencies: []string{
  1547  			"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1.JSON"},
  1548  	}
  1549  }