Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func NewConfiguration() *config.Configuration
- func ParameterValueToString(obj interface{}, key string) string
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- func (a *APIClient) CreateProject(ctx context.Context) ApiCreateProjectRequest
- func (a *APIClient) CreateProjectExecute(ctx context.Context) (*Project, error)
- func (a *APIClient) DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest
- func (a *APIClient) DeleteProjectExecute(ctx context.Context, id string) error
- func (c *APIClient) GetConfig() *config.Configuration
- func (a *APIClient) GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest
- func (a *APIClient) GetOrganizationExecute(ctx context.Context, id string) (*OrganizationResponse, error)
- func (a *APIClient) GetProject(ctx context.Context, id string) ApiGetProjectRequest
- func (a *APIClient) GetProjectExecute(ctx context.Context, id string) (*GetProjectResponse, error)
- func (a *APIClient) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest
- func (a *APIClient) ListOrganizationsExecute(ctx context.Context) (*ListOrganizationsResponse, error)
- func (a *APIClient) ListProjects(ctx context.Context) ApiListProjectsRequest
- func (a *APIClient) ListProjectsExecute(ctx context.Context) (*ListProjectsResponse, error)
- func (a *APIClient) PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest
- func (a *APIClient) PartialUpdateProjectExecute(ctx context.Context, id string) (*Project, error)
- type ApiCreateProjectRequest
- type ApiDeleteProjectRequest
- type ApiGetOrganizationRequest
- type ApiGetProjectRequest
- type ApiListOrganizationsRequest
- func (r ApiListOrganizationsRequest) ContainerIds(containerIds []string) ApiListOrganizationsRequest
- func (r ApiListOrganizationsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListOrganizationsRequest
- func (r ApiListOrganizationsRequest) Execute() (*ListOrganizationsResponse, error)
- func (r ApiListOrganizationsRequest) Limit(limit float32) ApiListOrganizationsRequest
- func (r ApiListOrganizationsRequest) Member(member string) ApiListOrganizationsRequest
- func (r ApiListOrganizationsRequest) Offset(offset float32) ApiListOrganizationsRequest
- type ApiListProjectsRequest
- func (r ApiListProjectsRequest) ContainerIds(containerIds []string) ApiListProjectsRequest
- func (r ApiListProjectsRequest) ContainerParentId(containerParentId string) ApiListProjectsRequest
- func (r ApiListProjectsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListProjectsRequest
- func (r ApiListProjectsRequest) Execute() (*ListProjectsResponse, error)
- func (r ApiListProjectsRequest) Limit(limit float32) ApiListProjectsRequest
- func (r ApiListProjectsRequest) Member(member string) ApiListProjectsRequest
- func (r ApiListProjectsRequest) Offset(offset float32) ApiListProjectsRequest
- type ApiPartialUpdateProjectRequest
- type CreateProjectPayload
- type DefaultApiService
- type ErrorResponse
- type GetProjectResponse
- type LifecycleState
- type ListOrganizationsResponse
- type ListOrganizationsResponseItemsInner
- type ListProjectsResponse
- type MappedNullable
- type Member
- type NullableBool
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLifecycleState
- func (v NullableLifecycleState) Get() *LifecycleState
- func (v NullableLifecycleState) IsSet() bool
- func (v NullableLifecycleState) MarshalJSON() ([]byte, error)
- func (v *NullableLifecycleState) Set(val *LifecycleState)
- func (v *NullableLifecycleState) UnmarshalJSON(src []byte) error
- func (v *NullableLifecycleState) Unset()
- type NullableString
- type NullableTime
- type OrganizationResponse
- type Parent
- type ParentListInner
- type PartialUpdateProjectPayload
- type Project
Constants ¶
This section is empty.
Variables ¶
var AllowedLifecycleStateEnumValues = []LifecycleState{
"CREATING",
"ACTIVE",
"DELETING",
"INACTIVE",
}
All allowed values of LifecycleState enum
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration() *config.Configuration
NewConfiguration returns a new Configuration object
func ParameterValueToString ¶
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient manages communication with the Resource Manager API API v2.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)
NewAPIClient creates a new API client. Optionally receives configuration options
func (*APIClient) CreateProject ¶
func (a *APIClient) CreateProject(ctx context.Context) ApiCreateProjectRequest
CreateProject Create Project
Create a new project. - The request is synchronous, but the workflow-based creation is asynchronous. - Lifecycle state remains in CREATING, until workflow completes
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateProjectRequest
func (*APIClient) CreateProjectExecute ¶
func (*APIClient) DeleteProject ¶
func (a *APIClient) DeleteProject(ctx context.Context, id string) ApiDeleteProjectRequest
DeleteProject Delete Project
Triggers the deletion of a project. - The request is synchronous, but the workflow-based deletion is asynchronous - Lifecycle state remains in DELETING, until workflow completes
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Project identifier - containerId as well as UUID identifier is supported. @return ApiDeleteProjectRequest
func (*APIClient) DeleteProjectExecute ¶
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *config.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
func (*APIClient) GetOrganization ¶ added in v0.9.0
func (a *APIClient) GetOrganization(ctx context.Context, id string) ApiGetOrganizationRequest
GetOrganization Get Organization Details
Returns the organization and its metadata.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Organization identifier - containerId as well as UUID identifier is supported. @return ApiGetOrganizationRequest
func (*APIClient) GetOrganizationExecute ¶ added in v0.9.0
func (*APIClient) GetProject ¶
func (a *APIClient) GetProject(ctx context.Context, id string) ApiGetProjectRequest
GetProject Get Project Details
Returns the project and its metadata.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Project identifier - containerId as well as UUID identifier is supported. @return ApiGetProjectRequest
func (*APIClient) GetProjectExecute ¶
func (*APIClient) ListOrganizations ¶ added in v0.9.0
func (a *APIClient) ListOrganizations(ctx context.Context) ApiListOrganizationsRequest
ListOrganizations Get All Organizations
Returns all organizations and their metadata. - If no containerIds are specified, all organizations are returned, if permitted - ContainerIds may be set to filter - Member may be set to filter - If member and containerIds are given, both are used for filtering
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListOrganizationsRequest
func (*APIClient) ListOrganizationsExecute ¶ added in v0.9.0
func (a *APIClient) ListOrganizationsExecute(ctx context.Context) (*ListOrganizationsResponse, error)
func (*APIClient) ListProjects ¶
func (a *APIClient) ListProjects(ctx context.Context) ApiListProjectsRequest
ListProjects Get All Projects
Returns all projects and their metadata that: - Are children of the specific containerParentId - Match the given containerIds - User is member of
Filter: - Either containerParentId OR containerIds OR member must be passed - If containerId and containerParentId are given, both are used for filtering - containers must point to the same parent - If member and containerParentId are given, both are used for filtering - If member is given, containers must not point to the same container parent
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListProjectsRequest
func (*APIClient) ListProjectsExecute ¶
func (a *APIClient) ListProjectsExecute(ctx context.Context) (*ListProjectsResponse, error)
func (*APIClient) PartialUpdateProject ¶
func (a *APIClient) PartialUpdateProject(ctx context.Context, id string) ApiPartialUpdateProjectRequest
PartialUpdateProject Update Project
Update the project and its metadata. - Update project name - Update project labels - Update project parent (folder or organization)
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id Project identifier - containerId as well as UUID identifier is supported. @return ApiPartialUpdateProjectRequest
type ApiCreateProjectRequest ¶
type ApiCreateProjectRequest struct {
// contains filtered or unexported fields
}
func (ApiCreateProjectRequest) CreateProjectPayload ¶
func (r ApiCreateProjectRequest) CreateProjectPayload(createProjectPayload CreateProjectPayload) ApiCreateProjectRequest
func (ApiCreateProjectRequest) Execute ¶
func (r ApiCreateProjectRequest) Execute() (*Project, error)
type ApiDeleteProjectRequest ¶
type ApiDeleteProjectRequest struct {
// contains filtered or unexported fields
}
func (ApiDeleteProjectRequest) Execute ¶
func (r ApiDeleteProjectRequest) Execute() error
type ApiGetOrganizationRequest ¶ added in v0.9.0
type ApiGetOrganizationRequest struct {
// contains filtered or unexported fields
}
func (ApiGetOrganizationRequest) Execute ¶ added in v0.9.0
func (r ApiGetOrganizationRequest) Execute() (*OrganizationResponse, error)
type ApiGetProjectRequest ¶
type ApiGetProjectRequest struct {
// contains filtered or unexported fields
}
func (ApiGetProjectRequest) Execute ¶
func (r ApiGetProjectRequest) Execute() (*GetProjectResponse, error)
func (ApiGetProjectRequest) IncludeParents ¶
func (r ApiGetProjectRequest) IncludeParents(includeParents bool) ApiGetProjectRequest
type ApiListOrganizationsRequest ¶ added in v0.9.0
type ApiListOrganizationsRequest struct {
// contains filtered or unexported fields
}
func (ApiListOrganizationsRequest) ContainerIds ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) ContainerIds(containerIds []string) ApiListOrganizationsRequest
func (ApiListOrganizationsRequest) CreationTimeStart ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListOrganizationsRequest
func (ApiListOrganizationsRequest) Execute ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) Execute() (*ListOrganizationsResponse, error)
func (ApiListOrganizationsRequest) Limit ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) Limit(limit float32) ApiListOrganizationsRequest
func (ApiListOrganizationsRequest) Member ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) Member(member string) ApiListOrganizationsRequest
func (ApiListOrganizationsRequest) Offset ¶ added in v0.9.0
func (r ApiListOrganizationsRequest) Offset(offset float32) ApiListOrganizationsRequest
type ApiListProjectsRequest ¶
type ApiListProjectsRequest struct {
// contains filtered or unexported fields
}
func (ApiListProjectsRequest) ContainerIds ¶
func (r ApiListProjectsRequest) ContainerIds(containerIds []string) ApiListProjectsRequest
func (ApiListProjectsRequest) ContainerParentId ¶
func (r ApiListProjectsRequest) ContainerParentId(containerParentId string) ApiListProjectsRequest
func (ApiListProjectsRequest) CreationTimeStart ¶
func (r ApiListProjectsRequest) CreationTimeStart(creationTimeStart time.Time) ApiListProjectsRequest
func (ApiListProjectsRequest) Execute ¶
func (r ApiListProjectsRequest) Execute() (*ListProjectsResponse, error)
func (ApiListProjectsRequest) Limit ¶
func (r ApiListProjectsRequest) Limit(limit float32) ApiListProjectsRequest
func (ApiListProjectsRequest) Member ¶
func (r ApiListProjectsRequest) Member(member string) ApiListProjectsRequest
func (ApiListProjectsRequest) Offset ¶
func (r ApiListProjectsRequest) Offset(offset float32) ApiListProjectsRequest
type ApiPartialUpdateProjectRequest ¶
type ApiPartialUpdateProjectRequest struct {
// contains filtered or unexported fields
}
func (ApiPartialUpdateProjectRequest) Execute ¶
func (r ApiPartialUpdateProjectRequest) Execute() (*Project, error)
func (ApiPartialUpdateProjectRequest) PartialUpdateProjectPayload ¶
func (r ApiPartialUpdateProjectRequest) PartialUpdateProjectPayload(partialUpdateProjectPayload PartialUpdateProjectPayload) ApiPartialUpdateProjectRequest
type CreateProjectPayload ¶
type CreateProjectPayload struct {
// Identifier of the parent resource container - containerId as well as UUID identifier is supported.
// REQUIRED
ContainerParentId *string `json:"containerParentId"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account.
// REQUIRED
Members *[]Member `json:"members"`
// Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
// REQUIRED
Name *string `json:"name"`
}
type ErrorResponse ¶
type ErrorResponse struct {
// The reason phrase of the status code.
// REQUIRED
Error *string `json:"error"`
// Description of the error.
// REQUIRED
Message *string `json:"message"`
// Path which was called.
// REQUIRED
Path *string `json:"path"`
// Http Status Code.
// REQUIRED
Status *float64 `json:"status"`
// Timestamp at which the error occurred.
// REQUIRED
TimeStamp *time.Time `json:"timeStamp"`
}
type GetProjectResponse ¶ added in v0.9.0
type GetProjectResponse struct {
// Globally unique identifier.
// REQUIRED
ContainerId *string `json:"containerId"`
// Timestamp at which the project was created.
// REQUIRED
CreationTime *time.Time `json:"creationTime"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// REQUIRED
LifecycleState *LifecycleState `json:"lifecycleState"`
// Project name.
// REQUIRED
Name *string `json:"name"`
// REQUIRED
Parent *Parent `json:"parent"`
Parents *[]ParentListInner `json:"parents,omitempty"`
// Globally unique identifier.
// REQUIRED
ProjectId *string `json:"projectId"`
// Timestamp at which the project was last modified.
// REQUIRED
UpdateTime *time.Time `json:"updateTime"`
}
type LifecycleState ¶
type LifecycleState string
LifecycleState Lifecycle state of the resource container. | LIFECYCLE STATE | DESCRIPTION | |----------|--------------------| | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. | | ACTIVE | Resource container can be fully used. | | INACTIVE | Resource container usage has been disabled. | | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. |
const ( LIFECYCLESTATE_CREATING LifecycleState = "CREATING" LIFECYCLESTATE_ACTIVE LifecycleState = "ACTIVE" LIFECYCLESTATE_DELETING LifecycleState = "DELETING" LIFECYCLESTATE_INACTIVE LifecycleState = "INACTIVE" )
List of LifecycleState
func NewLifecycleStateFromValue ¶
func NewLifecycleStateFromValue(v string) (*LifecycleState, error)
NewLifecycleStateFromValue returns a pointer to a valid LifecycleState for the value passed as argument, or an error if the value passed is not allowed by the enum
func (LifecycleState) IsValid ¶
func (v LifecycleState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (LifecycleState) Ptr ¶
func (v LifecycleState) Ptr() *LifecycleState
Ptr returns reference to LifecycleState value
func (*LifecycleState) UnmarshalJSON ¶
func (v *LifecycleState) UnmarshalJSON(src []byte) error
type ListOrganizationsResponse ¶ added in v0.9.0
type ListOrganizationsResponse struct {
// REQUIRED
Items *[]ListOrganizationsResponseItemsInner `json:"items"`
// The maximum number of projects to return in the response. If not present, an appropriate default will be used.
// REQUIRED
Limit *float64 `json:"limit"`
// The offset of the first item in the collection to return.
// REQUIRED
Offset *float64 `json:"offset"`
}
type ListOrganizationsResponseItemsInner ¶ added in v0.9.0
type ListOrganizationsResponseItemsInner struct {
// Globally unique, user-friendly identifier.
// REQUIRED
ContainerId *string `json:"containerId"`
// Timestamp at which the organization was created.
// REQUIRED
CreationTime *time.Time `json:"creationTime"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// REQUIRED
LifecycleState *LifecycleState `json:"lifecycleState"`
// Name of the organization.
// REQUIRED
Name *string `json:"name"`
// Globally unique, organization identifier.
// REQUIRED
OrganizationId *string `json:"organizationId"`
// Timestamp at which the organization was last modified.
// REQUIRED
UpdateTime *time.Time `json:"updateTime"`
}
type ListProjectsResponse ¶ added in v0.9.0
type ListProjectsResponse struct {
// REQUIRED
Items *[]Project `json:"items"`
// The maximum number of projects to return in the response. If not present, an appropriate default will be used.
// REQUIRED
Limit *float64 `json:"limit"`
// The offset of the first item in the collection to return.
// REQUIRED
Offset *float64 `json:"offset"`
}
type MappedNullable ¶
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableLifecycleState ¶
type NullableLifecycleState struct {
// contains filtered or unexported fields
}
func NewNullableLifecycleState ¶
func NewNullableLifecycleState(val *LifecycleState) *NullableLifecycleState
func (NullableLifecycleState) Get ¶
func (v NullableLifecycleState) Get() *LifecycleState
func (NullableLifecycleState) IsSet ¶
func (v NullableLifecycleState) IsSet() bool
func (NullableLifecycleState) MarshalJSON ¶
func (v NullableLifecycleState) MarshalJSON() ([]byte, error)
func (*NullableLifecycleState) Set ¶
func (v *NullableLifecycleState) Set(val *LifecycleState)
func (*NullableLifecycleState) UnmarshalJSON ¶
func (v *NullableLifecycleState) UnmarshalJSON(src []byte) error
func (*NullableLifecycleState) Unset ¶
func (v *NullableLifecycleState) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type OrganizationResponse ¶
type OrganizationResponse struct {
// Globally unique, user-friendly identifier.
// REQUIRED
ContainerId *string `json:"containerId"`
// Timestamp at which the organization was created.
// REQUIRED
CreationTime *time.Time `json:"creationTime"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// REQUIRED
LifecycleState *LifecycleState `json:"lifecycleState"`
// Organization name.
// REQUIRED
Name *string `json:"name"`
// Globally unique, organization identifier.
// REQUIRED
OrganizationId *string `json:"organizationId"`
// Timestamp at which the organization was last modified.
// REQUIRED
UpdateTime *time.Time `json:"updateTime"`
}
type Parent ¶
type Parent struct {
// User-friendly identifier of either organization or folder (will replace id).
// REQUIRED
ContainerId *string `json:"containerId"`
// Identifier of either organization or folder.
// REQUIRED
Id *string `json:"id"`
// Container type of parent container.
// REQUIRED
Type *string `json:"type"`
}
type ParentListInner ¶
type ParentListInner struct {
// User-friendly identifier of either organization or folder (will replace id).
// REQUIRED
ContainerId *string `json:"containerId"`
// User-friendly parent identifier of either organization or folder (will replace parentId).
// REQUIRED
ContainerParentId *string `json:"containerParentId"`
// Identifier.
// REQUIRED
Id *string `json:"id"`
// Parent container name.
// REQUIRED
Name *string `json:"name"`
// Identifier of the parent resource container.
// REQUIRED
ParentId *string `json:"parentId"`
// Parent container type.
// REQUIRED
Type *string `json:"type"`
}
type PartialUpdateProjectPayload ¶
type PartialUpdateProjectPayload struct {
// New parent identifier for the resource container - containerId as well as UUID identifier is supported.
ContainerParentId *string `json:"containerParentId,omitempty"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
Name *string `json:"name,omitempty"`
}
type Project ¶ added in v0.9.0
type Project struct {
// Globally unique, user-friendly identifier.
// REQUIRED
ContainerId *string `json:"containerId"`
// Timestamp at which the project was created.
// REQUIRED
CreationTime *time.Time `json:"creationTime"`
// Labels are key-value string pairs that can be attached to a resource container. Some labels may be enforced via policies. - A label key must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`. - A label value must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`.
Labels *map[string]string `json:"labels,omitempty"`
// REQUIRED
LifecycleState *LifecycleState `json:"lifecycleState"`
// Project name.
// REQUIRED
Name *string `json:"name"`
// REQUIRED
Parent *Parent `json:"parent"`
// Globally unique, project identifier.
// REQUIRED
ProjectId *string `json:"projectId"`
// Timestamp at which the project was last modified.
// REQUIRED
UpdateTime *time.Time `json:"updateTime"`
}
Source Files
¶
- api_default.go
- client.go
- configuration.go
- model_create_project_payload.go
- model_error_response.go
- model_get_project_response.go
- model_lifecycle_state.go
- model_list_organizations_response.go
- model_list_organizations_response_items_inner.go
- model_list_projects_response.go
- model_member.go
- model_organization_response.go
- model_parent.go
- model_parent_list_inner.go
- model_partial_update_project_payload.go
- model_project.go
- utils.go