Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firebaserules/v1.Ruleset
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a Ruleset from Source. The Ruleset is given a unique generated name which is returned to the caller. Source containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of Source issues, use TestRuleset.
Auto-naming is currently not supported for this resource.
Create Ruleset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ruleset(name: string, args: RulesetArgs, opts?: CustomResourceOptions);@overload
def Ruleset(resource_name: str,
            args: RulesetArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Ruleset(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            source: Optional[SourceArgs] = None,
            project: Optional[str] = None)func NewRuleset(ctx *Context, name string, args RulesetArgs, opts ...ResourceOption) (*Ruleset, error)public Ruleset(string name, RulesetArgs args, CustomResourceOptions? opts = null)
public Ruleset(String name, RulesetArgs args)
public Ruleset(String name, RulesetArgs args, CustomResourceOptions options)
type: google-native:firebaserules/v1:Ruleset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var rulesetResource = new GoogleNative.FirebaseRules.V1.Ruleset("rulesetResource", new()
{
    Source = new GoogleNative.FirebaseRules.V1.Inputs.SourceArgs
    {
        Files = new[]
        {
            new GoogleNative.FirebaseRules.V1.Inputs.FileArgs
            {
                Content = "string",
                Name = "string",
                Fingerprint = "string",
            },
        },
    },
    Project = "string",
});
example, err := firebaserules.NewRuleset(ctx, "rulesetResource", &firebaserules.RulesetArgs{
	Source: &firebaserules.SourceArgs{
		Files: firebaserules.FileArray{
			&firebaserules.FileArgs{
				Content:     pulumi.String("string"),
				Name:        pulumi.String("string"),
				Fingerprint: pulumi.String("string"),
			},
		},
	},
	Project: pulumi.String("string"),
})
var rulesetResource = new Ruleset("rulesetResource", RulesetArgs.builder()
    .source(SourceArgs.builder()
        .files(FileArgs.builder()
            .content("string")
            .name("string")
            .fingerprint("string")
            .build())
        .build())
    .project("string")
    .build());
ruleset_resource = google_native.firebaserules.v1.Ruleset("rulesetResource",
    source={
        "files": [{
            "content": "string",
            "name": "string",
            "fingerprint": "string",
        }],
    },
    project="string")
const rulesetResource = new google_native.firebaserules.v1.Ruleset("rulesetResource", {
    source: {
        files: [{
            content: "string",
            name: "string",
            fingerprint: "string",
        }],
    },
    project: "string",
});
type: google-native:firebaserules/v1:Ruleset
properties:
    project: string
    source:
        files:
            - content: string
              fingerprint: string
              name: string
Ruleset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Ruleset resource accepts the following input properties:
- Source
Pulumi.Google Native. Firebase Rules. V1. Inputs. Source 
- Sourcefor the- Ruleset.
- Project string
- Source
SourceArgs 
- Sourcefor the- Ruleset.
- Project string
- source
SourceArgs 
- Sourcefor the- Ruleset.
- project str
- source Property Map
- Sourcefor the- Ruleset.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Ruleset resource produces the following output properties:
- CreateTime string
- Time the Rulesetwas created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Pulumi.Google Native. Firebase Rules. V1. Outputs. Metadata Response 
- The metadata for this ruleset.
- Name string
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- CreateTime string
- Time the Rulesetwas created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
MetadataResponse 
- The metadata for this ruleset.
- Name string
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- createTime String
- Time the Rulesetwas created.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata
MetadataResponse 
- The metadata for this ruleset.
- name String
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- createTime string
- Time the Rulesetwas created.
- id string
- The provider-assigned unique ID for this managed resource.
- metadata
MetadataResponse 
- The metadata for this ruleset.
- name string
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- create_time str
- Time the Rulesetwas created.
- id str
- The provider-assigned unique ID for this managed resource.
- metadata
MetadataResponse 
- The metadata for this ruleset.
- name str
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- createTime String
- Time the Rulesetwas created.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Property Map
- The metadata for this ruleset.
- name String
- Name of the Ruleset. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
Supporting Types
File, FileArgs  
- Content string
- Textual Content.
- Name string
- File name.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- Content string
- Textual Content.
- Name string
- File name.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- content String
- Textual Content.
- name String
- File name.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the File.
- content string
- Textual Content.
- name string
- File name.
- fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- content str
- Textual Content.
- name str
- File name.
- fingerprint str
- Fingerprint (e.g. github sha) associated with the File.
- content String
- Textual Content.
- name String
- File name.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the File.
FileResponse, FileResponseArgs    
- Content string
- Textual Content.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- Name string
- File name.
- Content string
- Textual Content.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- Name string
- File name.
- content String
- Textual Content.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the File.
- name String
- File name.
- content string
- Textual Content.
- fingerprint string
- Fingerprint (e.g. github sha) associated with the File.
- name string
- File name.
- content str
- Textual Content.
- fingerprint str
- Fingerprint (e.g. github sha) associated with the File.
- name str
- File name.
- content String
- Textual Content.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the File.
- name String
- File name.
MetadataResponse, MetadataResponseArgs    
- Services List<string>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- Services []string
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services List<String>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services string[]
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services Sequence[str]
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services List<String>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
Source, SourceArgs  
- Files
List<Pulumi.Google Native. Firebase Rules. V1. Inputs. File> 
- Fileset constituting the- Sourcebundle.
- files List<File>
- Fileset constituting the- Sourcebundle.
- files Sequence[File]
- Fileset constituting the- Sourcebundle.
- files List<Property Map>
- Fileset constituting the- Sourcebundle.
SourceResponse, SourceResponseArgs    
- Files
List<Pulumi.Google Native. Firebase Rules. V1. Inputs. File Response> 
- Fileset constituting the- Sourcebundle.
- Files
[]FileResponse 
- Fileset constituting the- Sourcebundle.
- files
List<FileResponse> 
- Fileset constituting the- Sourcebundle.
- files
FileResponse[] 
- Fileset constituting the- Sourcebundle.
- files
Sequence[FileResponse] 
- Fileset constituting the- Sourcebundle.
- files List<Property Map>
- Fileset constituting the- Sourcebundle.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.