diff --git a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/bigqueryconnectionconnection_types.go b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/bigqueryconnectionconnection_types.go similarity index 99% rename from pkg/clients/generated/apis/bigqueryconnection/v1alpha1/bigqueryconnectionconnection_types.go rename to pkg/clients/generated/apis/bigqueryconnection/v1beta1/bigqueryconnectionconnection_types.go index 271b8ad9430..236636964ed 100644 --- a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/bigqueryconnectionconnection_types.go +++ b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/bigqueryconnectionconnection_types.go @@ -28,7 +28,7 @@ // that future versions of the go-client may include breaking changes. // Please try it out and give us feedback! -package v1alpha1 +package v1beta1 import ( "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" diff --git a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/doc.go b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/doc.go similarity index 92% rename from pkg/clients/generated/apis/bigqueryconnection/v1alpha1/doc.go rename to pkg/clients/generated/apis/bigqueryconnection/v1beta1/doc.go index cf7ffc3ac85..b133721e15e 100644 --- a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/doc.go +++ b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/doc.go @@ -28,11 +28,11 @@ // that future versions of the go-client may include breaking changes. // Please try it out and give us feedback! -// Package v1alpha1 contains API Schema definitions for the bigqueryconnection v1alpha1 API group. +// Package v1beta1 contains API Schema definitions for the bigqueryconnection v1beta1 API group. // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/bigqueryconnection // +k8s:defaulter-gen=TypeMeta // +groupName=bigqueryconnection.cnrm.cloud.google.com -package v1alpha1 +package v1beta1 diff --git a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/register.go b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/register.go similarity index 93% rename from pkg/clients/generated/apis/bigqueryconnection/v1alpha1/register.go rename to pkg/clients/generated/apis/bigqueryconnection/v1beta1/register.go index 9b03dc09513..60fc1810443 100644 --- a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/register.go +++ b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/register.go @@ -28,13 +28,13 @@ // that future versions of the go-client may include breaking changes. // Please try it out and give us feedback! -// Package v1alpha1 contains API Schema definitions for the bigqueryconnection v1alpha1 API group. +// Package v1beta1 contains API Schema definitions for the bigqueryconnection v1beta1 API group. // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/bigqueryconnection // +k8s:defaulter-gen=TypeMeta // +groupName=bigqueryconnection.cnrm.cloud.google.com -package v1alpha1 +package v1beta1 import ( "reflect" @@ -45,7 +45,7 @@ import ( var ( // SchemeGroupVersion is the group version used to register these objects. - SchemeGroupVersion = schema.GroupVersion{Group: "bigqueryconnection.cnrm.cloud.google.com", Version: "v1alpha1"} + SchemeGroupVersion = schema.GroupVersion{Group: "bigqueryconnection.cnrm.cloud.google.com", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} diff --git a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/zz_generated.deepcopy.go b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/zz_generated.deepcopy.go similarity index 98% rename from pkg/clients/generated/apis/bigqueryconnection/v1alpha1/zz_generated.deepcopy.go rename to pkg/clients/generated/apis/bigqueryconnection/v1beta1/zz_generated.deepcopy.go index bbd5cef937d..37788fd7242 100644 --- a/pkg/clients/generated/apis/bigqueryconnection/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/clients/generated/apis/bigqueryconnection/v1beta1/zz_generated.deepcopy.go @@ -22,10 +22,10 @@ // Code generated by deepcopy-gen. DO NOT EDIT. -package v1alpha1 +package v1beta1 import ( - k8sv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" + v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -157,7 +157,7 @@ func (in *BigQueryConnectionConnectionStatus) DeepCopyInto(out *BigQueryConnecti *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make([]k8sv1alpha1.Condition, len(*in)) + *out = make([]v1alpha1.Condition, len(*in)) copy(*out, *in) } if in.ExternalRef != nil { @@ -449,7 +449,7 @@ func (in *ConnectionCredential) DeepCopyInto(out *ConnectionCredential) { *out = *in if in.SecretRef != nil { in, out := &in.SecretRef, &out.SecretRef - *out = new(k8sv1alpha1.ResourceRef) + *out = new(v1alpha1.ResourceRef) **out = **in } return @@ -470,7 +470,7 @@ func (in *ConnectionMetastoreService) DeepCopyInto(out *ConnectionMetastoreServi *out = *in if in.MetastoreServiceRef != nil { in, out := &in.MetastoreServiceRef, &out.MetastoreServiceRef - *out = new(k8sv1alpha1.ResourceRef) + *out = new(v1alpha1.ResourceRef) **out = **in } return @@ -573,7 +573,7 @@ func (in *ConnectionSparkHistoryServer) DeepCopyInto(out *ConnectionSparkHistory *out = *in if in.DataprocClusterRef != nil { in, out := &in.DataprocClusterRef, &out.DataprocClusterRef - *out = new(k8sv1alpha1.ResourceRef) + *out = new(v1alpha1.ResourceRef) **out = **in } return diff --git a/pkg/clients/generated/client/clientset/versioned/clientset.go b/pkg/clients/generated/client/clientset/versioned/clientset.go index 6c1153d1400..20dd7a2b136 100644 --- a/pkg/clients/generated/client/clientset/versioned/clientset.go +++ b/pkg/clients/generated/client/clientset/versioned/clientset.go @@ -39,7 +39,7 @@ import ( bigqueryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquery/v1beta1" bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1alpha1" bigqueryanalyticshubv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1beta1" - bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1" + bigqueryconnectionv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatapolicy/v1alpha1" bigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1" bigqueryreservationv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryreservation/v1alpha1" @@ -168,7 +168,7 @@ type Interface interface { BigqueryV1beta1() bigqueryv1beta1.BigqueryV1beta1Interface BigqueryanalyticshubV1alpha1() bigqueryanalyticshubv1alpha1.BigqueryanalyticshubV1alpha1Interface BigqueryanalyticshubV1beta1() bigqueryanalyticshubv1beta1.BigqueryanalyticshubV1beta1Interface - BigqueryconnectionV1alpha1() bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Interface + BigqueryconnectionV1beta1() bigqueryconnectionv1beta1.BigqueryconnectionV1beta1Interface BigquerydatapolicyV1alpha1() bigquerydatapolicyv1alpha1.BigquerydatapolicyV1alpha1Interface BigquerydatatransferV1beta1() bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Interface BigqueryreservationV1alpha1() bigqueryreservationv1alpha1.BigqueryreservationV1alpha1Interface @@ -295,7 +295,7 @@ type Clientset struct { bigqueryV1beta1 *bigqueryv1beta1.BigqueryV1beta1Client bigqueryanalyticshubV1alpha1 *bigqueryanalyticshubv1alpha1.BigqueryanalyticshubV1alpha1Client bigqueryanalyticshubV1beta1 *bigqueryanalyticshubv1beta1.BigqueryanalyticshubV1beta1Client - bigqueryconnectionV1alpha1 *bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Client + bigqueryconnectionV1beta1 *bigqueryconnectionv1beta1.BigqueryconnectionV1beta1Client bigquerydatapolicyV1alpha1 *bigquerydatapolicyv1alpha1.BigquerydatapolicyV1alpha1Client bigquerydatatransferV1beta1 *bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Client bigqueryreservationV1alpha1 *bigqueryreservationv1alpha1.BigqueryreservationV1alpha1Client @@ -475,9 +475,9 @@ func (c *Clientset) BigqueryanalyticshubV1beta1() bigqueryanalyticshubv1beta1.Bi return c.bigqueryanalyticshubV1beta1 } -// BigqueryconnectionV1alpha1 retrieves the BigqueryconnectionV1alpha1Client -func (c *Clientset) BigqueryconnectionV1alpha1() bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Interface { - return c.bigqueryconnectionV1alpha1 +// BigqueryconnectionV1beta1 retrieves the BigqueryconnectionV1beta1Client +func (c *Clientset) BigqueryconnectionV1beta1() bigqueryconnectionv1beta1.BigqueryconnectionV1beta1Interface { + return c.bigqueryconnectionV1beta1 } // BigquerydatapolicyV1alpha1 retrieves the BigquerydatapolicyV1alpha1Client @@ -1115,7 +1115,7 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } - cs.bigqueryconnectionV1alpha1, err = bigqueryconnectionv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) + cs.bigqueryconnectionV1beta1, err = bigqueryconnectionv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err } @@ -1582,7 +1582,7 @@ func New(c rest.Interface) *Clientset { cs.bigqueryV1beta1 = bigqueryv1beta1.New(c) cs.bigqueryanalyticshubV1alpha1 = bigqueryanalyticshubv1alpha1.New(c) cs.bigqueryanalyticshubV1beta1 = bigqueryanalyticshubv1beta1.New(c) - cs.bigqueryconnectionV1alpha1 = bigqueryconnectionv1alpha1.New(c) + cs.bigqueryconnectionV1beta1 = bigqueryconnectionv1beta1.New(c) cs.bigquerydatapolicyV1alpha1 = bigquerydatapolicyv1alpha1.New(c) cs.bigquerydatatransferV1beta1 = bigquerydatatransferv1beta1.New(c) cs.bigqueryreservationV1alpha1 = bigqueryreservationv1alpha1.New(c) diff --git a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go index 72077fce72c..5d80f7ce715 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go @@ -51,8 +51,8 @@ import ( fakebigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1alpha1/fake" bigqueryanalyticshubv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1beta1" fakebigqueryanalyticshubv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1beta1/fake" - bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1" - fakebigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake" + bigqueryconnectionv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1" + fakebigqueryconnectionv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatapolicy/v1alpha1" fakebigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatapolicy/v1alpha1/fake" bigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1" @@ -394,9 +394,9 @@ func (c *Clientset) BigqueryanalyticshubV1beta1() bigqueryanalyticshubv1beta1.Bi return &fakebigqueryanalyticshubv1beta1.FakeBigqueryanalyticshubV1beta1{Fake: &c.Fake} } -// BigqueryconnectionV1alpha1 retrieves the BigqueryconnectionV1alpha1Client -func (c *Clientset) BigqueryconnectionV1alpha1() bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Interface { - return &fakebigqueryconnectionv1alpha1.FakeBigqueryconnectionV1alpha1{Fake: &c.Fake} +// BigqueryconnectionV1beta1 retrieves the BigqueryconnectionV1beta1Client +func (c *Clientset) BigqueryconnectionV1beta1() bigqueryconnectionv1beta1.BigqueryconnectionV1beta1Interface { + return &fakebigqueryconnectionv1beta1.FakeBigqueryconnectionV1beta1{Fake: &c.Fake} } // BigquerydatapolicyV1alpha1 retrieves the BigquerydatapolicyV1alpha1Client diff --git a/pkg/clients/generated/client/clientset/versioned/fake/register.go b/pkg/clients/generated/client/clientset/versioned/fake/register.go index 80b32ac6897..793ee4b0582 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/register.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/register.go @@ -36,7 +36,7 @@ import ( bigqueryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquery/v1beta1" bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1alpha1" bigqueryanalyticshubv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1beta1" - bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" + bigqueryconnectionv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1beta1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatapolicy/v1alpha1" bigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1" bigqueryreservationv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryreservation/v1alpha1" @@ -169,7 +169,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ bigqueryv1beta1.AddToScheme, bigqueryanalyticshubv1alpha1.AddToScheme, bigqueryanalyticshubv1beta1.AddToScheme, - bigqueryconnectionv1alpha1.AddToScheme, + bigqueryconnectionv1beta1.AddToScheme, bigquerydatapolicyv1alpha1.AddToScheme, bigquerydatatransferv1beta1.AddToScheme, bigqueryreservationv1alpha1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/scheme/register.go b/pkg/clients/generated/client/clientset/versioned/scheme/register.go index 66442075463..4a004935f6b 100644 --- a/pkg/clients/generated/client/clientset/versioned/scheme/register.go +++ b/pkg/clients/generated/client/clientset/versioned/scheme/register.go @@ -36,7 +36,7 @@ import ( bigqueryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquery/v1beta1" bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1alpha1" bigqueryanalyticshubv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1beta1" - bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" + bigqueryconnectionv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1beta1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatapolicy/v1alpha1" bigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1" bigqueryreservationv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryreservation/v1alpha1" @@ -169,7 +169,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ bigqueryv1beta1.AddToScheme, bigqueryanalyticshubv1alpha1.AddToScheme, bigqueryanalyticshubv1beta1.AddToScheme, - bigqueryconnectionv1alpha1.AddToScheme, + bigqueryconnectionv1beta1.AddToScheme, bigquerydatapolicyv1alpha1.AddToScheme, bigquerydatatransferv1beta1.AddToScheme, bigqueryreservationv1alpha1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnection_client.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnection_client.go similarity index 64% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnection_client.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnection_client.go index ece865ed8c8..e73e3f8c72a 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnection_client.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnection_client.go @@ -19,34 +19,34 @@ // Code generated by client-gen. DO NOT EDIT. -package v1alpha1 +package v1beta1 import ( "net/http" - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1beta1" "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type BigqueryconnectionV1alpha1Interface interface { +type BigqueryconnectionV1beta1Interface interface { RESTClient() rest.Interface BigQueryConnectionConnectionsGetter } -// BigqueryconnectionV1alpha1Client is used to interact with features provided by the bigqueryconnection.cnrm.cloud.google.com group. -type BigqueryconnectionV1alpha1Client struct { +// BigqueryconnectionV1beta1Client is used to interact with features provided by the bigqueryconnection.cnrm.cloud.google.com group. +type BigqueryconnectionV1beta1Client struct { restClient rest.Interface } -func (c *BigqueryconnectionV1alpha1Client) BigQueryConnectionConnections(namespace string) BigQueryConnectionConnectionInterface { +func (c *BigqueryconnectionV1beta1Client) BigQueryConnectionConnections(namespace string) BigQueryConnectionConnectionInterface { return newBigQueryConnectionConnections(c, namespace) } -// NewForConfig creates a new BigqueryconnectionV1alpha1Client for the given config. +// NewForConfig creates a new BigqueryconnectionV1beta1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*BigqueryconnectionV1alpha1Client, error) { +func NewForConfig(c *rest.Config) (*BigqueryconnectionV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -58,9 +58,9 @@ func NewForConfig(c *rest.Config) (*BigqueryconnectionV1alpha1Client, error) { return NewForConfigAndClient(&config, httpClient) } -// NewForConfigAndClient creates a new BigqueryconnectionV1alpha1Client for the given config and http client. +// NewForConfigAndClient creates a new BigqueryconnectionV1beta1Client for the given config and http client. // Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*BigqueryconnectionV1alpha1Client, error) { +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*BigqueryconnectionV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -69,12 +69,12 @@ func NewForConfigAndClient(c *rest.Config, h *http.Client) (*BigqueryconnectionV if err != nil { return nil, err } - return &BigqueryconnectionV1alpha1Client{client}, nil + return &BigqueryconnectionV1beta1Client{client}, nil } -// NewForConfigOrDie creates a new BigqueryconnectionV1alpha1Client for the given config and +// NewForConfigOrDie creates a new BigqueryconnectionV1beta1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *BigqueryconnectionV1alpha1Client { +func NewForConfigOrDie(c *rest.Config) *BigqueryconnectionV1beta1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -82,13 +82,13 @@ func NewForConfigOrDie(c *rest.Config) *BigqueryconnectionV1alpha1Client { return client } -// New creates a new BigqueryconnectionV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *BigqueryconnectionV1alpha1Client { - return &BigqueryconnectionV1alpha1Client{c} +// New creates a new BigqueryconnectionV1beta1Client for the given RESTClient. +func New(c rest.Interface) *BigqueryconnectionV1beta1Client { + return &BigqueryconnectionV1beta1Client{c} } func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion + gv := v1beta1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() @@ -102,7 +102,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *BigqueryconnectionV1alpha1Client) RESTClient() rest.Interface { +func (c *BigqueryconnectionV1beta1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnectionconnection.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnectionconnection.go similarity index 76% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnectionconnection.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnectionconnection.go index ce317ac3048..1a935108a1e 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/bigqueryconnectionconnection.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/bigqueryconnectionconnection.go @@ -19,13 +19,13 @@ // Code generated by client-gen. DO NOT EDIT. -package v1alpha1 +package v1beta1 import ( "context" "time" - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1beta1" scheme "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -41,15 +41,15 @@ type BigQueryConnectionConnectionsGetter interface { // BigQueryConnectionConnectionInterface has methods to work with BigQueryConnectionConnection resources. type BigQueryConnectionConnectionInterface interface { - Create(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.CreateOptions) (*v1alpha1.BigQueryConnectionConnection, error) - Update(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1alpha1.BigQueryConnectionConnection, error) - UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1alpha1.BigQueryConnectionConnection, error) + Create(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.CreateOptions) (*v1beta1.BigQueryConnectionConnection, error) + Update(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1beta1.BigQueryConnectionConnection, error) + UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1beta1.BigQueryConnectionConnection, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.BigQueryConnectionConnection, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BigQueryConnectionConnectionList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.BigQueryConnectionConnection, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.BigQueryConnectionConnectionList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BigQueryConnectionConnection, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryConnectionConnection, err error) BigQueryConnectionConnectionExpansion } @@ -60,7 +60,7 @@ type bigQueryConnectionConnections struct { } // newBigQueryConnectionConnections returns a BigQueryConnectionConnections -func newBigQueryConnectionConnections(c *BigqueryconnectionV1alpha1Client, namespace string) *bigQueryConnectionConnections { +func newBigQueryConnectionConnections(c *BigqueryconnectionV1beta1Client, namespace string) *bigQueryConnectionConnections { return &bigQueryConnectionConnections{ client: c.RESTClient(), ns: namespace, @@ -68,8 +68,8 @@ func newBigQueryConnectionConnections(c *BigqueryconnectionV1alpha1Client, names } // Get takes name of the bigQueryConnectionConnection, and returns the corresponding bigQueryConnectionConnection object, and an error if there is any. -func (c *bigQueryConnectionConnections) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { - result = &v1alpha1.BigQueryConnectionConnection{} +func (c *bigQueryConnectionConnections) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { + result = &v1beta1.BigQueryConnectionConnection{} err = c.client.Get(). Namespace(c.ns). Resource("bigqueryconnectionconnections"). @@ -81,12 +81,12 @@ func (c *bigQueryConnectionConnections) Get(ctx context.Context, name string, op } // List takes label and field selectors, and returns the list of BigQueryConnectionConnections that match those selectors. -func (c *bigQueryConnectionConnections) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BigQueryConnectionConnectionList, err error) { +func (c *bigQueryConnectionConnections) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryConnectionConnectionList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha1.BigQueryConnectionConnectionList{} + result = &v1beta1.BigQueryConnectionConnectionList{} err = c.client.Get(). Namespace(c.ns). Resource("bigqueryconnectionconnections"). @@ -113,8 +113,8 @@ func (c *bigQueryConnectionConnections) Watch(ctx context.Context, opts v1.ListO } // Create takes the representation of a bigQueryConnectionConnection and creates it. Returns the server's representation of the bigQueryConnectionConnection, and an error, if there is any. -func (c *bigQueryConnectionConnections) Create(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.CreateOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { - result = &v1alpha1.BigQueryConnectionConnection{} +func (c *bigQueryConnectionConnections) Create(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.CreateOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { + result = &v1beta1.BigQueryConnectionConnection{} err = c.client.Post(). Namespace(c.ns). Resource("bigqueryconnectionconnections"). @@ -126,8 +126,8 @@ func (c *bigQueryConnectionConnections) Create(ctx context.Context, bigQueryConn } // Update takes the representation of a bigQueryConnectionConnection and updates it. Returns the server's representation of the bigQueryConnectionConnection, and an error, if there is any. -func (c *bigQueryConnectionConnections) Update(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { - result = &v1alpha1.BigQueryConnectionConnection{} +func (c *bigQueryConnectionConnections) Update(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { + result = &v1beta1.BigQueryConnectionConnection{} err = c.client.Put(). Namespace(c.ns). Resource("bigqueryconnectionconnections"). @@ -141,8 +141,8 @@ func (c *bigQueryConnectionConnections) Update(ctx context.Context, bigQueryConn // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *bigQueryConnectionConnections) UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { - result = &v1alpha1.BigQueryConnectionConnection{} +func (c *bigQueryConnectionConnections) UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { + result = &v1beta1.BigQueryConnectionConnection{} err = c.client.Put(). Namespace(c.ns). Resource("bigqueryconnectionconnections"). @@ -183,8 +183,8 @@ func (c *bigQueryConnectionConnections) DeleteCollection(ctx context.Context, op } // Patch applies the patch and returns the patched bigQueryConnectionConnection. -func (c *bigQueryConnectionConnections) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BigQueryConnectionConnection, err error) { - result = &v1alpha1.BigQueryConnectionConnection{} +func (c *bigQueryConnectionConnections) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryConnectionConnection, err error) { + result = &v1beta1.BigQueryConnectionConnection{} err = c.client.Patch(pt). Namespace(c.ns). Resource("bigqueryconnectionconnections"). diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/doc.go similarity index 98% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/doc.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/doc.go index d3dac805d01..41dbecdb4a0 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/doc.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/doc.go @@ -20,4 +20,4 @@ // Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. -package v1alpha1 +package v1beta1 diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/doc.go similarity index 100% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/doc.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/doc.go diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnection_client.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnection_client.go similarity index 74% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnection_client.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnection_client.go index 3d73e99ff8d..e3b274fdde8 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnection_client.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnection_client.go @@ -22,22 +22,22 @@ package fake import ( - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeBigqueryconnectionV1alpha1 struct { +type FakeBigqueryconnectionV1beta1 struct { *testing.Fake } -func (c *FakeBigqueryconnectionV1alpha1) BigQueryConnectionConnections(namespace string) v1alpha1.BigQueryConnectionConnectionInterface { +func (c *FakeBigqueryconnectionV1beta1) BigQueryConnectionConnections(namespace string) v1beta1.BigQueryConnectionConnectionInterface { return &FakeBigQueryConnectionConnections{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeBigqueryconnectionV1alpha1) RESTClient() rest.Interface { +func (c *FakeBigqueryconnectionV1beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnectionconnection.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnectionconnection.go similarity index 66% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnectionconnection.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnectionconnection.go index d7d5ec8c2d7..66793ca4a50 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/fake/fake_bigqueryconnectionconnection.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/fake/fake_bigqueryconnectionconnection.go @@ -24,7 +24,7 @@ package fake import ( "context" - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" types "k8s.io/apimachinery/pkg/types" @@ -34,29 +34,29 @@ import ( // FakeBigQueryConnectionConnections implements BigQueryConnectionConnectionInterface type FakeBigQueryConnectionConnections struct { - Fake *FakeBigqueryconnectionV1alpha1 + Fake *FakeBigqueryconnectionV1beta1 ns string } -var bigqueryconnectionconnectionsResource = v1alpha1.SchemeGroupVersion.WithResource("bigqueryconnectionconnections") +var bigqueryconnectionconnectionsResource = v1beta1.SchemeGroupVersion.WithResource("bigqueryconnectionconnections") -var bigqueryconnectionconnectionsKind = v1alpha1.SchemeGroupVersion.WithKind("BigQueryConnectionConnection") +var bigqueryconnectionconnectionsKind = v1beta1.SchemeGroupVersion.WithKind("BigQueryConnectionConnection") // Get takes name of the bigQueryConnectionConnection, and returns the corresponding bigQueryConnectionConnection object, and an error if there is any. -func (c *FakeBigQueryConnectionConnections) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { +func (c *FakeBigQueryConnectionConnections) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(bigqueryconnectionconnectionsResource, c.ns, name), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewGetAction(bigqueryconnectionconnectionsResource, c.ns, name), &v1beta1.BigQueryConnectionConnection{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryConnectionConnection), err + return obj.(*v1beta1.BigQueryConnectionConnection), err } // List takes label and field selectors, and returns the list of BigQueryConnectionConnections that match those selectors. -func (c *FakeBigQueryConnectionConnections) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BigQueryConnectionConnectionList, err error) { +func (c *FakeBigQueryConnectionConnections) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryConnectionConnectionList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(bigqueryconnectionconnectionsResource, bigqueryconnectionconnectionsKind, c.ns, opts), &v1alpha1.BigQueryConnectionConnectionList{}) + Invokes(testing.NewListAction(bigqueryconnectionconnectionsResource, bigqueryconnectionconnectionsKind, c.ns, opts), &v1beta1.BigQueryConnectionConnectionList{}) if obj == nil { return nil, err @@ -66,8 +66,8 @@ func (c *FakeBigQueryConnectionConnections) List(ctx context.Context, opts v1.Li if label == nil { label = labels.Everything() } - list := &v1alpha1.BigQueryConnectionConnectionList{ListMeta: obj.(*v1alpha1.BigQueryConnectionConnectionList).ListMeta} - for _, item := range obj.(*v1alpha1.BigQueryConnectionConnectionList).Items { + list := &v1beta1.BigQueryConnectionConnectionList{ListMeta: obj.(*v1beta1.BigQueryConnectionConnectionList).ListMeta} + for _, item := range obj.(*v1beta1.BigQueryConnectionConnectionList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -83,43 +83,43 @@ func (c *FakeBigQueryConnectionConnections) Watch(ctx context.Context, opts v1.L } // Create takes the representation of a bigQueryConnectionConnection and creates it. Returns the server's representation of the bigQueryConnectionConnection, and an error, if there is any. -func (c *FakeBigQueryConnectionConnections) Create(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.CreateOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { +func (c *FakeBigQueryConnectionConnections) Create(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.CreateOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(bigqueryconnectionconnectionsResource, c.ns, bigQueryConnectionConnection), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewCreateAction(bigqueryconnectionconnectionsResource, c.ns, bigQueryConnectionConnection), &v1beta1.BigQueryConnectionConnection{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryConnectionConnection), err + return obj.(*v1beta1.BigQueryConnectionConnection), err } // Update takes the representation of a bigQueryConnectionConnection and updates it. Returns the server's representation of the bigQueryConnectionConnection, and an error, if there is any. -func (c *FakeBigQueryConnectionConnections) Update(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1alpha1.BigQueryConnectionConnection, err error) { +func (c *FakeBigQueryConnectionConnections) Update(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (result *v1beta1.BigQueryConnectionConnection, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(bigqueryconnectionconnectionsResource, c.ns, bigQueryConnectionConnection), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewUpdateAction(bigqueryconnectionconnectionsResource, c.ns, bigQueryConnectionConnection), &v1beta1.BigQueryConnectionConnection{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryConnectionConnection), err + return obj.(*v1beta1.BigQueryConnectionConnection), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeBigQueryConnectionConnections) UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1alpha1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1alpha1.BigQueryConnectionConnection, error) { +func (c *FakeBigQueryConnectionConnections) UpdateStatus(ctx context.Context, bigQueryConnectionConnection *v1beta1.BigQueryConnectionConnection, opts v1.UpdateOptions) (*v1beta1.BigQueryConnectionConnection, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(bigqueryconnectionconnectionsResource, "status", c.ns, bigQueryConnectionConnection), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewUpdateSubresourceAction(bigqueryconnectionconnectionsResource, "status", c.ns, bigQueryConnectionConnection), &v1beta1.BigQueryConnectionConnection{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryConnectionConnection), err + return obj.(*v1beta1.BigQueryConnectionConnection), err } // Delete takes name of the bigQueryConnectionConnection and deletes it. Returns an error if one occurs. func (c *FakeBigQueryConnectionConnections) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(bigqueryconnectionconnectionsResource, c.ns, name, opts), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewDeleteActionWithOptions(bigqueryconnectionconnectionsResource, c.ns, name, opts), &v1beta1.BigQueryConnectionConnection{}) return err } @@ -128,17 +128,17 @@ func (c *FakeBigQueryConnectionConnections) Delete(ctx context.Context, name str func (c *FakeBigQueryConnectionConnections) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(bigqueryconnectionconnectionsResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha1.BigQueryConnectionConnectionList{}) + _, err := c.Fake.Invokes(action, &v1beta1.BigQueryConnectionConnectionList{}) return err } // Patch applies the patch and returns the patched bigQueryConnectionConnection. -func (c *FakeBigQueryConnectionConnections) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BigQueryConnectionConnection, err error) { +func (c *FakeBigQueryConnectionConnections) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryConnectionConnection, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(bigqueryconnectionconnectionsResource, c.ns, name, pt, data, subresources...), &v1alpha1.BigQueryConnectionConnection{}) + Invokes(testing.NewPatchSubresourceAction(bigqueryconnectionconnectionsResource, c.ns, name, pt, data, subresources...), &v1beta1.BigQueryConnectionConnection{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryConnectionConnection), err + return obj.(*v1beta1.BigQueryConnectionConnection), err } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/generated_expansion.go b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/generated_expansion.go similarity index 98% rename from pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/generated_expansion.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/generated_expansion.go index 93cb0da04d3..ab827185b04 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/generated_expansion.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1beta1/generated_expansion.go @@ -19,6 +19,6 @@ // Code generated by client-gen. DO NOT EDIT. -package v1alpha1 +package v1beta1 type BigQueryConnectionConnectionExpansion interface{} diff --git a/pkg/gvks/supportedgvks/gvks_generated.go b/pkg/gvks/supportedgvks/gvks_generated.go index 17274db5822..249386b83a8 100644 --- a/pkg/gvks/supportedgvks/gvks_generated.go +++ b/pkg/gvks/supportedgvks/gvks_generated.go @@ -509,6 +509,16 @@ var SupportedGVKs = map[schema.GroupVersionKind]GVKMetadata{ "cnrm.cloud.google.com/system": "true", }, }, + { + Group: "bigqueryconnection.cnrm.cloud.google.com", + Version: "v1beta1", + Kind: "BigQueryConnectionConnection", + }: { + Labels: map[string]string{ + "cnrm.cloud.google.com/managed-by-kcc": "true", + "cnrm.cloud.google.com/system": "true", + }, + }, { Group: "bigquerydatapolicy.cnrm.cloud.google.com", Version: "v1alpha1",