mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
	
	
		
			741 lines
		
	
	
		
			28 KiB
		
	
	
	
		
			Go
		
	
	
	
		
		
			
		
	
	
			741 lines
		
	
	
		
			28 KiB
		
	
	
	
		
			Go
		
	
	
	
|  | //go:build !ignore_autogenerated
 | ||
|  | // +build !ignore_autogenerated
 | ||
|  | 
 | ||
|  | // SPDX-License-Identifier: AGPL-3.0-only
 | ||
|  | 
 | ||
|  | // Code generated by openapi-gen. DO NOT EDIT.
 | ||
|  | 
 | ||
|  | package v0alpha1 | ||
|  | 
 | ||
|  | import ( | ||
|  | 	common "k8s.io/kube-openapi/pkg/common" | ||
|  | 	spec "k8s.io/kube-openapi/pkg/validation/spec" | ||
|  | ) | ||
|  | 
 | ||
|  | func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { | ||
|  | 	return map[string]common.OpenAPIDefinition{ | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSCredentials":        schema_pkg_apis_secret_v0alpha1_AWSCredentials(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig":       schema_pkg_apis_secret_v0alpha1_AWSKeeperConfig(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureCredentials":      schema_pkg_apis_secret_v0alpha1_AzureCredentials(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig":     schema_pkg_apis_secret_v0alpha1_AzureKeeperConfig(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue":       schema_pkg_apis_secret_v0alpha1_CredentialValue(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Encryption":            schema_pkg_apis_secret_v0alpha1_Encryption(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Envelope":              schema_pkg_apis_secret_v0alpha1_Envelope(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPCredentials":        schema_pkg_apis_secret_v0alpha1_GCPCredentials(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig":       schema_pkg_apis_secret_v0alpha1_GCPKeeperConfig(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpCredentials":  schema_pkg_apis_secret_v0alpha1_HashiCorpCredentials(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig": schema_pkg_apis_secret_v0alpha1_HashiCorpKeeperConfig(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper":                schema_pkg_apis_secret_v0alpha1_Keeper(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperList":            schema_pkg_apis_secret_v0alpha1_KeeperList(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec":            schema_pkg_apis_secret_v0alpha1_KeeperSpec(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SQLKeeperConfig":       schema_pkg_apis_secret_v0alpha1_SQLKeeperConfig(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue":           schema_pkg_apis_secret_v0alpha1_SecureValue(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueList":       schema_pkg_apis_secret_v0alpha1_SecureValueList(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec":       schema_pkg_apis_secret_v0alpha1_SecureValueSpec(ref), | ||
|  | 		"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus":     schema_pkg_apis_secret_v0alpha1_SecureValueStatus(ref), | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_AWSCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "Credentials of remote keepers.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"accessKeyId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"secretAccessKey": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"kmsKeyId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Type:   []string{"string"}, | ||
|  | 							Format: "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"accessKeyId", "secretAccessKey"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_AWSKeeperConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "Remote Keepers.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"accessKeyId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"secretAccessKey": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"kmsKeyId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Type:   []string{"string"}, | ||
|  | 							Format: "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"accessKeyId", "secretAccessKey"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_AzureCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"keyVaultName": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"tenantId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"clientId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"clientSecret": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"keyVaultName", "tenantId", "clientId", "clientSecret"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_AzureKeeperConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"keyVaultName": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"tenantId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"clientId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"clientSecret": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"keyVaultName", "tenantId", "clientId", "clientSecret"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_CredentialValue(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "Holds the way credentials are obtained.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"secureValueName": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "The name of the secure value that holds the actual value.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"valueFromEnv": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "The value is taken from the environment variable.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"valueFromConfig": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "The value is taken from the Grafana config file.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_Encryption(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "Encryption of default SQL keeper.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"envelope": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Envelope"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"aws": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSCredentials"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"azure": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureCredentials"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"gcp": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPCredentials"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"hashicorp": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpCredentials"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSCredentials", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureCredentials", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Envelope", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPCredentials", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpCredentials"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_Envelope(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "Envelope encrytion details.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_GCPCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"projectId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"credentialsFile": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"projectId", "credentialsFile"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_GCPKeeperConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"projectId": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"credentialsFile": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"projectId", "credentialsFile"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_HashiCorpCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"address": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"token": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"address", "token"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_HashiCorpKeeperConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"address": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: "", | ||
|  | 							Type:    []string{"string"}, | ||
|  | 							Format:  "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"token": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Default: map[string]interface{}{}, | ||
|  | 							Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"address", "token"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.CredentialValue"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_Keeper(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"kind": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"apiVersion": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"metadata": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Standard object's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"spec": { | ||
|  | 						VendorExtensible: spec.VendorExtensible{ | ||
|  | 							Extensions: spec.Extensions{ | ||
|  | 								"x-kubernetes-patch-merge-key": "name", | ||
|  | 								"x-kubernetes-patch-strategy":  "replace", | ||
|  | 							}, | ||
|  | 						}, | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "This is the actual keeper schema.", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.KeeperSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_KeeperList(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"kind": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"apiVersion": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"metadata": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Standard list's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"items": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Slice containing all keepers.", | ||
|  | 							Type:        []string{"array"}, | ||
|  | 							Items: &spec.SchemaOrArray{ | ||
|  | 								Schema: &spec.Schema{ | ||
|  | 									SchemaProps: spec.SchemaProps{ | ||
|  | 										Default: map[string]interface{}{}, | ||
|  | 										Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper"), | ||
|  | 									}, | ||
|  | 								}, | ||
|  | 							}, | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Keeper", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_KeeperSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"title": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Human friendly name for the keeper.", | ||
|  | 							Default:     "", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"sql": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "You can only chose one of the following.", | ||
|  | 							Ref:         ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SQLKeeperConfig"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"aws": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"azurekeyvault": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"gcp": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"hashivault": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"title"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AWSKeeperConfig", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.AzureKeeperConfig", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.GCPKeeperConfig", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.HashiCorpKeeperConfig", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SQLKeeperConfig"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_SQLKeeperConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Description: "The default SQL keeper.", | ||
|  | 				Type:        []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"encryption": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Ref: ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Encryption"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.Encryption"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_SecureValue(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"kind": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"apiVersion": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"metadata": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Standard object's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"spec": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "This is the actual secure value schema.", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"status": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Read-only observed status of the `SecureValue`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"status"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueSpec", "github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValueStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_SecureValueList(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"kind": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"apiVersion": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							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", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"metadata": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Standard list's metadata. It can only be one of `metav1.ObjectMeta` or `metav1.ListMeta`. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", | ||
|  | 							Default:     map[string]interface{}{}, | ||
|  | 							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"items": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Slice containing all secure values. This will NOT output decrypted values.", | ||
|  | 							Type:        []string{"array"}, | ||
|  | 							Items: &spec.SchemaOrArray{ | ||
|  | 								Schema: &spec.Schema{ | ||
|  | 									SchemaProps: spec.SchemaProps{ | ||
|  | 										Default: map[string]interface{}{}, | ||
|  | 										Ref:     ref("github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue"), | ||
|  | 									}, | ||
|  | 								}, | ||
|  | 							}, | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 		Dependencies: []string{ | ||
|  | 			"github.com/grafana/grafana/pkg/apis/secret/v0alpha1.SecureValue", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_SecureValueSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"title": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Human friendly name for the secure value.", | ||
|  | 							Default:     "", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"value": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "The raw value is only valid for write. Read/List will always be empty. There is no support for mixing `value` and `ref`, you can't create a secret in a third-party keeper with a specified `ref`.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"ref": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "When using a remote Key manager, the ref is used to reference a value inside the remote storage. This should not contain sensitive information.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"keeper": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "Name of the keeper, being the actual storage of the secure value.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"decrypters": { | ||
|  | 						VendorExtensible: spec.VendorExtensible{ | ||
|  | 							Extensions: spec.Extensions{ | ||
|  | 								"x-kubernetes-list-type": "atomic", | ||
|  | 							}, | ||
|  | 						}, | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "The Decrypters that are allowed to decrypt this secret. An empty list means no service can decrypt it. Support and behavior is still TBD, but could likely look like: * testdata.grafana.app/{name1} * testdata.grafana.app/{name2} * runner.k6.grafana.app/*  -- allow any k6 test runner Rather than a string pattern, we may want a more explicit object: [{ group:\"testdata.grafana.app\", name=\"name1\"},\n { group:\"runner.k6.grafana.app\"}]", | ||
|  | 							Type:        []string{"array"}, | ||
|  | 							Items: &spec.SchemaOrArray{ | ||
|  | 								Schema: &spec.Schema{ | ||
|  | 									SchemaProps: spec.SchemaProps{ | ||
|  | 										Default: "", | ||
|  | 										Type:    []string{"string"}, | ||
|  | 										Format:  "", | ||
|  | 									}, | ||
|  | 								}, | ||
|  | 							}, | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"title"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | func schema_pkg_apis_secret_v0alpha1_SecureValueStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { | ||
|  | 	return common.OpenAPIDefinition{ | ||
|  | 		Schema: spec.Schema{ | ||
|  | 			SchemaProps: spec.SchemaProps{ | ||
|  | 				Type: []string{"object"}, | ||
|  | 				Properties: map[string]spec.Schema{ | ||
|  | 					"phase": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "High-level summary of where the `SecureValue` is in its lifecycle. One of: `Pending`, `Succeeded` or `Failed`.\n\nPossible enum values:\n - `\"Failed\"` If the creation of the secret fails, it will move to the `Failed` phase. Check the additional `status` fields for more information on what caused the failure. This state is unrecoverable.\n - `\"Pending\"` When the `SecureValue` is created, it will start in `Pending` phase to create the underlying secret asynchronously.\n - `\"Succeeded\"` If the creation of the secret is successful, it will move to the `Succeeded` phase.", | ||
|  | 							Default:     "", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 							Enum:        []interface{}{"Failed", "Pending", "Succeeded"}, | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 					"message": { | ||
|  | 						SchemaProps: spec.SchemaProps{ | ||
|  | 							Description: "A human readable message indicating details about why the `SecureValue` is in this phase. Only applicable if the `phase=Failed`.", | ||
|  | 							Type:        []string{"string"}, | ||
|  | 							Format:      "", | ||
|  | 						}, | ||
|  | 					}, | ||
|  | 				}, | ||
|  | 				Required: []string{"phase"}, | ||
|  | 			}, | ||
|  | 		}, | ||
|  | 	} | ||
|  | } |