Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.Resourcefile
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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:
- Environment
Id string - Name string
Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- Organization
Id string - Type string
Required. Resource file type. {{ resource_file_type }}
- Content
Type 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<Immutable
Dictionary<string, string>> Application specific response metadata. Must be set in the first response for streaming APIs.
- File
Asset
Or Archive File to upload.
- Environment
Id string - Name string
Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- Organization
Id string - Type string
Required. Resource file type. {{ resource_file_type }}
- Content
Type 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.
Asset Or Archive File to upload.
- environment
Id String - name String
Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id String - type String
Required. Resource file type. {{ resource_file_type }}
- content
Type 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
Asset
Or Archive File to upload.
- environment
Id string - name string
Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id string - type string
Required. Resource file type. {{ resource_file_type }}
- content
Type 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.
- environment
Id String - name String
Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id String - type String
Required. Resource file type. {{ resource_file_type }}
- content
Type 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 Cloud Native is in preview. Google Cloud Classic is fully supported.