diff --git a/client/cluster/v3/zz_generated_api_service.go b/client/cluster/v3/zz_generated_api_service.go index ceae702c..36350c74 100644 --- a/client/cluster/v3/zz_generated_api_service.go +++ b/client/cluster/v3/zz_generated_api_service.go @@ -62,6 +62,7 @@ type APIServiceClient struct { type APIServiceOperations interface { List(opts *types.ListOpts) (*APIServiceCollection, error) + ListAll(opts *types.ListOpts) (*APIServiceCollection, error) Create(opts *APIService) (*APIService, error) Update(existing *APIService, updates interface{}) (*APIService, error) Replace(existing *APIService) (*APIService, error) @@ -100,6 +101,23 @@ func (c *APIServiceClient) List(opts *types.ListOpts) (*APIServiceCollection, er return resp, err } +func (c *APIServiceClient) ListAll(opts *types.ListOpts) (*APIServiceCollection, error) { + resp := &APIServiceCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *APIServiceCollection) Next() (*APIServiceCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &APIServiceCollection{} diff --git a/client/cluster/v3/zz_generated_namespace.go b/client/cluster/v3/zz_generated_namespace.go index 84455b72..cb74ee36 100644 --- a/client/cluster/v3/zz_generated_namespace.go +++ b/client/cluster/v3/zz_generated_namespace.go @@ -54,6 +54,7 @@ type NamespaceClient struct { type NamespaceOperations interface { List(opts *types.ListOpts) (*NamespaceCollection, error) + ListAll(opts *types.ListOpts) (*NamespaceCollection, error) Create(opts *Namespace) (*Namespace, error) Update(existing *Namespace, updates interface{}) (*Namespace, error) Replace(existing *Namespace) (*Namespace, error) @@ -94,6 +95,23 @@ func (c *NamespaceClient) List(opts *types.ListOpts) (*NamespaceCollection, erro return resp, err } +func (c *NamespaceClient) ListAll(opts *types.ListOpts) (*NamespaceCollection, error) { + resp := &NamespaceCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespaceCollection) Next() (*NamespaceCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespaceCollection{} diff --git a/client/cluster/v3/zz_generated_persistent_volume.go b/client/cluster/v3/zz_generated_persistent_volume.go index 8b545af5..fb4ea591 100644 --- a/client/cluster/v3/zz_generated_persistent_volume.go +++ b/client/cluster/v3/zz_generated_persistent_volume.go @@ -110,6 +110,7 @@ type PersistentVolumeClient struct { type PersistentVolumeOperations interface { List(opts *types.ListOpts) (*PersistentVolumeCollection, error) + ListAll(opts *types.ListOpts) (*PersistentVolumeCollection, error) Create(opts *PersistentVolume) (*PersistentVolume, error) Update(existing *PersistentVolume, updates interface{}) (*PersistentVolume, error) Replace(existing *PersistentVolume) (*PersistentVolume, error) @@ -148,6 +149,23 @@ func (c *PersistentVolumeClient) List(opts *types.ListOpts) (*PersistentVolumeCo return resp, err } +func (c *PersistentVolumeClient) ListAll(opts *types.ListOpts) (*PersistentVolumeCollection, error) { + resp := &PersistentVolumeCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PersistentVolumeCollection) Next() (*PersistentVolumeCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PersistentVolumeCollection{} diff --git a/client/cluster/v3/zz_generated_storage_class.go b/client/cluster/v3/zz_generated_storage_class.go index 9bc894e0..9776904f 100644 --- a/client/cluster/v3/zz_generated_storage_class.go +++ b/client/cluster/v3/zz_generated_storage_class.go @@ -56,6 +56,7 @@ type StorageClassClient struct { type StorageClassOperations interface { List(opts *types.ListOpts) (*StorageClassCollection, error) + ListAll(opts *types.ListOpts) (*StorageClassCollection, error) Create(opts *StorageClass) (*StorageClass, error) Update(existing *StorageClass, updates interface{}) (*StorageClass, error) Replace(existing *StorageClass) (*StorageClass, error) @@ -94,6 +95,23 @@ func (c *StorageClassClient) List(opts *types.ListOpts) (*StorageClassCollection return resp, err } +func (c *StorageClassClient) ListAll(opts *types.ListOpts) (*StorageClassCollection, error) { + resp := &StorageClassCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *StorageClassCollection) Next() (*StorageClassCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &StorageClassCollection{} diff --git a/client/management/v3/zz_generated_auth_config.go b/client/management/v3/zz_generated_auth_config.go index 74a1130f..0879056c 100644 --- a/client/management/v3/zz_generated_auth_config.go +++ b/client/management/v3/zz_generated_auth_config.go @@ -48,6 +48,7 @@ type AuthConfigClient struct { type AuthConfigOperations interface { List(opts *types.ListOpts) (*AuthConfigCollection, error) + ListAll(opts *types.ListOpts) (*AuthConfigCollection, error) Create(opts *AuthConfig) (*AuthConfig, error) Update(existing *AuthConfig, updates interface{}) (*AuthConfig, error) Replace(existing *AuthConfig) (*AuthConfig, error) @@ -86,6 +87,23 @@ func (c *AuthConfigClient) List(opts *types.ListOpts) (*AuthConfigCollection, er return resp, err } +func (c *AuthConfigClient) ListAll(opts *types.ListOpts) (*AuthConfigCollection, error) { + resp := &AuthConfigCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *AuthConfigCollection) Next() (*AuthConfigCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &AuthConfigCollection{} diff --git a/client/management/v3/zz_generated_catalog.go b/client/management/v3/zz_generated_catalog.go index b640b960..0fbc9252 100644 --- a/client/management/v3/zz_generated_catalog.go +++ b/client/management/v3/zz_generated_catalog.go @@ -64,6 +64,7 @@ type CatalogClient struct { type CatalogOperations interface { List(opts *types.ListOpts) (*CatalogCollection, error) + ListAll(opts *types.ListOpts) (*CatalogCollection, error) Create(opts *Catalog) (*Catalog, error) Update(existing *Catalog, updates interface{}) (*Catalog, error) Replace(existing *Catalog) (*Catalog, error) @@ -106,6 +107,23 @@ func (c *CatalogClient) List(opts *types.ListOpts) (*CatalogCollection, error) { return resp, err } +func (c *CatalogClient) ListAll(opts *types.ListOpts) (*CatalogCollection, error) { + resp := &CatalogCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CatalogCollection) Next() (*CatalogCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CatalogCollection{} diff --git a/client/management/v3/zz_generated_catalog_template.go b/client/management/v3/zz_generated_catalog_template.go index af75f63e..c588ae45 100644 --- a/client/management/v3/zz_generated_catalog_template.go +++ b/client/management/v3/zz_generated_catalog_template.go @@ -88,6 +88,7 @@ type CatalogTemplateClient struct { type CatalogTemplateOperations interface { List(opts *types.ListOpts) (*CatalogTemplateCollection, error) + ListAll(opts *types.ListOpts) (*CatalogTemplateCollection, error) Create(opts *CatalogTemplate) (*CatalogTemplate, error) Update(existing *CatalogTemplate, updates interface{}) (*CatalogTemplate, error) Replace(existing *CatalogTemplate) (*CatalogTemplate, error) @@ -126,6 +127,23 @@ func (c *CatalogTemplateClient) List(opts *types.ListOpts) (*CatalogTemplateColl return resp, err } +func (c *CatalogTemplateClient) ListAll(opts *types.ListOpts) (*CatalogTemplateCollection, error) { + resp := &CatalogTemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CatalogTemplateCollection) Next() (*CatalogTemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CatalogTemplateCollection{} diff --git a/client/management/v3/zz_generated_catalog_template_version.go b/client/management/v3/zz_generated_catalog_template_version.go index 259e398b..3195d780 100644 --- a/client/management/v3/zz_generated_catalog_template_version.go +++ b/client/management/v3/zz_generated_catalog_template_version.go @@ -80,6 +80,7 @@ type CatalogTemplateVersionClient struct { type CatalogTemplateVersionOperations interface { List(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error) + ListAll(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error) Create(opts *CatalogTemplateVersion) (*CatalogTemplateVersion, error) Update(existing *CatalogTemplateVersion, updates interface{}) (*CatalogTemplateVersion, error) Replace(existing *CatalogTemplateVersion) (*CatalogTemplateVersion, error) @@ -118,6 +119,23 @@ func (c *CatalogTemplateVersionClient) List(opts *types.ListOpts) (*CatalogTempl return resp, err } +func (c *CatalogTemplateVersionClient) ListAll(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error) { + resp := &CatalogTemplateVersionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CatalogTemplateVersionCollection) Next() (*CatalogTemplateVersionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CatalogTemplateVersionCollection{} diff --git a/client/management/v3/zz_generated_cis_benchmark_version.go b/client/management/v3/zz_generated_cis_benchmark_version.go index 17b1b390..9ef7a5a0 100644 --- a/client/management/v3/zz_generated_cis_benchmark_version.go +++ b/client/management/v3/zz_generated_cis_benchmark_version.go @@ -42,6 +42,7 @@ type CisBenchmarkVersionClient struct { type CisBenchmarkVersionOperations interface { List(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error) + ListAll(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error) Create(opts *CisBenchmarkVersion) (*CisBenchmarkVersion, error) Update(existing *CisBenchmarkVersion, updates interface{}) (*CisBenchmarkVersion, error) Replace(existing *CisBenchmarkVersion) (*CisBenchmarkVersion, error) @@ -80,6 +81,23 @@ func (c *CisBenchmarkVersionClient) List(opts *types.ListOpts) (*CisBenchmarkVer return resp, err } +func (c *CisBenchmarkVersionClient) ListAll(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error) { + resp := &CisBenchmarkVersionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CisBenchmarkVersionCollection) Next() (*CisBenchmarkVersionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CisBenchmarkVersionCollection{} diff --git a/client/management/v3/zz_generated_cis_config.go b/client/management/v3/zz_generated_cis_config.go index 5cb6b23e..79a890cb 100644 --- a/client/management/v3/zz_generated_cis_config.go +++ b/client/management/v3/zz_generated_cis_config.go @@ -42,6 +42,7 @@ type CisConfigClient struct { type CisConfigOperations interface { List(opts *types.ListOpts) (*CisConfigCollection, error) + ListAll(opts *types.ListOpts) (*CisConfigCollection, error) Create(opts *CisConfig) (*CisConfig, error) Update(existing *CisConfig, updates interface{}) (*CisConfig, error) Replace(existing *CisConfig) (*CisConfig, error) @@ -80,6 +81,23 @@ func (c *CisConfigClient) List(opts *types.ListOpts) (*CisConfigCollection, erro return resp, err } +func (c *CisConfigClient) ListAll(opts *types.ListOpts) (*CisConfigCollection, error) { + resp := &CisConfigCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CisConfigCollection) Next() (*CisConfigCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CisConfigCollection{} diff --git a/client/management/v3/zz_generated_cloud_credential.go b/client/management/v3/zz_generated_cloud_credential.go index 3b4d7173..c1e8f784 100644 --- a/client/management/v3/zz_generated_cloud_credential.go +++ b/client/management/v3/zz_generated_cloud_credential.go @@ -42,6 +42,7 @@ type CloudCredentialClient struct { type CloudCredentialOperations interface { List(opts *types.ListOpts) (*CloudCredentialCollection, error) + ListAll(opts *types.ListOpts) (*CloudCredentialCollection, error) Create(opts *CloudCredential) (*CloudCredential, error) Update(existing *CloudCredential, updates interface{}) (*CloudCredential, error) Replace(existing *CloudCredential) (*CloudCredential, error) @@ -80,6 +81,23 @@ func (c *CloudCredentialClient) List(opts *types.ListOpts) (*CloudCredentialColl return resp, err } +func (c *CloudCredentialClient) ListAll(opts *types.ListOpts) (*CloudCredentialCollection, error) { + resp := &CloudCredentialCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CloudCredentialCollection) Next() (*CloudCredentialCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CloudCredentialCollection{} diff --git a/client/management/v3/zz_generated_cluster.go b/client/management/v3/zz_generated_cluster.go index e04a975f..1c9a5706 100644 --- a/client/management/v3/zz_generated_cluster.go +++ b/client/management/v3/zz_generated_cluster.go @@ -126,6 +126,7 @@ type ClusterClient struct { type ClusterOperations interface { List(opts *types.ListOpts) (*ClusterCollection, error) + ListAll(opts *types.ListOpts) (*ClusterCollection, error) Create(opts *Cluster) (*Cluster, error) Update(existing *Cluster, updates interface{}) (*Cluster, error) Replace(existing *Cluster) (*Cluster, error) @@ -188,6 +189,23 @@ func (c *ClusterClient) List(opts *types.ListOpts) (*ClusterCollection, error) { return resp, err } +func (c *ClusterClient) ListAll(opts *types.ListOpts) (*ClusterCollection, error) { + resp := &ClusterCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterCollection) Next() (*ClusterCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterCollection{} diff --git a/client/management/v3/zz_generated_cluster_alert.go b/client/management/v3/zz_generated_cluster_alert.go index 59d8bd16..9bfcc5a4 100644 --- a/client/management/v3/zz_generated_cluster_alert.go +++ b/client/management/v3/zz_generated_cluster_alert.go @@ -70,6 +70,7 @@ type ClusterAlertClient struct { type ClusterAlertOperations interface { List(opts *types.ListOpts) (*ClusterAlertCollection, error) + ListAll(opts *types.ListOpts) (*ClusterAlertCollection, error) Create(opts *ClusterAlert) (*ClusterAlert, error) Update(existing *ClusterAlert, updates interface{}) (*ClusterAlert, error) Replace(existing *ClusterAlert) (*ClusterAlert, error) @@ -108,6 +109,23 @@ func (c *ClusterAlertClient) List(opts *types.ListOpts) (*ClusterAlertCollection return resp, err } +func (c *ClusterAlertClient) ListAll(opts *types.ListOpts) (*ClusterAlertCollection, error) { + resp := &ClusterAlertCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterAlertCollection) Next() (*ClusterAlertCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterAlertCollection{} diff --git a/client/management/v3/zz_generated_cluster_alert_group.go b/client/management/v3/zz_generated_cluster_alert_group.go index 7e741883..2544aff7 100644 --- a/client/management/v3/zz_generated_cluster_alert_group.go +++ b/client/management/v3/zz_generated_cluster_alert_group.go @@ -62,6 +62,7 @@ type ClusterAlertGroupClient struct { type ClusterAlertGroupOperations interface { List(opts *types.ListOpts) (*ClusterAlertGroupCollection, error) + ListAll(opts *types.ListOpts) (*ClusterAlertGroupCollection, error) Create(opts *ClusterAlertGroup) (*ClusterAlertGroup, error) Update(existing *ClusterAlertGroup, updates interface{}) (*ClusterAlertGroup, error) Replace(existing *ClusterAlertGroup) (*ClusterAlertGroup, error) @@ -100,6 +101,23 @@ func (c *ClusterAlertGroupClient) List(opts *types.ListOpts) (*ClusterAlertGroup return resp, err } +func (c *ClusterAlertGroupClient) ListAll(opts *types.ListOpts) (*ClusterAlertGroupCollection, error) { + resp := &ClusterAlertGroupCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterAlertGroupCollection) Next() (*ClusterAlertGroupCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterAlertGroupCollection{} diff --git a/client/management/v3/zz_generated_cluster_alert_rule.go b/client/management/v3/zz_generated_cluster_alert_rule.go index 7ea8bad7..d4aa9879 100644 --- a/client/management/v3/zz_generated_cluster_alert_rule.go +++ b/client/management/v3/zz_generated_cluster_alert_rule.go @@ -72,6 +72,7 @@ type ClusterAlertRuleClient struct { type ClusterAlertRuleOperations interface { List(opts *types.ListOpts) (*ClusterAlertRuleCollection, error) + ListAll(opts *types.ListOpts) (*ClusterAlertRuleCollection, error) Create(opts *ClusterAlertRule) (*ClusterAlertRule, error) Update(existing *ClusterAlertRule, updates interface{}) (*ClusterAlertRule, error) Replace(existing *ClusterAlertRule) (*ClusterAlertRule, error) @@ -118,6 +119,23 @@ func (c *ClusterAlertRuleClient) List(opts *types.ListOpts) (*ClusterAlertRuleCo return resp, err } +func (c *ClusterAlertRuleClient) ListAll(opts *types.ListOpts) (*ClusterAlertRuleCollection, error) { + resp := &ClusterAlertRuleCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterAlertRuleCollection) Next() (*ClusterAlertRuleCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterAlertRuleCollection{} diff --git a/client/management/v3/zz_generated_cluster_catalog.go b/client/management/v3/zz_generated_cluster_catalog.go index 7cac27e3..305e0f5c 100644 --- a/client/management/v3/zz_generated_cluster_catalog.go +++ b/client/management/v3/zz_generated_cluster_catalog.go @@ -68,6 +68,7 @@ type ClusterCatalogClient struct { type ClusterCatalogOperations interface { List(opts *types.ListOpts) (*ClusterCatalogCollection, error) + ListAll(opts *types.ListOpts) (*ClusterCatalogCollection, error) Create(opts *ClusterCatalog) (*ClusterCatalog, error) Update(existing *ClusterCatalog, updates interface{}) (*ClusterCatalog, error) Replace(existing *ClusterCatalog) (*ClusterCatalog, error) @@ -110,6 +111,23 @@ func (c *ClusterCatalogClient) List(opts *types.ListOpts) (*ClusterCatalogCollec return resp, err } +func (c *ClusterCatalogClient) ListAll(opts *types.ListOpts) (*ClusterCatalogCollection, error) { + resp := &ClusterCatalogCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterCatalogCollection) Next() (*ClusterCatalogCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterCatalogCollection{} diff --git a/client/management/v3/zz_generated_cluster_logging.go b/client/management/v3/zz_generated_cluster_logging.go index 491bc27a..9a572240 100644 --- a/client/management/v3/zz_generated_cluster_logging.go +++ b/client/management/v3/zz_generated_cluster_logging.go @@ -76,6 +76,7 @@ type ClusterLoggingClient struct { type ClusterLoggingOperations interface { List(opts *types.ListOpts) (*ClusterLoggingCollection, error) + ListAll(opts *types.ListOpts) (*ClusterLoggingCollection, error) Create(opts *ClusterLogging) (*ClusterLogging, error) Update(existing *ClusterLogging, updates interface{}) (*ClusterLogging, error) Replace(existing *ClusterLogging) (*ClusterLogging, error) @@ -118,6 +119,23 @@ func (c *ClusterLoggingClient) List(opts *types.ListOpts) (*ClusterLoggingCollec return resp, err } +func (c *ClusterLoggingClient) ListAll(opts *types.ListOpts) (*ClusterLoggingCollection, error) { + resp := &ClusterLoggingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterLoggingCollection) Next() (*ClusterLoggingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterLoggingCollection{} diff --git a/client/management/v3/zz_generated_cluster_monitor_graph.go b/client/management/v3/zz_generated_cluster_monitor_graph.go index 4d32e140..e04cfd30 100644 --- a/client/management/v3/zz_generated_cluster_monitor_graph.go +++ b/client/management/v3/zz_generated_cluster_monitor_graph.go @@ -60,6 +60,7 @@ type ClusterMonitorGraphClient struct { type ClusterMonitorGraphOperations interface { List(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error) + ListAll(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error) Create(opts *ClusterMonitorGraph) (*ClusterMonitorGraph, error) Update(existing *ClusterMonitorGraph, updates interface{}) (*ClusterMonitorGraph, error) Replace(existing *ClusterMonitorGraph) (*ClusterMonitorGraph, error) @@ -100,6 +101,23 @@ func (c *ClusterMonitorGraphClient) List(opts *types.ListOpts) (*ClusterMonitorG return resp, err } +func (c *ClusterMonitorGraphClient) ListAll(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error) { + resp := &ClusterMonitorGraphCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterMonitorGraphCollection) Next() (*ClusterMonitorGraphCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterMonitorGraphCollection{} diff --git a/client/management/v3/zz_generated_cluster_registration_token.go b/client/management/v3/zz_generated_cluster_registration_token.go index cbff8136..a4b14383 100644 --- a/client/management/v3/zz_generated_cluster_registration_token.go +++ b/client/management/v3/zz_generated_cluster_registration_token.go @@ -62,6 +62,7 @@ type ClusterRegistrationTokenClient struct { type ClusterRegistrationTokenOperations interface { List(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error) + ListAll(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error) Create(opts *ClusterRegistrationToken) (*ClusterRegistrationToken, error) Update(existing *ClusterRegistrationToken, updates interface{}) (*ClusterRegistrationToken, error) Replace(existing *ClusterRegistrationToken) (*ClusterRegistrationToken, error) @@ -100,6 +101,23 @@ func (c *ClusterRegistrationTokenClient) List(opts *types.ListOpts) (*ClusterReg return resp, err } +func (c *ClusterRegistrationTokenClient) ListAll(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error) { + resp := &ClusterRegistrationTokenCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterRegistrationTokenCollection) Next() (*ClusterRegistrationTokenCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterRegistrationTokenCollection{} diff --git a/client/management/v3/zz_generated_cluster_role_template_binding.go b/client/management/v3/zz_generated_cluster_role_template_binding.go index 5f3bd6f9..cf12b434 100644 --- a/client/management/v3/zz_generated_cluster_role_template_binding.go +++ b/client/management/v3/zz_generated_cluster_role_template_binding.go @@ -54,6 +54,7 @@ type ClusterRoleTemplateBindingClient struct { type ClusterRoleTemplateBindingOperations interface { List(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error) + ListAll(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error) Create(opts *ClusterRoleTemplateBinding) (*ClusterRoleTemplateBinding, error) Update(existing *ClusterRoleTemplateBinding, updates interface{}) (*ClusterRoleTemplateBinding, error) Replace(existing *ClusterRoleTemplateBinding) (*ClusterRoleTemplateBinding, error) @@ -92,6 +93,23 @@ func (c *ClusterRoleTemplateBindingClient) List(opts *types.ListOpts) (*ClusterR return resp, err } +func (c *ClusterRoleTemplateBindingClient) ListAll(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error) { + resp := &ClusterRoleTemplateBindingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterRoleTemplateBindingCollection) Next() (*ClusterRoleTemplateBindingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterRoleTemplateBindingCollection{} diff --git a/client/management/v3/zz_generated_cluster_scan.go b/client/management/v3/zz_generated_cluster_scan.go index f95de692..7829bac1 100644 --- a/client/management/v3/zz_generated_cluster_scan.go +++ b/client/management/v3/zz_generated_cluster_scan.go @@ -58,6 +58,7 @@ type ClusterScanClient struct { type ClusterScanOperations interface { List(opts *types.ListOpts) (*ClusterScanCollection, error) + ListAll(opts *types.ListOpts) (*ClusterScanCollection, error) Create(opts *ClusterScan) (*ClusterScan, error) Update(existing *ClusterScan, updates interface{}) (*ClusterScan, error) Replace(existing *ClusterScan) (*ClusterScan, error) @@ -96,6 +97,23 @@ func (c *ClusterScanClient) List(opts *types.ListOpts) (*ClusterScanCollection, return resp, err } +func (c *ClusterScanClient) ListAll(opts *types.ListOpts) (*ClusterScanCollection, error) { + resp := &ClusterScanCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterScanCollection) Next() (*ClusterScanCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterScanCollection{} diff --git a/client/management/v3/zz_generated_cluster_template.go b/client/management/v3/zz_generated_cluster_template.go index 8b3177fb..ec2f7dba 100644 --- a/client/management/v3/zz_generated_cluster_template.go +++ b/client/management/v3/zz_generated_cluster_template.go @@ -46,6 +46,7 @@ type ClusterTemplateClient struct { type ClusterTemplateOperations interface { List(opts *types.ListOpts) (*ClusterTemplateCollection, error) + ListAll(opts *types.ListOpts) (*ClusterTemplateCollection, error) Create(opts *ClusterTemplate) (*ClusterTemplate, error) Update(existing *ClusterTemplate, updates interface{}) (*ClusterTemplate, error) Replace(existing *ClusterTemplate) (*ClusterTemplate, error) @@ -84,6 +85,23 @@ func (c *ClusterTemplateClient) List(opts *types.ListOpts) (*ClusterTemplateColl return resp, err } +func (c *ClusterTemplateClient) ListAll(opts *types.ListOpts) (*ClusterTemplateCollection, error) { + resp := &ClusterTemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterTemplateCollection) Next() (*ClusterTemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterTemplateCollection{} diff --git a/client/management/v3/zz_generated_cluster_template_revision.go b/client/management/v3/zz_generated_cluster_template_revision.go index deacbf7d..4172897f 100644 --- a/client/management/v3/zz_generated_cluster_template_revision.go +++ b/client/management/v3/zz_generated_cluster_template_revision.go @@ -48,6 +48,7 @@ type ClusterTemplateRevisionClient struct { type ClusterTemplateRevisionOperations interface { List(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error) + ListAll(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error) Create(opts *ClusterTemplateRevision) (*ClusterTemplateRevision, error) Update(existing *ClusterTemplateRevision, updates interface{}) (*ClusterTemplateRevision, error) Replace(existing *ClusterTemplateRevision) (*ClusterTemplateRevision, error) @@ -92,6 +93,23 @@ func (c *ClusterTemplateRevisionClient) List(opts *types.ListOpts) (*ClusterTemp return resp, err } +func (c *ClusterTemplateRevisionClient) ListAll(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error) { + resp := &ClusterTemplateRevisionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ClusterTemplateRevisionCollection) Next() (*ClusterTemplateRevisionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ClusterTemplateRevisionCollection{} diff --git a/client/management/v3/zz_generated_compose_config.go b/client/management/v3/zz_generated_compose_config.go index 017bd757..f5c5a861 100644 --- a/client/management/v3/zz_generated_compose_config.go +++ b/client/management/v3/zz_generated_compose_config.go @@ -50,6 +50,7 @@ type ComposeConfigClient struct { type ComposeConfigOperations interface { List(opts *types.ListOpts) (*ComposeConfigCollection, error) + ListAll(opts *types.ListOpts) (*ComposeConfigCollection, error) Create(opts *ComposeConfig) (*ComposeConfig, error) Update(existing *ComposeConfig, updates interface{}) (*ComposeConfig, error) Replace(existing *ComposeConfig) (*ComposeConfig, error) @@ -88,6 +89,23 @@ func (c *ComposeConfigClient) List(opts *types.ListOpts) (*ComposeConfigCollecti return resp, err } +func (c *ComposeConfigClient) ListAll(opts *types.ListOpts) (*ComposeConfigCollection, error) { + resp := &ComposeConfigCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ComposeConfigCollection) Next() (*ComposeConfigCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ComposeConfigCollection{} diff --git a/client/management/v3/zz_generated_dynamic_schema.go b/client/management/v3/zz_generated_dynamic_schema.go index a89474f0..538fa4dc 100644 --- a/client/management/v3/zz_generated_dynamic_schema.go +++ b/client/management/v3/zz_generated_dynamic_schema.go @@ -74,6 +74,7 @@ type DynamicSchemaClient struct { type DynamicSchemaOperations interface { List(opts *types.ListOpts) (*DynamicSchemaCollection, error) + ListAll(opts *types.ListOpts) (*DynamicSchemaCollection, error) Create(opts *DynamicSchema) (*DynamicSchema, error) Update(existing *DynamicSchema, updates interface{}) (*DynamicSchema, error) Replace(existing *DynamicSchema) (*DynamicSchema, error) @@ -112,6 +113,23 @@ func (c *DynamicSchemaClient) List(opts *types.ListOpts) (*DynamicSchemaCollecti return resp, err } +func (c *DynamicSchemaClient) ListAll(opts *types.ListOpts) (*DynamicSchemaCollection, error) { + resp := &DynamicSchemaCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DynamicSchemaCollection) Next() (*DynamicSchemaCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DynamicSchemaCollection{} diff --git a/client/management/v3/zz_generated_etcd_backup.go b/client/management/v3/zz_generated_etcd_backup.go index b7ff23d2..d18be37c 100644 --- a/client/management/v3/zz_generated_etcd_backup.go +++ b/client/management/v3/zz_generated_etcd_backup.go @@ -58,6 +58,7 @@ type EtcdBackupClient struct { type EtcdBackupOperations interface { List(opts *types.ListOpts) (*EtcdBackupCollection, error) + ListAll(opts *types.ListOpts) (*EtcdBackupCollection, error) Create(opts *EtcdBackup) (*EtcdBackup, error) Update(existing *EtcdBackup, updates interface{}) (*EtcdBackup, error) Replace(existing *EtcdBackup) (*EtcdBackup, error) @@ -96,6 +97,23 @@ func (c *EtcdBackupClient) List(opts *types.ListOpts) (*EtcdBackupCollection, er return resp, err } +func (c *EtcdBackupClient) ListAll(opts *types.ListOpts) (*EtcdBackupCollection, error) { + resp := &EtcdBackupCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *EtcdBackupCollection) Next() (*EtcdBackupCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &EtcdBackupCollection{} diff --git a/client/management/v3/zz_generated_feature.go b/client/management/v3/zz_generated_feature.go index 4d4c6c35..fe561de5 100644 --- a/client/management/v3/zz_generated_feature.go +++ b/client/management/v3/zz_generated_feature.go @@ -44,6 +44,7 @@ type FeatureClient struct { type FeatureOperations interface { List(opts *types.ListOpts) (*FeatureCollection, error) + ListAll(opts *types.ListOpts) (*FeatureCollection, error) Create(opts *Feature) (*Feature, error) Update(existing *Feature, updates interface{}) (*Feature, error) Replace(existing *Feature) (*Feature, error) @@ -82,6 +83,23 @@ func (c *FeatureClient) List(opts *types.ListOpts) (*FeatureCollection, error) { return resp, err } +func (c *FeatureClient) ListAll(opts *types.ListOpts) (*FeatureCollection, error) { + resp := &FeatureCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *FeatureCollection) Next() (*FeatureCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &FeatureCollection{} diff --git a/client/management/v3/zz_generated_global_dns.go b/client/management/v3/zz_generated_global_dns.go index bce00917..c2e72d0b 100644 --- a/client/management/v3/zz_generated_global_dns.go +++ b/client/management/v3/zz_generated_global_dns.go @@ -60,6 +60,7 @@ type GlobalDNSClient struct { type GlobalDNSOperations interface { List(opts *types.ListOpts) (*GlobalDNSCollection, error) + ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error) Create(opts *GlobalDNS) (*GlobalDNS, error) Update(existing *GlobalDNS, updates interface{}) (*GlobalDNS, error) Replace(existing *GlobalDNS) (*GlobalDNS, error) @@ -102,6 +103,23 @@ func (c *GlobalDNSClient) List(opts *types.ListOpts) (*GlobalDNSCollection, erro return resp, err } +func (c *GlobalDNSClient) ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error) { + resp := &GlobalDNSCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GlobalDNSCollection) Next() (*GlobalDNSCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GlobalDNSCollection{} diff --git a/client/management/v3/zz_generated_global_dns_provider.go b/client/management/v3/zz_generated_global_dns_provider.go index 266cd477..66f91d89 100644 --- a/client/management/v3/zz_generated_global_dns_provider.go +++ b/client/management/v3/zz_generated_global_dns_provider.go @@ -50,6 +50,7 @@ type GlobalDNSProviderClient struct { type GlobalDNSProviderOperations interface { List(opts *types.ListOpts) (*GlobalDNSProviderCollection, error) + ListAll(opts *types.ListOpts) (*GlobalDNSProviderCollection, error) Create(opts *GlobalDNSProvider) (*GlobalDNSProvider, error) Update(existing *GlobalDNSProvider, updates interface{}) (*GlobalDNSProvider, error) Replace(existing *GlobalDNSProvider) (*GlobalDNSProvider, error) @@ -88,6 +89,23 @@ func (c *GlobalDNSProviderClient) List(opts *types.ListOpts) (*GlobalDNSProvider return resp, err } +func (c *GlobalDNSProviderClient) ListAll(opts *types.ListOpts) (*GlobalDNSProviderCollection, error) { + resp := &GlobalDNSProviderCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GlobalDNSProviderCollection) Next() (*GlobalDNSProviderCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GlobalDNSProviderCollection{} diff --git a/client/management/v3/zz_generated_global_role.go b/client/management/v3/zz_generated_global_role.go index fa43e1f3..42608b02 100644 --- a/client/management/v3/zz_generated_global_role.go +++ b/client/management/v3/zz_generated_global_role.go @@ -48,6 +48,7 @@ type GlobalRoleClient struct { type GlobalRoleOperations interface { List(opts *types.ListOpts) (*GlobalRoleCollection, error) + ListAll(opts *types.ListOpts) (*GlobalRoleCollection, error) Create(opts *GlobalRole) (*GlobalRole, error) Update(existing *GlobalRole, updates interface{}) (*GlobalRole, error) Replace(existing *GlobalRole) (*GlobalRole, error) @@ -86,6 +87,23 @@ func (c *GlobalRoleClient) List(opts *types.ListOpts) (*GlobalRoleCollection, er return resp, err } +func (c *GlobalRoleClient) ListAll(opts *types.ListOpts) (*GlobalRoleCollection, error) { + resp := &GlobalRoleCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GlobalRoleCollection) Next() (*GlobalRoleCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GlobalRoleCollection{} diff --git a/client/management/v3/zz_generated_global_role_binding.go b/client/management/v3/zz_generated_global_role_binding.go index 57ab558b..b524f8e1 100644 --- a/client/management/v3/zz_generated_global_role_binding.go +++ b/client/management/v3/zz_generated_global_role_binding.go @@ -46,6 +46,7 @@ type GlobalRoleBindingClient struct { type GlobalRoleBindingOperations interface { List(opts *types.ListOpts) (*GlobalRoleBindingCollection, error) + ListAll(opts *types.ListOpts) (*GlobalRoleBindingCollection, error) Create(opts *GlobalRoleBinding) (*GlobalRoleBinding, error) Update(existing *GlobalRoleBinding, updates interface{}) (*GlobalRoleBinding, error) Replace(existing *GlobalRoleBinding) (*GlobalRoleBinding, error) @@ -84,6 +85,23 @@ func (c *GlobalRoleBindingClient) List(opts *types.ListOpts) (*GlobalRoleBinding return resp, err } +func (c *GlobalRoleBindingClient) ListAll(opts *types.ListOpts) (*GlobalRoleBindingCollection, error) { + resp := &GlobalRoleBindingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GlobalRoleBindingCollection) Next() (*GlobalRoleBindingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GlobalRoleBindingCollection{} diff --git a/client/management/v3/zz_generated_group.go b/client/management/v3/zz_generated_group.go index 2cf6cecc..2b880740 100644 --- a/client/management/v3/zz_generated_group.go +++ b/client/management/v3/zz_generated_group.go @@ -40,6 +40,7 @@ type GroupClient struct { type GroupOperations interface { List(opts *types.ListOpts) (*GroupCollection, error) + ListAll(opts *types.ListOpts) (*GroupCollection, error) Create(opts *Group) (*Group, error) Update(existing *Group, updates interface{}) (*Group, error) Replace(existing *Group) (*Group, error) @@ -78,6 +79,23 @@ func (c *GroupClient) List(opts *types.ListOpts) (*GroupCollection, error) { return resp, err } +func (c *GroupClient) ListAll(opts *types.ListOpts) (*GroupCollection, error) { + resp := &GroupCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GroupCollection) Next() (*GroupCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GroupCollection{} diff --git a/client/management/v3/zz_generated_group_member.go b/client/management/v3/zz_generated_group_member.go index 3478afae..f43006b7 100644 --- a/client/management/v3/zz_generated_group_member.go +++ b/client/management/v3/zz_generated_group_member.go @@ -44,6 +44,7 @@ type GroupMemberClient struct { type GroupMemberOperations interface { List(opts *types.ListOpts) (*GroupMemberCollection, error) + ListAll(opts *types.ListOpts) (*GroupMemberCollection, error) Create(opts *GroupMember) (*GroupMember, error) Update(existing *GroupMember, updates interface{}) (*GroupMember, error) Replace(existing *GroupMember) (*GroupMember, error) @@ -82,6 +83,23 @@ func (c *GroupMemberClient) List(opts *types.ListOpts) (*GroupMemberCollection, return resp, err } +func (c *GroupMemberClient) ListAll(opts *types.ListOpts) (*GroupMemberCollection, error) { + resp := &GroupMemberCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GroupMemberCollection) Next() (*GroupMemberCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GroupMemberCollection{} diff --git a/client/management/v3/zz_generated_kontainer_driver.go b/client/management/v3/zz_generated_kontainer_driver.go index 8ee65bcb..bbdff074 100644 --- a/client/management/v3/zz_generated_kontainer_driver.go +++ b/client/management/v3/zz_generated_kontainer_driver.go @@ -64,6 +64,7 @@ type KontainerDriverClient struct { type KontainerDriverOperations interface { List(opts *types.ListOpts) (*KontainerDriverCollection, error) + ListAll(opts *types.ListOpts) (*KontainerDriverCollection, error) Create(opts *KontainerDriver) (*KontainerDriver, error) Update(existing *KontainerDriver, updates interface{}) (*KontainerDriver, error) Replace(existing *KontainerDriver) (*KontainerDriver, error) @@ -108,6 +109,23 @@ func (c *KontainerDriverClient) List(opts *types.ListOpts) (*KontainerDriverColl return resp, err } +func (c *KontainerDriverClient) ListAll(opts *types.ListOpts) (*KontainerDriverCollection, error) { + resp := &KontainerDriverCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *KontainerDriverCollection) Next() (*KontainerDriverCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &KontainerDriverCollection{} diff --git a/client/management/v3/zz_generated_ldap_config.go b/client/management/v3/zz_generated_ldap_config.go index acdfe96c..fec9b17c 100644 --- a/client/management/v3/zz_generated_ldap_config.go +++ b/client/management/v3/zz_generated_ldap_config.go @@ -98,6 +98,7 @@ type LdapConfigClient struct { type LdapConfigOperations interface { List(opts *types.ListOpts) (*LdapConfigCollection, error) + ListAll(opts *types.ListOpts) (*LdapConfigCollection, error) Create(opts *LdapConfig) (*LdapConfig, error) Update(existing *LdapConfig, updates interface{}) (*LdapConfig, error) Replace(existing *LdapConfig) (*LdapConfig, error) @@ -136,6 +137,23 @@ func (c *LdapConfigClient) List(opts *types.ListOpts) (*LdapConfigCollection, er return resp, err } +func (c *LdapConfigClient) ListAll(opts *types.ListOpts) (*LdapConfigCollection, error) { + resp := &LdapConfigCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *LdapConfigCollection) Next() (*LdapConfigCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &LdapConfigCollection{} diff --git a/client/management/v3/zz_generated_management_secret.go b/client/management/v3/zz_generated_management_secret.go index e14c0823..435e4a43 100644 --- a/client/management/v3/zz_generated_management_secret.go +++ b/client/management/v3/zz_generated_management_secret.go @@ -46,6 +46,7 @@ type ManagementSecretClient struct { type ManagementSecretOperations interface { List(opts *types.ListOpts) (*ManagementSecretCollection, error) + ListAll(opts *types.ListOpts) (*ManagementSecretCollection, error) Create(opts *ManagementSecret) (*ManagementSecret, error) Update(existing *ManagementSecret, updates interface{}) (*ManagementSecret, error) Replace(existing *ManagementSecret) (*ManagementSecret, error) @@ -84,6 +85,23 @@ func (c *ManagementSecretClient) List(opts *types.ListOpts) (*ManagementSecretCo return resp, err } +func (c *ManagementSecretClient) ListAll(opts *types.ListOpts) (*ManagementSecretCollection, error) { + resp := &ManagementSecretCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ManagementSecretCollection) Next() (*ManagementSecretCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ManagementSecretCollection{} diff --git a/client/management/v3/zz_generated_monitor_metric.go b/client/management/v3/zz_generated_monitor_metric.go index 099b5f7b..751ef64c 100644 --- a/client/management/v3/zz_generated_monitor_metric.go +++ b/client/management/v3/zz_generated_monitor_metric.go @@ -48,6 +48,7 @@ type MonitorMetricClient struct { type MonitorMetricOperations interface { List(opts *types.ListOpts) (*MonitorMetricCollection, error) + ListAll(opts *types.ListOpts) (*MonitorMetricCollection, error) Create(opts *MonitorMetric) (*MonitorMetric, error) Update(existing *MonitorMetric, updates interface{}) (*MonitorMetric, error) Replace(existing *MonitorMetric) (*MonitorMetric, error) @@ -94,6 +95,23 @@ func (c *MonitorMetricClient) List(opts *types.ListOpts) (*MonitorMetricCollecti return resp, err } +func (c *MonitorMetricClient) ListAll(opts *types.ListOpts) (*MonitorMetricCollection, error) { + resp := &MonitorMetricCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *MonitorMetricCollection) Next() (*MonitorMetricCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &MonitorMetricCollection{} diff --git a/client/management/v3/zz_generated_multi_cluster_app.go b/client/management/v3/zz_generated_multi_cluster_app.go index 0bfa772e..c930ee8b 100644 --- a/client/management/v3/zz_generated_multi_cluster_app.go +++ b/client/management/v3/zz_generated_multi_cluster_app.go @@ -66,6 +66,7 @@ type MultiClusterAppClient struct { type MultiClusterAppOperations interface { List(opts *types.ListOpts) (*MultiClusterAppCollection, error) + ListAll(opts *types.ListOpts) (*MultiClusterAppCollection, error) Create(opts *MultiClusterApp) (*MultiClusterApp, error) Update(existing *MultiClusterApp, updates interface{}) (*MultiClusterApp, error) Replace(existing *MultiClusterApp) (*MultiClusterApp, error) @@ -110,6 +111,23 @@ func (c *MultiClusterAppClient) List(opts *types.ListOpts) (*MultiClusterAppColl return resp, err } +func (c *MultiClusterAppClient) ListAll(opts *types.ListOpts) (*MultiClusterAppCollection, error) { + resp := &MultiClusterAppCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *MultiClusterAppCollection) Next() (*MultiClusterAppCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &MultiClusterAppCollection{} diff --git a/client/management/v3/zz_generated_multi_cluster_app_revision.go b/client/management/v3/zz_generated_multi_cluster_app_revision.go index 428407de..4b46358e 100644 --- a/client/management/v3/zz_generated_multi_cluster_app_revision.go +++ b/client/management/v3/zz_generated_multi_cluster_app_revision.go @@ -44,6 +44,7 @@ type MultiClusterAppRevisionClient struct { type MultiClusterAppRevisionOperations interface { List(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error) + ListAll(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error) Create(opts *MultiClusterAppRevision) (*MultiClusterAppRevision, error) Update(existing *MultiClusterAppRevision, updates interface{}) (*MultiClusterAppRevision, error) Replace(existing *MultiClusterAppRevision) (*MultiClusterAppRevision, error) @@ -82,6 +83,23 @@ func (c *MultiClusterAppRevisionClient) List(opts *types.ListOpts) (*MultiCluste return resp, err } +func (c *MultiClusterAppRevisionClient) ListAll(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error) { + resp := &MultiClusterAppRevisionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *MultiClusterAppRevisionCollection) Next() (*MultiClusterAppRevisionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &MultiClusterAppRevisionCollection{} diff --git a/client/management/v3/zz_generated_node.go b/client/management/v3/zz_generated_node.go index 858f1ab6..4ace52cf 100644 --- a/client/management/v3/zz_generated_node.go +++ b/client/management/v3/zz_generated_node.go @@ -110,6 +110,7 @@ type NodeClient struct { type NodeOperations interface { List(opts *types.ListOpts) (*NodeCollection, error) + ListAll(opts *types.ListOpts) (*NodeCollection, error) Create(opts *Node) (*Node, error) Update(existing *Node, updates interface{}) (*Node, error) Replace(existing *Node) (*Node, error) @@ -156,6 +157,23 @@ func (c *NodeClient) List(opts *types.ListOpts) (*NodeCollection, error) { return resp, err } +func (c *NodeClient) ListAll(opts *types.ListOpts) (*NodeCollection, error) { + resp := &NodeCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NodeCollection) Next() (*NodeCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NodeCollection{} diff --git a/client/management/v3/zz_generated_node_driver.go b/client/management/v3/zz_generated_node_driver.go index 520e3ab4..0d55210f 100644 --- a/client/management/v3/zz_generated_node_driver.go +++ b/client/management/v3/zz_generated_node_driver.go @@ -64,6 +64,7 @@ type NodeDriverClient struct { type NodeDriverOperations interface { List(opts *types.ListOpts) (*NodeDriverCollection, error) + ListAll(opts *types.ListOpts) (*NodeDriverCollection, error) Create(opts *NodeDriver) (*NodeDriver, error) Update(existing *NodeDriver, updates interface{}) (*NodeDriver, error) Replace(existing *NodeDriver) (*NodeDriver, error) @@ -106,6 +107,23 @@ func (c *NodeDriverClient) List(opts *types.ListOpts) (*NodeDriverCollection, er return resp, err } +func (c *NodeDriverClient) ListAll(opts *types.ListOpts) (*NodeDriverCollection, error) { + resp := &NodeDriverCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NodeDriverCollection) Next() (*NodeDriverCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NodeDriverCollection{} diff --git a/client/management/v3/zz_generated_node_pool.go b/client/management/v3/zz_generated_node_pool.go index 5918193c..94947b07 100644 --- a/client/management/v3/zz_generated_node_pool.go +++ b/client/management/v3/zz_generated_node_pool.go @@ -76,6 +76,7 @@ type NodePoolClient struct { type NodePoolOperations interface { List(opts *types.ListOpts) (*NodePoolCollection, error) + ListAll(opts *types.ListOpts) (*NodePoolCollection, error) Create(opts *NodePool) (*NodePool, error) Update(existing *NodePool, updates interface{}) (*NodePool, error) Replace(existing *NodePool) (*NodePool, error) @@ -114,6 +115,23 @@ func (c *NodePoolClient) List(opts *types.ListOpts) (*NodePoolCollection, error) return resp, err } +func (c *NodePoolClient) ListAll(opts *types.ListOpts) (*NodePoolCollection, error) { + resp := &NodePoolCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NodePoolCollection) Next() (*NodePoolCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NodePoolCollection{} diff --git a/client/management/v3/zz_generated_node_template.go b/client/management/v3/zz_generated_node_template.go index 232c3cf2..719cf8aa 100644 --- a/client/management/v3/zz_generated_node_template.go +++ b/client/management/v3/zz_generated_node_template.go @@ -78,6 +78,7 @@ type NodeTemplateClient struct { type NodeTemplateOperations interface { List(opts *types.ListOpts) (*NodeTemplateCollection, error) + ListAll(opts *types.ListOpts) (*NodeTemplateCollection, error) Create(opts *NodeTemplate) (*NodeTemplate, error) Update(existing *NodeTemplate, updates interface{}) (*NodeTemplate, error) Replace(existing *NodeTemplate) (*NodeTemplate, error) @@ -116,6 +117,23 @@ func (c *NodeTemplateClient) List(opts *types.ListOpts) (*NodeTemplateCollection return resp, err } +func (c *NodeTemplateClient) ListAll(opts *types.ListOpts) (*NodeTemplateCollection, error) { + resp := &NodeTemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NodeTemplateCollection) Next() (*NodeTemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NodeTemplateCollection{} diff --git a/client/management/v3/zz_generated_notifier.go b/client/management/v3/zz_generated_notifier.go index 92393ed6..5a38ba71 100644 --- a/client/management/v3/zz_generated_notifier.go +++ b/client/management/v3/zz_generated_notifier.go @@ -66,6 +66,7 @@ type NotifierClient struct { type NotifierOperations interface { List(opts *types.ListOpts) (*NotifierCollection, error) + ListAll(opts *types.ListOpts) (*NotifierCollection, error) Create(opts *Notifier) (*Notifier, error) Update(existing *Notifier, updates interface{}) (*Notifier, error) Replace(existing *Notifier) (*Notifier, error) @@ -108,6 +109,23 @@ func (c *NotifierClient) List(opts *types.ListOpts) (*NotifierCollection, error) return resp, err } +func (c *NotifierClient) ListAll(opts *types.ListOpts) (*NotifierCollection, error) { + resp := &NotifierCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NotifierCollection) Next() (*NotifierCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NotifierCollection{} diff --git a/client/management/v3/zz_generated_pod_security_policy_template.go b/client/management/v3/zz_generated_pod_security_policy_template.go index 2def6e89..b2bbec06 100644 --- a/client/management/v3/zz_generated_pod_security_policy_template.go +++ b/client/management/v3/zz_generated_pod_security_policy_template.go @@ -90,6 +90,7 @@ type PodSecurityPolicyTemplateClient struct { type PodSecurityPolicyTemplateOperations interface { List(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error) + ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error) Create(opts *PodSecurityPolicyTemplate) (*PodSecurityPolicyTemplate, error) Update(existing *PodSecurityPolicyTemplate, updates interface{}) (*PodSecurityPolicyTemplate, error) Replace(existing *PodSecurityPolicyTemplate) (*PodSecurityPolicyTemplate, error) @@ -128,6 +129,23 @@ func (c *PodSecurityPolicyTemplateClient) List(opts *types.ListOpts) (*PodSecuri return resp, err } +func (c *PodSecurityPolicyTemplateClient) ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error) { + resp := &PodSecurityPolicyTemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PodSecurityPolicyTemplateCollection) Next() (*PodSecurityPolicyTemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PodSecurityPolicyTemplateCollection{} diff --git a/client/management/v3/zz_generated_pod_security_policy_template_project_binding.go b/client/management/v3/zz_generated_pod_security_policy_template_project_binding.go index 392b95a4..d61d14cd 100644 --- a/client/management/v3/zz_generated_pod_security_policy_template_project_binding.go +++ b/client/management/v3/zz_generated_pod_security_policy_template_project_binding.go @@ -46,6 +46,7 @@ type PodSecurityPolicyTemplateProjectBindingClient struct { type PodSecurityPolicyTemplateProjectBindingOperations interface { List(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error) + ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error) Create(opts *PodSecurityPolicyTemplateProjectBinding) (*PodSecurityPolicyTemplateProjectBinding, error) Update(existing *PodSecurityPolicyTemplateProjectBinding, updates interface{}) (*PodSecurityPolicyTemplateProjectBinding, error) Replace(existing *PodSecurityPolicyTemplateProjectBinding) (*PodSecurityPolicyTemplateProjectBinding, error) @@ -84,6 +85,23 @@ func (c *PodSecurityPolicyTemplateProjectBindingClient) List(opts *types.ListOpt return resp, err } +func (c *PodSecurityPolicyTemplateProjectBindingClient) ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error) { + resp := &PodSecurityPolicyTemplateProjectBindingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PodSecurityPolicyTemplateProjectBindingCollection) Next() (*PodSecurityPolicyTemplateProjectBindingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PodSecurityPolicyTemplateProjectBindingCollection{} diff --git a/client/management/v3/zz_generated_preference.go b/client/management/v3/zz_generated_preference.go index e0ce5908..15d9f9b8 100644 --- a/client/management/v3/zz_generated_preference.go +++ b/client/management/v3/zz_generated_preference.go @@ -44,6 +44,7 @@ type PreferenceClient struct { type PreferenceOperations interface { List(opts *types.ListOpts) (*PreferenceCollection, error) + ListAll(opts *types.ListOpts) (*PreferenceCollection, error) Create(opts *Preference) (*Preference, error) Update(existing *Preference, updates interface{}) (*Preference, error) Replace(existing *Preference) (*Preference, error) @@ -82,6 +83,23 @@ func (c *PreferenceClient) List(opts *types.ListOpts) (*PreferenceCollection, er return resp, err } +func (c *PreferenceClient) ListAll(opts *types.ListOpts) (*PreferenceCollection, error) { + resp := &PreferenceCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PreferenceCollection) Next() (*PreferenceCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PreferenceCollection{} diff --git a/client/management/v3/zz_generated_principal.go b/client/management/v3/zz_generated_principal.go index 6724f632..fe057d54 100644 --- a/client/management/v3/zz_generated_principal.go +++ b/client/management/v3/zz_generated_principal.go @@ -56,6 +56,7 @@ type PrincipalClient struct { type PrincipalOperations interface { List(opts *types.ListOpts) (*PrincipalCollection, error) + ListAll(opts *types.ListOpts) (*PrincipalCollection, error) Create(opts *Principal) (*Principal, error) Update(existing *Principal, updates interface{}) (*Principal, error) Replace(existing *Principal) (*Principal, error) @@ -96,6 +97,23 @@ func (c *PrincipalClient) List(opts *types.ListOpts) (*PrincipalCollection, erro return resp, err } +func (c *PrincipalClient) ListAll(opts *types.ListOpts) (*PrincipalCollection, error) { + resp := &PrincipalCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PrincipalCollection) Next() (*PrincipalCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PrincipalCollection{} diff --git a/client/management/v3/zz_generated_project.go b/client/management/v3/zz_generated_project.go index d3b99d75..9e6dc279 100644 --- a/client/management/v3/zz_generated_project.go +++ b/client/management/v3/zz_generated_project.go @@ -66,6 +66,7 @@ type ProjectClient struct { type ProjectOperations interface { List(opts *types.ListOpts) (*ProjectCollection, error) + ListAll(opts *types.ListOpts) (*ProjectCollection, error) Create(opts *Project) (*Project, error) Update(existing *Project, updates interface{}) (*Project, error) Replace(existing *Project) (*Project, error) @@ -116,6 +117,23 @@ func (c *ProjectClient) List(opts *types.ListOpts) (*ProjectCollection, error) { return resp, err } +func (c *ProjectClient) ListAll(opts *types.ListOpts) (*ProjectCollection, error) { + resp := &ProjectCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectCollection) Next() (*ProjectCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectCollection{} diff --git a/client/management/v3/zz_generated_project_alert.go b/client/management/v3/zz_generated_project_alert.go index b108284e..892941ad 100644 --- a/client/management/v3/zz_generated_project_alert.go +++ b/client/management/v3/zz_generated_project_alert.go @@ -68,6 +68,7 @@ type ProjectAlertClient struct { type ProjectAlertOperations interface { List(opts *types.ListOpts) (*ProjectAlertCollection, error) + ListAll(opts *types.ListOpts) (*ProjectAlertCollection, error) Create(opts *ProjectAlert) (*ProjectAlert, error) Update(existing *ProjectAlert, updates interface{}) (*ProjectAlert, error) Replace(existing *ProjectAlert) (*ProjectAlert, error) @@ -106,6 +107,23 @@ func (c *ProjectAlertClient) List(opts *types.ListOpts) (*ProjectAlertCollection return resp, err } +func (c *ProjectAlertClient) ListAll(opts *types.ListOpts) (*ProjectAlertCollection, error) { + resp := &ProjectAlertCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectAlertCollection) Next() (*ProjectAlertCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectAlertCollection{} diff --git a/client/management/v3/zz_generated_project_alert_group.go b/client/management/v3/zz_generated_project_alert_group.go index f0148ba1..56966c42 100644 --- a/client/management/v3/zz_generated_project_alert_group.go +++ b/client/management/v3/zz_generated_project_alert_group.go @@ -62,6 +62,7 @@ type ProjectAlertGroupClient struct { type ProjectAlertGroupOperations interface { List(opts *types.ListOpts) (*ProjectAlertGroupCollection, error) + ListAll(opts *types.ListOpts) (*ProjectAlertGroupCollection, error) Create(opts *ProjectAlertGroup) (*ProjectAlertGroup, error) Update(existing *ProjectAlertGroup, updates interface{}) (*ProjectAlertGroup, error) Replace(existing *ProjectAlertGroup) (*ProjectAlertGroup, error) @@ -100,6 +101,23 @@ func (c *ProjectAlertGroupClient) List(opts *types.ListOpts) (*ProjectAlertGroup return resp, err } +func (c *ProjectAlertGroupClient) ListAll(opts *types.ListOpts) (*ProjectAlertGroupCollection, error) { + resp := &ProjectAlertGroupCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectAlertGroupCollection) Next() (*ProjectAlertGroupCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectAlertGroupCollection{} diff --git a/client/management/v3/zz_generated_project_alert_rule.go b/client/management/v3/zz_generated_project_alert_rule.go index 3d1a53b3..d29ee1f3 100644 --- a/client/management/v3/zz_generated_project_alert_rule.go +++ b/client/management/v3/zz_generated_project_alert_rule.go @@ -70,6 +70,7 @@ type ProjectAlertRuleClient struct { type ProjectAlertRuleOperations interface { List(opts *types.ListOpts) (*ProjectAlertRuleCollection, error) + ListAll(opts *types.ListOpts) (*ProjectAlertRuleCollection, error) Create(opts *ProjectAlertRule) (*ProjectAlertRule, error) Update(existing *ProjectAlertRule, updates interface{}) (*ProjectAlertRule, error) Replace(existing *ProjectAlertRule) (*ProjectAlertRule, error) @@ -116,6 +117,23 @@ func (c *ProjectAlertRuleClient) List(opts *types.ListOpts) (*ProjectAlertRuleCo return resp, err } +func (c *ProjectAlertRuleClient) ListAll(opts *types.ListOpts) (*ProjectAlertRuleCollection, error) { + resp := &ProjectAlertRuleCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectAlertRuleCollection) Next() (*ProjectAlertRuleCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectAlertRuleCollection{} diff --git a/client/management/v3/zz_generated_project_catalog.go b/client/management/v3/zz_generated_project_catalog.go index 25a88f50..c9e6929f 100644 --- a/client/management/v3/zz_generated_project_catalog.go +++ b/client/management/v3/zz_generated_project_catalog.go @@ -68,6 +68,7 @@ type ProjectCatalogClient struct { type ProjectCatalogOperations interface { List(opts *types.ListOpts) (*ProjectCatalogCollection, error) + ListAll(opts *types.ListOpts) (*ProjectCatalogCollection, error) Create(opts *ProjectCatalog) (*ProjectCatalog, error) Update(existing *ProjectCatalog, updates interface{}) (*ProjectCatalog, error) Replace(existing *ProjectCatalog) (*ProjectCatalog, error) @@ -110,6 +111,23 @@ func (c *ProjectCatalogClient) List(opts *types.ListOpts) (*ProjectCatalogCollec return resp, err } +func (c *ProjectCatalogClient) ListAll(opts *types.ListOpts) (*ProjectCatalogCollection, error) { + resp := &ProjectCatalogCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectCatalogCollection) Next() (*ProjectCatalogCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectCatalogCollection{} diff --git a/client/management/v3/zz_generated_project_logging.go b/client/management/v3/zz_generated_project_logging.go index 36fde094..b216abd1 100644 --- a/client/management/v3/zz_generated_project_logging.go +++ b/client/management/v3/zz_generated_project_logging.go @@ -70,6 +70,7 @@ type ProjectLoggingClient struct { type ProjectLoggingOperations interface { List(opts *types.ListOpts) (*ProjectLoggingCollection, error) + ListAll(opts *types.ListOpts) (*ProjectLoggingCollection, error) Create(opts *ProjectLogging) (*ProjectLogging, error) Update(existing *ProjectLogging, updates interface{}) (*ProjectLogging, error) Replace(existing *ProjectLogging) (*ProjectLogging, error) @@ -112,6 +113,23 @@ func (c *ProjectLoggingClient) List(opts *types.ListOpts) (*ProjectLoggingCollec return resp, err } +func (c *ProjectLoggingClient) ListAll(opts *types.ListOpts) (*ProjectLoggingCollection, error) { + resp := &ProjectLoggingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectLoggingCollection) Next() (*ProjectLoggingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectLoggingCollection{} diff --git a/client/management/v3/zz_generated_project_monitor_graph.go b/client/management/v3/zz_generated_project_monitor_graph.go index 4b4e9386..9a9d0636 100644 --- a/client/management/v3/zz_generated_project_monitor_graph.go +++ b/client/management/v3/zz_generated_project_monitor_graph.go @@ -60,6 +60,7 @@ type ProjectMonitorGraphClient struct { type ProjectMonitorGraphOperations interface { List(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error) + ListAll(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error) Create(opts *ProjectMonitorGraph) (*ProjectMonitorGraph, error) Update(existing *ProjectMonitorGraph, updates interface{}) (*ProjectMonitorGraph, error) Replace(existing *ProjectMonitorGraph) (*ProjectMonitorGraph, error) @@ -100,6 +101,23 @@ func (c *ProjectMonitorGraphClient) List(opts *types.ListOpts) (*ProjectMonitorG return resp, err } +func (c *ProjectMonitorGraphClient) ListAll(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error) { + resp := &ProjectMonitorGraphCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectMonitorGraphCollection) Next() (*ProjectMonitorGraphCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectMonitorGraphCollection{} diff --git a/client/management/v3/zz_generated_project_network_policy.go b/client/management/v3/zz_generated_project_network_policy.go index 771db9c0..d7739079 100644 --- a/client/management/v3/zz_generated_project_network_policy.go +++ b/client/management/v3/zz_generated_project_network_policy.go @@ -54,6 +54,7 @@ type ProjectNetworkPolicyClient struct { type ProjectNetworkPolicyOperations interface { List(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error) + ListAll(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error) Create(opts *ProjectNetworkPolicy) (*ProjectNetworkPolicy, error) Update(existing *ProjectNetworkPolicy, updates interface{}) (*ProjectNetworkPolicy, error) Replace(existing *ProjectNetworkPolicy) (*ProjectNetworkPolicy, error) @@ -92,6 +93,23 @@ func (c *ProjectNetworkPolicyClient) List(opts *types.ListOpts) (*ProjectNetwork return resp, err } +func (c *ProjectNetworkPolicyClient) ListAll(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error) { + resp := &ProjectNetworkPolicyCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectNetworkPolicyCollection) Next() (*ProjectNetworkPolicyCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectNetworkPolicyCollection{} diff --git a/client/management/v3/zz_generated_project_role_template_binding.go b/client/management/v3/zz_generated_project_role_template_binding.go index da843973..cb3e85fe 100644 --- a/client/management/v3/zz_generated_project_role_template_binding.go +++ b/client/management/v3/zz_generated_project_role_template_binding.go @@ -56,6 +56,7 @@ type ProjectRoleTemplateBindingClient struct { type ProjectRoleTemplateBindingOperations interface { List(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error) + ListAll(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error) Create(opts *ProjectRoleTemplateBinding) (*ProjectRoleTemplateBinding, error) Update(existing *ProjectRoleTemplateBinding, updates interface{}) (*ProjectRoleTemplateBinding, error) Replace(existing *ProjectRoleTemplateBinding) (*ProjectRoleTemplateBinding, error) @@ -94,6 +95,23 @@ func (c *ProjectRoleTemplateBindingClient) List(opts *types.ListOpts) (*ProjectR return resp, err } +func (c *ProjectRoleTemplateBindingClient) ListAll(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error) { + resp := &ProjectRoleTemplateBindingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ProjectRoleTemplateBindingCollection) Next() (*ProjectRoleTemplateBindingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ProjectRoleTemplateBindingCollection{} diff --git a/client/management/v3/zz_generated_rke_addon.go b/client/management/v3/zz_generated_rke_addon.go index 08282c8d..4b17d707 100644 --- a/client/management/v3/zz_generated_rke_addon.go +++ b/client/management/v3/zz_generated_rke_addon.go @@ -42,6 +42,7 @@ type RKEAddonClient struct { type RKEAddonOperations interface { List(opts *types.ListOpts) (*RKEAddonCollection, error) + ListAll(opts *types.ListOpts) (*RKEAddonCollection, error) Create(opts *RKEAddon) (*RKEAddon, error) Update(existing *RKEAddon, updates interface{}) (*RKEAddon, error) Replace(existing *RKEAddon) (*RKEAddon, error) @@ -80,6 +81,23 @@ func (c *RKEAddonClient) List(opts *types.ListOpts) (*RKEAddonCollection, error) return resp, err } +func (c *RKEAddonClient) ListAll(opts *types.ListOpts) (*RKEAddonCollection, error) { + resp := &RKEAddonCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *RKEAddonCollection) Next() (*RKEAddonCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &RKEAddonCollection{} diff --git a/client/management/v3/zz_generated_rke_k8s_service_option.go b/client/management/v3/zz_generated_rke_k8s_service_option.go index 7647b357..a40dc204 100644 --- a/client/management/v3/zz_generated_rke_k8s_service_option.go +++ b/client/management/v3/zz_generated_rke_k8s_service_option.go @@ -42,6 +42,7 @@ type RKEK8sServiceOptionClient struct { type RKEK8sServiceOptionOperations interface { List(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) + ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) Create(opts *RKEK8sServiceOption) (*RKEK8sServiceOption, error) Update(existing *RKEK8sServiceOption, updates interface{}) (*RKEK8sServiceOption, error) Replace(existing *RKEK8sServiceOption) (*RKEK8sServiceOption, error) @@ -80,6 +81,23 @@ func (c *RKEK8sServiceOptionClient) List(opts *types.ListOpts) (*RKEK8sServiceOp return resp, err } +func (c *RKEK8sServiceOptionClient) ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) { + resp := &RKEK8sServiceOptionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *RKEK8sServiceOptionCollection) Next() (*RKEK8sServiceOptionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &RKEK8sServiceOptionCollection{} diff --git a/client/management/v3/zz_generated_rke_k8s_system_image.go b/client/management/v3/zz_generated_rke_k8s_system_image.go index b88350dd..7956d01f 100644 --- a/client/management/v3/zz_generated_rke_k8s_system_image.go +++ b/client/management/v3/zz_generated_rke_k8s_system_image.go @@ -42,6 +42,7 @@ type RKEK8sSystemImageClient struct { type RKEK8sSystemImageOperations interface { List(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) + ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) Create(opts *RKEK8sSystemImage) (*RKEK8sSystemImage, error) Update(existing *RKEK8sSystemImage, updates interface{}) (*RKEK8sSystemImage, error) Replace(existing *RKEK8sSystemImage) (*RKEK8sSystemImage, error) @@ -80,6 +81,23 @@ func (c *RKEK8sSystemImageClient) List(opts *types.ListOpts) (*RKEK8sSystemImage return resp, err } +func (c *RKEK8sSystemImageClient) ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) { + resp := &RKEK8sSystemImageCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *RKEK8sSystemImageCollection) Next() (*RKEK8sSystemImageCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &RKEK8sSystemImageCollection{} diff --git a/client/management/v3/zz_generated_role_template.go b/client/management/v3/zz_generated_role_template.go index 23700e4e..7406ac8a 100644 --- a/client/management/v3/zz_generated_role_template.go +++ b/client/management/v3/zz_generated_role_template.go @@ -62,6 +62,7 @@ type RoleTemplateClient struct { type RoleTemplateOperations interface { List(opts *types.ListOpts) (*RoleTemplateCollection, error) + ListAll(opts *types.ListOpts) (*RoleTemplateCollection, error) Create(opts *RoleTemplate) (*RoleTemplate, error) Update(existing *RoleTemplate, updates interface{}) (*RoleTemplate, error) Replace(existing *RoleTemplate) (*RoleTemplate, error) @@ -100,6 +101,23 @@ func (c *RoleTemplateClient) List(opts *types.ListOpts) (*RoleTemplateCollection return resp, err } +func (c *RoleTemplateClient) ListAll(opts *types.ListOpts) (*RoleTemplateCollection, error) { + resp := &RoleTemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *RoleTemplateCollection) Next() (*RoleTemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &RoleTemplateCollection{} diff --git a/client/management/v3/zz_generated_setting.go b/client/management/v3/zz_generated_setting.go index 6b527705..f4a56bb5 100644 --- a/client/management/v3/zz_generated_setting.go +++ b/client/management/v3/zz_generated_setting.go @@ -48,6 +48,7 @@ type SettingClient struct { type SettingOperations interface { List(opts *types.ListOpts) (*SettingCollection, error) + ListAll(opts *types.ListOpts) (*SettingCollection, error) Create(opts *Setting) (*Setting, error) Update(existing *Setting, updates interface{}) (*Setting, error) Replace(existing *Setting) (*Setting, error) @@ -86,6 +87,23 @@ func (c *SettingClient) List(opts *types.ListOpts) (*SettingCollection, error) { return resp, err } +func (c *SettingClient) ListAll(opts *types.ListOpts) (*SettingCollection, error) { + resp := &SettingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SettingCollection) Next() (*SettingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SettingCollection{} diff --git a/client/management/v3/zz_generated_template.go b/client/management/v3/zz_generated_template.go index af8bc552..f360fc49 100644 --- a/client/management/v3/zz_generated_template.go +++ b/client/management/v3/zz_generated_template.go @@ -88,6 +88,7 @@ type TemplateClient struct { type TemplateOperations interface { List(opts *types.ListOpts) (*TemplateCollection, error) + ListAll(opts *types.ListOpts) (*TemplateCollection, error) Create(opts *Template) (*Template, error) Update(existing *Template, updates interface{}) (*Template, error) Replace(existing *Template) (*Template, error) @@ -126,6 +127,23 @@ func (c *TemplateClient) List(opts *types.ListOpts) (*TemplateCollection, error) return resp, err } +func (c *TemplateClient) ListAll(opts *types.ListOpts) (*TemplateCollection, error) { + resp := &TemplateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *TemplateCollection) Next() (*TemplateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &TemplateCollection{} diff --git a/client/management/v3/zz_generated_template_content.go b/client/management/v3/zz_generated_template_content.go index b9610d56..6e8b56fb 100644 --- a/client/management/v3/zz_generated_template_content.go +++ b/client/management/v3/zz_generated_template_content.go @@ -42,6 +42,7 @@ type TemplateContentClient struct { type TemplateContentOperations interface { List(opts *types.ListOpts) (*TemplateContentCollection, error) + ListAll(opts *types.ListOpts) (*TemplateContentCollection, error) Create(opts *TemplateContent) (*TemplateContent, error) Update(existing *TemplateContent, updates interface{}) (*TemplateContent, error) Replace(existing *TemplateContent) (*TemplateContent, error) @@ -80,6 +81,23 @@ func (c *TemplateContentClient) List(opts *types.ListOpts) (*TemplateContentColl return resp, err } +func (c *TemplateContentClient) ListAll(opts *types.ListOpts) (*TemplateContentCollection, error) { + resp := &TemplateContentCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *TemplateContentCollection) Next() (*TemplateContentCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &TemplateContentCollection{} diff --git a/client/management/v3/zz_generated_template_version.go b/client/management/v3/zz_generated_template_version.go index 50e92280..fda268e1 100644 --- a/client/management/v3/zz_generated_template_version.go +++ b/client/management/v3/zz_generated_template_version.go @@ -80,6 +80,7 @@ type TemplateVersionClient struct { type TemplateVersionOperations interface { List(opts *types.ListOpts) (*TemplateVersionCollection, error) + ListAll(opts *types.ListOpts) (*TemplateVersionCollection, error) Create(opts *TemplateVersion) (*TemplateVersion, error) Update(existing *TemplateVersion, updates interface{}) (*TemplateVersion, error) Replace(existing *TemplateVersion) (*TemplateVersion, error) @@ -118,6 +119,23 @@ func (c *TemplateVersionClient) List(opts *types.ListOpts) (*TemplateVersionColl return resp, err } +func (c *TemplateVersionClient) ListAll(opts *types.ListOpts) (*TemplateVersionCollection, error) { + resp := &TemplateVersionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *TemplateVersionCollection) Next() (*TemplateVersionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &TemplateVersionCollection{} diff --git a/client/management/v3/zz_generated_token.go b/client/management/v3/zz_generated_token.go index 0d230dd3..e02d1032 100644 --- a/client/management/v3/zz_generated_token.go +++ b/client/management/v3/zz_generated_token.go @@ -70,6 +70,7 @@ type TokenClient struct { type TokenOperations interface { List(opts *types.ListOpts) (*TokenCollection, error) + ListAll(opts *types.ListOpts) (*TokenCollection, error) Create(opts *Token) (*Token, error) Update(existing *Token, updates interface{}) (*Token, error) Replace(existing *Token) (*Token, error) @@ -110,6 +111,23 @@ func (c *TokenClient) List(opts *types.ListOpts) (*TokenCollection, error) { return resp, err } +func (c *TokenClient) ListAll(opts *types.ListOpts) (*TokenCollection, error) { + resp := &TokenCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *TokenCollection) Next() (*TokenCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &TokenCollection{} diff --git a/client/management/v3/zz_generated_user.go b/client/management/v3/zz_generated_user.go index 546f22e5..cc6d540e 100644 --- a/client/management/v3/zz_generated_user.go +++ b/client/management/v3/zz_generated_user.go @@ -62,6 +62,7 @@ type UserClient struct { type UserOperations interface { List(opts *types.ListOpts) (*UserCollection, error) + ListAll(opts *types.ListOpts) (*UserCollection, error) Create(opts *User) (*User, error) Update(existing *User, updates interface{}) (*User, error) Replace(existing *User) (*User, error) @@ -108,6 +109,23 @@ func (c *UserClient) List(opts *types.ListOpts) (*UserCollection, error) { return resp, err } +func (c *UserClient) ListAll(opts *types.ListOpts) (*UserCollection, error) { + resp := &UserCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *UserCollection) Next() (*UserCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &UserCollection{} diff --git a/client/management/v3public/zz_generated_auth_provider.go b/client/management/v3public/zz_generated_auth_provider.go index 976853e3..9c70a844 100644 --- a/client/management/v3public/zz_generated_auth_provider.go +++ b/client/management/v3public/zz_generated_auth_provider.go @@ -42,6 +42,7 @@ type AuthProviderClient struct { type AuthProviderOperations interface { List(opts *types.ListOpts) (*AuthProviderCollection, error) + ListAll(opts *types.ListOpts) (*AuthProviderCollection, error) Create(opts *AuthProvider) (*AuthProvider, error) Update(existing *AuthProvider, updates interface{}) (*AuthProvider, error) Replace(existing *AuthProvider) (*AuthProvider, error) @@ -80,6 +81,23 @@ func (c *AuthProviderClient) List(opts *types.ListOpts) (*AuthProviderCollection return resp, err } +func (c *AuthProviderClient) ListAll(opts *types.ListOpts) (*AuthProviderCollection, error) { + resp := &AuthProviderCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *AuthProviderCollection) Next() (*AuthProviderCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &AuthProviderCollection{} diff --git a/client/project/v3/zz_generated_alertmanager.go b/client/project/v3/zz_generated_alertmanager.go index 8968bb1d..1834038e 100644 --- a/client/project/v3/zz_generated_alertmanager.go +++ b/client/project/v3/zz_generated_alertmanager.go @@ -112,6 +112,7 @@ type AlertmanagerClient struct { type AlertmanagerOperations interface { List(opts *types.ListOpts) (*AlertmanagerCollection, error) + ListAll(opts *types.ListOpts) (*AlertmanagerCollection, error) Create(opts *Alertmanager) (*Alertmanager, error) Update(existing *Alertmanager, updates interface{}) (*Alertmanager, error) Replace(existing *Alertmanager) (*Alertmanager, error) @@ -150,6 +151,23 @@ func (c *AlertmanagerClient) List(opts *types.ListOpts) (*AlertmanagerCollection return resp, err } +func (c *AlertmanagerClient) ListAll(opts *types.ListOpts) (*AlertmanagerCollection, error) { + resp := &AlertmanagerCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *AlertmanagerCollection) Next() (*AlertmanagerCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &AlertmanagerCollection{} diff --git a/client/project/v3/zz_generated_app.go b/client/project/v3/zz_generated_app.go index edf77d61..7e635e90 100644 --- a/client/project/v3/zz_generated_app.go +++ b/client/project/v3/zz_generated_app.go @@ -80,6 +80,7 @@ type AppClient struct { type AppOperations interface { List(opts *types.ListOpts) (*AppCollection, error) + ListAll(opts *types.ListOpts) (*AppCollection, error) Create(opts *App) (*App, error) Update(existing *App, updates interface{}) (*App, error) Replace(existing *App) (*App, error) @@ -122,6 +123,23 @@ func (c *AppClient) List(opts *types.ListOpts) (*AppCollection, error) { return resp, err } +func (c *AppClient) ListAll(opts *types.ListOpts) (*AppCollection, error) { + resp := &AppCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *AppCollection) Next() (*AppCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &AppCollection{} diff --git a/client/project/v3/zz_generated_app_revision.go b/client/project/v3/zz_generated_app_revision.go index ecc3e45d..e84e847e 100644 --- a/client/project/v3/zz_generated_app_revision.go +++ b/client/project/v3/zz_generated_app_revision.go @@ -52,6 +52,7 @@ type AppRevisionClient struct { type AppRevisionOperations interface { List(opts *types.ListOpts) (*AppRevisionCollection, error) + ListAll(opts *types.ListOpts) (*AppRevisionCollection, error) Create(opts *AppRevision) (*AppRevision, error) Update(existing *AppRevision, updates interface{}) (*AppRevision, error) Replace(existing *AppRevision) (*AppRevision, error) @@ -90,6 +91,23 @@ func (c *AppRevisionClient) List(opts *types.ListOpts) (*AppRevisionCollection, return resp, err } +func (c *AppRevisionClient) ListAll(opts *types.ListOpts) (*AppRevisionCollection, error) { + resp := &AppRevisionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *AppRevisionCollection) Next() (*AppRevisionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &AppRevisionCollection{} diff --git a/client/project/v3/zz_generated_basic_auth.go b/client/project/v3/zz_generated_basic_auth.go index ddcfad69..34856dc9 100644 --- a/client/project/v3/zz_generated_basic_auth.go +++ b/client/project/v3/zz_generated_basic_auth.go @@ -50,6 +50,7 @@ type BasicAuthClient struct { type BasicAuthOperations interface { List(opts *types.ListOpts) (*BasicAuthCollection, error) + ListAll(opts *types.ListOpts) (*BasicAuthCollection, error) Create(opts *BasicAuth) (*BasicAuth, error) Update(existing *BasicAuth, updates interface{}) (*BasicAuth, error) Replace(existing *BasicAuth) (*BasicAuth, error) @@ -88,6 +89,23 @@ func (c *BasicAuthClient) List(opts *types.ListOpts) (*BasicAuthCollection, erro return resp, err } +func (c *BasicAuthClient) ListAll(opts *types.ListOpts) (*BasicAuthCollection, error) { + resp := &BasicAuthCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *BasicAuthCollection) Next() (*BasicAuthCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &BasicAuthCollection{} diff --git a/client/project/v3/zz_generated_certificate.go b/client/project/v3/zz_generated_certificate.go index 2037b89b..7d15aa50 100644 --- a/client/project/v3/zz_generated_certificate.go +++ b/client/project/v3/zz_generated_certificate.go @@ -70,6 +70,7 @@ type CertificateClient struct { type CertificateOperations interface { List(opts *types.ListOpts) (*CertificateCollection, error) + ListAll(opts *types.ListOpts) (*CertificateCollection, error) Create(opts *Certificate) (*Certificate, error) Update(existing *Certificate, updates interface{}) (*Certificate, error) Replace(existing *Certificate) (*Certificate, error) @@ -108,6 +109,23 @@ func (c *CertificateClient) List(opts *types.ListOpts) (*CertificateCollection, return resp, err } +func (c *CertificateClient) ListAll(opts *types.ListOpts) (*CertificateCollection, error) { + resp := &CertificateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CertificateCollection) Next() (*CertificateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CertificateCollection{} diff --git a/client/project/v3/zz_generated_config_map.go b/client/project/v3/zz_generated_config_map.go index ff0790cb..d571f123 100644 --- a/client/project/v3/zz_generated_config_map.go +++ b/client/project/v3/zz_generated_config_map.go @@ -48,6 +48,7 @@ type ConfigMapClient struct { type ConfigMapOperations interface { List(opts *types.ListOpts) (*ConfigMapCollection, error) + ListAll(opts *types.ListOpts) (*ConfigMapCollection, error) Create(opts *ConfigMap) (*ConfigMap, error) Update(existing *ConfigMap, updates interface{}) (*ConfigMap, error) Replace(existing *ConfigMap) (*ConfigMap, error) @@ -86,6 +87,23 @@ func (c *ConfigMapClient) List(opts *types.ListOpts) (*ConfigMapCollection, erro return resp, err } +func (c *ConfigMapClient) ListAll(opts *types.ListOpts) (*ConfigMapCollection, error) { + resp := &ConfigMapCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ConfigMapCollection) Next() (*ConfigMapCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ConfigMapCollection{} diff --git a/client/project/v3/zz_generated_cron_job.go b/client/project/v3/zz_generated_cron_job.go index ab5cbdb6..d9d363df 100644 --- a/client/project/v3/zz_generated_cron_job.go +++ b/client/project/v3/zz_generated_cron_job.go @@ -132,6 +132,7 @@ type CronJobClient struct { type CronJobOperations interface { List(opts *types.ListOpts) (*CronJobCollection, error) + ListAll(opts *types.ListOpts) (*CronJobCollection, error) Create(opts *CronJob) (*CronJob, error) Update(existing *CronJob, updates interface{}) (*CronJob, error) Replace(existing *CronJob) (*CronJob, error) @@ -170,6 +171,23 @@ func (c *CronJobClient) List(opts *types.ListOpts) (*CronJobCollection, error) { return resp, err } +func (c *CronJobClient) ListAll(opts *types.ListOpts) (*CronJobCollection, error) { + resp := &CronJobCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *CronJobCollection) Next() (*CronJobCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &CronJobCollection{} diff --git a/client/project/v3/zz_generated_daemon_set.go b/client/project/v3/zz_generated_daemon_set.go index 2dbef022..fc29c5f8 100644 --- a/client/project/v3/zz_generated_daemon_set.go +++ b/client/project/v3/zz_generated_daemon_set.go @@ -130,6 +130,7 @@ type DaemonSetClient struct { type DaemonSetOperations interface { List(opts *types.ListOpts) (*DaemonSetCollection, error) + ListAll(opts *types.ListOpts) (*DaemonSetCollection, error) Create(opts *DaemonSet) (*DaemonSet, error) Update(existing *DaemonSet, updates interface{}) (*DaemonSet, error) Replace(existing *DaemonSet) (*DaemonSet, error) @@ -168,6 +169,23 @@ func (c *DaemonSetClient) List(opts *types.ListOpts) (*DaemonSetCollection, erro return resp, err } +func (c *DaemonSetClient) ListAll(opts *types.ListOpts) (*DaemonSetCollection, error) { + resp := &DaemonSetCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DaemonSetCollection) Next() (*DaemonSetCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DaemonSetCollection{} diff --git a/client/project/v3/zz_generated_deployment.go b/client/project/v3/zz_generated_deployment.go index 9b26a64a..e6bf4fae 100644 --- a/client/project/v3/zz_generated_deployment.go +++ b/client/project/v3/zz_generated_deployment.go @@ -134,6 +134,7 @@ type DeploymentClient struct { type DeploymentOperations interface { List(opts *types.ListOpts) (*DeploymentCollection, error) + ListAll(opts *types.ListOpts) (*DeploymentCollection, error) Create(opts *Deployment) (*Deployment, error) Update(existing *Deployment, updates interface{}) (*Deployment, error) Replace(existing *Deployment) (*Deployment, error) @@ -178,6 +179,23 @@ func (c *DeploymentClient) List(opts *types.ListOpts) (*DeploymentCollection, er return resp, err } +func (c *DeploymentClient) ListAll(opts *types.ListOpts) (*DeploymentCollection, error) { + resp := &DeploymentCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DeploymentCollection) Next() (*DeploymentCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DeploymentCollection{} diff --git a/client/project/v3/zz_generated_destination_rule.go b/client/project/v3/zz_generated_destination_rule.go index ed478d53..4bc71918 100644 --- a/client/project/v3/zz_generated_destination_rule.go +++ b/client/project/v3/zz_generated_destination_rule.go @@ -58,6 +58,7 @@ type DestinationRuleClient struct { type DestinationRuleOperations interface { List(opts *types.ListOpts) (*DestinationRuleCollection, error) + ListAll(opts *types.ListOpts) (*DestinationRuleCollection, error) Create(opts *DestinationRule) (*DestinationRule, error) Update(existing *DestinationRule, updates interface{}) (*DestinationRule, error) Replace(existing *DestinationRule) (*DestinationRule, error) @@ -96,6 +97,23 @@ func (c *DestinationRuleClient) List(opts *types.ListOpts) (*DestinationRuleColl return resp, err } +func (c *DestinationRuleClient) ListAll(opts *types.ListOpts) (*DestinationRuleCollection, error) { + resp := &DestinationRuleCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DestinationRuleCollection) Next() (*DestinationRuleCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DestinationRuleCollection{} diff --git a/client/project/v3/zz_generated_dns_record.go b/client/project/v3/zz_generated_dns_record.go index d9faedb7..98a4e29f 100644 --- a/client/project/v3/zz_generated_dns_record.go +++ b/client/project/v3/zz_generated_dns_record.go @@ -74,6 +74,7 @@ type DNSRecordClient struct { type DNSRecordOperations interface { List(opts *types.ListOpts) (*DNSRecordCollection, error) + ListAll(opts *types.ListOpts) (*DNSRecordCollection, error) Create(opts *DNSRecord) (*DNSRecord, error) Update(existing *DNSRecord, updates interface{}) (*DNSRecord, error) Replace(existing *DNSRecord) (*DNSRecord, error) @@ -112,6 +113,23 @@ func (c *DNSRecordClient) List(opts *types.ListOpts) (*DNSRecordCollection, erro return resp, err } +func (c *DNSRecordClient) ListAll(opts *types.ListOpts) (*DNSRecordCollection, error) { + resp := &DNSRecordCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DNSRecordCollection) Next() (*DNSRecordCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DNSRecordCollection{} diff --git a/client/project/v3/zz_generated_docker_credential.go b/client/project/v3/zz_generated_docker_credential.go index 78627239..20b92e8a 100644 --- a/client/project/v3/zz_generated_docker_credential.go +++ b/client/project/v3/zz_generated_docker_credential.go @@ -48,6 +48,7 @@ type DockerCredentialClient struct { type DockerCredentialOperations interface { List(opts *types.ListOpts) (*DockerCredentialCollection, error) + ListAll(opts *types.ListOpts) (*DockerCredentialCollection, error) Create(opts *DockerCredential) (*DockerCredential, error) Update(existing *DockerCredential, updates interface{}) (*DockerCredential, error) Replace(existing *DockerCredential) (*DockerCredential, error) @@ -86,6 +87,23 @@ func (c *DockerCredentialClient) List(opts *types.ListOpts) (*DockerCredentialCo return resp, err } +func (c *DockerCredentialClient) ListAll(opts *types.ListOpts) (*DockerCredentialCollection, error) { + resp := &DockerCredentialCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *DockerCredentialCollection) Next() (*DockerCredentialCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &DockerCredentialCollection{} diff --git a/client/project/v3/zz_generated_gateway.go b/client/project/v3/zz_generated_gateway.go index 716fa9b6..51259754 100644 --- a/client/project/v3/zz_generated_gateway.go +++ b/client/project/v3/zz_generated_gateway.go @@ -56,6 +56,7 @@ type GatewayClient struct { type GatewayOperations interface { List(opts *types.ListOpts) (*GatewayCollection, error) + ListAll(opts *types.ListOpts) (*GatewayCollection, error) Create(opts *Gateway) (*Gateway, error) Update(existing *Gateway, updates interface{}) (*Gateway, error) Replace(existing *Gateway) (*Gateway, error) @@ -94,6 +95,23 @@ func (c *GatewayClient) List(opts *types.ListOpts) (*GatewayCollection, error) { return resp, err } +func (c *GatewayClient) ListAll(opts *types.ListOpts) (*GatewayCollection, error) { + resp := &GatewayCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *GatewayCollection) Next() (*GatewayCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &GatewayCollection{} diff --git a/client/project/v3/zz_generated_horizontal_pod_autoscaler.go b/client/project/v3/zz_generated_horizontal_pod_autoscaler.go index 2e7a0f6e..c8da8128 100644 --- a/client/project/v3/zz_generated_horizontal_pod_autoscaler.go +++ b/client/project/v3/zz_generated_horizontal_pod_autoscaler.go @@ -70,6 +70,7 @@ type HorizontalPodAutoscalerClient struct { type HorizontalPodAutoscalerOperations interface { List(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error) + ListAll(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error) Create(opts *HorizontalPodAutoscaler) (*HorizontalPodAutoscaler, error) Update(existing *HorizontalPodAutoscaler, updates interface{}) (*HorizontalPodAutoscaler, error) Replace(existing *HorizontalPodAutoscaler) (*HorizontalPodAutoscaler, error) @@ -108,6 +109,23 @@ func (c *HorizontalPodAutoscalerClient) List(opts *types.ListOpts) (*HorizontalP return resp, err } +func (c *HorizontalPodAutoscalerClient) ListAll(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error) { + resp := &HorizontalPodAutoscalerCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *HorizontalPodAutoscalerCollection) Next() (*HorizontalPodAutoscalerCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &HorizontalPodAutoscalerCollection{} diff --git a/client/project/v3/zz_generated_ingress.go b/client/project/v3/zz_generated_ingress.go index 461303bb..67db7eea 100644 --- a/client/project/v3/zz_generated_ingress.go +++ b/client/project/v3/zz_generated_ingress.go @@ -62,6 +62,7 @@ type IngressClient struct { type IngressOperations interface { List(opts *types.ListOpts) (*IngressCollection, error) + ListAll(opts *types.ListOpts) (*IngressCollection, error) Create(opts *Ingress) (*Ingress, error) Update(existing *Ingress, updates interface{}) (*Ingress, error) Replace(existing *Ingress) (*Ingress, error) @@ -100,6 +101,23 @@ func (c *IngressClient) List(opts *types.ListOpts) (*IngressCollection, error) { return resp, err } +func (c *IngressClient) ListAll(opts *types.ListOpts) (*IngressCollection, error) { + resp := &IngressCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *IngressCollection) Next() (*IngressCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &IngressCollection{} diff --git a/client/project/v3/zz_generated_job.go b/client/project/v3/zz_generated_job.go index 5a9ff77e..31ade3ed 100644 --- a/client/project/v3/zz_generated_job.go +++ b/client/project/v3/zz_generated_job.go @@ -132,6 +132,7 @@ type JobClient struct { type JobOperations interface { List(opts *types.ListOpts) (*JobCollection, error) + ListAll(opts *types.ListOpts) (*JobCollection, error) Create(opts *Job) (*Job, error) Update(existing *Job, updates interface{}) (*Job, error) Replace(existing *Job) (*Job, error) @@ -170,6 +171,23 @@ func (c *JobClient) List(opts *types.ListOpts) (*JobCollection, error) { return resp, err } +func (c *JobClient) ListAll(opts *types.ListOpts) (*JobCollection, error) { + resp := &JobCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *JobCollection) Next() (*JobCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &JobCollection{} diff --git a/client/project/v3/zz_generated_namespaced_basic_auth.go b/client/project/v3/zz_generated_namespaced_basic_auth.go index 58329af1..d43642f7 100644 --- a/client/project/v3/zz_generated_namespaced_basic_auth.go +++ b/client/project/v3/zz_generated_namespaced_basic_auth.go @@ -50,6 +50,7 @@ type NamespacedBasicAuthClient struct { type NamespacedBasicAuthOperations interface { List(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error) Create(opts *NamespacedBasicAuth) (*NamespacedBasicAuth, error) Update(existing *NamespacedBasicAuth, updates interface{}) (*NamespacedBasicAuth, error) Replace(existing *NamespacedBasicAuth) (*NamespacedBasicAuth, error) @@ -88,6 +89,23 @@ func (c *NamespacedBasicAuthClient) List(opts *types.ListOpts) (*NamespacedBasic return resp, err } +func (c *NamespacedBasicAuthClient) ListAll(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error) { + resp := &NamespacedBasicAuthCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedBasicAuthCollection) Next() (*NamespacedBasicAuthCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedBasicAuthCollection{} diff --git a/client/project/v3/zz_generated_namespaced_certificate.go b/client/project/v3/zz_generated_namespaced_certificate.go index 8903a8f9..b0878a45 100644 --- a/client/project/v3/zz_generated_namespaced_certificate.go +++ b/client/project/v3/zz_generated_namespaced_certificate.go @@ -70,6 +70,7 @@ type NamespacedCertificateClient struct { type NamespacedCertificateOperations interface { List(opts *types.ListOpts) (*NamespacedCertificateCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedCertificateCollection, error) Create(opts *NamespacedCertificate) (*NamespacedCertificate, error) Update(existing *NamespacedCertificate, updates interface{}) (*NamespacedCertificate, error) Replace(existing *NamespacedCertificate) (*NamespacedCertificate, error) @@ -108,6 +109,23 @@ func (c *NamespacedCertificateClient) List(opts *types.ListOpts) (*NamespacedCer return resp, err } +func (c *NamespacedCertificateClient) ListAll(opts *types.ListOpts) (*NamespacedCertificateCollection, error) { + resp := &NamespacedCertificateCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedCertificateCollection) Next() (*NamespacedCertificateCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedCertificateCollection{} diff --git a/client/project/v3/zz_generated_namespaced_docker_credential.go b/client/project/v3/zz_generated_namespaced_docker_credential.go index 688275e9..0bddeb6b 100644 --- a/client/project/v3/zz_generated_namespaced_docker_credential.go +++ b/client/project/v3/zz_generated_namespaced_docker_credential.go @@ -48,6 +48,7 @@ type NamespacedDockerCredentialClient struct { type NamespacedDockerCredentialOperations interface { List(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error) Create(opts *NamespacedDockerCredential) (*NamespacedDockerCredential, error) Update(existing *NamespacedDockerCredential, updates interface{}) (*NamespacedDockerCredential, error) Replace(existing *NamespacedDockerCredential) (*NamespacedDockerCredential, error) @@ -86,6 +87,23 @@ func (c *NamespacedDockerCredentialClient) List(opts *types.ListOpts) (*Namespac return resp, err } +func (c *NamespacedDockerCredentialClient) ListAll(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error) { + resp := &NamespacedDockerCredentialCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedDockerCredentialCollection) Next() (*NamespacedDockerCredentialCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedDockerCredentialCollection{} diff --git a/client/project/v3/zz_generated_namespaced_secret.go b/client/project/v3/zz_generated_namespaced_secret.go index cd3ae003..71ac66b7 100644 --- a/client/project/v3/zz_generated_namespaced_secret.go +++ b/client/project/v3/zz_generated_namespaced_secret.go @@ -52,6 +52,7 @@ type NamespacedSecretClient struct { type NamespacedSecretOperations interface { List(opts *types.ListOpts) (*NamespacedSecretCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedSecretCollection, error) Create(opts *NamespacedSecret) (*NamespacedSecret, error) Update(existing *NamespacedSecret, updates interface{}) (*NamespacedSecret, error) Replace(existing *NamespacedSecret) (*NamespacedSecret, error) @@ -90,6 +91,23 @@ func (c *NamespacedSecretClient) List(opts *types.ListOpts) (*NamespacedSecretCo return resp, err } +func (c *NamespacedSecretClient) ListAll(opts *types.ListOpts) (*NamespacedSecretCollection, error) { + resp := &NamespacedSecretCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedSecretCollection) Next() (*NamespacedSecretCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedSecretCollection{} diff --git a/client/project/v3/zz_generated_namespaced_service_account_token.go b/client/project/v3/zz_generated_namespaced_service_account_token.go index 9acdc6f3..949ca441 100644 --- a/client/project/v3/zz_generated_namespaced_service_account_token.go +++ b/client/project/v3/zz_generated_namespaced_service_account_token.go @@ -54,6 +54,7 @@ type NamespacedServiceAccountTokenClient struct { type NamespacedServiceAccountTokenOperations interface { List(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error) Create(opts *NamespacedServiceAccountToken) (*NamespacedServiceAccountToken, error) Update(existing *NamespacedServiceAccountToken, updates interface{}) (*NamespacedServiceAccountToken, error) Replace(existing *NamespacedServiceAccountToken) (*NamespacedServiceAccountToken, error) @@ -92,6 +93,23 @@ func (c *NamespacedServiceAccountTokenClient) List(opts *types.ListOpts) (*Names return resp, err } +func (c *NamespacedServiceAccountTokenClient) ListAll(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error) { + resp := &NamespacedServiceAccountTokenCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedServiceAccountTokenCollection) Next() (*NamespacedServiceAccountTokenCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedServiceAccountTokenCollection{} diff --git a/client/project/v3/zz_generated_namespaced_ssh_auth.go b/client/project/v3/zz_generated_namespaced_ssh_auth.go index 010f486f..bdeacb59 100644 --- a/client/project/v3/zz_generated_namespaced_ssh_auth.go +++ b/client/project/v3/zz_generated_namespaced_ssh_auth.go @@ -50,6 +50,7 @@ type NamespacedSSHAuthClient struct { type NamespacedSSHAuthOperations interface { List(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error) + ListAll(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error) Create(opts *NamespacedSSHAuth) (*NamespacedSSHAuth, error) Update(existing *NamespacedSSHAuth, updates interface{}) (*NamespacedSSHAuth, error) Replace(existing *NamespacedSSHAuth) (*NamespacedSSHAuth, error) @@ -88,6 +89,23 @@ func (c *NamespacedSSHAuthClient) List(opts *types.ListOpts) (*NamespacedSSHAuth return resp, err } +func (c *NamespacedSSHAuthClient) ListAll(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error) { + resp := &NamespacedSSHAuthCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *NamespacedSSHAuthCollection) Next() (*NamespacedSSHAuthCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &NamespacedSSHAuthCollection{} diff --git a/client/project/v3/zz_generated_persistent_volume_claim.go b/client/project/v3/zz_generated_persistent_volume_claim.go index bba8d6fe..c521252a 100644 --- a/client/project/v3/zz_generated_persistent_volume_claim.go +++ b/client/project/v3/zz_generated_persistent_volume_claim.go @@ -66,6 +66,7 @@ type PersistentVolumeClaimClient struct { type PersistentVolumeClaimOperations interface { List(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error) + ListAll(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error) Create(opts *PersistentVolumeClaim) (*PersistentVolumeClaim, error) Update(existing *PersistentVolumeClaim, updates interface{}) (*PersistentVolumeClaim, error) Replace(existing *PersistentVolumeClaim) (*PersistentVolumeClaim, error) @@ -104,6 +105,23 @@ func (c *PersistentVolumeClaimClient) List(opts *types.ListOpts) (*PersistentVol return resp, err } +func (c *PersistentVolumeClaimClient) ListAll(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error) { + resp := &PersistentVolumeClaimCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PersistentVolumeClaimCollection) Next() (*PersistentVolumeClaimCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PersistentVolumeClaimCollection{} diff --git a/client/project/v3/zz_generated_pipeline.go b/client/project/v3/zz_generated_pipeline.go index 4d5193ee..7c5d1aa3 100644 --- a/client/project/v3/zz_generated_pipeline.go +++ b/client/project/v3/zz_generated_pipeline.go @@ -78,6 +78,7 @@ type PipelineClient struct { type PipelineOperations interface { List(opts *types.ListOpts) (*PipelineCollection, error) + ListAll(opts *types.ListOpts) (*PipelineCollection, error) Create(opts *Pipeline) (*Pipeline, error) Update(existing *Pipeline, updates interface{}) (*Pipeline, error) Replace(existing *Pipeline) (*Pipeline, error) @@ -124,6 +125,23 @@ func (c *PipelineClient) List(opts *types.ListOpts) (*PipelineCollection, error) return resp, err } +func (c *PipelineClient) ListAll(opts *types.ListOpts) (*PipelineCollection, error) { + resp := &PipelineCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PipelineCollection) Next() (*PipelineCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PipelineCollection{} diff --git a/client/project/v3/zz_generated_pipeline_execution.go b/client/project/v3/zz_generated_pipeline_execution.go index 9f079a15..8442ab03 100644 --- a/client/project/v3/zz_generated_pipeline_execution.go +++ b/client/project/v3/zz_generated_pipeline_execution.go @@ -92,6 +92,7 @@ type PipelineExecutionClient struct { type PipelineExecutionOperations interface { List(opts *types.ListOpts) (*PipelineExecutionCollection, error) + ListAll(opts *types.ListOpts) (*PipelineExecutionCollection, error) Create(opts *PipelineExecution) (*PipelineExecution, error) Update(existing *PipelineExecution, updates interface{}) (*PipelineExecution, error) Replace(existing *PipelineExecution) (*PipelineExecution, error) @@ -134,6 +135,23 @@ func (c *PipelineExecutionClient) List(opts *types.ListOpts) (*PipelineExecution return resp, err } +func (c *PipelineExecutionClient) ListAll(opts *types.ListOpts) (*PipelineExecutionCollection, error) { + resp := &PipelineExecutionCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PipelineExecutionCollection) Next() (*PipelineExecutionCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PipelineExecutionCollection{} diff --git a/client/project/v3/zz_generated_pipeline_setting.go b/client/project/v3/zz_generated_pipeline_setting.go index 5dc55867..5fafd1c0 100644 --- a/client/project/v3/zz_generated_pipeline_setting.go +++ b/client/project/v3/zz_generated_pipeline_setting.go @@ -50,6 +50,7 @@ type PipelineSettingClient struct { type PipelineSettingOperations interface { List(opts *types.ListOpts) (*PipelineSettingCollection, error) + ListAll(opts *types.ListOpts) (*PipelineSettingCollection, error) Create(opts *PipelineSetting) (*PipelineSetting, error) Update(existing *PipelineSetting, updates interface{}) (*PipelineSetting, error) Replace(existing *PipelineSetting) (*PipelineSetting, error) @@ -88,6 +89,23 @@ func (c *PipelineSettingClient) List(opts *types.ListOpts) (*PipelineSettingColl return resp, err } +func (c *PipelineSettingClient) ListAll(opts *types.ListOpts) (*PipelineSettingCollection, error) { + resp := &PipelineSettingCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PipelineSettingCollection) Next() (*PipelineSettingCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PipelineSettingCollection{} diff --git a/client/project/v3/zz_generated_pod.go b/client/project/v3/zz_generated_pod.go index decdcd74..f57c806e 100644 --- a/client/project/v3/zz_generated_pod.go +++ b/client/project/v3/zz_generated_pod.go @@ -126,6 +126,7 @@ type PodClient struct { type PodOperations interface { List(opts *types.ListOpts) (*PodCollection, error) + ListAll(opts *types.ListOpts) (*PodCollection, error) Create(opts *Pod) (*Pod, error) Update(existing *Pod, updates interface{}) (*Pod, error) Replace(existing *Pod) (*Pod, error) @@ -164,6 +165,23 @@ func (c *PodClient) List(opts *types.ListOpts) (*PodCollection, error) { return resp, err } +func (c *PodClient) ListAll(opts *types.ListOpts) (*PodCollection, error) { + resp := &PodCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PodCollection) Next() (*PodCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PodCollection{} diff --git a/client/project/v3/zz_generated_prometheus.go b/client/project/v3/zz_generated_prometheus.go index 30a48a59..f877b9fe 100644 --- a/client/project/v3/zz_generated_prometheus.go +++ b/client/project/v3/zz_generated_prometheus.go @@ -148,6 +148,7 @@ type PrometheusClient struct { type PrometheusOperations interface { List(opts *types.ListOpts) (*PrometheusCollection, error) + ListAll(opts *types.ListOpts) (*PrometheusCollection, error) Create(opts *Prometheus) (*Prometheus, error) Update(existing *Prometheus, updates interface{}) (*Prometheus, error) Replace(existing *Prometheus) (*Prometheus, error) @@ -186,6 +187,23 @@ func (c *PrometheusClient) List(opts *types.ListOpts) (*PrometheusCollection, er return resp, err } +func (c *PrometheusClient) ListAll(opts *types.ListOpts) (*PrometheusCollection, error) { + resp := &PrometheusCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PrometheusCollection) Next() (*PrometheusCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PrometheusCollection{} diff --git a/client/project/v3/zz_generated_prometheus_rule.go b/client/project/v3/zz_generated_prometheus_rule.go index d13effd0..742a53fb 100644 --- a/client/project/v3/zz_generated_prometheus_rule.go +++ b/client/project/v3/zz_generated_prometheus_rule.go @@ -46,6 +46,7 @@ type PrometheusRuleClient struct { type PrometheusRuleOperations interface { List(opts *types.ListOpts) (*PrometheusRuleCollection, error) + ListAll(opts *types.ListOpts) (*PrometheusRuleCollection, error) Create(opts *PrometheusRule) (*PrometheusRule, error) Update(existing *PrometheusRule, updates interface{}) (*PrometheusRule, error) Replace(existing *PrometheusRule) (*PrometheusRule, error) @@ -84,6 +85,23 @@ func (c *PrometheusRuleClient) List(opts *types.ListOpts) (*PrometheusRuleCollec return resp, err } +func (c *PrometheusRuleClient) ListAll(opts *types.ListOpts) (*PrometheusRuleCollection, error) { + resp := &PrometheusRuleCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *PrometheusRuleCollection) Next() (*PrometheusRuleCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &PrometheusRuleCollection{} diff --git a/client/project/v3/zz_generated_replica_set.go b/client/project/v3/zz_generated_replica_set.go index 92254d2f..47443d5e 100644 --- a/client/project/v3/zz_generated_replica_set.go +++ b/client/project/v3/zz_generated_replica_set.go @@ -132,6 +132,7 @@ type ReplicaSetClient struct { type ReplicaSetOperations interface { List(opts *types.ListOpts) (*ReplicaSetCollection, error) + ListAll(opts *types.ListOpts) (*ReplicaSetCollection, error) Create(opts *ReplicaSet) (*ReplicaSet, error) Update(existing *ReplicaSet, updates interface{}) (*ReplicaSet, error) Replace(existing *ReplicaSet) (*ReplicaSet, error) @@ -170,6 +171,23 @@ func (c *ReplicaSetClient) List(opts *types.ListOpts) (*ReplicaSetCollection, er return resp, err } +func (c *ReplicaSetClient) ListAll(opts *types.ListOpts) (*ReplicaSetCollection, error) { + resp := &ReplicaSetCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ReplicaSetCollection) Next() (*ReplicaSetCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ReplicaSetCollection{} diff --git a/client/project/v3/zz_generated_replication_controller.go b/client/project/v3/zz_generated_replication_controller.go index 5f4b45a5..95216b8b 100644 --- a/client/project/v3/zz_generated_replication_controller.go +++ b/client/project/v3/zz_generated_replication_controller.go @@ -132,6 +132,7 @@ type ReplicationControllerClient struct { type ReplicationControllerOperations interface { List(opts *types.ListOpts) (*ReplicationControllerCollection, error) + ListAll(opts *types.ListOpts) (*ReplicationControllerCollection, error) Create(opts *ReplicationController) (*ReplicationController, error) Update(existing *ReplicationController, updates interface{}) (*ReplicationController, error) Replace(existing *ReplicationController) (*ReplicationController, error) @@ -170,6 +171,23 @@ func (c *ReplicationControllerClient) List(opts *types.ListOpts) (*ReplicationCo return resp, err } +func (c *ReplicationControllerClient) ListAll(opts *types.ListOpts) (*ReplicationControllerCollection, error) { + resp := &ReplicationControllerCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ReplicationControllerCollection) Next() (*ReplicationControllerCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ReplicationControllerCollection{} diff --git a/client/project/v3/zz_generated_secret.go b/client/project/v3/zz_generated_secret.go index 0d1f3572..e279f578 100644 --- a/client/project/v3/zz_generated_secret.go +++ b/client/project/v3/zz_generated_secret.go @@ -52,6 +52,7 @@ type SecretClient struct { type SecretOperations interface { List(opts *types.ListOpts) (*SecretCollection, error) + ListAll(opts *types.ListOpts) (*SecretCollection, error) Create(opts *Secret) (*Secret, error) Update(existing *Secret, updates interface{}) (*Secret, error) Replace(existing *Secret) (*Secret, error) @@ -90,6 +91,23 @@ func (c *SecretClient) List(opts *types.ListOpts) (*SecretCollection, error) { return resp, err } +func (c *SecretClient) ListAll(opts *types.ListOpts) (*SecretCollection, error) { + resp := &SecretCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SecretCollection) Next() (*SecretCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SecretCollection{} diff --git a/client/project/v3/zz_generated_service.go b/client/project/v3/zz_generated_service.go index 8ee01e60..3d541db3 100644 --- a/client/project/v3/zz_generated_service.go +++ b/client/project/v3/zz_generated_service.go @@ -92,6 +92,7 @@ type ServiceClient struct { type ServiceOperations interface { List(opts *types.ListOpts) (*ServiceCollection, error) + ListAll(opts *types.ListOpts) (*ServiceCollection, error) Create(opts *Service) (*Service, error) Update(existing *Service, updates interface{}) (*Service, error) Replace(existing *Service) (*Service, error) @@ -130,6 +131,23 @@ func (c *ServiceClient) List(opts *types.ListOpts) (*ServiceCollection, error) { return resp, err } +func (c *ServiceClient) ListAll(opts *types.ListOpts) (*ServiceCollection, error) { + resp := &ServiceCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ServiceCollection) Next() (*ServiceCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ServiceCollection{} diff --git a/client/project/v3/zz_generated_service_account_token.go b/client/project/v3/zz_generated_service_account_token.go index 1ecc1e2d..f68ca16e 100644 --- a/client/project/v3/zz_generated_service_account_token.go +++ b/client/project/v3/zz_generated_service_account_token.go @@ -54,6 +54,7 @@ type ServiceAccountTokenClient struct { type ServiceAccountTokenOperations interface { List(opts *types.ListOpts) (*ServiceAccountTokenCollection, error) + ListAll(opts *types.ListOpts) (*ServiceAccountTokenCollection, error) Create(opts *ServiceAccountToken) (*ServiceAccountToken, error) Update(existing *ServiceAccountToken, updates interface{}) (*ServiceAccountToken, error) Replace(existing *ServiceAccountToken) (*ServiceAccountToken, error) @@ -92,6 +93,23 @@ func (c *ServiceAccountTokenClient) List(opts *types.ListOpts) (*ServiceAccountT return resp, err } +func (c *ServiceAccountTokenClient) ListAll(opts *types.ListOpts) (*ServiceAccountTokenCollection, error) { + resp := &ServiceAccountTokenCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ServiceAccountTokenCollection) Next() (*ServiceAccountTokenCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ServiceAccountTokenCollection{} diff --git a/client/project/v3/zz_generated_service_monitor.go b/client/project/v3/zz_generated_service_monitor.go index db96da98..fed6e88f 100644 --- a/client/project/v3/zz_generated_service_monitor.go +++ b/client/project/v3/zz_generated_service_monitor.go @@ -62,6 +62,7 @@ type ServiceMonitorClient struct { type ServiceMonitorOperations interface { List(opts *types.ListOpts) (*ServiceMonitorCollection, error) + ListAll(opts *types.ListOpts) (*ServiceMonitorCollection, error) Create(opts *ServiceMonitor) (*ServiceMonitor, error) Update(existing *ServiceMonitor, updates interface{}) (*ServiceMonitor, error) Replace(existing *ServiceMonitor) (*ServiceMonitor, error) @@ -100,6 +101,23 @@ func (c *ServiceMonitorClient) List(opts *types.ListOpts) (*ServiceMonitorCollec return resp, err } +func (c *ServiceMonitorClient) ListAll(opts *types.ListOpts) (*ServiceMonitorCollection, error) { + resp := &ServiceMonitorCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *ServiceMonitorCollection) Next() (*ServiceMonitorCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &ServiceMonitorCollection{} diff --git a/client/project/v3/zz_generated_source_code_credential.go b/client/project/v3/zz_generated_source_code_credential.go index cf3be11a..746872af 100644 --- a/client/project/v3/zz_generated_source_code_credential.go +++ b/client/project/v3/zz_generated_source_code_credential.go @@ -72,6 +72,7 @@ type SourceCodeCredentialClient struct { type SourceCodeCredentialOperations interface { List(opts *types.ListOpts) (*SourceCodeCredentialCollection, error) + ListAll(opts *types.ListOpts) (*SourceCodeCredentialCollection, error) Create(opts *SourceCodeCredential) (*SourceCodeCredential, error) Update(existing *SourceCodeCredential, updates interface{}) (*SourceCodeCredential, error) Replace(existing *SourceCodeCredential) (*SourceCodeCredential, error) @@ -114,6 +115,23 @@ func (c *SourceCodeCredentialClient) List(opts *types.ListOpts) (*SourceCodeCred return resp, err } +func (c *SourceCodeCredentialClient) ListAll(opts *types.ListOpts) (*SourceCodeCredentialCollection, error) { + resp := &SourceCodeCredentialCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SourceCodeCredentialCollection) Next() (*SourceCodeCredentialCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SourceCodeCredentialCollection{} diff --git a/client/project/v3/zz_generated_source_code_provider.go b/client/project/v3/zz_generated_source_code_provider.go index 9c058064..87dfe143 100644 --- a/client/project/v3/zz_generated_source_code_provider.go +++ b/client/project/v3/zz_generated_source_code_provider.go @@ -44,6 +44,7 @@ type SourceCodeProviderClient struct { type SourceCodeProviderOperations interface { List(opts *types.ListOpts) (*SourceCodeProviderCollection, error) + ListAll(opts *types.ListOpts) (*SourceCodeProviderCollection, error) Create(opts *SourceCodeProvider) (*SourceCodeProvider, error) Update(existing *SourceCodeProvider, updates interface{}) (*SourceCodeProvider, error) Replace(existing *SourceCodeProvider) (*SourceCodeProvider, error) @@ -82,6 +83,23 @@ func (c *SourceCodeProviderClient) List(opts *types.ListOpts) (*SourceCodeProvid return resp, err } +func (c *SourceCodeProviderClient) ListAll(opts *types.ListOpts) (*SourceCodeProviderCollection, error) { + resp := &SourceCodeProviderCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SourceCodeProviderCollection) Next() (*SourceCodeProviderCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SourceCodeProviderCollection{} diff --git a/client/project/v3/zz_generated_source_code_provider_config.go b/client/project/v3/zz_generated_source_code_provider_config.go index f14f32be..f273512f 100644 --- a/client/project/v3/zz_generated_source_code_provider_config.go +++ b/client/project/v3/zz_generated_source_code_provider_config.go @@ -48,6 +48,7 @@ type SourceCodeProviderConfigClient struct { type SourceCodeProviderConfigOperations interface { List(opts *types.ListOpts) (*SourceCodeProviderConfigCollection, error) + ListAll(opts *types.ListOpts) (*SourceCodeProviderConfigCollection, error) Create(opts *SourceCodeProviderConfig) (*SourceCodeProviderConfig, error) Update(existing *SourceCodeProviderConfig, updates interface{}) (*SourceCodeProviderConfig, error) Replace(existing *SourceCodeProviderConfig) (*SourceCodeProviderConfig, error) @@ -86,6 +87,23 @@ func (c *SourceCodeProviderConfigClient) List(opts *types.ListOpts) (*SourceCode return resp, err } +func (c *SourceCodeProviderConfigClient) ListAll(opts *types.ListOpts) (*SourceCodeProviderConfigCollection, error) { + resp := &SourceCodeProviderConfigCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SourceCodeProviderConfigCollection) Next() (*SourceCodeProviderConfigCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SourceCodeProviderConfigCollection{} diff --git a/client/project/v3/zz_generated_source_code_repository.go b/client/project/v3/zz_generated_source_code_repository.go index 5596db92..cb910fa8 100644 --- a/client/project/v3/zz_generated_source_code_repository.go +++ b/client/project/v3/zz_generated_source_code_repository.go @@ -64,6 +64,7 @@ type SourceCodeRepositoryClient struct { type SourceCodeRepositoryOperations interface { List(opts *types.ListOpts) (*SourceCodeRepositoryCollection, error) + ListAll(opts *types.ListOpts) (*SourceCodeRepositoryCollection, error) Create(opts *SourceCodeRepository) (*SourceCodeRepository, error) Update(existing *SourceCodeRepository, updates interface{}) (*SourceCodeRepository, error) Replace(existing *SourceCodeRepository) (*SourceCodeRepository, error) @@ -102,6 +103,23 @@ func (c *SourceCodeRepositoryClient) List(opts *types.ListOpts) (*SourceCodeRepo return resp, err } +func (c *SourceCodeRepositoryClient) ListAll(opts *types.ListOpts) (*SourceCodeRepositoryCollection, error) { + resp := &SourceCodeRepositoryCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SourceCodeRepositoryCollection) Next() (*SourceCodeRepositoryCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SourceCodeRepositoryCollection{} diff --git a/client/project/v3/zz_generated_ssh_auth.go b/client/project/v3/zz_generated_ssh_auth.go index 7002f333..ff192710 100644 --- a/client/project/v3/zz_generated_ssh_auth.go +++ b/client/project/v3/zz_generated_ssh_auth.go @@ -50,6 +50,7 @@ type SSHAuthClient struct { type SSHAuthOperations interface { List(opts *types.ListOpts) (*SSHAuthCollection, error) + ListAll(opts *types.ListOpts) (*SSHAuthCollection, error) Create(opts *SSHAuth) (*SSHAuth, error) Update(existing *SSHAuth, updates interface{}) (*SSHAuth, error) Replace(existing *SSHAuth) (*SSHAuth, error) @@ -88,6 +89,23 @@ func (c *SSHAuthClient) List(opts *types.ListOpts) (*SSHAuthCollection, error) { return resp, err } +func (c *SSHAuthClient) ListAll(opts *types.ListOpts) (*SSHAuthCollection, error) { + resp := &SSHAuthCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *SSHAuthCollection) Next() (*SSHAuthCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &SSHAuthCollection{} diff --git a/client/project/v3/zz_generated_stateful_set.go b/client/project/v3/zz_generated_stateful_set.go index 30d24261..abe59d19 100644 --- a/client/project/v3/zz_generated_stateful_set.go +++ b/client/project/v3/zz_generated_stateful_set.go @@ -132,6 +132,7 @@ type StatefulSetClient struct { type StatefulSetOperations interface { List(opts *types.ListOpts) (*StatefulSetCollection, error) + ListAll(opts *types.ListOpts) (*StatefulSetCollection, error) Create(opts *StatefulSet) (*StatefulSet, error) Update(existing *StatefulSet, updates interface{}) (*StatefulSet, error) Replace(existing *StatefulSet) (*StatefulSet, error) @@ -170,6 +171,23 @@ func (c *StatefulSetClient) List(opts *types.ListOpts) (*StatefulSetCollection, return resp, err } +func (c *StatefulSetClient) ListAll(opts *types.ListOpts) (*StatefulSetCollection, error) { + resp := &StatefulSetCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *StatefulSetCollection) Next() (*StatefulSetCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &StatefulSetCollection{} diff --git a/client/project/v3/zz_generated_virtual_service.go b/client/project/v3/zz_generated_virtual_service.go index 6a535bc9..1bcef280 100644 --- a/client/project/v3/zz_generated_virtual_service.go +++ b/client/project/v3/zz_generated_virtual_service.go @@ -62,6 +62,7 @@ type VirtualServiceClient struct { type VirtualServiceOperations interface { List(opts *types.ListOpts) (*VirtualServiceCollection, error) + ListAll(opts *types.ListOpts) (*VirtualServiceCollection, error) Create(opts *VirtualService) (*VirtualService, error) Update(existing *VirtualService, updates interface{}) (*VirtualService, error) Replace(existing *VirtualService) (*VirtualService, error) @@ -100,6 +101,23 @@ func (c *VirtualServiceClient) List(opts *types.ListOpts) (*VirtualServiceCollec return resp, err } +func (c *VirtualServiceClient) ListAll(opts *types.ListOpts) (*VirtualServiceCollection, error) { + resp := &VirtualServiceCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *VirtualServiceCollection) Next() (*VirtualServiceCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &VirtualServiceCollection{} diff --git a/client/project/v3/zz_generated_workload.go b/client/project/v3/zz_generated_workload.go index b5197165..d90e57e5 100644 --- a/client/project/v3/zz_generated_workload.go +++ b/client/project/v3/zz_generated_workload.go @@ -160,6 +160,7 @@ type WorkloadClient struct { type WorkloadOperations interface { List(opts *types.ListOpts) (*WorkloadCollection, error) + ListAll(opts *types.ListOpts) (*WorkloadCollection, error) Create(opts *Workload) (*Workload, error) Update(existing *Workload, updates interface{}) (*Workload, error) Replace(existing *Workload) (*Workload, error) @@ -204,6 +205,23 @@ func (c *WorkloadClient) List(opts *types.ListOpts) (*WorkloadCollection, error) return resp, err } +func (c *WorkloadClient) ListAll(opts *types.ListOpts) (*WorkloadCollection, error) { + resp := &WorkloadCollection{} + resp, err := c.List(opts) + if err != nil { + return resp, err + } + data := resp.Data + for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() { + data = append(data, resp.Data...) + } + if err != nil { + return resp, err + } + resp.Data = data + return resp, err +} + func (cc *WorkloadCollection) Next() (*WorkloadCollection, error) { if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" { resp := &WorkloadCollection{}