Documentation
¶
Index ¶
- func CheckResponse(diags *diag.Diagnostics, message string, response StatusCodeProvider, ...) bool
- func If[T any](condition bool, ifTrueValue T, elseValue T) T
- func Int64NullDefault() defaults.Int64
- func Int64ValueToNullable[T ~int](v types.Int64) nullable.Nullable[T]
- func IntPointerToInt64Value[T ~int](v *T) types.Int64
- func MaybeSetClient(providerData any, target *cdn77.ClientWithResponsesInterface) diag.Diagnostic
- func NullableIntToInt64Value[T ~int](v nullable.Nullable[T]) types.Int64
- func NullableToStringValue(v nullable.Nullable[string]) types.String
- func Pointer[T any](v T) *T
- func StringMapToMap(ctx context.Context, diags *diag.Diagnostics, attrPath path.Path, m types.Map) (map[string]string, bool)
- func StringSetToSlice(ctx context.Context, diags *diag.Diagnostics, attrPath path.Path, s types.Set) ([]string, bool)
- func StringValueToNullable(v types.String) nullable.Nullable[string]
- type ResourceDataSourceSchemaConverter
- type StatusCodeProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
func CheckResponse(diags *diag.Diagnostics, message string, response StatusCodeProvider, errMessages ...any) bool
func Int64NullDefault ¶
func IntPointerToInt64Value ¶
func MaybeSetClient ¶
func MaybeSetClient(providerData any, target *cdn77.ClientWithResponsesInterface) diag.Diagnostic
func NullableIntToInt64Value ¶
func StringMapToMap ¶
func StringSetToSlice ¶
Types ¶
type ResourceDataSourceSchemaConverter ¶
type ResourceDataSourceSchemaConverter struct {
// contains filtered or unexported fields
}
func NewResourceDataSourceSchemaConverter ¶
func NewResourceDataSourceSchemaConverter(requiredAttrs ...string) *ResourceDataSourceSchemaConverter
func (*ResourceDataSourceSchemaConverter) Convert ¶
func (c *ResourceDataSourceSchemaConverter) Convert(rsc rsc_schema.Schema) ds_schema.Schema
type StatusCodeProvider ¶
type StatusCodeProvider interface {
StatusCode() int
}
Click to show internal directories.
Click to hide internal directories.