-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy pathadmin_request_builder.go
55 lines (45 loc) · 2.7 KB
/
admin_request_builder.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package admin
import (
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
)
// AdminRequestBuilder builds and executes requests for operations under \admin
type AdminRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// Config the config property
func (m *AdminRequestBuilder) Config() *ConfigRequestBuilder {
return NewConfigRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// NewAdminRequestBuilderInternal instantiates a new AdminRequestBuilder and sets the default values.
func NewAdminRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AdminRequestBuilder {
m := &AdminRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin", pathParameters),
}
return m
}
// NewAdminRequestBuilder instantiates a new AdminRequestBuilder and sets the default values.
func NewAdminRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AdminRequestBuilder {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewAdminRequestBuilderInternal(urlParams, requestAdapter)
}
// Export provides a way to export registry data.
func (m *AdminRequestBuilder) Export() *ExportRequestBuilder {
return NewExportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// ImportEscaped provides a way to import data into the registry.
func (m *AdminRequestBuilder) ImportEscaped() *ImportRequestBuilder {
return NewImportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// RoleMappings collection to manage role mappings for authenticated principals
func (m *AdminRequestBuilder) RoleMappings() *RoleMappingsRequestBuilder {
return NewRoleMappingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Rules manage the global rules that apply to all artifacts if not otherwise configured.
func (m *AdminRequestBuilder) Rules() *RulesRequestBuilder {
return NewRulesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Snapshots triggers a snapshot of the Registry storage. Only supported in KafkaSQL storage
func (m *AdminRequestBuilder) Snapshots() *SnapshotsRequestBuilder {
return NewSnapshotsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}