1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. toolresults
  6. toolresults/v1beta3
  7. History

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

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

    Creates a History. The returned History will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing project does not exist Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.

    Create History Resource

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

    Constructor syntax

    new History(name: string, args?: HistoryArgs, opts?: CustomResourceOptions);
    @overload
    def History(resource_name: str,
                args: Optional[HistoryArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def History(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                display_name: Optional[str] = None,
                history_id: Optional[str] = None,
                name: Optional[str] = None,
                project: Optional[str] = None,
                request_id: Optional[str] = None,
                test_platform: Optional[HistoryTestPlatform] = None)
    func NewHistory(ctx *Context, name string, args *HistoryArgs, opts ...ResourceOption) (*History, error)
    public History(string name, HistoryArgs? args = null, CustomResourceOptions? opts = null)
    public History(String name, HistoryArgs args)
    public History(String name, HistoryArgs args, CustomResourceOptions options)
    
    type: google-native:toolresults/v1beta3:History
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "google-native_toolresults_v1beta3_history" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args HistoryArgs
    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 HistoryArgs
    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 HistoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HistoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HistoryArgs
    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 historyResource = new GoogleNative.ToolResults.V1Beta3.History("historyResource", new()
    {
        DisplayName = "string",
        HistoryId = "string",
        Name = "string",
        Project = "string",
        RequestId = "string",
        TestPlatform = GoogleNative.ToolResults.V1Beta3.HistoryTestPlatform.UnknownPlatform,
    });
    
    example, err := toolresults.NewHistory(ctx, "historyResource", &toolresults.HistoryArgs{
    	DisplayName:  pulumi.String("string"),
    	HistoryId:    pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Project:      pulumi.String("string"),
    	RequestId:    pulumi.String("string"),
    	TestPlatform: toolresults.HistoryTestPlatformUnknownPlatform,
    })
    
    resource "google-native_toolresults_v1beta3_history" "historyResource" {
      lifecycle {
        create_before_destroy = true
      }
      display_name  = "string"
      history_id    = "string"
      name          = "string"
      project       = "string"
      request_id    = "string"
      test_platform = "unknownPlatform"
    }
    
    var historyResource = new History("historyResource", HistoryArgs.builder()
        .displayName("string")
        .historyId("string")
        .name("string")
        .project("string")
        .requestId("string")
        .testPlatform(com.pulumi.googlenative.toolresults_v1beta3.enums.HistoryTestPlatform.UnknownPlatform)
        .build());
    
    history_resource = google_native.toolresults.v1beta3.History("historyResource",
        display_name="string",
        history_id="string",
        name="string",
        project="string",
        request_id="string",
        test_platform=google_native.toolresults.v1beta3.HistoryTestPlatform.UNKNOWN_PLATFORM)
    
    const historyResource = new google_native.toolresults.v1beta3.History("historyResource", {
        displayName: "string",
        historyId: "string",
        name: "string",
        project: "string",
        requestId: "string",
        testPlatform: google_native.toolresults.v1beta3.HistoryTestPlatform.UnknownPlatform,
    });
    
    type: google-native:toolresults/v1beta3:History
    properties:
        displayName: string
        historyId: string
        name: string
        project: string
        requestId: string
        testPlatform: unknownPlatform
    

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

    DisplayName string
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    HistoryId string
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    Name string
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    Project string
    RequestId string
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    TestPlatform Pulumi.GoogleNative.ToolResults.V1Beta3.HistoryTestPlatform
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    DisplayName string
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    HistoryId string
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    Name string
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    Project string
    RequestId string
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    TestPlatform HistoryTestPlatform
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    display_name string
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    history_id string
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    name string
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    project string
    request_id string
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    test_platform "unknownPlatform" | "android" | "ios"
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    displayName String
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    historyId String
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    name String
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    project String
    requestId String
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    testPlatform HistoryTestPlatform
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    displayName string
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    historyId string
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    name string
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    project string
    requestId string
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    testPlatform HistoryTestPlatform
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    display_name str
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    history_id str
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    name str
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    project str
    request_id str
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    test_platform HistoryTestPlatform
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.
    displayName String
    A short human-readable (plain text) name to display in the UI. Maximum of 100 characters. - In response: present if set during create. - In create request: optional
    historyId String
    A unique identifier within a project for this History. Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. - In response always set - In create request: never set
    name String
    A name to uniquely identify a history within a project. Maximum of 200 characters. - In response always set - In create request: always set
    project String
    requestId String
    A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
    testPlatform "unknownPlatform" | "android" | "ios"
    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the History 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 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.

    Look up Existing History Resource

    Get an existing History resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): History
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> History
    func GetHistory(ctx *Context, name string, id IDInput, state *HistoryState, opts ...ResourceOption) (*History, error)
    public static History Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static History get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingHistory:    type: google-native:toolresults/v1beta3:History    get:      id: ${id}
    import {
      to = google-native_toolresults_v1beta3_history.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state HistoryState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    HistoryTestPlatform

    The platform of the test history. - In response: always set. Returns the platform of the last execution if unknown.

    NameValue
    UnknownPlatformunknownPlatform
    Androidandroid
    Iosios
    NameValue
    HistoryTestPlatformUnknownPlatformunknownPlatform
    HistoryTestPlatformAndroidandroid
    HistoryTestPlatformIosios
    Value
    unknownPlatform
    android
    ios
    NameValue
    UnknownPlatformunknownPlatform
    Androidandroid
    Iosios
    NameValue
    UnknownPlatformunknownPlatform
    Androidandroid
    Iosios
    NameValue
    UNKNOWN_PLATFORMunknownPlatform
    ANDROIDandroid
    IOSios
    Value
    unknownPlatform
    android
    ios

    Package Details

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

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial