1. Packages
  2. Google Cloud Native
  3. API Docs
  4. apigee
  5. apigee/v1
  6. Resourcefile

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.apigee/v1.Resourcefile

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a resource file. Specify the Content-Type as application/octet-stream or multipart/form-data. For more information about resource files, see Resource files. Auto-naming is currently not supported for this resource.

    Create Resourcefile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Resourcefile(name: string, args: ResourcefileArgs, opts?: CustomResourceOptions);
    @overload
    def Resourcefile(resource_name: str,
                     args: ResourcefileArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Resourcefile(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     environment_id: Optional[str] = None,
                     name: Optional[str] = None,
                     organization_id: Optional[str] = None,
                     type: Optional[str] = None,
                     content_type: Optional[str] = None,
                     data: Optional[str] = None,
                     extensions: Optional[Sequence[Mapping[str, str]]] = None,
                     file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None)
    func NewResourcefile(ctx *Context, name string, args ResourcefileArgs, opts ...ResourceOption) (*Resourcefile, error)
    public Resourcefile(string name, ResourcefileArgs args, CustomResourceOptions? opts = null)
    public Resourcefile(String name, ResourcefileArgs args)
    public Resourcefile(String name, ResourcefileArgs args, CustomResourceOptions options)
    
    type: google-native:apigee/v1:Resourcefile
    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 ResourcefileArgs
    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 ResourcefileArgs
    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 ResourcefileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourcefileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourcefileArgs
    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 resourcefileResource = new GoogleNative.Apigee.V1.Resourcefile("resourcefileResource", new()
    {
        EnvironmentId = "string",
        Name = "string",
        OrganizationId = "string",
        Type = "string",
        ContentType = "string",
        Data = "string",
        Extensions = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        File = new StringAsset("content"),
    });
    
    example, err := apigee.NewResourcefile(ctx, "resourcefileResource", &apigee.ResourcefileArgs{
    	EnvironmentId:  pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	OrganizationId: pulumi.String("string"),
    	Type:           pulumi.String("string"),
    	ContentType:    pulumi.String("string"),
    	Data:           pulumi.String("string"),
    	Extensions: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	File: pulumi.NewStringAsset("content"),
    })
    
    var resourcefileResource = new Resourcefile("resourcefileResource", ResourcefileArgs.builder()
        .environmentId("string")
        .name("string")
        .organizationId("string")
        .type("string")
        .contentType("string")
        .data("string")
        .extensions(Map.of("string", "string"))
        .file(new StringAsset("content"))
        .build());
    
    resourcefile_resource = google_native.apigee.v1.Resourcefile("resourcefileResource",
        environment_id="string",
        name="string",
        organization_id="string",
        type="string",
        content_type="string",
        data="string",
        extensions=[{
            "string": "string",
        }],
        file=pulumi.StringAsset("content"))
    
    const resourcefileResource = new google_native.apigee.v1.Resourcefile("resourcefileResource", {
        environmentId: "string",
        name: "string",
        organizationId: "string",
        type: "string",
        contentType: "string",
        data: "string",
        extensions: [{
            string: "string",
        }],
        file: new pulumi.asset.StringAsset("content"),
    });
    
    type: google-native:apigee/v1:Resourcefile
    properties:
        contentType: string
        data: string
        environmentId: string
        extensions:
            - string: string
        file:
            fn::StringAsset: content
        name: string
        organizationId: string
        type: string
    

    Resourcefile 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 Resourcefile resource accepts the following input properties:

    EnvironmentId string
    Name string
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    OrganizationId string
    Type string
    Required. Resource file type. {{ resource_file_type }}
    ContentType string
    The HTTP Content-Type header value specifying the content type of the body.
    Data string
    The HTTP request/response body as raw binary.
    Extensions List<ImmutableDictionary<string, string>>
    Application specific response metadata. Must be set in the first response for streaming APIs.
    File AssetOrArchive
    File to upload.
    EnvironmentId string
    Name string
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    OrganizationId string
    Type string
    Required. Resource file type. {{ resource_file_type }}
    ContentType string
    The HTTP Content-Type header value specifying the content type of the body.
    Data string
    The HTTP request/response body as raw binary.
    Extensions []map[string]string
    Application specific response metadata. Must be set in the first response for streaming APIs.
    File pulumi.AssetOrArchive
    File to upload.
    environmentId String
    name String
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    organizationId String
    type String
    Required. Resource file type. {{ resource_file_type }}
    contentType String
    The HTTP Content-Type header value specifying the content type of the body.
    data String
    The HTTP request/response body as raw binary.
    extensions List<Map<String,String>>
    Application specific response metadata. Must be set in the first response for streaming APIs.
    file AssetOrArchive
    File to upload.
    environmentId string
    name string
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    organizationId string
    type string
    Required. Resource file type. {{ resource_file_type }}
    contentType string
    The HTTP Content-Type header value specifying the content type of the body.
    data string
    The HTTP request/response body as raw binary.
    extensions {[key: string]: string}[]
    Application specific response metadata. Must be set in the first response for streaming APIs.
    file pulumi.asset.Asset | pulumi.asset.Archive
    File to upload.
    environment_id str
    name str
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    organization_id str
    type str
    Required. Resource file type. {{ resource_file_type }}
    content_type str
    The HTTP Content-Type header value specifying the content type of the body.
    data str
    The HTTP request/response body as raw binary.
    extensions Sequence[Mapping[str, str]]
    Application specific response metadata. Must be set in the first response for streaming APIs.
    file Union[pulumi.Asset, pulumi.Archive]
    File to upload.
    environmentId String
    name String
    Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
    organizationId String
    type String
    Required. Resource file type. {{ resource_file_type }}
    contentType String
    The HTTP Content-Type header value specifying the content type of the body.
    data String
    The HTTP request/response body as raw binary.
    extensions List<Map<String>>
    Application specific response metadata. Must be set in the first response for streaming APIs.
    file Asset
    File to upload.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Resourcefile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi