Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
bump version for 2.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Stephenson committed Feb 28, 2022
1 parent 5bb6550 commit 3a8a48c
Show file tree
Hide file tree
Showing 135 changed files with 978 additions and 845 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

# version information
SEMANTIC_VERSION ?= "2.5.0"
SEMANTIC_VERSION ?= "2.6.0"

# build flags
LDFLAGS += -X main.Version=$(SEMANTIC_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion pkg/openapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2.5.0
- API version: 2.6.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://storageos.com](https://storageos.com)
Expand Down
2 changes: 1 addition & 1 deletion pkg/openapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
name: StorageOS
url: https://storageos.com
title: StorageOS API
version: 2.5.0
version: 2.6.0
externalDocs:
description: The latest StorageOS user documentation
url: https://docs.storageos.com/
Expand Down
276 changes: 138 additions & 138 deletions pkg/openapi/api_default.go

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions pkg/openapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -41,7 +41,7 @@ var (
xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
)

// APIClient manages communication with the StorageOS API API v2.5.0
// APIClient manages communication with the StorageOS API API v2.6.0
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down Expand Up @@ -158,13 +158,12 @@ func parameterToJson(obj interface{}) (string, error) {
return string(jsonBuf), err
}


// callAPI do the request.
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
if c.cfg.Debug {
dump, err := httputil.DumpRequestOut(request, true)
dump, err := httputil.DumpRequestOut(request, true)
if err != nil {
return nil, err
return nil, err
}
log.Printf("\n%s\n", string(dump))
}
Expand Down
14 changes: 6 additions & 8 deletions pkg/openapi/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Expand Down Expand Up @@ -38,7 +38,6 @@ var (

// ContextAPIKey takes an APIKey as authentication for the request
ContextAPIKey = contextKey("apikey")

)

// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
Expand All @@ -53,7 +52,6 @@ type APIKey struct {
Prefix string
}


// ServerVariable stores the information about a server variable
type ServerVariable struct {
Description string
Expand All @@ -63,9 +61,9 @@ type ServerVariable struct {

// ServerConfiguration stores the information about a server
type ServerConfiguration struct {
Url string
Url string
Description string
Variables map[string]ServerVariable
Variables map[string]ServerVariable
}

// Configuration stores the configuration of the API client
Expand All @@ -87,9 +85,9 @@ func NewConfiguration() *Configuration {
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: []ServerConfiguration{
Servers: []ServerConfiguration{
{
Url: "/v2",
Url: "/v2",
Description: "No description provided",
},
},
Expand All @@ -105,7 +103,7 @@ func (c *Configuration) AddDefaultHeader(key string, value string) {
// ServerUrl returns URL based on server settings
func (c *Configuration) ServerUrl(index int, variables map[string]string) (string, error) {
if index < 0 || len(c.Servers) <= index {
return "", fmt.Errorf("Index %v out of range %v", index, len(c.Servers) - 1)
return "", fmt.Errorf("Index %v out of range %v", index, len(c.Servers)-1)
}
server := c.Servers[index]
url := server.Url
Expand Down
9 changes: 5 additions & 4 deletions pkg/openapi/model__policies__id__specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// PoliciesIdSpecs struct for PoliciesIdSpecs
type PoliciesIdSpecs struct {
// A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change..
// A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change..
NamespaceID string `json:"namespaceID,omitempty"`
// The resource type this policy grants access to.
// The resource type this policy grants access to.
ResourceType string `json:"resourceType,omitempty"`
// If true, disallows requests that attempt to mutate the resource.
// If true, disallows requests that attempt to mutate the resource.
ReadOnly bool `json:"readOnly,omitempty"`
}
9 changes: 5 additions & 4 deletions pkg/openapi/model__policies_specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// PoliciesSpecs struct for PoliciesSpecs
type PoliciesSpecs struct {
// A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change..
// A unique identifier for a namespace. The format of this type is undefined and may change but the defined properties will not change..
NamespaceID string `json:"namespaceID,omitempty"`
// The resource type this policy grants access to.
// The resource type this policy grants access to.
ResourceType string `json:"resourceType,omitempty"`
// If true, disallows requests that attempt to mutate the resource.
// If true, disallows requests that attempt to mutate the resource.
ReadOnly bool `json:"readOnly,omitempty"`
}
3 changes: 2 additions & 1 deletion pkg/openapi/model_accepted_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// AcceptedMessage struct for AcceptedMessage
type AcceptedMessage struct {
Msg string `json:"msg,omitempty"`
Expand Down
5 changes: 3 additions & 2 deletions pkg/openapi/model_attach_nfs_volume_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// AttachNfsVolumeData struct for AttachNfsVolumeData
type AttachNfsVolumeData struct {
// An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change.
// An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change.
Version string `json:"version,omitempty"`
}
11 changes: 6 additions & 5 deletions pkg/openapi/model_attach_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi
// AttachType The attachment type of a volume. \"host\" indicates that the volume is consumed by the node it is attached to.

// AttachType The attachment type of a volume. \"host\" indicates that the volume is consumed by the node it is attached to.
type AttachType string

// List of AttachType
const (
ATTACHTYPE_UNKNOWN AttachType = "unknown"
ATTACHTYPE_UNKNOWN AttachType = "unknown"
ATTACHTYPE_DETACHED AttachType = "detached"
ATTACHTYPE_NFS AttachType = "nfs"
ATTACHTYPE_HOST AttachType = "host"
ATTACHTYPE_NFS AttachType = "nfs"
ATTACHTYPE_HOST AttachType = "host"
)
5 changes: 3 additions & 2 deletions pkg/openapi/model_attach_volume_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// AttachVolumeData struct for AttachVolumeData
type AttachVolumeData struct {
// A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change.
// A unique identifier for a node. The format of this type is undefined and may change but the defined properties will not change.
NodeID string `json:"nodeID,omitempty"`
}
3 changes: 2 additions & 1 deletion pkg/openapi/model_auth_user_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// AuthUserData struct for AuthUserData
type AuthUserData struct {
Username string `json:"username"`
Expand Down
9 changes: 5 additions & 4 deletions pkg/openapi/model_capacity_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// CapacityStats struct for CapacityStats
type CapacityStats struct {
// Total bytes in the filesystem
// Total bytes in the filesystem
Total uint64 `json:"total,omitempty"`
// Free bytes in the filesystem available to root user
// Free bytes in the filesystem available to root user
Free uint64 `json:"free,omitempty"`
// Byte value available to an unprivileged user
// Byte value available to an unprivileged user
Available uint64 `json:"available,omitempty"`
}
22 changes: 12 additions & 10 deletions pkg/openapi/model_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

import (
"time"
)

// Cluster struct for Cluster
type Cluster struct {
// A unique identifier for a cluster. The format of this type is undefined and may change but the defined properties will not change.
// A unique identifier for a cluster. The format of this type is undefined and may change but the defined properties will not change.
Id string `json:"id,omitempty"`
// Disables collection of telemetry data across the cluster.
DisableTelemetry bool `json:"disableTelemetry,omitempty"`
// Disables collection of reports for any fatal crashes across the cluster.
// Disables collection of reports for any fatal crashes across the cluster.
DisableCrashReporting bool `json:"disableCrashReporting,omitempty"`
// Disables the mechanism responsible for checking if there is an updated version of StorageOS available for installation.
DisableVersionCheck bool `json:"disableVersionCheck,omitempty"`
LogLevel LogLevel `json:"logLevel,omitempty"`
LogFormat LogFormat `json:"logFormat,omitempty"`
// The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339.
// Disables the mechanism responsible for checking if there is an updated version of StorageOS available for installation.
DisableVersionCheck bool `json:"disableVersionCheck,omitempty"`
LogLevel LogLevel `json:"logLevel,omitempty"`
LogFormat LogFormat `json:"logFormat,omitempty"`
// The time the entity was created. This timestamp is set by the node that created the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339.
CreatedAt time.Time `json:"createdAt,omitempty"`
// The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339.
// The time the entity was last updated. This timestamp is set by the node that last updated the entity, and may not be correct if the node's local clock was skewed. This value is for the user's informative purposes only, and correctness is not required. String format is RFC3339.
UpdatedAt time.Time `json:"updatedAt,omitempty"`
// An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change.
// An opaque representation of an entity version at the time it was obtained from the API. All operations that mutate the entity must include this version field in the request unchanged. The format of this type is undefined and may change but the defined properties will not change.
Version string `json:"version,omitempty"`
}
7 changes: 4 additions & 3 deletions pkg/openapi/model_create_namespace_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// CreateNamespaceData struct for CreateNamespaceData
type CreateNamespaceData struct {
// The name of the namespace shown in the CLI and UI
// The name of the namespace shown in the CLI and UI
Name string `json:"name,omitempty"`
// A set of arbitrary key value labels to apply to the entity.
// A set of arbitrary key value labels to apply to the entity.
Labels map[string]string `json:"labels,omitempty"`
}
3 changes: 2 additions & 1 deletion pkg/openapi/model_create_policy_group_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// CreatePolicyGroupData struct for CreatePolicyGroupData
type CreatePolicyGroupData struct {
Name string `json:"name,omitempty"`
Expand Down
7 changes: 4 additions & 3 deletions pkg/openapi/model_create_user_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 2.5.0
* API version: 2.6.0
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package openapi

// CreateUserData struct for CreateUserData
type CreateUserData struct {
Username string `json:"username"`
// If not present, the existing password is not changed
Password string `json:"password"`
// If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator.
// If true, this user is an administrator of the cluster. Administrators bypass the usual authentication checks and are granted access to all resources. Some actions (such as adding a new user) can only be performed by an administrator.
IsAdmin bool `json:"isAdmin,omitempty"`
// Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members.
// Defines a set of policy group IDs this user is a member of. Policy groups can be used to logically group users and apply authorisation policies to all members.
Groups *[]string `json:"groups,omitempty"`
}
Loading

0 comments on commit 3a8a48c

Please sign in to comment.