Google Native

v0.27.0 published on Friday, Oct 21, 2022 by Pulumi

Resourcefile

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

new Resourcefile(name: string, args: ResourcefileArgs, opts?: CustomResourceOptions);
@overload
def Resourcefile(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content_type: Optional[str] = None,
                 data: Optional[str] = None,
                 environment_id: Optional[str] = None,
                 extensions: Optional[Sequence[Mapping[str, str]]] = None,
                 file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None,
                 name: Optional[str] = None,
                 organization_id: Optional[str] = None,
                 type: Optional[str] = None)
@overload
def Resourcefile(resource_name: str,
                 args: ResourcefileArgs,
                 opts: Optional[ResourceOptions] = 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.

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.

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

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
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0