scope

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	// MaxTTL Max TTL of the collection.
	MaxTTL *int64 `json:"maxTTL,omitempty"`

	// Name is the Name of the collection.
	Name *string `json:"name,omitempty"`
}

Collection is the collection sent by the Capella V4 Public API for any existing scope or collection.

type CreateScopeRequest

type CreateScopeRequest struct {
	// Name The name of the scope. The name should adhere to the following rules:
	//
	// 1. The name must be between 1 and 251 characters in length.
	// 2. The name can contain only the characters A-Z, a-z, 0-9, and the symbols _, -, and %.
	// 3. The name cannot start with _ or %.
	// Note that scope and collection names are case-sensitive.
	Name string `json:"name"`
}

CreateScopeRequest is the payload passed to V4 Capella Public API to create a scope in a bucket. Creates a new scope in a bucket.

To learn more about scopes and collections, see [Buckets, Scopes, and Collections](https://docs.couchbase.com/cloud/clusters/data-service/about-buckets-scopes-collections.html).

In order to access this endpoint, the provided API key must have at least one of the following roles: - Organization Owner - Project Owner - Project Manager To learn more, see [Organization, Project, and Database Access Overview](https://docs.couchbase.com/cloud/organizations/organization-projects-overview.html).

type GetScopeResponse

type GetScopeResponse struct {
	Collections *[]Collection `json:"collections,omitempty"`

	// Name is the name of the scope.
	Name *string `json:"name,omitempty"`
}

type GetScopesResponse

type GetScopesResponse struct {
	Scopes []GetScopeResponse `json:"scopes"`
}

GetScopesResponse is the response received from the Capella V4 Public API when asked to list all scopes.

In order to access this endpoint, the provided API key must have at least one of the following roles:

Organization Owner Project Owner To learn more, see https://docs.couchbase.com/cloud/organizations/organization-projects-overview.html

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL