firebaserules

package
v6.67.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	pulumi.CustomResourceState

	// Output only. Time the release was created.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Disable the release to keep it from being served. The response code of NOT_FOUND will be given for executables generated from this Release.
	Disabled pulumi.BoolOutput `pulumi:"disabled"`
	// Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
	//
	// ***
	RulesetName pulumi.StringOutput `pulumi:"rulesetName"`
	// Output only. Time the release was updated.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

For more information, see: * [Get started with Firebase Security Rules](https://firebase.google.com/docs/rules/get-started) ## Example Usage ### Firestore_release Creates a Firebase Rules Release to Cloud Firestore ```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebaserules"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		firestore, err := firebaserules.NewRuleset(ctx, "firestore", &firebaserules.RulesetArgs{
			Source: &firebaserules.RulesetSourceArgs{
				Files: firebaserules.RulesetSourceFileArray{
					&firebaserules.RulesetSourceFileArgs{
						Content: pulumi.String("service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }"),
						Name:    pulumi.String("firestore.rules"),
					},
				},
			},
			Project: pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		_, err = firebaserules.NewRelease(ctx, "primary", &firebaserules.ReleaseArgs{
			RulesetName: firestore.Name.ApplyT(func(name string) (string, error) {
				return fmt.Sprintf("projects/my-project-name/rulesets/%v", name), nil
			}).(pulumi.StringOutput),
			Project: pulumi.String("my-project-name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Storage_release Creates a Firebase Rules Release for a Storage bucket ```go package main

import (

"fmt"

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebase"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebaserules"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bucketBucket, err := storage.NewBucket(ctx, "bucketBucket", &storage.BucketArgs{
			Project:  pulumi.String("my-project-name"),
			Location: pulumi.String("us-west1"),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		bucketStorageBucket, err := firebase.NewStorageBucket(ctx, "bucketStorageBucket", &firebase.StorageBucketArgs{
			Project:  pulumi.String("my-project-name"),
			BucketId: bucketBucket.Name,
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		storage, err := firebaserules.NewRuleset(ctx, "storage", &firebaserules.RulesetArgs{
			Project: pulumi.String("my-project-name"),
			Source: &firebaserules.RulesetSourceArgs{
				Files: firebaserules.RulesetSourceFileArray{
					&firebaserules.RulesetSourceFileArgs{
						Name:    pulumi.String("storage.rules"),
						Content: pulumi.String("service firebase.storage {match /b/{bucket}/o {match /{allPaths=**} {allow read, write: if request.auth != null;}}}"),
					},
				},
			},
		}, pulumi.Provider(google_beta), pulumi.DependsOn([]pulumi.Resource{
			bucketStorageBucket,
		}))
		if err != nil {
			return err
		}
		_, err = firebaserules.NewRelease(ctx, "primary", &firebaserules.ReleaseArgs{
			RulesetName: storage.Name.ApplyT(func(name string) (string, error) {
				return fmt.Sprintf("projects/my-project-name/rulesets/%v", name), nil
			}).(pulumi.StringOutput),
			Project: pulumi.String("my-project-name"),
		}, pulumi.Provider(google_beta))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Release can be imported using any of these accepted formats:

```sh

$ pulumi import gcp:firebaserules/release:Release default projects/{{project}}/releases/{{name}}

```

func GetRelease

func GetRelease(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ReleaseState, opts ...pulumi.ResourceOption) (*Release, error)

GetRelease gets an existing Release resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRelease

func NewRelease(ctx *pulumi.Context,
	name string, args *ReleaseArgs, opts ...pulumi.ResourceOption) (*Release, error)

NewRelease registers a new resource with the given unique name, arguments, and options.

func (*Release) ElementType

func (*Release) ElementType() reflect.Type

func (*Release) ToOutput added in v6.65.1

func (i *Release) ToOutput(ctx context.Context) pulumix.Output[*Release]

func (*Release) ToReleaseOutput

func (i *Release) ToReleaseOutput() ReleaseOutput

func (*Release) ToReleaseOutputWithContext

func (i *Release) ToReleaseOutputWithContext(ctx context.Context) ReleaseOutput

type ReleaseArgs

type ReleaseArgs struct {
	// Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
	//
	// ***
	RulesetName pulumi.StringInput
}

The set of arguments for constructing a Release resource.

func (ReleaseArgs) ElementType

func (ReleaseArgs) ElementType() reflect.Type

type ReleaseArray

type ReleaseArray []ReleaseInput

func (ReleaseArray) ElementType

func (ReleaseArray) ElementType() reflect.Type

func (ReleaseArray) ToOutput added in v6.65.1

func (i ReleaseArray) ToOutput(ctx context.Context) pulumix.Output[[]*Release]

func (ReleaseArray) ToReleaseArrayOutput

func (i ReleaseArray) ToReleaseArrayOutput() ReleaseArrayOutput

func (ReleaseArray) ToReleaseArrayOutputWithContext

func (i ReleaseArray) ToReleaseArrayOutputWithContext(ctx context.Context) ReleaseArrayOutput

type ReleaseArrayInput

type ReleaseArrayInput interface {
	pulumi.Input

	ToReleaseArrayOutput() ReleaseArrayOutput
	ToReleaseArrayOutputWithContext(context.Context) ReleaseArrayOutput
}

ReleaseArrayInput is an input type that accepts ReleaseArray and ReleaseArrayOutput values. You can construct a concrete instance of `ReleaseArrayInput` via:

ReleaseArray{ ReleaseArgs{...} }

type ReleaseArrayOutput

type ReleaseArrayOutput struct{ *pulumi.OutputState }

func (ReleaseArrayOutput) ElementType

func (ReleaseArrayOutput) ElementType() reflect.Type

func (ReleaseArrayOutput) Index

func (ReleaseArrayOutput) ToOutput added in v6.65.1

func (ReleaseArrayOutput) ToReleaseArrayOutput

func (o ReleaseArrayOutput) ToReleaseArrayOutput() ReleaseArrayOutput

func (ReleaseArrayOutput) ToReleaseArrayOutputWithContext

func (o ReleaseArrayOutput) ToReleaseArrayOutputWithContext(ctx context.Context) ReleaseArrayOutput

type ReleaseInput

type ReleaseInput interface {
	pulumi.Input

	ToReleaseOutput() ReleaseOutput
	ToReleaseOutputWithContext(ctx context.Context) ReleaseOutput
}

type ReleaseMap

type ReleaseMap map[string]ReleaseInput

func (ReleaseMap) ElementType

func (ReleaseMap) ElementType() reflect.Type

func (ReleaseMap) ToOutput added in v6.65.1

func (i ReleaseMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Release]

func (ReleaseMap) ToReleaseMapOutput

func (i ReleaseMap) ToReleaseMapOutput() ReleaseMapOutput

func (ReleaseMap) ToReleaseMapOutputWithContext

func (i ReleaseMap) ToReleaseMapOutputWithContext(ctx context.Context) ReleaseMapOutput

type ReleaseMapInput

type ReleaseMapInput interface {
	pulumi.Input

	ToReleaseMapOutput() ReleaseMapOutput
	ToReleaseMapOutputWithContext(context.Context) ReleaseMapOutput
}

ReleaseMapInput is an input type that accepts ReleaseMap and ReleaseMapOutput values. You can construct a concrete instance of `ReleaseMapInput` via:

ReleaseMap{ "key": ReleaseArgs{...} }

type ReleaseMapOutput

type ReleaseMapOutput struct{ *pulumi.OutputState }

func (ReleaseMapOutput) ElementType

func (ReleaseMapOutput) ElementType() reflect.Type

func (ReleaseMapOutput) MapIndex

func (ReleaseMapOutput) ToOutput added in v6.65.1

func (ReleaseMapOutput) ToReleaseMapOutput

func (o ReleaseMapOutput) ToReleaseMapOutput() ReleaseMapOutput

func (ReleaseMapOutput) ToReleaseMapOutputWithContext

func (o ReleaseMapOutput) ToReleaseMapOutputWithContext(ctx context.Context) ReleaseMapOutput

type ReleaseOutput

type ReleaseOutput struct{ *pulumi.OutputState }

func (ReleaseOutput) CreateTime added in v6.23.0

func (o ReleaseOutput) CreateTime() pulumi.StringOutput

Output only. Time the release was created.

func (ReleaseOutput) Disabled added in v6.23.0

func (o ReleaseOutput) Disabled() pulumi.BoolOutput

Disable the release to keep it from being served. The response code of NOT_FOUND will be given for executables generated from this Release.

func (ReleaseOutput) ElementType

func (ReleaseOutput) ElementType() reflect.Type

func (ReleaseOutput) Name added in v6.23.0

Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'

func (ReleaseOutput) Project added in v6.23.0

func (o ReleaseOutput) Project() pulumi.StringOutput

The project for the resource

func (ReleaseOutput) RulesetName added in v6.23.0

func (o ReleaseOutput) RulesetName() pulumi.StringOutput

Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.

***

func (ReleaseOutput) ToOutput added in v6.65.1

func (o ReleaseOutput) ToOutput(ctx context.Context) pulumix.Output[*Release]

func (ReleaseOutput) ToReleaseOutput

func (o ReleaseOutput) ToReleaseOutput() ReleaseOutput

func (ReleaseOutput) ToReleaseOutputWithContext

func (o ReleaseOutput) ToReleaseOutputWithContext(ctx context.Context) ReleaseOutput

func (ReleaseOutput) UpdateTime added in v6.23.0

func (o ReleaseOutput) UpdateTime() pulumi.StringOutput

Output only. Time the release was updated.

type ReleaseState

type ReleaseState struct {
	// Output only. Time the release was created.
	CreateTime pulumi.StringPtrInput
	// Disable the release to keep it from being served. The response code of NOT_FOUND will be given for executables generated from this Release.
	Disabled pulumi.BoolPtrInput
	// Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
	//
	// ***
	RulesetName pulumi.StringPtrInput
	// Output only. Time the release was updated.
	UpdateTime pulumi.StringPtrInput
}

func (ReleaseState) ElementType

func (ReleaseState) ElementType() reflect.Type

type Ruleset

type Ruleset struct {
	pulumi.CustomResourceState

	// Output only. Time the `Ruleset` was created.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Output only. The metadata for this ruleset.
	Metadatas RulesetMetadataArrayOutput `pulumi:"metadatas"`
	// File name.
	//
	// ***
	Name pulumi.StringOutput `pulumi:"name"`
	// The project for the resource
	Project pulumi.StringOutput `pulumi:"project"`
	// `Source` for the `Ruleset`.
	Source RulesetSourceOutput `pulumi:"source"`
}

For more information, see: * [Get started with Firebase Security Rules](https://firebase.google.com/docs/rules/get-started) ## Example Usage ### Basic_ruleset Creates a basic Firestore ruleset ```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebaserules"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := firebaserules.NewRuleset(ctx, "primary", &firebaserules.RulesetArgs{
			Project: pulumi.String("my-project-name"),
			Source: &firebaserules.RulesetSourceArgs{
				Files: firebaserules.RulesetSourceFileArray{
					&firebaserules.RulesetSourceFileArgs{
						Content:     pulumi.String("service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }"),
						Fingerprint: pulumi.String(""),
						Name:        pulumi.String("firestore.rules"),
					},
				},
				Language: pulumi.String(""),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Minimal_ruleset Creates a minimal Firestore ruleset ```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/firebaserules"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := firebaserules.NewRuleset(ctx, "primary", &firebaserules.RulesetArgs{
			Project: pulumi.String("my-project-name"),
			Source: &firebaserules.RulesetSourceArgs{
				Files: firebaserules.RulesetSourceFileArray{
					&firebaserules.RulesetSourceFileArgs{
						Content: pulumi.String("service cloud.firestore {match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } } }"),
						Name:    pulumi.String("firestore.rules"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Ruleset can be imported using any of these accepted formats

```sh

$ pulumi import gcp:firebaserules/ruleset:Ruleset default projects/{{project}}/rulesets/{{name}}

```

```sh

$ pulumi import gcp:firebaserules/ruleset:Ruleset default {{project}}/{{name}}

```

```sh

$ pulumi import gcp:firebaserules/ruleset:Ruleset default {{name}}

```

func GetRuleset

func GetRuleset(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RulesetState, opts ...pulumi.ResourceOption) (*Ruleset, error)

GetRuleset gets an existing Ruleset resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRuleset

func NewRuleset(ctx *pulumi.Context,
	name string, args *RulesetArgs, opts ...pulumi.ResourceOption) (*Ruleset, error)

NewRuleset registers a new resource with the given unique name, arguments, and options.

func (*Ruleset) ElementType

func (*Ruleset) ElementType() reflect.Type

func (*Ruleset) ToOutput added in v6.65.1

func (i *Ruleset) ToOutput(ctx context.Context) pulumix.Output[*Ruleset]

func (*Ruleset) ToRulesetOutput

func (i *Ruleset) ToRulesetOutput() RulesetOutput

func (*Ruleset) ToRulesetOutputWithContext

func (i *Ruleset) ToRulesetOutputWithContext(ctx context.Context) RulesetOutput

type RulesetArgs

type RulesetArgs struct {
	// The project for the resource
	Project pulumi.StringPtrInput
	// `Source` for the `Ruleset`.
	Source RulesetSourceInput
}

The set of arguments for constructing a Ruleset resource.

func (RulesetArgs) ElementType

func (RulesetArgs) ElementType() reflect.Type

type RulesetArray

type RulesetArray []RulesetInput

func (RulesetArray) ElementType

func (RulesetArray) ElementType() reflect.Type

func (RulesetArray) ToOutput added in v6.65.1

func (i RulesetArray) ToOutput(ctx context.Context) pulumix.Output[[]*Ruleset]

func (RulesetArray) ToRulesetArrayOutput

func (i RulesetArray) ToRulesetArrayOutput() RulesetArrayOutput

func (RulesetArray) ToRulesetArrayOutputWithContext

func (i RulesetArray) ToRulesetArrayOutputWithContext(ctx context.Context) RulesetArrayOutput

type RulesetArrayInput

type RulesetArrayInput interface {
	pulumi.Input

	ToRulesetArrayOutput() RulesetArrayOutput
	ToRulesetArrayOutputWithContext(context.Context) RulesetArrayOutput
}

RulesetArrayInput is an input type that accepts RulesetArray and RulesetArrayOutput values. You can construct a concrete instance of `RulesetArrayInput` via:

RulesetArray{ RulesetArgs{...} }

type RulesetArrayOutput

type RulesetArrayOutput struct{ *pulumi.OutputState }

func (RulesetArrayOutput) ElementType

func (RulesetArrayOutput) ElementType() reflect.Type

func (RulesetArrayOutput) Index

func (RulesetArrayOutput) ToOutput added in v6.65.1

func (RulesetArrayOutput) ToRulesetArrayOutput

func (o RulesetArrayOutput) ToRulesetArrayOutput() RulesetArrayOutput

func (RulesetArrayOutput) ToRulesetArrayOutputWithContext

func (o RulesetArrayOutput) ToRulesetArrayOutputWithContext(ctx context.Context) RulesetArrayOutput

type RulesetInput

type RulesetInput interface {
	pulumi.Input

	ToRulesetOutput() RulesetOutput
	ToRulesetOutputWithContext(ctx context.Context) RulesetOutput
}

type RulesetMap

type RulesetMap map[string]RulesetInput

func (RulesetMap) ElementType

func (RulesetMap) ElementType() reflect.Type

func (RulesetMap) ToOutput added in v6.65.1

func (i RulesetMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Ruleset]

func (RulesetMap) ToRulesetMapOutput

func (i RulesetMap) ToRulesetMapOutput() RulesetMapOutput

func (RulesetMap) ToRulesetMapOutputWithContext

func (i RulesetMap) ToRulesetMapOutputWithContext(ctx context.Context) RulesetMapOutput

type RulesetMapInput

type RulesetMapInput interface {
	pulumi.Input

	ToRulesetMapOutput() RulesetMapOutput
	ToRulesetMapOutputWithContext(context.Context) RulesetMapOutput
}

RulesetMapInput is an input type that accepts RulesetMap and RulesetMapOutput values. You can construct a concrete instance of `RulesetMapInput` via:

RulesetMap{ "key": RulesetArgs{...} }

type RulesetMapOutput

type RulesetMapOutput struct{ *pulumi.OutputState }

func (RulesetMapOutput) ElementType

func (RulesetMapOutput) ElementType() reflect.Type

func (RulesetMapOutput) MapIndex

func (RulesetMapOutput) ToOutput added in v6.65.1

func (RulesetMapOutput) ToRulesetMapOutput

func (o RulesetMapOutput) ToRulesetMapOutput() RulesetMapOutput

func (RulesetMapOutput) ToRulesetMapOutputWithContext

func (o RulesetMapOutput) ToRulesetMapOutputWithContext(ctx context.Context) RulesetMapOutput

type RulesetMetadata

type RulesetMetadata struct {
	Services []string `pulumi:"services"`
}

type RulesetMetadataArgs

type RulesetMetadataArgs struct {
	Services pulumi.StringArrayInput `pulumi:"services"`
}

func (RulesetMetadataArgs) ElementType

func (RulesetMetadataArgs) ElementType() reflect.Type

func (RulesetMetadataArgs) ToOutput added in v6.65.1

func (RulesetMetadataArgs) ToRulesetMetadataOutput

func (i RulesetMetadataArgs) ToRulesetMetadataOutput() RulesetMetadataOutput

func (RulesetMetadataArgs) ToRulesetMetadataOutputWithContext

func (i RulesetMetadataArgs) ToRulesetMetadataOutputWithContext(ctx context.Context) RulesetMetadataOutput

type RulesetMetadataArray

type RulesetMetadataArray []RulesetMetadataInput

func (RulesetMetadataArray) ElementType

func (RulesetMetadataArray) ElementType() reflect.Type

func (RulesetMetadataArray) ToOutput added in v6.65.1

func (RulesetMetadataArray) ToRulesetMetadataArrayOutput

func (i RulesetMetadataArray) ToRulesetMetadataArrayOutput() RulesetMetadataArrayOutput

func (RulesetMetadataArray) ToRulesetMetadataArrayOutputWithContext

func (i RulesetMetadataArray) ToRulesetMetadataArrayOutputWithContext(ctx context.Context) RulesetMetadataArrayOutput

type RulesetMetadataArrayInput

type RulesetMetadataArrayInput interface {
	pulumi.Input

	ToRulesetMetadataArrayOutput() RulesetMetadataArrayOutput
	ToRulesetMetadataArrayOutputWithContext(context.Context) RulesetMetadataArrayOutput
}

RulesetMetadataArrayInput is an input type that accepts RulesetMetadataArray and RulesetMetadataArrayOutput values. You can construct a concrete instance of `RulesetMetadataArrayInput` via:

RulesetMetadataArray{ RulesetMetadataArgs{...} }

type RulesetMetadataArrayOutput

type RulesetMetadataArrayOutput struct{ *pulumi.OutputState }

func (RulesetMetadataArrayOutput) ElementType

func (RulesetMetadataArrayOutput) ElementType() reflect.Type

func (RulesetMetadataArrayOutput) Index

func (RulesetMetadataArrayOutput) ToOutput added in v6.65.1

func (RulesetMetadataArrayOutput) ToRulesetMetadataArrayOutput

func (o RulesetMetadataArrayOutput) ToRulesetMetadataArrayOutput() RulesetMetadataArrayOutput

func (RulesetMetadataArrayOutput) ToRulesetMetadataArrayOutputWithContext

func (o RulesetMetadataArrayOutput) ToRulesetMetadataArrayOutputWithContext(ctx context.Context) RulesetMetadataArrayOutput

type RulesetMetadataInput

type RulesetMetadataInput interface {
	pulumi.Input

	ToRulesetMetadataOutput() RulesetMetadataOutput
	ToRulesetMetadataOutputWithContext(context.Context) RulesetMetadataOutput
}

RulesetMetadataInput is an input type that accepts RulesetMetadataArgs and RulesetMetadataOutput values. You can construct a concrete instance of `RulesetMetadataInput` via:

RulesetMetadataArgs{...}

type RulesetMetadataOutput

type RulesetMetadataOutput struct{ *pulumi.OutputState }

func (RulesetMetadataOutput) ElementType

func (RulesetMetadataOutput) ElementType() reflect.Type

func (RulesetMetadataOutput) Services

func (RulesetMetadataOutput) ToOutput added in v6.65.1

func (RulesetMetadataOutput) ToRulesetMetadataOutput

func (o RulesetMetadataOutput) ToRulesetMetadataOutput() RulesetMetadataOutput

func (RulesetMetadataOutput) ToRulesetMetadataOutputWithContext

func (o RulesetMetadataOutput) ToRulesetMetadataOutputWithContext(ctx context.Context) RulesetMetadataOutput

type RulesetOutput

type RulesetOutput struct{ *pulumi.OutputState }

func (RulesetOutput) CreateTime added in v6.23.0

func (o RulesetOutput) CreateTime() pulumi.StringOutput

Output only. Time the `Ruleset` was created.

func (RulesetOutput) ElementType

func (RulesetOutput) ElementType() reflect.Type

func (RulesetOutput) Metadatas added in v6.23.0

Output only. The metadata for this ruleset.

func (RulesetOutput) Name added in v6.23.0

File name.

***

func (RulesetOutput) Project added in v6.23.0

func (o RulesetOutput) Project() pulumi.StringOutput

The project for the resource

func (RulesetOutput) Source added in v6.23.0

`Source` for the `Ruleset`.

func (RulesetOutput) ToOutput added in v6.65.1

func (o RulesetOutput) ToOutput(ctx context.Context) pulumix.Output[*Ruleset]

func (RulesetOutput) ToRulesetOutput

func (o RulesetOutput) ToRulesetOutput() RulesetOutput

func (RulesetOutput) ToRulesetOutputWithContext

func (o RulesetOutput) ToRulesetOutputWithContext(ctx context.Context) RulesetOutput

type RulesetSource

type RulesetSource struct {
	// `File` set constituting the `Source` bundle.
	Files []RulesetSourceFile `pulumi:"files"`
	// `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
	Language *string `pulumi:"language"`
}

type RulesetSourceArgs

type RulesetSourceArgs struct {
	// `File` set constituting the `Source` bundle.
	Files RulesetSourceFileArrayInput `pulumi:"files"`
	// `Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS
	Language pulumi.StringPtrInput `pulumi:"language"`
}

func (RulesetSourceArgs) ElementType

func (RulesetSourceArgs) ElementType() reflect.Type

func (RulesetSourceArgs) ToOutput added in v6.65.1

func (RulesetSourceArgs) ToRulesetSourceOutput

func (i RulesetSourceArgs) ToRulesetSourceOutput() RulesetSourceOutput

func (RulesetSourceArgs) ToRulesetSourceOutputWithContext

func (i RulesetSourceArgs) ToRulesetSourceOutputWithContext(ctx context.Context) RulesetSourceOutput

func (RulesetSourceArgs) ToRulesetSourcePtrOutput

func (i RulesetSourceArgs) ToRulesetSourcePtrOutput() RulesetSourcePtrOutput

func (RulesetSourceArgs) ToRulesetSourcePtrOutputWithContext

func (i RulesetSourceArgs) ToRulesetSourcePtrOutputWithContext(ctx context.Context) RulesetSourcePtrOutput

type RulesetSourceFile

type RulesetSourceFile struct {
	// Textual Content.
	Content string `pulumi:"content"`
	// Fingerprint (e.g. github sha) associated with the `File`.
	Fingerprint *string `pulumi:"fingerprint"`
	// File name.
	//
	// ***
	Name string `pulumi:"name"`
}

type RulesetSourceFileArgs

type RulesetSourceFileArgs struct {
	// Textual Content.
	Content pulumi.StringInput `pulumi:"content"`
	// Fingerprint (e.g. github sha) associated with the `File`.
	Fingerprint pulumi.StringPtrInput `pulumi:"fingerprint"`
	// File name.
	//
	// ***
	Name pulumi.StringInput `pulumi:"name"`
}

func (RulesetSourceFileArgs) ElementType

func (RulesetSourceFileArgs) ElementType() reflect.Type

func (RulesetSourceFileArgs) ToOutput added in v6.65.1

func (RulesetSourceFileArgs) ToRulesetSourceFileOutput

func (i RulesetSourceFileArgs) ToRulesetSourceFileOutput() RulesetSourceFileOutput

func (RulesetSourceFileArgs) ToRulesetSourceFileOutputWithContext

func (i RulesetSourceFileArgs) ToRulesetSourceFileOutputWithContext(ctx context.Context) RulesetSourceFileOutput

type RulesetSourceFileArray

type RulesetSourceFileArray []RulesetSourceFileInput

func (RulesetSourceFileArray) ElementType

func (RulesetSourceFileArray) ElementType() reflect.Type

func (RulesetSourceFileArray) ToOutput added in v6.65.1

func (RulesetSourceFileArray) ToRulesetSourceFileArrayOutput

func (i RulesetSourceFileArray) ToRulesetSourceFileArrayOutput() RulesetSourceFileArrayOutput

func (RulesetSourceFileArray) ToRulesetSourceFileArrayOutputWithContext

func (i RulesetSourceFileArray) ToRulesetSourceFileArrayOutputWithContext(ctx context.Context) RulesetSourceFileArrayOutput

type RulesetSourceFileArrayInput

type RulesetSourceFileArrayInput interface {
	pulumi.Input

	ToRulesetSourceFileArrayOutput() RulesetSourceFileArrayOutput
	ToRulesetSourceFileArrayOutputWithContext(context.Context) RulesetSourceFileArrayOutput
}

RulesetSourceFileArrayInput is an input type that accepts RulesetSourceFileArray and RulesetSourceFileArrayOutput values. You can construct a concrete instance of `RulesetSourceFileArrayInput` via:

RulesetSourceFileArray{ RulesetSourceFileArgs{...} }

type RulesetSourceFileArrayOutput

type RulesetSourceFileArrayOutput struct{ *pulumi.OutputState }

func (RulesetSourceFileArrayOutput) ElementType

func (RulesetSourceFileArrayOutput) Index

func (RulesetSourceFileArrayOutput) ToOutput added in v6.65.1

func (RulesetSourceFileArrayOutput) ToRulesetSourceFileArrayOutput

func (o RulesetSourceFileArrayOutput) ToRulesetSourceFileArrayOutput() RulesetSourceFileArrayOutput

func (RulesetSourceFileArrayOutput) ToRulesetSourceFileArrayOutputWithContext

func (o RulesetSourceFileArrayOutput) ToRulesetSourceFileArrayOutputWithContext(ctx context.Context) RulesetSourceFileArrayOutput

type RulesetSourceFileInput

type RulesetSourceFileInput interface {
	pulumi.Input

	ToRulesetSourceFileOutput() RulesetSourceFileOutput
	ToRulesetSourceFileOutputWithContext(context.Context) RulesetSourceFileOutput
}

RulesetSourceFileInput is an input type that accepts RulesetSourceFileArgs and RulesetSourceFileOutput values. You can construct a concrete instance of `RulesetSourceFileInput` via:

RulesetSourceFileArgs{...}

type RulesetSourceFileOutput

type RulesetSourceFileOutput struct{ *pulumi.OutputState }

func (RulesetSourceFileOutput) Content

Textual Content.

func (RulesetSourceFileOutput) ElementType

func (RulesetSourceFileOutput) ElementType() reflect.Type

func (RulesetSourceFileOutput) Fingerprint

Fingerprint (e.g. github sha) associated with the `File`.

func (RulesetSourceFileOutput) Name

File name.

***

func (RulesetSourceFileOutput) ToOutput added in v6.65.1

func (RulesetSourceFileOutput) ToRulesetSourceFileOutput

func (o RulesetSourceFileOutput) ToRulesetSourceFileOutput() RulesetSourceFileOutput

func (RulesetSourceFileOutput) ToRulesetSourceFileOutputWithContext

func (o RulesetSourceFileOutput) ToRulesetSourceFileOutputWithContext(ctx context.Context) RulesetSourceFileOutput

type RulesetSourceInput

type RulesetSourceInput interface {
	pulumi.Input

	ToRulesetSourceOutput() RulesetSourceOutput
	ToRulesetSourceOutputWithContext(context.Context) RulesetSourceOutput
}

RulesetSourceInput is an input type that accepts RulesetSourceArgs and RulesetSourceOutput values. You can construct a concrete instance of `RulesetSourceInput` via:

RulesetSourceArgs{...}

type RulesetSourceOutput

type RulesetSourceOutput struct{ *pulumi.OutputState }

func (RulesetSourceOutput) ElementType

func (RulesetSourceOutput) ElementType() reflect.Type

func (RulesetSourceOutput) Files

`File` set constituting the `Source` bundle.

func (RulesetSourceOutput) Language

`Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS

func (RulesetSourceOutput) ToOutput added in v6.65.1

func (RulesetSourceOutput) ToRulesetSourceOutput

func (o RulesetSourceOutput) ToRulesetSourceOutput() RulesetSourceOutput

func (RulesetSourceOutput) ToRulesetSourceOutputWithContext

func (o RulesetSourceOutput) ToRulesetSourceOutputWithContext(ctx context.Context) RulesetSourceOutput

func (RulesetSourceOutput) ToRulesetSourcePtrOutput

func (o RulesetSourceOutput) ToRulesetSourcePtrOutput() RulesetSourcePtrOutput

func (RulesetSourceOutput) ToRulesetSourcePtrOutputWithContext

func (o RulesetSourceOutput) ToRulesetSourcePtrOutputWithContext(ctx context.Context) RulesetSourcePtrOutput

type RulesetSourcePtrInput

type RulesetSourcePtrInput interface {
	pulumi.Input

	ToRulesetSourcePtrOutput() RulesetSourcePtrOutput
	ToRulesetSourcePtrOutputWithContext(context.Context) RulesetSourcePtrOutput
}

RulesetSourcePtrInput is an input type that accepts RulesetSourceArgs, RulesetSourcePtr and RulesetSourcePtrOutput values. You can construct a concrete instance of `RulesetSourcePtrInput` via:

        RulesetSourceArgs{...}

or:

        nil

type RulesetSourcePtrOutput

type RulesetSourcePtrOutput struct{ *pulumi.OutputState }

func (RulesetSourcePtrOutput) Elem

func (RulesetSourcePtrOutput) ElementType

func (RulesetSourcePtrOutput) ElementType() reflect.Type

func (RulesetSourcePtrOutput) Files

`File` set constituting the `Source` bundle.

func (RulesetSourcePtrOutput) Language

`Language` of the `Source` bundle. If unspecified, the language will default to `FIREBASE_RULES`. Possible values: LANGUAGE_UNSPECIFIED, FIREBASE_RULES, EVENT_FLOW_TRIGGERS

func (RulesetSourcePtrOutput) ToOutput added in v6.65.1

func (RulesetSourcePtrOutput) ToRulesetSourcePtrOutput

func (o RulesetSourcePtrOutput) ToRulesetSourcePtrOutput() RulesetSourcePtrOutput

func (RulesetSourcePtrOutput) ToRulesetSourcePtrOutputWithContext

func (o RulesetSourcePtrOutput) ToRulesetSourcePtrOutputWithContext(ctx context.Context) RulesetSourcePtrOutput

type RulesetState

type RulesetState struct {
	// Output only. Time the `Ruleset` was created.
	CreateTime pulumi.StringPtrInput
	// Output only. The metadata for this ruleset.
	Metadatas RulesetMetadataArrayInput
	// File name.
	//
	// ***
	Name pulumi.StringPtrInput
	// The project for the resource
	Project pulumi.StringPtrInput
	// `Source` for the `Ruleset`.
	Source RulesetSourcePtrInput
}

func (RulesetState) ElementType

func (RulesetState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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