diff --git a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig_types.go b/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig_types.go similarity index 99% rename from pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig_types.go rename to pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig_types.go index 7303dc0550..56bbe81468 100644 --- a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig_types.go +++ b/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig_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/bigquerydatatransfer/v1alpha1/doc.go b/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/doc.go similarity index 92% rename from pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/doc.go rename to pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/doc.go index 49f5044ce1..39a5735f31 100644 --- a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/doc.go +++ b/pkg/clients/generated/apis/bigquerydatatransfer/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 bigquerydatatransfer v1alpha1 API group. +// Package v1beta1 contains API Schema definitions for the bigquerydatatransfer 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/bigquerydatatransfer // +k8s:defaulter-gen=TypeMeta // +groupName=bigquerydatatransfer.cnrm.cloud.google.com -package v1alpha1 +package v1beta1 diff --git a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/register.go b/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/register.go similarity index 93% rename from pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/register.go rename to pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/register.go index b70137f930..6a51033d0f 100644 --- a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/register.go +++ b/pkg/clients/generated/apis/bigquerydatatransfer/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 bigquerydatatransfer v1alpha1 API group. +// Package v1beta1 contains API Schema definitions for the bigquerydatatransfer 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/bigquerydatatransfer // +k8s:defaulter-gen=TypeMeta // +groupName=bigquerydatatransfer.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: "bigquerydatatransfer.cnrm.cloud.google.com", Version: "v1alpha1"} + SchemeGroupVersion = schema.GroupVersion{Group: "bigquerydatatransfer.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/bigquerydatatransfer/v1alpha1/zz_generated.deepcopy.go b/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/zz_generated.deepcopy.go similarity index 97% rename from pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/zz_generated.deepcopy.go rename to pkg/clients/generated/apis/bigquerydatatransfer/v1beta1/zz_generated.deepcopy.go index 4b64999896..9dd301035f 100644 --- a/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/clients/generated/apis/bigquerydatatransfer/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" ) @@ -129,7 +129,7 @@ func (in *BigQueryDataTransferConfigSpec) DeepCopyInto(out *BigQueryDataTransfer out.ProjectRef = in.ProjectRef if in.PubSubTopicRef != nil { in, out := &in.PubSubTopicRef, &out.PubSubTopicRef - *out = new(k8sv1alpha1.ResourceRef) + *out = new(v1alpha1.ResourceRef) **out = **in } if in.ResourceID != nil { @@ -149,7 +149,7 @@ func (in *BigQueryDataTransferConfigSpec) DeepCopyInto(out *BigQueryDataTransfer } if in.ServiceAccountRef != nil { in, out := &in.ServiceAccountRef, &out.ServiceAccountRef - *out = new(k8sv1alpha1.ResourceRef) + *out = new(v1alpha1.ResourceRef) **out = **in } return @@ -170,7 +170,7 @@ func (in *BigQueryDataTransferConfigStatus) DeepCopyInto(out *BigQueryDataTransf *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 { @@ -227,7 +227,7 @@ func (in *ConfigEncryptionConfiguration) DeepCopyInto(out *ConfigEncryptionConfi *out = *in if in.KmsKeyRef != nil { in, out := &in.KmsKeyRef, &out.KmsKeyRef - *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 ecc665b633..6665c6f6aa 100644 --- a/pkg/clients/generated/client/clientset/versioned/clientset.go +++ b/pkg/clients/generated/client/clientset/versioned/clientset.go @@ -40,7 +40,7 @@ import ( bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryanalyticshub/v1alpha1" bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatapolicy/v1alpha1" - bigquerydatatransferv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/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" bigtablev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigtable/v1beta1" billingbudgetsv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/billingbudgets/v1beta1" @@ -167,7 +167,7 @@ type Interface interface { BigqueryanalyticshubV1alpha1() bigqueryanalyticshubv1alpha1.BigqueryanalyticshubV1alpha1Interface BigqueryconnectionV1alpha1() bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Interface BigquerydatapolicyV1alpha1() bigquerydatapolicyv1alpha1.BigquerydatapolicyV1alpha1Interface - BigquerydatatransferV1alpha1() bigquerydatatransferv1alpha1.BigquerydatatransferV1alpha1Interface + BigquerydatatransferV1beta1() bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Interface BigqueryreservationV1alpha1() bigqueryreservationv1alpha1.BigqueryreservationV1alpha1Interface BigtableV1beta1() bigtablev1beta1.BigtableV1beta1Interface BillingbudgetsV1beta1() billingbudgetsv1beta1.BillingbudgetsV1beta1Interface @@ -292,7 +292,7 @@ type Clientset struct { bigqueryanalyticshubV1alpha1 *bigqueryanalyticshubv1alpha1.BigqueryanalyticshubV1alpha1Client bigqueryconnectionV1alpha1 *bigqueryconnectionv1alpha1.BigqueryconnectionV1alpha1Client bigquerydatapolicyV1alpha1 *bigquerydatapolicyv1alpha1.BigquerydatapolicyV1alpha1Client - bigquerydatatransferV1alpha1 *bigquerydatatransferv1alpha1.BigquerydatatransferV1alpha1Client + bigquerydatatransferV1beta1 *bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Client bigqueryreservationV1alpha1 *bigqueryreservationv1alpha1.BigqueryreservationV1alpha1Client bigtableV1beta1 *bigtablev1beta1.BigtableV1beta1Client billingbudgetsV1beta1 *billingbudgetsv1beta1.BillingbudgetsV1beta1Client @@ -474,9 +474,9 @@ func (c *Clientset) BigquerydatapolicyV1alpha1() bigquerydatapolicyv1alpha1.Bigq return c.bigquerydatapolicyV1alpha1 } -// BigquerydatatransferV1alpha1 retrieves the BigquerydatatransferV1alpha1Client -func (c *Clientset) BigquerydatatransferV1alpha1() bigquerydatatransferv1alpha1.BigquerydatatransferV1alpha1Interface { - return c.bigquerydatatransferV1alpha1 +// BigquerydatatransferV1beta1 retrieves the BigquerydatatransferV1beta1Client +func (c *Clientset) BigquerydatatransferV1beta1() bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Interface { + return c.bigquerydatatransferV1beta1 } // BigqueryreservationV1alpha1 retrieves the BigqueryreservationV1alpha1Client @@ -1103,7 +1103,7 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } - cs.bigquerydatatransferV1alpha1, err = bigquerydatatransferv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) + cs.bigquerydatatransferV1beta1, err = bigquerydatatransferv1beta1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err } @@ -1559,7 +1559,7 @@ func New(c rest.Interface) *Clientset { cs.bigqueryanalyticshubV1alpha1 = bigqueryanalyticshubv1alpha1.New(c) cs.bigqueryconnectionV1alpha1 = bigqueryconnectionv1alpha1.New(c) cs.bigquerydatapolicyV1alpha1 = bigquerydatapolicyv1alpha1.New(c) - cs.bigquerydatatransferV1alpha1 = bigquerydatatransferv1alpha1.New(c) + cs.bigquerydatatransferV1beta1 = bigquerydatatransferv1beta1.New(c) cs.bigqueryreservationV1alpha1 = bigqueryreservationv1alpha1.New(c) cs.bigtableV1beta1 = bigtablev1beta1.New(c) cs.billingbudgetsV1beta1 = billingbudgetsv1beta1.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 a25d1378ca..fb1b3d5440 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go @@ -53,8 +53,8 @@ import ( fakebigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryconnection/v1alpha1/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" - bigquerydatatransferv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1" - fakebigquerydatatransferv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake" + bigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1" + fakebigquerydatatransferv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake" bigqueryreservationv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryreservation/v1alpha1" fakebigqueryreservationv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigqueryreservation/v1alpha1/fake" bigtablev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigtable/v1beta1" @@ -395,9 +395,9 @@ func (c *Clientset) BigquerydatapolicyV1alpha1() bigquerydatapolicyv1alpha1.Bigq return &fakebigquerydatapolicyv1alpha1.FakeBigquerydatapolicyV1alpha1{Fake: &c.Fake} } -// BigquerydatatransferV1alpha1 retrieves the BigquerydatatransferV1alpha1Client -func (c *Clientset) BigquerydatatransferV1alpha1() bigquerydatatransferv1alpha1.BigquerydatatransferV1alpha1Interface { - return &fakebigquerydatatransferv1alpha1.FakeBigquerydatatransferV1alpha1{Fake: &c.Fake} +// BigquerydatatransferV1beta1 retrieves the BigquerydatatransferV1beta1Client +func (c *Clientset) BigquerydatatransferV1beta1() bigquerydatatransferv1beta1.BigquerydatatransferV1beta1Interface { + return &fakebigquerydatatransferv1beta1.FakeBigquerydatatransferV1beta1{Fake: &c.Fake} } // BigqueryreservationV1alpha1 retrieves the BigqueryreservationV1alpha1Client diff --git a/pkg/clients/generated/client/clientset/versioned/fake/register.go b/pkg/clients/generated/client/clientset/versioned/fake/register.go index 7d5e00d3ed..2ce4f432c0 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/register.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/register.go @@ -37,7 +37,7 @@ import ( bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1alpha1" bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatapolicy/v1alpha1" - bigquerydatatransferv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/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" bigtablev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigtable/v1beta1" billingbudgetsv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/billingbudgets/v1beta1" @@ -168,7 +168,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ bigqueryanalyticshubv1alpha1.AddToScheme, bigqueryconnectionv1alpha1.AddToScheme, bigquerydatapolicyv1alpha1.AddToScheme, - bigquerydatatransferv1alpha1.AddToScheme, + bigquerydatatransferv1beta1.AddToScheme, bigqueryreservationv1alpha1.AddToScheme, bigtablev1beta1.AddToScheme, billingbudgetsv1beta1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/scheme/register.go b/pkg/clients/generated/client/clientset/versioned/scheme/register.go index c8b4b10179..1b9a623c65 100644 --- a/pkg/clients/generated/client/clientset/versioned/scheme/register.go +++ b/pkg/clients/generated/client/clientset/versioned/scheme/register.go @@ -37,7 +37,7 @@ import ( bigqueryanalyticshubv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryanalyticshub/v1alpha1" bigqueryconnectionv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigqueryconnection/v1alpha1" bigquerydatapolicyv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatapolicy/v1alpha1" - bigquerydatatransferv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/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" bigtablev1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigtable/v1beta1" billingbudgetsv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/billingbudgets/v1beta1" @@ -168,7 +168,7 @@ var localSchemeBuilder = runtime.SchemeBuilder{ bigqueryanalyticshubv1alpha1.AddToScheme, bigqueryconnectionv1alpha1.AddToScheme, bigquerydatapolicyv1alpha1.AddToScheme, - bigquerydatatransferv1alpha1.AddToScheme, + bigquerydatatransferv1beta1.AddToScheme, bigqueryreservationv1alpha1.AddToScheme, bigtablev1beta1.AddToScheme, billingbudgetsv1beta1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransfer_client.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransfer_client.go similarity index 64% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransfer_client.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransfer_client.go index f5b7d0e5af..a668c85352 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransfer_client.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransfer_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/bigquerydatatransfer/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/v1beta1" "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type BigquerydatatransferV1alpha1Interface interface { +type BigquerydatatransferV1beta1Interface interface { RESTClient() rest.Interface BigQueryDataTransferConfigsGetter } -// BigquerydatatransferV1alpha1Client is used to interact with features provided by the bigquerydatatransfer.cnrm.cloud.google.com group. -type BigquerydatatransferV1alpha1Client struct { +// BigquerydatatransferV1beta1Client is used to interact with features provided by the bigquerydatatransfer.cnrm.cloud.google.com group. +type BigquerydatatransferV1beta1Client struct { restClient rest.Interface } -func (c *BigquerydatatransferV1alpha1Client) BigQueryDataTransferConfigs(namespace string) BigQueryDataTransferConfigInterface { +func (c *BigquerydatatransferV1beta1Client) BigQueryDataTransferConfigs(namespace string) BigQueryDataTransferConfigInterface { return newBigQueryDataTransferConfigs(c, namespace) } -// NewForConfig creates a new BigquerydatatransferV1alpha1Client for the given config. +// NewForConfig creates a new BigquerydatatransferV1beta1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*BigquerydatatransferV1alpha1Client, error) { +func NewForConfig(c *rest.Config) (*BigquerydatatransferV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -58,9 +58,9 @@ func NewForConfig(c *rest.Config) (*BigquerydatatransferV1alpha1Client, error) { return NewForConfigAndClient(&config, httpClient) } -// NewForConfigAndClient creates a new BigquerydatatransferV1alpha1Client for the given config and http client. +// NewForConfigAndClient creates a new BigquerydatatransferV1beta1Client 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) (*BigquerydatatransferV1alpha1Client, error) { +func NewForConfigAndClient(c *rest.Config, h *http.Client) (*BigquerydatatransferV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -69,12 +69,12 @@ func NewForConfigAndClient(c *rest.Config, h *http.Client) (*Bigquerydatatransfe if err != nil { return nil, err } - return &BigquerydatatransferV1alpha1Client{client}, nil + return &BigquerydatatransferV1beta1Client{client}, nil } -// NewForConfigOrDie creates a new BigquerydatatransferV1alpha1Client for the given config and +// NewForConfigOrDie creates a new BigquerydatatransferV1beta1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *BigquerydatatransferV1alpha1Client { +func NewForConfigOrDie(c *rest.Config) *BigquerydatatransferV1beta1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -82,13 +82,13 @@ func NewForConfigOrDie(c *rest.Config) *BigquerydatatransferV1alpha1Client { return client } -// New creates a new BigquerydatatransferV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *BigquerydatatransferV1alpha1Client { - return &BigquerydatatransferV1alpha1Client{c} +// New creates a new BigquerydatatransferV1beta1Client for the given RESTClient. +func New(c rest.Interface) *BigquerydatatransferV1beta1Client { + return &BigquerydatatransferV1beta1Client{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 *BigquerydatatransferV1alpha1Client) RESTClient() rest.Interface { +func (c *BigquerydatatransferV1beta1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig.go similarity index 77% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig.go index 6e645afb90..17fe9324d1 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/bigquerydatatransferconfig.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig.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/bigquerydatatransfer/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/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 BigQueryDataTransferConfigsGetter interface { // BigQueryDataTransferConfigInterface has methods to work with BigQueryDataTransferConfig resources. type BigQueryDataTransferConfigInterface interface { - Create(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.CreateOptions) (*v1alpha1.BigQueryDataTransferConfig, error) - Update(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1alpha1.BigQueryDataTransferConfig, error) - UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1alpha1.BigQueryDataTransferConfig, error) + Create(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.CreateOptions) (*v1beta1.BigQueryDataTransferConfig, error) + Update(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1beta1.BigQueryDataTransferConfig, error) + UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1beta1.BigQueryDataTransferConfig, 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.BigQueryDataTransferConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.BigQueryDataTransferConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.BigQueryDataTransferConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.BigQueryDataTransferConfigList, 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.BigQueryDataTransferConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryDataTransferConfig, err error) BigQueryDataTransferConfigExpansion } @@ -60,7 +60,7 @@ type bigQueryDataTransferConfigs struct { } // newBigQueryDataTransferConfigs returns a BigQueryDataTransferConfigs -func newBigQueryDataTransferConfigs(c *BigquerydatatransferV1alpha1Client, namespace string) *bigQueryDataTransferConfigs { +func newBigQueryDataTransferConfigs(c *BigquerydatatransferV1beta1Client, namespace string) *bigQueryDataTransferConfigs { return &bigQueryDataTransferConfigs{ client: c.RESTClient(), ns: namespace, @@ -68,8 +68,8 @@ func newBigQueryDataTransferConfigs(c *BigquerydatatransferV1alpha1Client, names } // Get takes name of the bigQueryDataTransferConfig, and returns the corresponding bigQueryDataTransferConfig object, and an error if there is any. -func (c *bigQueryDataTransferConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { - result = &v1alpha1.BigQueryDataTransferConfig{} +func (c *bigQueryDataTransferConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { + result = &v1beta1.BigQueryDataTransferConfig{} err = c.client.Get(). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). @@ -81,12 +81,12 @@ func (c *bigQueryDataTransferConfigs) Get(ctx context.Context, name string, opti } // List takes label and field selectors, and returns the list of BigQueryDataTransferConfigs that match those selectors. -func (c *bigQueryDataTransferConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BigQueryDataTransferConfigList, err error) { +func (c *bigQueryDataTransferConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryDataTransferConfigList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha1.BigQueryDataTransferConfigList{} + result = &v1beta1.BigQueryDataTransferConfigList{} err = c.client.Get(). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). @@ -113,8 +113,8 @@ func (c *bigQueryDataTransferConfigs) Watch(ctx context.Context, opts v1.ListOpt } // Create takes the representation of a bigQueryDataTransferConfig and creates it. Returns the server's representation of the bigQueryDataTransferConfig, and an error, if there is any. -func (c *bigQueryDataTransferConfigs) Create(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.CreateOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { - result = &v1alpha1.BigQueryDataTransferConfig{} +func (c *bigQueryDataTransferConfigs) Create(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.CreateOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { + result = &v1beta1.BigQueryDataTransferConfig{} err = c.client.Post(). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). @@ -126,8 +126,8 @@ func (c *bigQueryDataTransferConfigs) Create(ctx context.Context, bigQueryDataTr } // Update takes the representation of a bigQueryDataTransferConfig and updates it. Returns the server's representation of the bigQueryDataTransferConfig, and an error, if there is any. -func (c *bigQueryDataTransferConfigs) Update(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { - result = &v1alpha1.BigQueryDataTransferConfig{} +func (c *bigQueryDataTransferConfigs) Update(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { + result = &v1beta1.BigQueryDataTransferConfig{} err = c.client.Put(). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). @@ -141,8 +141,8 @@ func (c *bigQueryDataTransferConfigs) Update(ctx context.Context, bigQueryDataTr // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *bigQueryDataTransferConfigs) UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { - result = &v1alpha1.BigQueryDataTransferConfig{} +func (c *bigQueryDataTransferConfigs) UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { + result = &v1beta1.BigQueryDataTransferConfig{} err = c.client.Put(). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). @@ -183,8 +183,8 @@ func (c *bigQueryDataTransferConfigs) DeleteCollection(ctx context.Context, opts } // Patch applies the patch and returns the patched bigQueryDataTransferConfig. -func (c *bigQueryDataTransferConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BigQueryDataTransferConfig, err error) { - result = &v1alpha1.BigQueryDataTransferConfig{} +func (c *bigQueryDataTransferConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryDataTransferConfig, err error) { + result = &v1beta1.BigQueryDataTransferConfig{} err = c.client.Patch(pt). Namespace(c.ns). Resource("bigquerydatatransferconfigs"). diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/doc.go similarity index 98% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/doc.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/doc.go index d3dac805d0..41dbecdb4a 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/doc.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/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/bigquerydatatransfer/v1alpha1/fake/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/doc.go similarity index 100% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/doc.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/doc.go diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransfer_client.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransfer_client.go similarity index 74% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransfer_client.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransfer_client.go index de46d68d29..133ccf50f2 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransfer_client.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransfer_client.go @@ -22,22 +22,22 @@ package fake import ( - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeBigquerydatatransferV1alpha1 struct { +type FakeBigquerydatatransferV1beta1 struct { *testing.Fake } -func (c *FakeBigquerydatatransferV1alpha1) BigQueryDataTransferConfigs(namespace string) v1alpha1.BigQueryDataTransferConfigInterface { +func (c *FakeBigquerydatatransferV1beta1) BigQueryDataTransferConfigs(namespace string) v1beta1.BigQueryDataTransferConfigInterface { return &FakeBigQueryDataTransferConfigs{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeBigquerydatatransferV1alpha1) RESTClient() rest.Interface { +func (c *FakeBigquerydatatransferV1beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransferconfig.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransferconfig.go similarity index 67% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransferconfig.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransferconfig.go index d229e72736..485eaf0187 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/fake/fake_bigquerydatatransferconfig.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/fake/fake_bigquerydatatransferconfig.go @@ -24,7 +24,7 @@ package fake import ( "context" - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/v1alpha1" + v1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/bigquerydatatransfer/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 ( // FakeBigQueryDataTransferConfigs implements BigQueryDataTransferConfigInterface type FakeBigQueryDataTransferConfigs struct { - Fake *FakeBigquerydatatransferV1alpha1 + Fake *FakeBigquerydatatransferV1beta1 ns string } -var bigquerydatatransferconfigsResource = v1alpha1.SchemeGroupVersion.WithResource("bigquerydatatransferconfigs") +var bigquerydatatransferconfigsResource = v1beta1.SchemeGroupVersion.WithResource("bigquerydatatransferconfigs") -var bigquerydatatransferconfigsKind = v1alpha1.SchemeGroupVersion.WithKind("BigQueryDataTransferConfig") +var bigquerydatatransferconfigsKind = v1beta1.SchemeGroupVersion.WithKind("BigQueryDataTransferConfig") // Get takes name of the bigQueryDataTransferConfig, and returns the corresponding bigQueryDataTransferConfig object, and an error if there is any. -func (c *FakeBigQueryDataTransferConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { +func (c *FakeBigQueryDataTransferConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(bigquerydatatransferconfigsResource, c.ns, name), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewGetAction(bigquerydatatransferconfigsResource, c.ns, name), &v1beta1.BigQueryDataTransferConfig{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryDataTransferConfig), err + return obj.(*v1beta1.BigQueryDataTransferConfig), err } // List takes label and field selectors, and returns the list of BigQueryDataTransferConfigs that match those selectors. -func (c *FakeBigQueryDataTransferConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BigQueryDataTransferConfigList, err error) { +func (c *FakeBigQueryDataTransferConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryDataTransferConfigList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(bigquerydatatransferconfigsResource, bigquerydatatransferconfigsKind, c.ns, opts), &v1alpha1.BigQueryDataTransferConfigList{}) + Invokes(testing.NewListAction(bigquerydatatransferconfigsResource, bigquerydatatransferconfigsKind, c.ns, opts), &v1beta1.BigQueryDataTransferConfigList{}) if obj == nil { return nil, err @@ -66,8 +66,8 @@ func (c *FakeBigQueryDataTransferConfigs) List(ctx context.Context, opts v1.List if label == nil { label = labels.Everything() } - list := &v1alpha1.BigQueryDataTransferConfigList{ListMeta: obj.(*v1alpha1.BigQueryDataTransferConfigList).ListMeta} - for _, item := range obj.(*v1alpha1.BigQueryDataTransferConfigList).Items { + list := &v1beta1.BigQueryDataTransferConfigList{ListMeta: obj.(*v1beta1.BigQueryDataTransferConfigList).ListMeta} + for _, item := range obj.(*v1beta1.BigQueryDataTransferConfigList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -83,43 +83,43 @@ func (c *FakeBigQueryDataTransferConfigs) Watch(ctx context.Context, opts v1.Lis } // Create takes the representation of a bigQueryDataTransferConfig and creates it. Returns the server's representation of the bigQueryDataTransferConfig, and an error, if there is any. -func (c *FakeBigQueryDataTransferConfigs) Create(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.CreateOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { +func (c *FakeBigQueryDataTransferConfigs) Create(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.CreateOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(bigquerydatatransferconfigsResource, c.ns, bigQueryDataTransferConfig), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewCreateAction(bigquerydatatransferconfigsResource, c.ns, bigQueryDataTransferConfig), &v1beta1.BigQueryDataTransferConfig{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryDataTransferConfig), err + return obj.(*v1beta1.BigQueryDataTransferConfig), err } // Update takes the representation of a bigQueryDataTransferConfig and updates it. Returns the server's representation of the bigQueryDataTransferConfig, and an error, if there is any. -func (c *FakeBigQueryDataTransferConfigs) Update(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1alpha1.BigQueryDataTransferConfig, err error) { +func (c *FakeBigQueryDataTransferConfigs) Update(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (result *v1beta1.BigQueryDataTransferConfig, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(bigquerydatatransferconfigsResource, c.ns, bigQueryDataTransferConfig), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewUpdateAction(bigquerydatatransferconfigsResource, c.ns, bigQueryDataTransferConfig), &v1beta1.BigQueryDataTransferConfig{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryDataTransferConfig), err + return obj.(*v1beta1.BigQueryDataTransferConfig), 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 *FakeBigQueryDataTransferConfigs) UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1alpha1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1alpha1.BigQueryDataTransferConfig, error) { +func (c *FakeBigQueryDataTransferConfigs) UpdateStatus(ctx context.Context, bigQueryDataTransferConfig *v1beta1.BigQueryDataTransferConfig, opts v1.UpdateOptions) (*v1beta1.BigQueryDataTransferConfig, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(bigquerydatatransferconfigsResource, "status", c.ns, bigQueryDataTransferConfig), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewUpdateSubresourceAction(bigquerydatatransferconfigsResource, "status", c.ns, bigQueryDataTransferConfig), &v1beta1.BigQueryDataTransferConfig{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryDataTransferConfig), err + return obj.(*v1beta1.BigQueryDataTransferConfig), err } // Delete takes name of the bigQueryDataTransferConfig and deletes it. Returns an error if one occurs. func (c *FakeBigQueryDataTransferConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(bigquerydatatransferconfigsResource, c.ns, name, opts), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewDeleteActionWithOptions(bigquerydatatransferconfigsResource, c.ns, name, opts), &v1beta1.BigQueryDataTransferConfig{}) return err } @@ -128,17 +128,17 @@ func (c *FakeBigQueryDataTransferConfigs) Delete(ctx context.Context, name strin func (c *FakeBigQueryDataTransferConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(bigquerydatatransferconfigsResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha1.BigQueryDataTransferConfigList{}) + _, err := c.Fake.Invokes(action, &v1beta1.BigQueryDataTransferConfigList{}) return err } // Patch applies the patch and returns the patched bigQueryDataTransferConfig. -func (c *FakeBigQueryDataTransferConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.BigQueryDataTransferConfig, err error) { +func (c *FakeBigQueryDataTransferConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.BigQueryDataTransferConfig, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(bigquerydatatransferconfigsResource, c.ns, name, pt, data, subresources...), &v1alpha1.BigQueryDataTransferConfig{}) + Invokes(testing.NewPatchSubresourceAction(bigquerydatatransferconfigsResource, c.ns, name, pt, data, subresources...), &v1beta1.BigQueryDataTransferConfig{}) if obj == nil { return nil, err } - return obj.(*v1alpha1.BigQueryDataTransferConfig), err + return obj.(*v1beta1.BigQueryDataTransferConfig), err } diff --git a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/generated_expansion.go b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/generated_expansion.go similarity index 98% rename from pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/generated_expansion.go rename to pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/generated_expansion.go index 5ca878b12a..819c7724e3 100644 --- a/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1alpha1/generated_expansion.go +++ b/pkg/clients/generated/client/clientset/versioned/typed/bigquerydatatransfer/v1beta1/generated_expansion.go @@ -19,6 +19,6 @@ // Code generated by client-gen. DO NOT EDIT. -package v1alpha1 +package v1beta1 type BigQueryDataTransferConfigExpansion interface{} diff --git a/pkg/gvks/supportedgvks/gvks_generated.go b/pkg/gvks/supportedgvks/gvks_generated.go index a460cadb9e..62b8eeb9c1 100644 --- a/pkg/gvks/supportedgvks/gvks_generated.go +++ b/pkg/gvks/supportedgvks/gvks_generated.go @@ -544,6 +544,16 @@ var SupportedGVKs = map[schema.GroupVersionKind]GVKMetadata{ "cnrm.cloud.google.com/system": "true", }, }, + { + Group: "bigquerydatatransfer.cnrm.cloud.google.com", + Version: "v1beta1", + Kind: "BigQueryDataTransferConfig", + }: { + Labels: map[string]string{ + "cnrm.cloud.google.com/managed-by-kcc": "true", + "cnrm.cloud.google.com/system": "true", + }, + }, { Group: "bigquery.cnrm.cloud.google.com", Version: "v1beta1",