diff --git a/provider/cmd/pulumi-resource-google-native/metadata.json b/provider/cmd/pulumi-resource-google-native/metadata.json index 52bcf20efc..12ba3d2b5a 100644 --- a/provider/cmd/pulumi-resource-google-native/metadata.json +++ b/provider/cmd/pulumi-resource-google-native/metadata.json @@ -25226,6 +25226,14 @@ } } }, + "google-native:cloudsearch/v1:ContextAttributeResponse": { + "properties": { + "name": {}, + "values": { + "items": {} + } + } + }, "google-native:cloudsearch/v1:DataSourceRestriction": { "properties": { "filterOptions": { @@ -25276,6 +25284,34 @@ } } }, + "google-native:cloudsearch/v1:DateValuesResponse": { + "properties": { + "values": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:DateResponse" + } + } + } + }, + "google-native:cloudsearch/v1:DebugOptions": { + "properties": { + "enableDebugging": {} + } + }, + "google-native:cloudsearch/v1:DoubleValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, + "google-native:cloudsearch/v1:EnumValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, "google-native:cloudsearch/v1:FacetOptions": { "properties": { "integerFacetingOptions": { @@ -25302,6 +25338,12 @@ "sourceName": {} } }, + "google-native:cloudsearch/v1:FieldViolationResponse": { + "properties": { + "description": {}, + "field": {} + } + }, "google-native:cloudsearch/v1:Filter": { "properties": { "compositeFilter": { @@ -25352,6 +25394,13 @@ "gsuiteUserEmail": {} } }, + "google-native:cloudsearch/v1:HtmlValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, "google-native:cloudsearch/v1:IntegerFacetingOptions": { "properties": { "integerBuckets": { @@ -25366,6 +25415,172 @@ } } }, + "google-native:cloudsearch/v1:IntegerValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, + "google-native:cloudsearch/v1:InteractionResponse": { + "properties": { + "interactionTime": { + "format": "google-datetime" + }, + "principal": { + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + }, + "type": {} + } + }, + "google-native:cloudsearch/v1:ItemAclResponse": { + "properties": { + "aclInheritanceType": {}, + "deniedReaders": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + } + }, + "inheritAclFrom": {}, + "owners": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + } + }, + "readers": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + } + } + } + }, + "google-native:cloudsearch/v1:ItemContentResponse": { + "properties": { + "contentDataRef": { + "$ref": "#/types/google-native:cloudsearch/v1:UploadItemRefResponse" + }, + "contentFormat": {}, + "hash": {}, + "inlineContent": { + "format": "byte" + } + } + }, + "google-native:cloudsearch/v1:ItemMetadataResponse": { + "properties": { + "containerName": {}, + "contentLanguage": {}, + "contextAttributes": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:ContextAttributeResponse" + } + }, + "createTime": { + "format": "google-datetime" + }, + "hash": {}, + "interactions": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:InteractionResponse" + } + }, + "keywords": { + "items": {} + }, + "mimeType": {}, + "objectType": {}, + "searchQualityMetadata": { + "$ref": "#/types/google-native:cloudsearch/v1:SearchQualityMetadataResponse" + }, + "sourceRepositoryUrl": {}, + "title": {}, + "updateTime": { + "format": "google-datetime" + } + } + }, + "google-native:cloudsearch/v1:ItemStatusResponse": { + "properties": { + "code": {}, + "processingErrors": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:ProcessingErrorResponse" + } + }, + "repositoryErrors": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:RepositoryErrorResponse" + } + } + } + }, + "google-native:cloudsearch/v1:ItemStructuredDataResponse": { + "properties": { + "hash": {}, + "object": { + "$ref": "#/types/google-native:cloudsearch/v1:StructuredDataObjectResponse" + } + } + }, + "google-native:cloudsearch/v1:NamedPropertyResponse": { + "properties": { + "booleanValue": {}, + "dateValues": { + "$ref": "#/types/google-native:cloudsearch/v1:DateValuesResponse" + }, + "doubleValues": { + "$ref": "#/types/google-native:cloudsearch/v1:DoubleValuesResponse" + }, + "enumValues": { + "$ref": "#/types/google-native:cloudsearch/v1:EnumValuesResponse" + }, + "htmlValues": { + "$ref": "#/types/google-native:cloudsearch/v1:HtmlValuesResponse" + }, + "integerValues": { + "$ref": "#/types/google-native:cloudsearch/v1:IntegerValuesResponse" + }, + "name": {}, + "objectValues": { + "$ref": "#/types/google-native:cloudsearch/v1:ObjectValuesResponse" + }, + "textValues": { + "$ref": "#/types/google-native:cloudsearch/v1:TextValuesResponse" + }, + "timestampValues": { + "$ref": "#/types/google-native:cloudsearch/v1:TimestampValuesResponse" + } + } + }, + "google-native:cloudsearch/v1:ObjectValuesResponse": { + "properties": { + "values": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:StructuredDataObjectResponse" + } + } + } + }, + "google-native:cloudsearch/v1:PrincipalResponse": { + "properties": { + "groupResourceName": {}, + "gsuitePrincipal": { + "$ref": "#/types/google-native:cloudsearch/v1:GSuitePrincipalResponse" + }, + "userResourceName": {} + } + }, + "google-native:cloudsearch/v1:ProcessingErrorResponse": { + "properties": { + "code": {}, + "errorMessage": {}, + "fieldViolations": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:FieldViolationResponse" + } + } + } + }, "google-native:cloudsearch/v1:QueryInterpretationConfig": { "properties": { "forceDisableSupplementalResults": {}, @@ -25378,6 +25593,15 @@ "forceVerbatimMode": {} } }, + "google-native:cloudsearch/v1:RepositoryErrorResponse": { + "properties": { + "errorMessage": {}, + "httpStatusCode": { + "format": "int32" + }, + "type": {} + } + }, "google-native:cloudsearch/v1:ScoringConfig": { "properties": { "disableFreshness": {}, @@ -25390,6 +25614,13 @@ "disablePersonalization": {} } }, + "google-native:cloudsearch/v1:SearchQualityMetadataResponse": { + "properties": { + "quality": { + "format": "double" + } + } + }, "google-native:cloudsearch/v1:SortOptions": { "properties": { "operatorName": {}, @@ -25476,6 +25707,34 @@ "sourceImportance": {} } }, + "google-native:cloudsearch/v1:StructuredDataObjectResponse": { + "properties": { + "properties": { + "items": { + "$ref": "#/types/google-native:cloudsearch/v1:NamedPropertyResponse" + } + } + } + }, + "google-native:cloudsearch/v1:TextValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, + "google-native:cloudsearch/v1:TimestampValuesResponse": { + "properties": { + "values": { + "items": {} + } + } + }, + "google-native:cloudsearch/v1:UploadItemRefResponse": { + "properties": { + "name": {} + } + }, "google-native:cloudsearch/v1:Value": { "properties": { "booleanValue": {}, @@ -48505,6 +48764,12 @@ } } }, + "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RedactionConfig": { + "properties": { + "deidentifyTemplate": {}, + "inspectTemplate": {} + } + }, "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RuntimeAnnotationResponse": { "properties": { "annotationId": {}, @@ -48571,6 +48836,11 @@ "reply": {} } }, + "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1SpeechConfig": { + "properties": { + "speechRecognizer": {} + } + }, "google-native:container/v1:AcceleratorConfig": { "properties": { "acceleratorCount": { @@ -144477,6 +144747,220 @@ "projectsId": "project" } }, + "google-native:aiplatform/v1:Model": { + "create": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/models:upload", + "values": [ + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + } + ] + }, + "sdkProperties": { + "artifactUri": { + "container": "model" + }, + "containerSpec": { + "container": "model" + }, + "description": { + "container": "model" + }, + "displayName": { + "container": "model" + }, + "encryptionSpec": { + "container": "model" + }, + "etag": { + "container": "model" + }, + "explanationSpec": { + "container": "model" + }, + "labels": { + "container": "model" + }, + "metadata": { + "container": "model" + }, + "metadataSchemaUri": { + "container": "model" + }, + "modelId": {}, + "name": { + "container": "model" + }, + "parentModel": {}, + "pipelineJob": { + "container": "model" + }, + "predictSchemata": { + "container": "model" + }, + "serviceAccount": {}, + "versionAliases": { + "container": "model" + }, + "versionDescription": { + "container": "model" + } + }, + "verb": "POST", + "operations": { + "template": "https://aiplatform.googleapis.com/v1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + }, + "autoname": { + "fieldName": "{name}" + } + }, + "read": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + } + ] + }, + "verb": "GET" + }, + "update": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}?updateMask={updateMask}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "updateMask", + "sdkName": "updateMask", + "kind": "query" + } + ] + }, + "sdkProperties": { + "artifactUri": { + "forceNew": true + }, + "containerSpec": { + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelContainerSpec" + }, + "description": {}, + "displayName": { + "required": true + }, + "encryptionSpec": { + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1EncryptionSpec" + }, + "etag": {}, + "explanationSpec": { + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ExplanationSpec" + }, + "labels": {}, + "metadata": { + "$ref": "pulumi.json#/Any", + "forceNew": true + }, + "metadataSchemaUri": { + "forceNew": true + }, + "name": {}, + "pipelineJob": {}, + "predictSchemata": { + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1PredictSchemata" + }, + "versionAliases": { + "items": {} + }, + "versionDescription": {} + }, + "verb": "PATCH", + "updateMask": { + "queryParamName": "updateMask" + } + }, + "delete": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + } + ] + }, + "verb": "DELETE", + "operations": { + "template": "https://aiplatform.googleapis.com/v1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + } + }, + "rootUrl": "https://aiplatform.googleapis.com/", + "formDataUpload": {}, + "idPath": "v1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "idParams": { + "locationsId": "location", + "modelsId": "modelId", + "projectsId": "project" + } + }, "google-native:aiplatform/v1:ModelDeploymentMonitoringJob": { "create": { "endpoint": { @@ -151248,6 +151732,216 @@ "projectsId": "project" } }, + "google-native:aiplatform/v1beta1:Model": { + "create": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/models:upload", + "values": [ + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + } + ] + }, + "sdkProperties": { + "artifactUri": { + "container": "model" + }, + "containerSpec": { + "container": "model" + }, + "description": { + "container": "model" + }, + "displayName": { + "container": "model" + }, + "encryptionSpec": { + "container": "model" + }, + "etag": { + "container": "model" + }, + "explanationSpec": { + "container": "model" + }, + "labels": { + "container": "model" + }, + "metadata": { + "container": "model" + }, + "metadataSchemaUri": { + "container": "model" + }, + "modelId": {}, + "name": { + "container": "model" + }, + "parentModel": {}, + "predictSchemata": { + "container": "model" + }, + "serviceAccount": {}, + "versionAliases": { + "container": "model" + }, + "versionDescription": { + "container": "model" + } + }, + "verb": "POST", + "operations": { + "template": "https://aiplatform.googleapis.com/v1beta1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + }, + "autoname": { + "fieldName": "{name}" + } + }, + "read": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + } + ] + }, + "verb": "GET" + }, + "update": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}?updateMask={updateMask}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "updateMask", + "sdkName": "updateMask", + "kind": "query" + } + ] + }, + "sdkProperties": { + "artifactUri": { + "forceNew": true + }, + "containerSpec": { + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelContainerSpec" + }, + "description": {}, + "displayName": { + "required": true + }, + "encryptionSpec": { + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1EncryptionSpec" + }, + "etag": {}, + "explanationSpec": { + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ExplanationSpec" + }, + "labels": {}, + "metadata": { + "$ref": "pulumi.json#/Any", + "forceNew": true + }, + "metadataSchemaUri": { + "forceNew": true + }, + "name": {}, + "predictSchemata": { + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1PredictSchemata" + }, + "versionAliases": { + "items": {} + }, + "versionDescription": {} + }, + "verb": "PATCH", + "updateMask": { + "queryParamName": "updateMask" + } + }, + "delete": { + "endpoint": { + "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + }, + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + } + ] + }, + "verb": "DELETE", + "operations": { + "template": "https://aiplatform.googleapis.com/v1beta1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + } + }, + "rootUrl": "https://aiplatform.googleapis.com/", + "formDataUpload": {}, + "idPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "idParams": { + "locationsId": "location", + "modelsId": "modelId", + "projectsId": "project" + } + }, "google-native:aiplatform/v1beta1:ModelDeploymentMonitoringJob": { "create": { "endpoint": { @@ -214651,6 +215345,90 @@ "datasourcesId": "name" } }, + "google-native:cloudsearch/v1:Item": { + "create": { + "endpoint": { + "template": "https://cloudsearch.googleapis.com/v1/indexing/datasources/{datasourcesId}/items/{itemsId}:upload", + "values": [ + { + "name": "datasourcesId", + "sdkName": "datasourceId", + "kind": "path" + }, + { + "name": "itemsId", + "sdkName": "itemId", + "kind": "path" + } + ] + }, + "sdkProperties": { + "connectorName": {}, + "debugOptions": { + "$ref": "#/types/google-native:cloudsearch/v1:DebugOptions" + } + }, + "verb": "POST", + "autoname": {} + }, + "read": { + "endpoint": { + "template": "https://cloudsearch.googleapis.com/v1/indexing/datasources/{datasourcesId}/items/{itemsId}", + "values": [ + { + "name": "datasourcesId", + "sdkName": "datasourceId", + "kind": "path" + }, + { + "name": "itemsId", + "sdkName": "itemId", + "kind": "path" + } + ] + }, + "verb": "GET" + }, + "update": { + "endpoint": {}, + "updateMask": {} + }, + "delete": { + "endpoint": { + "template": "https://cloudsearch.googleapis.com/v1/indexing/datasources/{datasourcesId}/items/{itemsId}?mode={mode}\u0026version={version}", + "values": [ + { + "name": "datasourcesId", + "sdkName": "datasourceId", + "kind": "path" + }, + { + "name": "itemsId", + "sdkName": "itemId", + "kind": "path" + } + ] + }, + "verb": "DELETE", + "operations": { + "template": "https://cloudsearch.googleapis.com/v1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + } + }, + "rootUrl": "https://cloudsearch.googleapis.com/", + "formDataUpload": {}, + "idPath": "v1/indexing/datasources/{datasourcesId}/items/{itemsId}", + "idParams": { + "datasourcesId": "datasourceId", + "itemsId": "itemId" + } + }, "google-native:cloudsearch/v1:SearchApplication": { "create": { "endpoint": { @@ -273111,12 +273889,8 @@ "google-native:contactcenterinsights/v1:Conversation": { "create": { "endpoint": { - "template": "https://contactcenterinsights.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/conversations", + "template": "https://contactcenterinsights.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/conversations:upload", "values": [ - { - "name": "conversationId", - "kind": "query" - }, { "name": "projectsId", "sdkName": "project", @@ -273130,34 +273904,61 @@ ] }, "sdkProperties": { - "agentId": {}, + "agentId": { + "container": "conversation" + }, "callMetadata": { - "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1ConversationCallMetadata" + "container": "conversation" }, + "conversationId": {}, "dataSource": { - "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1ConversationDataSource" + "container": "conversation" }, "expireTime": { - "format": "google-datetime" + "container": "conversation" + }, + "labels": { + "container": "conversation" + }, + "languageCode": { + "container": "conversation" }, - "labels": {}, - "languageCode": {}, "medium": { - "$ref": "#/types/google-native:contactcenterinsights/v1:ConversationMedium", - "forceNew": true + "container": "conversation" }, "name": { - "forceNew": true + "container": "conversation" + }, + "obfuscatedUserId": { + "container": "conversation" + }, + "parent": { + "required": true + }, + "redactionConfig": { + "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RedactionConfig" + }, + "speechConfig": { + "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1SpeechConfig" }, - "obfuscatedUserId": {}, "startTime": { - "format": "google-datetime" + "container": "conversation" }, "ttl": { - "format": "google-duration" + "container": "conversation" } }, "verb": "POST", + "operations": { + "template": "https://contactcenterinsights.googleapis.com/v1/{+name}", + "values": [ + { + "name": "name", + "sdkName": "name", + "kind": "path" + } + ] + }, "autoname": { "fieldName": "projects/{project}/locations/{location}/conversations/{name}" } @@ -358714,7 +359515,7 @@ "google-native:iam/v1:Key": { "create": { "endpoint": { - "template": "https://iam.googleapis.com/v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys", + "template": "https://iam.googleapis.com/v1/projects/{projectsId}/serviceAccounts/{serviceAccountsId}/keys:upload", "values": [ { "name": "projectsId", @@ -358729,11 +359530,8 @@ ] }, "sdkProperties": { - "keyAlgorithm": { - "$ref": "#/types/google-native:iam/v1:KeyKeyAlgorithm" - }, - "privateKeyType": { - "$ref": "#/types/google-native:iam/v1:KeyPrivateKeyType" + "publicKeyData": { + "format": "byte" } }, "verb": "POST", @@ -364090,16 +364888,8 @@ "google-native:integrations/v1alpha:Version": { "create": { "endpoint": { - "template": "https://integrations.googleapis.com/v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions", + "template": "https://integrations.googleapis.com/v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions:upload", "values": [ - { - "name": "createSampleIntegrations", - "kind": "query" - }, - { - "name": "newIntegration", - "kind": "query" - }, { "name": "projectsId", "sdkName": "project", @@ -364123,60 +364913,10 @@ ] }, "sdkProperties": { - "cloudLoggingDetails": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaCloudLoggingDetails" - }, - "databasePersistencePolicy": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionDatabasePersistencePolicy" - }, - "description": {}, - "errorCatcherConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaErrorCatcherConfig" - } - }, - "integrationParameters": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaIntegrationParameter" - } - }, - "integrationParametersInternal": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoWorkflowParameters" - }, - "lastModifierEmail": {}, - "lockHolder": {}, - "origin": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionOrigin" - }, - "parentTemplateId": {}, - "runAsServiceAccount": {}, - "snapshotNumber": { - "format": "int64" - }, - "taskConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTaskConfig" - } - }, - "taskConfigsInternal": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTaskConfig" - } - }, - "teardown": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmEventbusProtoTeardown" - }, - "triggerConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTriggerConfig" - } - }, - "triggerConfigsInternal": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTriggerConfig" - } - }, - "userLabel": {} + "content": {}, + "fileFormat": { + "$ref": "#/types/google-native:integrations/v1alpha:VersionFileFormat" + } }, "verb": "POST", "autoname": {} @@ -364245,62 +364985,6 @@ } ] }, - "sdkProperties": { - "cloudLoggingDetails": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaCloudLoggingDetails" - }, - "databasePersistencePolicy": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionDatabasePersistencePolicy" - }, - "description": {}, - "errorCatcherConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaErrorCatcherConfig" - } - }, - "integrationParameters": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaIntegrationParameter" - } - }, - "integrationParametersInternal": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoWorkflowParameters" - }, - "lastModifierEmail": {}, - "lockHolder": {}, - "origin": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionOrigin" - }, - "parentTemplateId": {}, - "runAsServiceAccount": {}, - "snapshotNumber": { - "format": "int64" - }, - "taskConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTaskConfig" - } - }, - "taskConfigsInternal": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTaskConfig" - } - }, - "teardown": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmEventbusProtoTeardown" - }, - "triggerConfigs": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTriggerConfig" - } - }, - "triggerConfigsInternal": { - "items": { - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTriggerConfig" - } - }, - "userLabel": {} - }, "verb": "PATCH", "updateMask": {} }, @@ -453334,6 +454018,29 @@ }, "verb": "GET" }, + "google-native:aiplatform/v1:getModel": { + "url": { + "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + } + ] + }, + "verb": "GET" + }, "google-native:aiplatform/v1:getModelDeploymentMonitoringJob": { "url": { "template": "https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", @@ -454343,6 +455050,29 @@ }, "verb": "GET" }, + "google-native:aiplatform/v1beta1:getModel": { + "url": { + "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + "values": [ + { + "name": "projectsId", + "sdkName": "project", + "kind": "path" + }, + { + "name": "locationsId", + "sdkName": "location", + "kind": "path" + }, + { + "name": "modelsId", + "sdkName": "modelId", + "kind": "path" + } + ] + }, + "verb": "GET" + }, "google-native:aiplatform/v1beta1:getModelDeploymentMonitoringJob": { "url": { "template": "https://aiplatform.googleapis.com/v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", @@ -461400,6 +462130,33 @@ }, "verb": "GET" }, + "google-native:cloudsearch/v1:getItem": { + "url": { + "template": "https://cloudsearch.googleapis.com/v1/indexing/datasources/{datasourcesId}/items/{itemsId}", + "values": [ + { + "name": "connectorName", + "kind": "query" + }, + { + "name": "debugOptions.enableDebugging", + "sdkName": "debugOptionsEnableDebugging", + "kind": "query" + }, + { + "name": "datasourcesId", + "sdkName": "datasourceId", + "kind": "path" + }, + { + "name": "itemsId", + "sdkName": "itemId", + "kind": "path" + } + ] + }, + "verb": "GET" + }, "google-native:cloudsearch/v1:getSearchApplication": { "url": { "template": "https://cloudsearch.googleapis.com/v1/settings/searchapplications/{searchapplicationsId}", diff --git a/provider/cmd/pulumi-resource-google-native/schema.json b/provider/cmd/pulumi-resource-google-native/schema.json index fff278841f..8d7b06dba6 100644 --- a/provider/cmd/pulumi-resource-google-native/schema.json +++ b/provider/cmd/pulumi-resource-google-native/schema.json @@ -64449,6 +64449,27 @@ "subFilters" ] }, + "google-native:cloudsearch/v1:ContextAttributeResponse": { + "description": "A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request.", + "properties": { + "name": { + "type": "string", + "description": "The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched." + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched." + } + }, + "type": "object", + "required": [ + "name", + "values" + ] + }, "google-native:cloudsearch/v1:DataSourceRestriction": { "description": "Restriction on Datasource.", "properties": { @@ -64532,6 +64553,63 @@ "year" ] }, + "google-native:cloudsearch/v1:DateValuesResponse": { + "description": "List of date values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:DateResponse" + } + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:DebugOptions": { + "description": "Shared request debug options for all cloudsearch RPC methods.", + "properties": { + "enableDebugging": { + "type": "boolean", + "description": "If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field." + } + }, + "type": "object" + }, + "google-native:cloudsearch/v1:DoubleValuesResponse": { + "description": "List of double values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "number" + } + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:EnumValuesResponse": { + "description": "List of enum values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The maximum allowable length for string values is 32 characters." + } + }, + "type": "object", + "required": [ + "values" + ] + }, "google-native:cloudsearch/v1:FacetOptions": { "description": "Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.", "properties": { @@ -64593,6 +64671,23 @@ "sourceName" ] }, + "google-native:cloudsearch/v1:FieldViolationResponse": { + "properties": { + "description": { + "type": "string", + "description": "The description of the error." + }, + "field": { + "type": "string", + "description": "Path of field with violation." + } + }, + "type": "object", + "required": [ + "description", + "field" + ] + }, "google-native:cloudsearch/v1:Filter": { "description": "A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND.", "properties": { @@ -64698,6 +64793,22 @@ "gsuiteUserEmail" ] }, + "google-native:cloudsearch/v1:HtmlValuesResponse": { + "description": "List of html values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The maximum allowable length for html values is 2048 characters." + } + }, + "type": "object", + "required": [ + "values" + ] + }, "google-native:cloudsearch/v1:IntegerFacetingOptions": { "description": "Used to specify integer faceting options.", "properties": { @@ -64727,6 +64838,375 @@ "integerBuckets" ] }, + "google-native:cloudsearch/v1:IntegerValuesResponse": { + "description": "List of integer values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:InteractionResponse": { + "description": "Represents an interaction between a user and an item.", + "properties": { + "interactionTime": { + "type": "string", + "description": "The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded." + }, + "principal": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse", + "description": "The user that acted on the item." + }, + "type": { + "type": "string" + } + }, + "type": "object", + "required": [ + "interactionTime", + "principal", + "type" + ] + }, + "google-native:cloudsearch/v1:ItemAclResponse": { + "description": "Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls).", + "properties": { + "aclInheritanceType": { + "type": "string", + "description": "Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType." + }, + "deniedReaders": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + }, + "description": "List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100." + }, + "inheritAclFrom": { + "type": "string", + "description": "The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters." + }, + "owners": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + }, + "description": "Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5." + }, + "readers": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:PrincipalResponse" + }, + "description": "List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000." + } + }, + "type": "object", + "required": [ + "aclInheritanceType", + "deniedReaders", + "inheritAclFrom", + "owners", + "readers" + ] + }, + "google-native:cloudsearch/v1:ItemContentResponse": { + "description": "Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.", + "properties": { + "contentDataRef": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:UploadItemRefResponse", + "description": "Upload reference ID of a previously uploaded content via write method." + }, + "contentFormat": { + "type": "string" + }, + "hash": { + "type": "string", + "description": "Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters." + }, + "inlineContent": { + "type": "string", + "description": "Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB)." + } + }, + "type": "object", + "required": [ + "contentDataRef", + "contentFormat", + "hash", + "inlineContent" + ] + }, + "google-native:cloudsearch/v1:ItemMetadataResponse": { + "description": "Available metadata fields for the item.", + "properties": { + "containerName": { + "type": "string", + "description": "The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters." + }, + "contentLanguage": { + "type": "string", + "description": "The BCP-47 language code for the item, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters." + }, + "contextAttributes": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ContextAttributeResponse" + }, + "description": "A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10." + }, + "createTime": { + "type": "string", + "description": "The time when the item was created in the source repository." + }, + "hash": { + "type": "string", + "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters." + }, + "interactions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:InteractionResponse" + }, + "description": "A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000." + }, + "keywords": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters." + }, + "mimeType": { + "type": "string", + "description": "The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters." + }, + "objectType": { + "type": "string", + "description": "The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters." + }, + "searchQualityMetadata": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:SearchQualityMetadataResponse", + "description": "Additional search quality metadata of the item" + }, + "sourceRepositoryUrl": { + "type": "string", + "description": "Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters." + }, + "title": { + "type": "string", + "description": "The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters." + }, + "updateTime": { + "type": "string", + "description": "The time when the item was last modified in the source repository." + } + }, + "type": "object", + "required": [ + "containerName", + "contentLanguage", + "contextAttributes", + "createTime", + "hash", + "interactions", + "keywords", + "mimeType", + "objectType", + "searchQualityMetadata", + "sourceRepositoryUrl", + "title", + "updateTime" + ] + }, + "google-native:cloudsearch/v1:ItemStatusResponse": { + "description": "This contains item's status and any errors.", + "properties": { + "code": { + "type": "string", + "description": "Status code." + }, + "processingErrors": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ProcessingErrorResponse" + }, + "description": "Error details in case the item is in ERROR state." + }, + "repositoryErrors": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:RepositoryErrorResponse" + }, + "description": "Repository error reported by connector." + } + }, + "type": "object", + "required": [ + "code", + "processingErrors", + "repositoryErrors" + ] + }, + "google-native:cloudsearch/v1:ItemStructuredDataResponse": { + "description": "Available structured data fields for the item.", + "properties": { + "hash": { + "type": "string", + "description": "Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters." + }, + "object": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:StructuredDataObjectResponse", + "description": "The structured data object that should conform to a registered object definition in the schema for the data source." + } + }, + "type": "object", + "required": [ + "hash", + "object" + ] + }, + "google-native:cloudsearch/v1:NamedPropertyResponse": { + "description": "A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`.", + "properties": { + "booleanValue": { + "type": "boolean" + }, + "dateValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:DateValuesResponse" + }, + "doubleValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:DoubleValuesResponse" + }, + "enumValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:EnumValuesResponse" + }, + "htmlValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:HtmlValuesResponse" + }, + "integerValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:IntegerValuesResponse" + }, + "name": { + "type": "string", + "description": "The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters." + }, + "objectValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ObjectValuesResponse" + }, + "textValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:TextValuesResponse" + }, + "timestampValues": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:TimestampValuesResponse" + } + }, + "type": "object", + "required": [ + "booleanValue", + "dateValues", + "doubleValues", + "enumValues", + "htmlValues", + "integerValues", + "name", + "objectValues", + "textValues", + "timestampValues" + ] + }, + "google-native:cloudsearch/v1:ObjectValuesResponse": { + "description": "List of object values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:StructuredDataObjectResponse" + } + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:PrincipalResponse": { + "description": "Reference to a user, group, or domain.", + "properties": { + "groupResourceName": { + "type": "string", + "description": "This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID}" + }, + "gsuitePrincipal": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:GSuitePrincipalResponse", + "description": "This principal is a Google Workspace user, group or domain." + }, + "userResourceName": { + "type": "string", + "description": "This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID}" + } + }, + "type": "object", + "required": [ + "groupResourceName", + "gsuitePrincipal", + "userResourceName" + ] + }, + "google-native:cloudsearch/v1:ProcessingErrorResponse": { + "properties": { + "code": { + "type": "string", + "description": "Error code indicating the nature of the error." + }, + "errorMessage": { + "type": "string", + "description": "The description of the error." + }, + "fieldViolations": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:FieldViolationResponse" + }, + "description": "In case the item fields are invalid, this field contains the details about the validation errors." + } + }, + "type": "object", + "required": [ + "code", + "errorMessage", + "fieldViolations" + ] + }, "google-native:cloudsearch/v1:QueryInterpretationConfig": { "description": "Default options to interpret user query.", "properties": { @@ -64759,6 +65239,29 @@ "forceVerbatimMode" ] }, + "google-native:cloudsearch/v1:RepositoryErrorResponse": { + "description": "Errors when the connector is communicating to the source repository.", + "properties": { + "errorMessage": { + "type": "string", + "description": "Message that describes the error. The maximum allowable length of the message is 8192 characters." + }, + "httpStatusCode": { + "type": "integer", + "description": "Error codes. Matches the definition of HTTP status codes." + }, + "type": { + "type": "string", + "description": "The type of error." + } + }, + "type": "object", + "required": [ + "errorMessage", + "httpStatusCode", + "type" + ] + }, "google-native:cloudsearch/v1:ScoringConfig": { "description": "Scoring configurations for a source while processing a Search or Suggest request.", "properties": { @@ -64791,6 +65294,19 @@ "disablePersonalization" ] }, + "google-native:cloudsearch/v1:SearchQualityMetadataResponse": { + "description": "Additional search quality metadata of the item.", + "properties": { + "quality": { + "type": "number", + "description": "An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0." + } + }, + "type": "object", + "required": [ + "quality" + ] + }, "google-native:cloudsearch/v1:SortOptions": { "properties": { "operatorName": { @@ -65031,6 +65547,67 @@ } ] }, + "google-native:cloudsearch/v1:StructuredDataObjectResponse": { + "description": "A structured data object consisting of named properties.", + "properties": { + "properties": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:NamedPropertyResponse" + }, + "description": "The properties for the object. The maximum number of elements is 1000." + } + }, + "type": "object", + "required": [ + "properties" + ] + }, + "google-native:cloudsearch/v1:TextValuesResponse": { + "description": "List of text values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The maximum allowable length for text values is 2048 characters." + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:TimestampValuesResponse": { + "description": "List of timestamp values.", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object", + "required": [ + "values" + ] + }, + "google-native:cloudsearch/v1:UploadItemRefResponse": { + "description": "Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef.", + "properties": { + "name": { + "type": "string", + "description": "The name of the content reference. The maximum length is 2048 characters." + } + }, + "type": "object", + "required": [ + "name" + ] + }, "google-native:cloudsearch/v1:Value": { "description": "Definition of a single value with generic type.", "properties": { @@ -131364,6 +131941,20 @@ "query" ] }, + "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RedactionConfig": { + "description": "DLP resources used for redaction while ingesting conversations.", + "properties": { + "deidentifyTemplate": { + "type": "string", + "description": "The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}`" + }, + "inspectTemplate": { + "type": "string", + "description": "The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}`" + } + }, + "type": "object" + }, "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RuntimeAnnotationResponse": { "description": "An annotation that was generated during the customer and agent interaction.", "properties": { @@ -131514,6 +132105,16 @@ "reply" ] }, + "google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1SpeechConfig": { + "description": "Speech-to-Text configuration.", + "properties": { + "speechRecognizer": { + "type": "string", + "description": "The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}`" + } + }, + "type": "object" + }, "google-native:contactcenterinsights/v1:IssueModelModelType": { "description": "Type of the model.", "type": "string", @@ -259187,48 +259788,6 @@ "notBeforeTime" ] }, - "google-native:iam/v1:KeyKeyAlgorithm": { - "description": "Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future.", - "type": "string", - "enum": [ - { - "name": "KeyAlgUnspecified", - "description": "An unspecified key algorithm.", - "value": "KEY_ALG_UNSPECIFIED" - }, - { - "name": "KeyAlgRsa1024", - "description": "1k RSA Key.", - "value": "KEY_ALG_RSA_1024" - }, - { - "name": "KeyAlgRsa2048", - "description": "2k RSA Key.", - "value": "KEY_ALG_RSA_2048" - } - ] - }, - "google-native:iam/v1:KeyPrivateKeyType": { - "description": "The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format.", - "type": "string", - "enum": [ - { - "name": "TypeUnspecified", - "description": "Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`.", - "value": "TYPE_UNSPECIFIED" - }, - { - "name": "TypePkcs12File", - "description": "PKCS12 format. The password for the PKCS12 file is `notasecret`. For more information, see https://tools.ietf.org/html/rfc7292.", - "value": "TYPE_PKCS12_FILE" - }, - { - "name": "TypeGoogleCredentialsFile", - "description": "Google Credentials File format.", - "value": "TYPE_GOOGLE_CREDENTIALS_FILE" - } - ] - }, "google-native:iam/v1:Oidc": { "description": "Represents an OpenId Connect 1.0 identity provider.", "properties": { @@ -269324,6 +269883,27 @@ } ] }, + "google-native:integrations/v1alpha:VersionFileFormat": { + "description": "File format for upload request.", + "type": "string", + "enum": [ + { + "name": "FileFormatUnspecified", + "description": "Unspecified file format", + "value": "FILE_FORMAT_UNSPECIFIED" + }, + { + "name": "Json", + "description": "JSON File Format", + "value": "JSON" + }, + { + "name": "Yaml", + "description": "YAML File Format", + "value": "YAML" + } + ] + }, "google-native:integrations/v1alpha:VersionOrigin": { "description": "Optional. The origin that indicates where this integration is coming from.", "type": "string", @@ -365243,6 +365823,287 @@ } } }, + "google-native:aiplatform/v1:Model": { + "description": "Uploads a Model artifact into Vertex AI.", + "properties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelContainerSpecResponse", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "createTime": { + "type": "string", + "description": "Timestamp when this Model was uploaded into Vertex AI." + }, + "deployedModels": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1DeployedModelRefResponse" + }, + "description": "The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1EncryptionSpecResponse", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ExplanationSpecResponse", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "location": { + "type": "string", + "replaceOnChanges": true + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataArtifact": { + "type": "string", + "description": "The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelSourceInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelSourceInfoResponse", + "description": "Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "originalModelInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelOriginalModelInfoResponse", + "description": "If this Model is a copy of another Model, this contains info about the original." + }, + "pipelineJob": { + "type": "string", + "description": "Optional. This field is populated if the model is produced by a pipeline job." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1PredictSchemataResponse", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "project": { + "type": "string", + "replaceOnChanges": true + }, + "supportedDeploymentResourcesTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats." + }, + "supportedExportFormats": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelExportFormatResponse" + }, + "description": "The formats in which this Model may be exported. If empty, this Model is not available for export." + }, + "supportedInputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "supportedOutputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "trainingPipeline": { + "type": "string", + "description": "The resource name of the TrainingPipeline that uploaded this Model, if any." + }, + "updateTime": { + "type": "string", + "description": "Timestamp when this Model was most recently updated." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionCreateTime": { + "type": "string", + "description": "Timestamp when this version was created." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + }, + "versionId": { + "type": "string", + "description": "Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation." + }, + "versionUpdateTime": { + "type": "string", + "description": "Timestamp when this version was most recently updated." + } + }, + "type": "object", + "required": [ + "artifactUri", + "containerSpec", + "createTime", + "deployedModels", + "description", + "displayName", + "encryptionSpec", + "etag", + "explanationSpec", + "labels", + "location", + "metadata", + "metadataArtifact", + "metadataSchemaUri", + "modelSourceInfo", + "name", + "originalModelInfo", + "pipelineJob", + "predictSchemata", + "project", + "supportedDeploymentResourcesTypes", + "supportedExportFormats", + "supportedInputStorageFormats", + "supportedOutputStorageFormats", + "trainingPipeline", + "updateTime", + "versionAliases", + "versionCreateTime", + "versionDescription", + "versionId", + "versionUpdateTime" + ], + "inputProperties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelContainerSpec", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1EncryptionSpec", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ExplanationSpec", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "location": { + "type": "string", + "replaceOnChanges": true + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelId": { + "type": "string", + "description": "Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "parentModel": { + "type": "string", + "description": "Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version." + }, + "pipelineJob": { + "type": "string", + "description": "Optional. This field is populated if the model is produced by a pipeline job." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1PredictSchemata", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "project": { + "type": "string", + "replaceOnChanges": true + }, + "serviceAccount": { + "type": "string", + "description": "Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.)." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + } + }, + "requiredInputs": [ + "displayName" + ] + }, "google-native:aiplatform/v1:ModelDeploymentMonitoringJob": { "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.\nAuto-naming is currently not supported for this resource.", "properties": { @@ -370779,6 +371640,278 @@ } } }, + "google-native:aiplatform/v1beta1:Model": { + "description": "Uploads a Model artifact into Vertex AI.", + "properties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelContainerSpecResponse", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "createTime": { + "type": "string", + "description": "Timestamp when this Model was uploaded into Vertex AI." + }, + "deployedModels": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1DeployedModelRefResponse" + }, + "description": "The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1EncryptionSpecResponse", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ExplanationSpecResponse", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "location": { + "type": "string", + "replaceOnChanges": true + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataArtifact": { + "type": "string", + "description": "The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelSourceInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelSourceInfoResponse", + "description": "Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "originalModelInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse", + "description": "If this Model is a copy of another Model, this contains info about the original." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1PredictSchemataResponse", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "project": { + "type": "string", + "replaceOnChanges": true + }, + "supportedDeploymentResourcesTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats." + }, + "supportedExportFormats": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelExportFormatResponse" + }, + "description": "The formats in which this Model may be exported. If empty, this Model is not available for export." + }, + "supportedInputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "supportedOutputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "trainingPipeline": { + "type": "string", + "description": "The resource name of the TrainingPipeline that uploaded this Model, if any." + }, + "updateTime": { + "type": "string", + "description": "Timestamp when this Model was most recently updated." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionCreateTime": { + "type": "string", + "description": "Timestamp when this version was created." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + }, + "versionId": { + "type": "string", + "description": "Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation." + }, + "versionUpdateTime": { + "type": "string", + "description": "Timestamp when this version was most recently updated." + } + }, + "type": "object", + "required": [ + "artifactUri", + "containerSpec", + "createTime", + "deployedModels", + "description", + "displayName", + "encryptionSpec", + "etag", + "explanationSpec", + "labels", + "location", + "metadata", + "metadataArtifact", + "metadataSchemaUri", + "modelSourceInfo", + "name", + "originalModelInfo", + "predictSchemata", + "project", + "supportedDeploymentResourcesTypes", + "supportedExportFormats", + "supportedInputStorageFormats", + "supportedOutputStorageFormats", + "trainingPipeline", + "updateTime", + "versionAliases", + "versionCreateTime", + "versionDescription", + "versionId", + "versionUpdateTime" + ], + "inputProperties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelContainerSpec", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1EncryptionSpec", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ExplanationSpec", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "location": { + "type": "string", + "replaceOnChanges": true + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelId": { + "type": "string", + "description": "Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "parentModel": { + "type": "string", + "description": "Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1PredictSchemata", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "project": { + "type": "string", + "replaceOnChanges": true + }, + "serviceAccount": { + "type": "string", + "description": "Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.)." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + } + }, + "requiredInputs": [ + "displayName" + ] + }, "google-native:aiplatform/v1beta1:ModelDeploymentMonitoringJob": { "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.\nAuto-naming is currently not supported for this resource.", "properties": { @@ -415711,6 +416844,102 @@ "displayName" ] }, + "google-native:cloudsearch/v1:Item": { + "description": "Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.\nAuto-naming is currently not supported for this resource.", + "properties": { + "acl": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemAclResponse", + "description": "Access control list for this item." + }, + "content": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemContentResponse", + "description": "Item content to be indexed and made text searchable." + }, + "datasourceId": { + "type": "string", + "replaceOnChanges": true + }, + "itemId": { + "type": "string", + "replaceOnChanges": true + }, + "itemType": { + "type": "string", + "description": "The type for this item." + }, + "metadata": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemMetadataResponse", + "description": "The metadata information." + }, + "name": { + "type": "string", + "description": "The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters." + }, + "payload": { + "type": "string", + "description": "Additional state connector can store for this item. The maximum length is 10000 bytes." + }, + "queue": { + "type": "string", + "description": "Queue this item belongs to. The maximum length is 100 characters." + }, + "status": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemStatusResponse", + "description": "Status of the item. Output only field." + }, + "structuredData": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemStructuredDataResponse", + "description": "The structured data for the item that should conform to a registered object definition in the schema for the data source." + }, + "version": { + "type": "string", + "description": "The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations)." + } + }, + "type": "object", + "required": [ + "acl", + "content", + "datasourceId", + "itemId", + "itemType", + "metadata", + "name", + "payload", + "queue", + "status", + "structuredData", + "version" + ], + "inputProperties": { + "connectorName": { + "type": "string", + "description": "The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}" + }, + "datasourceId": { + "type": "string", + "replaceOnChanges": true + }, + "debugOptions": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:DebugOptions", + "description": "Common debug options." + }, + "itemId": { + "type": "string", + "replaceOnChanges": true + } + }, + "requiredInputs": [ + "datasourceId", + "itemId" + ] + }, "google-native:cloudsearch/v1:SearchApplication": { "description": "Creates a search application. **Note:** This API requires an admin account to execute.", "properties": { @@ -479559,7 +480788,7 @@ ] }, "google-native:contactcenterinsights/v1:Conversation": { - "description": "Creates a conversation.", + "description": "Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction.", "properties": { "agentId": { "type": "string", @@ -479570,10 +480799,6 @@ "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1ConversationCallMetadataResponse", "description": "Call-specific metadata." }, - "conversationId": { - "type": "string", - "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`" - }, "createTime": { "type": "string", "description": "The time at which the conversation was created." @@ -479700,7 +480925,7 @@ }, "conversationId": { "type": "string", - "description": "A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`" + "description": "Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`" }, "dataSource": { "type": "object", @@ -479735,10 +480960,24 @@ "type": "string", "description": "Obfuscated user ID which the customer sent to us." }, + "parent": { + "type": "string", + "description": "The parent resource of the conversation." + }, "project": { "type": "string", "replaceOnChanges": true }, + "redactionConfig": { + "type": "object", + "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1RedactionConfig", + "description": "Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings." + }, + "speechConfig": { + "type": "object", + "$ref": "#/types/google-native:contactcenterinsights/v1:GoogleCloudContactcenterinsightsV1SpeechConfig", + "description": "Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings." + }, "startTime": { "type": "string", "description": "The time at which the conversation started." @@ -479747,7 +480986,10 @@ "type": "string", "description": "Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time." } - } + }, + "requiredInputs": [ + "parent" + ] }, "google-native:contactcenterinsights/v1:IssueModel": { "description": "Creates an issue model.", @@ -537781,7 +539023,7 @@ ] }, "google-native:iam/v1:Key": { - "description": "Creates a ServiceAccountKey.\nAuto-naming is currently not supported for this resource.", + "description": "Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key.\nAuto-naming is currently not supported for this resource.", "properties": { "disabled": { "type": "boolean", @@ -537848,18 +539090,14 @@ "validBeforeTime" ], "inputProperties": { - "keyAlgorithm": { - "$ref": "#/types/google-native:iam/v1:KeyKeyAlgorithm", - "description": "Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future." - }, - "privateKeyType": { - "$ref": "#/types/google-native:iam/v1:KeyPrivateKeyType", - "description": "The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format." - }, "project": { "type": "string", "replaceOnChanges": true }, + "publicKeyData": { + "type": "string", + "description": "The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`." + }, "serviceAccountId": { "type": "string", "replaceOnChanges": true @@ -541737,17 +542975,13 @@ ] }, "google-native:integrations/v1alpha:Version": { - "description": "Create a integration with a draft version in the specified project.\nAuto-naming is currently not supported for this resource.", + "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.\nAuto-naming is currently not supported for this resource.", "properties": { "cloudLoggingDetails": { "type": "object", "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponse", "description": "Optional. Cloud Logging details for the integration version" }, - "createSampleIntegrations": { - "type": "boolean", - "description": "Optional. Optional. Indicates if sample workflow should be created." - }, "createTime": { "type": "string", "description": "Auto-generated." @@ -541801,10 +543035,6 @@ "type": "string", "description": "Auto-generated primary key." }, - "newIntegration": { - "type": "boolean", - "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created." - }, "origin": { "type": "string", "description": "Optional. The origin that indicates where this integration is coming from." @@ -541914,72 +543144,22 @@ "userLabel" ], "inputProperties": { - "cloudLoggingDetails": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaCloudLoggingDetails", - "description": "Optional. Cloud Logging details for the integration version" - }, - "createSampleIntegrations": { - "type": "boolean", - "description": "Optional. Optional. Indicates if sample workflow should be created." - }, - "databasePersistencePolicy": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionDatabasePersistencePolicy", - "description": "Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index." - }, - "description": { + "content": { "type": "string", - "description": "Optional. The integration description." + "description": "The textproto of the integration_version." }, - "errorCatcherConfigs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaErrorCatcherConfig" - }, - "description": "Optional. Error Catch Task configuration for the integration. It's optional." + "fileFormat": { + "$ref": "#/types/google-native:integrations/v1alpha:VersionFileFormat", + "description": "File format for upload request." }, "integrationId": { "type": "string", "replaceOnChanges": true }, - "integrationParameters": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaIntegrationParameter" - }, - "description": "Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter." - }, - "integrationParametersInternal": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoWorkflowParameters", - "description": "Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter." - }, - "lastModifierEmail": { - "type": "string", - "description": "Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call." - }, "location": { "type": "string", "replaceOnChanges": true }, - "lockHolder": { - "type": "string", - "description": "Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call." - }, - "newIntegration": { - "type": "boolean", - "description": "Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created." - }, - "origin": { - "$ref": "#/types/google-native:integrations/v1alpha:VersionOrigin", - "description": "Optional. The origin that indicates where this integration is coming from." - }, - "parentTemplateId": { - "type": "string", - "description": "Optional. The id of the template which was used to create this integration_version." - }, "productId": { "type": "string", "replaceOnChanges": true @@ -541987,55 +543167,6 @@ "project": { "type": "string", "replaceOnChanges": true - }, - "runAsServiceAccount": { - "type": "string", - "description": "Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task." - }, - "snapshotNumber": { - "type": "string", - "description": "Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use \"HEAD\" tag to identify the head." - }, - "taskConfigs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTaskConfig" - }, - "description": "Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs." - }, - "taskConfigsInternal": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTaskConfig" - }, - "description": "Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs." - }, - "teardown": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmEventbusProtoTeardown", - "description": "Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to \"finally\" in code." - }, - "triggerConfigs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:GoogleCloudIntegrationsV1alphaTriggerConfig" - }, - "description": "Optional. Trigger configurations." - }, - "triggerConfigsInternal": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/types/google-native:integrations/v1alpha:EnterpriseCrmFrontendsEventbusProtoTriggerConfig" - }, - "description": "Optional. Trigger configurations." - }, - "userLabel": { - "type": "string", - "description": "Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created." } }, "requiredInputs": [ @@ -608753,6 +609884,205 @@ ] } }, + "google-native:aiplatform/v1:getModel": { + "description": "Gets a Model.", + "inputs": { + "properties": { + "location": { + "type": "string" + }, + "modelId": { + "type": "string" + }, + "project": { + "type": "string" + } + }, + "type": "object", + "required": [ + "location", + "modelId" + ] + }, + "outputs": { + "properties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelContainerSpecResponse", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "createTime": { + "type": "string", + "description": "Timestamp when this Model was uploaded into Vertex AI." + }, + "deployedModels": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1DeployedModelRefResponse" + }, + "description": "The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1EncryptionSpecResponse", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ExplanationSpecResponse", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataArtifact": { + "type": "string", + "description": "The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelSourceInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelSourceInfoResponse", + "description": "Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "originalModelInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelOriginalModelInfoResponse", + "description": "If this Model is a copy of another Model, this contains info about the original." + }, + "pipelineJob": { + "type": "string", + "description": "Optional. This field is populated if the model is produced by a pipeline job." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1PredictSchemataResponse", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "supportedDeploymentResourcesTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats." + }, + "supportedExportFormats": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1:GoogleCloudAiplatformV1ModelExportFormatResponse" + }, + "description": "The formats in which this Model may be exported. If empty, this Model is not available for export." + }, + "supportedInputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "supportedOutputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "trainingPipeline": { + "type": "string", + "description": "The resource name of the TrainingPipeline that uploaded this Model, if any." + }, + "updateTime": { + "type": "string", + "description": "Timestamp when this Model was most recently updated." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionCreateTime": { + "type": "string", + "description": "Timestamp when this version was created." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + }, + "versionId": { + "type": "string", + "description": "Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation." + }, + "versionUpdateTime": { + "type": "string", + "description": "Timestamp when this version was most recently updated." + } + }, + "type": "object", + "required": [ + "artifactUri", + "containerSpec", + "createTime", + "deployedModels", + "description", + "displayName", + "encryptionSpec", + "etag", + "explanationSpec", + "labels", + "metadata", + "metadataArtifact", + "metadataSchemaUri", + "modelSourceInfo", + "name", + "originalModelInfo", + "pipelineJob", + "predictSchemata", + "supportedDeploymentResourcesTypes", + "supportedExportFormats", + "supportedInputStorageFormats", + "supportedOutputStorageFormats", + "trainingPipeline", + "updateTime", + "versionAliases", + "versionCreateTime", + "versionDescription", + "versionId", + "versionUpdateTime" + ] + } + }, "google-native:aiplatform/v1:getModelDeploymentMonitoringJob": { "description": "Gets a ModelDeploymentMonitoringJob.", "inputs": { @@ -612248,6 +613578,200 @@ ] } }, + "google-native:aiplatform/v1beta1:getModel": { + "description": "Gets a Model.", + "inputs": { + "properties": { + "location": { + "type": "string" + }, + "modelId": { + "type": "string" + }, + "project": { + "type": "string" + } + }, + "type": "object", + "required": [ + "location", + "modelId" + ] + }, + "outputs": { + "properties": { + "artifactUri": { + "type": "string", + "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models." + }, + "containerSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelContainerSpecResponse", + "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models." + }, + "createTime": { + "type": "string", + "description": "Timestamp when this Model was uploaded into Vertex AI." + }, + "deployedModels": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1DeployedModelRefResponse" + }, + "description": "The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations." + }, + "description": { + "type": "string", + "description": "The description of the Model." + }, + "displayName": { + "type": "string", + "description": "The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters." + }, + "encryptionSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1EncryptionSpecResponse", + "description": "Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key." + }, + "etag": { + "type": "string", + "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens." + }, + "explanationSpec": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ExplanationSpecResponse", + "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." + }, + "labels": { + "type": "object", + "description": "The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels." + }, + "metadata": { + "$ref": "pulumi.json#/Any", + "description": "Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information." + }, + "metadataArtifact": { + "type": "string", + "description": "The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`." + }, + "metadataSchemaUri": { + "type": "string", + "description": "Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access." + }, + "modelSourceInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelSourceInfoResponse", + "description": "Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model." + }, + "name": { + "type": "string", + "description": "The resource name of the Model." + }, + "originalModelInfo": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse", + "description": "If this Model is a copy of another Model, this contains info about the original." + }, + "predictSchemata": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1PredictSchemataResponse", + "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." + }, + "supportedDeploymentResourcesTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats." + }, + "supportedExportFormats": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/types/google-native:aiplatform/v1beta1:GoogleCloudAiplatformV1beta1ModelExportFormatResponse" + }, + "description": "The formats in which this Model may be exported. If empty, this Model is not available for export." + }, + "supportedInputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "supportedOutputStorageFormats": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain." + }, + "trainingPipeline": { + "type": "string", + "description": "The resource name of the TrainingPipeline that uploaded this Model, if any." + }, + "updateTime": { + "type": "string", + "description": "Timestamp when this Model was most recently updated." + }, + "versionAliases": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model." + }, + "versionCreateTime": { + "type": "string", + "description": "Timestamp when this version was created." + }, + "versionDescription": { + "type": "string", + "description": "The description of this version." + }, + "versionId": { + "type": "string", + "description": "Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation." + }, + "versionUpdateTime": { + "type": "string", + "description": "Timestamp when this version was most recently updated." + } + }, + "type": "object", + "required": [ + "artifactUri", + "containerSpec", + "createTime", + "deployedModels", + "description", + "displayName", + "encryptionSpec", + "etag", + "explanationSpec", + "labels", + "metadata", + "metadataArtifact", + "metadataSchemaUri", + "modelSourceInfo", + "name", + "originalModelInfo", + "predictSchemata", + "supportedDeploymentResourcesTypes", + "supportedExportFormats", + "supportedInputStorageFormats", + "supportedOutputStorageFormats", + "trainingPipeline", + "updateTime", + "versionAliases", + "versionCreateTime", + "versionDescription", + "versionId", + "versionUpdateTime" + ] + } + }, "google-native:aiplatform/v1beta1:getModelDeploymentMonitoringJob": { "description": "Gets a ModelDeploymentMonitoringJob.", "inputs": { @@ -635556,6 +637080,92 @@ ] } }, + "google-native:cloudsearch/v1:getItem": { + "description": "Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.", + "inputs": { + "properties": { + "connectorName": { + "type": "string" + }, + "datasourceId": { + "type": "string" + }, + "debugOptionsEnableDebugging": { + "type": "boolean" + }, + "itemId": { + "type": "string" + } + }, + "type": "object", + "required": [ + "datasourceId", + "itemId" + ] + }, + "outputs": { + "properties": { + "acl": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemAclResponse", + "description": "Access control list for this item." + }, + "content": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemContentResponse", + "description": "Item content to be indexed and made text searchable." + }, + "itemType": { + "type": "string", + "description": "The type for this item." + }, + "metadata": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemMetadataResponse", + "description": "The metadata information." + }, + "name": { + "type": "string", + "description": "The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters." + }, + "payload": { + "type": "string", + "description": "Additional state connector can store for this item. The maximum length is 10000 bytes." + }, + "queue": { + "type": "string", + "description": "Queue this item belongs to. The maximum length is 100 characters." + }, + "status": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemStatusResponse", + "description": "Status of the item. Output only field." + }, + "structuredData": { + "type": "object", + "$ref": "#/types/google-native:cloudsearch/v1:ItemStructuredDataResponse", + "description": "The structured data for the item that should conform to a registered object definition in the schema for the data source." + }, + "version": { + "type": "string", + "description": "The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations)." + } + }, + "type": "object", + "required": [ + "acl", + "content", + "itemType", + "metadata", + "name", + "payload", + "queue", + "status", + "structuredData", + "version" + ] + } + }, "google-native:cloudsearch/v1:getSearchApplication": { "description": "Gets the specified search application. **Note:** This API requires an admin account to execute.", "inputs": { diff --git a/provider/pkg/gen/discovery.go b/provider/pkg/gen/discovery.go index 7825553392..85970158f2 100644 --- a/provider/pkg/gen/discovery.go +++ b/provider/pkg/gen/discovery.go @@ -111,7 +111,7 @@ func findResourcesImpl(docName, parentName string, rest map[string]discovery.Res postMethods = append(postMethods, restMethod) } switch methodName { - case "create", "insert": + case "create", "insert", "upload": createMethod = &restMethod case "submit", "register": if createMethod == nil { diff --git a/sdk/dotnet/Aiplatform/V1/GetModel.cs b/sdk/dotnet/Aiplatform/V1/GetModel.cs new file mode 100644 index 0000000000..6b4bad7293 --- /dev/null +++ b/sdk/dotnet/Aiplatform/V1/GetModel.cs @@ -0,0 +1,274 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Aiplatform.V1 +{ + public static class GetModel + { + /// + /// Gets a Model. + /// + public static Task InvokeAsync(GetModelArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("google-native:aiplatform/v1:getModel", args ?? new GetModelArgs(), options.WithDefaults()); + + /// + /// Gets a Model. + /// + public static Output Invoke(GetModelInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("google-native:aiplatform/v1:getModel", args ?? new GetModelInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetModelArgs : global::Pulumi.InvokeArgs + { + [Input("location", required: true)] + public string Location { get; set; } = null!; + + [Input("modelId", required: true)] + public string ModelId { get; set; } = null!; + + [Input("project")] + public string? Project { get; set; } + + public GetModelArgs() + { + } + public static new GetModelArgs Empty => new GetModelArgs(); + } + + public sealed class GetModelInvokeArgs : global::Pulumi.InvokeArgs + { + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + [Input("modelId", required: true)] + public Input ModelId { get; set; } = null!; + + [Input("project")] + public Input? Project { get; set; } + + public GetModelInvokeArgs() + { + } + public static new GetModelInvokeArgs Empty => new GetModelInvokeArgs(); + } + + + [OutputType] + public sealed class GetModelResult + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + public readonly string ArtifactUri; + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + public readonly Outputs.GoogleCloudAiplatformV1ModelContainerSpecResponse ContainerSpec; + /// + /// Timestamp when this Model was uploaded into Vertex AI. + /// + public readonly string CreateTime; + /// + /// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + /// + public readonly ImmutableArray DeployedModels; + /// + /// The description of the Model. + /// + public readonly string Description; + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + public readonly string DisplayName; + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + public readonly Outputs.GoogleCloudAiplatformV1EncryptionSpecResponse EncryptionSpec; + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + public readonly string Etag; + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + public readonly Outputs.GoogleCloudAiplatformV1ExplanationSpecResponse ExplanationSpec; + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + public readonly ImmutableDictionary Labels; + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + public readonly object Metadata; + /// + /// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + /// + public readonly string MetadataArtifact; + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + public readonly string MetadataSchemaUri; + /// + /// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + /// + public readonly Outputs.GoogleCloudAiplatformV1ModelSourceInfoResponse ModelSourceInfo; + /// + /// The resource name of the Model. + /// + public readonly string Name; + /// + /// If this Model is a copy of another Model, this contains info about the original. + /// + public readonly Outputs.GoogleCloudAiplatformV1ModelOriginalModelInfoResponse OriginalModelInfo; + /// + /// Optional. This field is populated if the model is produced by a pipeline job. + /// + public readonly string PipelineJob; + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + public readonly Outputs.GoogleCloudAiplatformV1PredictSchemataResponse PredictSchemata; + /// + /// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + /// + public readonly ImmutableArray SupportedDeploymentResourcesTypes; + /// + /// The formats in which this Model may be exported. If empty, this Model is not available for export. + /// + public readonly ImmutableArray SupportedExportFormats; + /// + /// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + public readonly ImmutableArray SupportedInputStorageFormats; + /// + /// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + public readonly ImmutableArray SupportedOutputStorageFormats; + /// + /// The resource name of the TrainingPipeline that uploaded this Model, if any. + /// + public readonly string TrainingPipeline; + /// + /// Timestamp when this Model was most recently updated. + /// + public readonly string UpdateTime; + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + public readonly ImmutableArray VersionAliases; + /// + /// Timestamp when this version was created. + /// + public readonly string VersionCreateTime; + /// + /// The description of this version. + /// + public readonly string VersionDescription; + /// + /// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + /// + public readonly string VersionId; + /// + /// Timestamp when this version was most recently updated. + /// + public readonly string VersionUpdateTime; + + [OutputConstructor] + private GetModelResult( + string artifactUri, + + Outputs.GoogleCloudAiplatformV1ModelContainerSpecResponse containerSpec, + + string createTime, + + ImmutableArray deployedModels, + + string description, + + string displayName, + + Outputs.GoogleCloudAiplatformV1EncryptionSpecResponse encryptionSpec, + + string etag, + + Outputs.GoogleCloudAiplatformV1ExplanationSpecResponse explanationSpec, + + ImmutableDictionary labels, + + object metadata, + + string metadataArtifact, + + string metadataSchemaUri, + + Outputs.GoogleCloudAiplatformV1ModelSourceInfoResponse modelSourceInfo, + + string name, + + Outputs.GoogleCloudAiplatformV1ModelOriginalModelInfoResponse originalModelInfo, + + string pipelineJob, + + Outputs.GoogleCloudAiplatformV1PredictSchemataResponse predictSchemata, + + ImmutableArray supportedDeploymentResourcesTypes, + + ImmutableArray supportedExportFormats, + + ImmutableArray supportedInputStorageFormats, + + ImmutableArray supportedOutputStorageFormats, + + string trainingPipeline, + + string updateTime, + + ImmutableArray versionAliases, + + string versionCreateTime, + + string versionDescription, + + string versionId, + + string versionUpdateTime) + { + ArtifactUri = artifactUri; + ContainerSpec = containerSpec; + CreateTime = createTime; + DeployedModels = deployedModels; + Description = description; + DisplayName = displayName; + EncryptionSpec = encryptionSpec; + Etag = etag; + ExplanationSpec = explanationSpec; + Labels = labels; + Metadata = metadata; + MetadataArtifact = metadataArtifact; + MetadataSchemaUri = metadataSchemaUri; + ModelSourceInfo = modelSourceInfo; + Name = name; + OriginalModelInfo = originalModelInfo; + PipelineJob = pipelineJob; + PredictSchemata = predictSchemata; + SupportedDeploymentResourcesTypes = supportedDeploymentResourcesTypes; + SupportedExportFormats = supportedExportFormats; + SupportedInputStorageFormats = supportedInputStorageFormats; + SupportedOutputStorageFormats = supportedOutputStorageFormats; + TrainingPipeline = trainingPipeline; + UpdateTime = updateTime; + VersionAliases = versionAliases; + VersionCreateTime = versionCreateTime; + VersionDescription = versionDescription; + VersionId = versionId; + VersionUpdateTime = versionUpdateTime; + } + } +} diff --git a/sdk/dotnet/Aiplatform/V1/Model.cs b/sdk/dotnet/Aiplatform/V1/Model.cs new file mode 100644 index 0000000000..0f8c82db99 --- /dev/null +++ b/sdk/dotnet/Aiplatform/V1/Model.cs @@ -0,0 +1,379 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Aiplatform.V1 +{ + /// + /// Uploads a Model artifact into Vertex AI. + /// + [GoogleNativeResourceType("google-native:aiplatform/v1:Model")] + public partial class Model : global::Pulumi.CustomResource + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + [Output("artifactUri")] + public Output ArtifactUri { get; private set; } = null!; + + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + [Output("containerSpec")] + public Output ContainerSpec { get; private set; } = null!; + + /// + /// Timestamp when this Model was uploaded into Vertex AI. + /// + [Output("createTime")] + public Output CreateTime { get; private set; } = null!; + + /// + /// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + /// + [Output("deployedModels")] + public Output> DeployedModels { get; private set; } = null!; + + /// + /// The description of the Model. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + [Output("displayName")] + public Output DisplayName { get; private set; } = null!; + + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + [Output("encryptionSpec")] + public Output EncryptionSpec { get; private set; } = null!; + + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + [Output("etag")] + public Output Etag { get; private set; } = null!; + + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + [Output("explanationSpec")] + public Output ExplanationSpec { get; private set; } = null!; + + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + [Output("labels")] + public Output> Labels { get; private set; } = null!; + + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + [Output("metadata")] + public Output Metadata { get; private set; } = null!; + + /// + /// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + /// + [Output("metadataArtifact")] + public Output MetadataArtifact { get; private set; } = null!; + + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + [Output("metadataSchemaUri")] + public Output MetadataSchemaUri { get; private set; } = null!; + + /// + /// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + /// + [Output("modelSourceInfo")] + public Output ModelSourceInfo { get; private set; } = null!; + + /// + /// The resource name of the Model. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// If this Model is a copy of another Model, this contains info about the original. + /// + [Output("originalModelInfo")] + public Output OriginalModelInfo { get; private set; } = null!; + + /// + /// Optional. This field is populated if the model is produced by a pipeline job. + /// + [Output("pipelineJob")] + public Output PipelineJob { get; private set; } = null!; + + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + [Output("predictSchemata")] + public Output PredictSchemata { get; private set; } = null!; + + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + /// + [Output("supportedDeploymentResourcesTypes")] + public Output> SupportedDeploymentResourcesTypes { get; private set; } = null!; + + /// + /// The formats in which this Model may be exported. If empty, this Model is not available for export. + /// + [Output("supportedExportFormats")] + public Output> SupportedExportFormats { get; private set; } = null!; + + /// + /// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + [Output("supportedInputStorageFormats")] + public Output> SupportedInputStorageFormats { get; private set; } = null!; + + /// + /// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + [Output("supportedOutputStorageFormats")] + public Output> SupportedOutputStorageFormats { get; private set; } = null!; + + /// + /// The resource name of the TrainingPipeline that uploaded this Model, if any. + /// + [Output("trainingPipeline")] + public Output TrainingPipeline { get; private set; } = null!; + + /// + /// Timestamp when this Model was most recently updated. + /// + [Output("updateTime")] + public Output UpdateTime { get; private set; } = null!; + + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + [Output("versionAliases")] + public Output> VersionAliases { get; private set; } = null!; + + /// + /// Timestamp when this version was created. + /// + [Output("versionCreateTime")] + public Output VersionCreateTime { get; private set; } = null!; + + /// + /// The description of this version. + /// + [Output("versionDescription")] + public Output VersionDescription { get; private set; } = null!; + + /// + /// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + /// + [Output("versionId")] + public Output VersionId { get; private set; } = null!; + + /// + /// Timestamp when this version was most recently updated. + /// + [Output("versionUpdateTime")] + public Output VersionUpdateTime { get; private set; } = null!; + + + /// + /// Create a Model resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Model(string name, ModelArgs args, CustomResourceOptions? options = null) + : base("google-native:aiplatform/v1:Model", name, args ?? new ModelArgs(), MakeResourceOptions(options, "")) + { + } + + private Model(string name, Input id, CustomResourceOptions? options = null) + : base("google-native:aiplatform/v1:Model", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + ReplaceOnChanges = + { + "location", + "project", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Model resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static Model Get(string name, Input id, CustomResourceOptions? options = null) + { + return new Model(name, id, options); + } + } + + public sealed class ModelArgs : global::Pulumi.ResourceArgs + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + [Input("artifactUri")] + public Input? ArtifactUri { get; set; } + + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + [Input("containerSpec")] + public Input? ContainerSpec { get; set; } + + /// + /// The description of the Model. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + [Input("displayName", required: true)] + public Input DisplayName { get; set; } = null!; + + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + [Input("encryptionSpec")] + public Input? EncryptionSpec { get; set; } + + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + [Input("etag")] + public Input? Etag { get; set; } + + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + [Input("explanationSpec")] + public Input? ExplanationSpec { get; set; } + + [Input("labels")] + private InputMap? _labels; + + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + public InputMap Labels + { + get => _labels ?? (_labels = new InputMap()); + set => _labels = value; + } + + [Input("location")] + public Input? Location { get; set; } + + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + [Input("metadata")] + public Input? Metadata { get; set; } + + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + [Input("metadataSchemaUri")] + public Input? MetadataSchemaUri { get; set; } + + /// + /// Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + /// + [Input("modelId")] + public Input? ModelId { get; set; } + + /// + /// The resource name of the Model. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + /// + [Input("parentModel")] + public Input? ParentModel { get; set; } + + /// + /// Optional. This field is populated if the model is produced by a pipeline job. + /// + [Input("pipelineJob")] + public Input? PipelineJob { get; set; } + + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + [Input("predictSchemata")] + public Input? PredictSchemata { get; set; } + + [Input("project")] + public Input? Project { get; set; } + + /// + /// Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + /// + [Input("serviceAccount")] + public Input? ServiceAccount { get; set; } + + [Input("versionAliases")] + private InputList? _versionAliases; + + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + public InputList VersionAliases + { + get => _versionAliases ?? (_versionAliases = new InputList()); + set => _versionAliases = value; + } + + /// + /// The description of this version. + /// + [Input("versionDescription")] + public Input? VersionDescription { get; set; } + + public ModelArgs() + { + } + public static new ModelArgs Empty => new ModelArgs(); + } +} diff --git a/sdk/dotnet/Aiplatform/V1Beta1/GetModel.cs b/sdk/dotnet/Aiplatform/V1Beta1/GetModel.cs new file mode 100644 index 0000000000..2f555eb1ed --- /dev/null +++ b/sdk/dotnet/Aiplatform/V1Beta1/GetModel.cs @@ -0,0 +1,267 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Aiplatform.V1Beta1 +{ + public static class GetModel + { + /// + /// Gets a Model. + /// + public static Task InvokeAsync(GetModelArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("google-native:aiplatform/v1beta1:getModel", args ?? new GetModelArgs(), options.WithDefaults()); + + /// + /// Gets a Model. + /// + public static Output Invoke(GetModelInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("google-native:aiplatform/v1beta1:getModel", args ?? new GetModelInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetModelArgs : global::Pulumi.InvokeArgs + { + [Input("location", required: true)] + public string Location { get; set; } = null!; + + [Input("modelId", required: true)] + public string ModelId { get; set; } = null!; + + [Input("project")] + public string? Project { get; set; } + + public GetModelArgs() + { + } + public static new GetModelArgs Empty => new GetModelArgs(); + } + + public sealed class GetModelInvokeArgs : global::Pulumi.InvokeArgs + { + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + [Input("modelId", required: true)] + public Input ModelId { get; set; } = null!; + + [Input("project")] + public Input? Project { get; set; } + + public GetModelInvokeArgs() + { + } + public static new GetModelInvokeArgs Empty => new GetModelInvokeArgs(); + } + + + [OutputType] + public sealed class GetModelResult + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + public readonly string ArtifactUri; + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1ModelContainerSpecResponse ContainerSpec; + /// + /// Timestamp when this Model was uploaded into Vertex AI. + /// + public readonly string CreateTime; + /// + /// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + /// + public readonly ImmutableArray DeployedModels; + /// + /// The description of the Model. + /// + public readonly string Description; + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + public readonly string DisplayName; + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1EncryptionSpecResponse EncryptionSpec; + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + public readonly string Etag; + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1ExplanationSpecResponse ExplanationSpec; + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + public readonly ImmutableDictionary Labels; + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + public readonly object Metadata; + /// + /// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + /// + public readonly string MetadataArtifact; + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + public readonly string MetadataSchemaUri; + /// + /// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1ModelSourceInfoResponse ModelSourceInfo; + /// + /// The resource name of the Model. + /// + public readonly string Name; + /// + /// If this Model is a copy of another Model, this contains info about the original. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse OriginalModelInfo; + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + public readonly Outputs.GoogleCloudAiplatformV1beta1PredictSchemataResponse PredictSchemata; + /// + /// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + /// + public readonly ImmutableArray SupportedDeploymentResourcesTypes; + /// + /// The formats in which this Model may be exported. If empty, this Model is not available for export. + /// + public readonly ImmutableArray SupportedExportFormats; + /// + /// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + public readonly ImmutableArray SupportedInputStorageFormats; + /// + /// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + public readonly ImmutableArray SupportedOutputStorageFormats; + /// + /// The resource name of the TrainingPipeline that uploaded this Model, if any. + /// + public readonly string TrainingPipeline; + /// + /// Timestamp when this Model was most recently updated. + /// + public readonly string UpdateTime; + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + public readonly ImmutableArray VersionAliases; + /// + /// Timestamp when this version was created. + /// + public readonly string VersionCreateTime; + /// + /// The description of this version. + /// + public readonly string VersionDescription; + /// + /// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + /// + public readonly string VersionId; + /// + /// Timestamp when this version was most recently updated. + /// + public readonly string VersionUpdateTime; + + [OutputConstructor] + private GetModelResult( + string artifactUri, + + Outputs.GoogleCloudAiplatformV1beta1ModelContainerSpecResponse containerSpec, + + string createTime, + + ImmutableArray deployedModels, + + string description, + + string displayName, + + Outputs.GoogleCloudAiplatformV1beta1EncryptionSpecResponse encryptionSpec, + + string etag, + + Outputs.GoogleCloudAiplatformV1beta1ExplanationSpecResponse explanationSpec, + + ImmutableDictionary labels, + + object metadata, + + string metadataArtifact, + + string metadataSchemaUri, + + Outputs.GoogleCloudAiplatformV1beta1ModelSourceInfoResponse modelSourceInfo, + + string name, + + Outputs.GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse originalModelInfo, + + Outputs.GoogleCloudAiplatformV1beta1PredictSchemataResponse predictSchemata, + + ImmutableArray supportedDeploymentResourcesTypes, + + ImmutableArray supportedExportFormats, + + ImmutableArray supportedInputStorageFormats, + + ImmutableArray supportedOutputStorageFormats, + + string trainingPipeline, + + string updateTime, + + ImmutableArray versionAliases, + + string versionCreateTime, + + string versionDescription, + + string versionId, + + string versionUpdateTime) + { + ArtifactUri = artifactUri; + ContainerSpec = containerSpec; + CreateTime = createTime; + DeployedModels = deployedModels; + Description = description; + DisplayName = displayName; + EncryptionSpec = encryptionSpec; + Etag = etag; + ExplanationSpec = explanationSpec; + Labels = labels; + Metadata = metadata; + MetadataArtifact = metadataArtifact; + MetadataSchemaUri = metadataSchemaUri; + ModelSourceInfo = modelSourceInfo; + Name = name; + OriginalModelInfo = originalModelInfo; + PredictSchemata = predictSchemata; + SupportedDeploymentResourcesTypes = supportedDeploymentResourcesTypes; + SupportedExportFormats = supportedExportFormats; + SupportedInputStorageFormats = supportedInputStorageFormats; + SupportedOutputStorageFormats = supportedOutputStorageFormats; + TrainingPipeline = trainingPipeline; + UpdateTime = updateTime; + VersionAliases = versionAliases; + VersionCreateTime = versionCreateTime; + VersionDescription = versionDescription; + VersionId = versionId; + VersionUpdateTime = versionUpdateTime; + } + } +} diff --git a/sdk/dotnet/Aiplatform/V1Beta1/Model.cs b/sdk/dotnet/Aiplatform/V1Beta1/Model.cs new file mode 100644 index 0000000000..500ccb1ba3 --- /dev/null +++ b/sdk/dotnet/Aiplatform/V1Beta1/Model.cs @@ -0,0 +1,367 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Aiplatform.V1Beta1 +{ + /// + /// Uploads a Model artifact into Vertex AI. + /// + [GoogleNativeResourceType("google-native:aiplatform/v1beta1:Model")] + public partial class Model : global::Pulumi.CustomResource + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + [Output("artifactUri")] + public Output ArtifactUri { get; private set; } = null!; + + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + [Output("containerSpec")] + public Output ContainerSpec { get; private set; } = null!; + + /// + /// Timestamp when this Model was uploaded into Vertex AI. + /// + [Output("createTime")] + public Output CreateTime { get; private set; } = null!; + + /// + /// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + /// + [Output("deployedModels")] + public Output> DeployedModels { get; private set; } = null!; + + /// + /// The description of the Model. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + [Output("displayName")] + public Output DisplayName { get; private set; } = null!; + + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + [Output("encryptionSpec")] + public Output EncryptionSpec { get; private set; } = null!; + + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + [Output("etag")] + public Output Etag { get; private set; } = null!; + + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + [Output("explanationSpec")] + public Output ExplanationSpec { get; private set; } = null!; + + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + [Output("labels")] + public Output> Labels { get; private set; } = null!; + + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + [Output("metadata")] + public Output Metadata { get; private set; } = null!; + + /// + /// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + /// + [Output("metadataArtifact")] + public Output MetadataArtifact { get; private set; } = null!; + + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + [Output("metadataSchemaUri")] + public Output MetadataSchemaUri { get; private set; } = null!; + + /// + /// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + /// + [Output("modelSourceInfo")] + public Output ModelSourceInfo { get; private set; } = null!; + + /// + /// The resource name of the Model. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// If this Model is a copy of another Model, this contains info about the original. + /// + [Output("originalModelInfo")] + public Output OriginalModelInfo { get; private set; } = null!; + + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + [Output("predictSchemata")] + public Output PredictSchemata { get; private set; } = null!; + + [Output("project")] + public Output Project { get; private set; } = null!; + + /// + /// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + /// + [Output("supportedDeploymentResourcesTypes")] + public Output> SupportedDeploymentResourcesTypes { get; private set; } = null!; + + /// + /// The formats in which this Model may be exported. If empty, this Model is not available for export. + /// + [Output("supportedExportFormats")] + public Output> SupportedExportFormats { get; private set; } = null!; + + /// + /// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + [Output("supportedInputStorageFormats")] + public Output> SupportedInputStorageFormats { get; private set; } = null!; + + /// + /// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + /// + [Output("supportedOutputStorageFormats")] + public Output> SupportedOutputStorageFormats { get; private set; } = null!; + + /// + /// The resource name of the TrainingPipeline that uploaded this Model, if any. + /// + [Output("trainingPipeline")] + public Output TrainingPipeline { get; private set; } = null!; + + /// + /// Timestamp when this Model was most recently updated. + /// + [Output("updateTime")] + public Output UpdateTime { get; private set; } = null!; + + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + [Output("versionAliases")] + public Output> VersionAliases { get; private set; } = null!; + + /// + /// Timestamp when this version was created. + /// + [Output("versionCreateTime")] + public Output VersionCreateTime { get; private set; } = null!; + + /// + /// The description of this version. + /// + [Output("versionDescription")] + public Output VersionDescription { get; private set; } = null!; + + /// + /// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + /// + [Output("versionId")] + public Output VersionId { get; private set; } = null!; + + /// + /// Timestamp when this version was most recently updated. + /// + [Output("versionUpdateTime")] + public Output VersionUpdateTime { get; private set; } = null!; + + + /// + /// Create a Model resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Model(string name, ModelArgs args, CustomResourceOptions? options = null) + : base("google-native:aiplatform/v1beta1:Model", name, args ?? new ModelArgs(), MakeResourceOptions(options, "")) + { + } + + private Model(string name, Input id, CustomResourceOptions? options = null) + : base("google-native:aiplatform/v1beta1:Model", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + ReplaceOnChanges = + { + "location", + "project", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Model resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static Model Get(string name, Input id, CustomResourceOptions? options = null) + { + return new Model(name, id, options); + } + } + + public sealed class ModelArgs : global::Pulumi.ResourceArgs + { + /// + /// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + /// + [Input("artifactUri")] + public Input? ArtifactUri { get; set; } + + /// + /// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + /// + [Input("containerSpec")] + public Input? ContainerSpec { get; set; } + + /// + /// The description of the Model. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// + [Input("displayName", required: true)] + public Input DisplayName { get; set; } = null!; + + /// + /// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + /// + [Input("encryptionSpec")] + public Input? EncryptionSpec { get; set; } + + /// + /// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + /// + [Input("etag")] + public Input? Etag { get; set; } + + /// + /// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + /// + [Input("explanationSpec")] + public Input? ExplanationSpec { get; set; } + + [Input("labels")] + private InputMap? _labels; + + /// + /// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + /// + public InputMap Labels + { + get => _labels ?? (_labels = new InputMap()); + set => _labels = value; + } + + [Input("location")] + public Input? Location { get; set; } + + /// + /// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + /// + [Input("metadata")] + public Input? Metadata { get; set; } + + /// + /// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + /// + [Input("metadataSchemaUri")] + public Input? MetadataSchemaUri { get; set; } + + /// + /// Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + /// + [Input("modelId")] + public Input? ModelId { get; set; } + + /// + /// The resource name of the Model. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + /// + [Input("parentModel")] + public Input? ParentModel { get; set; } + + /// + /// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + /// + [Input("predictSchemata")] + public Input? PredictSchemata { get; set; } + + [Input("project")] + public Input? Project { get; set; } + + /// + /// Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + /// + [Input("serviceAccount")] + public Input? ServiceAccount { get; set; } + + [Input("versionAliases")] + private InputList? _versionAliases; + + /// + /// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + /// + public InputList VersionAliases + { + get => _versionAliases ?? (_versionAliases = new InputList()); + set => _versionAliases = value; + } + + /// + /// The description of this version. + /// + [Input("versionDescription")] + public Input? VersionDescription { get; set; } + + public ModelArgs() + { + } + public static new ModelArgs Empty => new ModelArgs(); + } +} diff --git a/sdk/dotnet/CloudSearch/V1/GetItem.cs b/sdk/dotnet/CloudSearch/V1/GetItem.cs new file mode 100644 index 0000000000..f73d7e3b51 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/GetItem.cs @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1 +{ + public static class GetItem + { + /// + /// Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + /// + public static Task InvokeAsync(GetItemArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("google-native:cloudsearch/v1:getItem", args ?? new GetItemArgs(), options.WithDefaults()); + + /// + /// Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + /// + public static Output Invoke(GetItemInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("google-native:cloudsearch/v1:getItem", args ?? new GetItemInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetItemArgs : global::Pulumi.InvokeArgs + { + [Input("connectorName")] + public string? ConnectorName { get; set; } + + [Input("datasourceId", required: true)] + public string DatasourceId { get; set; } = null!; + + [Input("debugOptionsEnableDebugging")] + public bool? DebugOptionsEnableDebugging { get; set; } + + [Input("itemId", required: true)] + public string ItemId { get; set; } = null!; + + public GetItemArgs() + { + } + public static new GetItemArgs Empty => new GetItemArgs(); + } + + public sealed class GetItemInvokeArgs : global::Pulumi.InvokeArgs + { + [Input("connectorName")] + public Input? ConnectorName { get; set; } + + [Input("datasourceId", required: true)] + public Input DatasourceId { get; set; } = null!; + + [Input("debugOptionsEnableDebugging")] + public Input? DebugOptionsEnableDebugging { get; set; } + + [Input("itemId", required: true)] + public Input ItemId { get; set; } = null!; + + public GetItemInvokeArgs() + { + } + public static new GetItemInvokeArgs Empty => new GetItemInvokeArgs(); + } + + + [OutputType] + public sealed class GetItemResult + { + /// + /// Access control list for this item. + /// + public readonly Outputs.ItemAclResponse Acl; + /// + /// Item content to be indexed and made text searchable. + /// + public readonly Outputs.ItemContentResponse Content; + /// + /// The type for this item. + /// + public readonly string ItemType; + /// + /// The metadata information. + /// + public readonly Outputs.ItemMetadataResponse Metadata; + /// + /// The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + /// + public readonly string Name; + /// + /// Additional state connector can store for this item. The maximum length is 10000 bytes. + /// + public readonly string Payload; + /// + /// Queue this item belongs to. The maximum length is 100 characters. + /// + public readonly string Queue; + /// + /// Status of the item. Output only field. + /// + public readonly Outputs.ItemStatusResponse Status; + /// + /// The structured data for the item that should conform to a registered object definition in the schema for the data source. + /// + public readonly Outputs.ItemStructuredDataResponse StructuredData; + /// + /// The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + /// + public readonly string Version; + + [OutputConstructor] + private GetItemResult( + Outputs.ItemAclResponse acl, + + Outputs.ItemContentResponse content, + + string itemType, + + Outputs.ItemMetadataResponse metadata, + + string name, + + string payload, + + string queue, + + Outputs.ItemStatusResponse status, + + Outputs.ItemStructuredDataResponse structuredData, + + string version) + { + Acl = acl; + Content = content; + ItemType = itemType; + Metadata = metadata; + Name = name; + Payload = payload; + Queue = queue; + Status = status; + StructuredData = structuredData; + Version = version; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Inputs/DebugOptionsArgs.cs b/sdk/dotnet/CloudSearch/V1/Inputs/DebugOptionsArgs.cs new file mode 100644 index 0000000000..d1056609b2 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Inputs/DebugOptionsArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Inputs +{ + + /// + /// Shared request debug options for all cloudsearch RPC methods. + /// + public sealed class DebugOptionsArgs : global::Pulumi.ResourceArgs + { + /// + /// If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + /// + [Input("enableDebugging")] + public Input? EnableDebugging { get; set; } + + public DebugOptionsArgs() + { + } + public static new DebugOptionsArgs Empty => new DebugOptionsArgs(); + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Item.cs b/sdk/dotnet/CloudSearch/V1/Item.cs new file mode 100644 index 0000000000..21f8ee2c5a --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Item.cs @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1 +{ + /// + /// Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + /// Auto-naming is currently not supported for this resource. + /// + [GoogleNativeResourceType("google-native:cloudsearch/v1:Item")] + public partial class Item : global::Pulumi.CustomResource + { + /// + /// Access control list for this item. + /// + [Output("acl")] + public Output Acl { get; private set; } = null!; + + /// + /// Item content to be indexed and made text searchable. + /// + [Output("content")] + public Output Content { get; private set; } = null!; + + [Output("datasourceId")] + public Output DatasourceId { get; private set; } = null!; + + [Output("itemId")] + public Output ItemId { get; private set; } = null!; + + /// + /// The type for this item. + /// + [Output("itemType")] + public Output ItemType { get; private set; } = null!; + + /// + /// The metadata information. + /// + [Output("metadata")] + public Output Metadata { get; private set; } = null!; + + /// + /// The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// Additional state connector can store for this item. The maximum length is 10000 bytes. + /// + [Output("payload")] + public Output Payload { get; private set; } = null!; + + /// + /// Queue this item belongs to. The maximum length is 100 characters. + /// + [Output("queue")] + public Output Queue { get; private set; } = null!; + + /// + /// Status of the item. Output only field. + /// + [Output("status")] + public Output Status { get; private set; } = null!; + + /// + /// The structured data for the item that should conform to a registered object definition in the schema for the data source. + /// + [Output("structuredData")] + public Output StructuredData { get; private set; } = null!; + + /// + /// The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + /// + [Output("version")] + public Output Version { get; private set; } = null!; + + + /// + /// Create a Item resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public Item(string name, ItemArgs args, CustomResourceOptions? options = null) + : base("google-native:cloudsearch/v1:Item", name, args ?? new ItemArgs(), MakeResourceOptions(options, "")) + { + } + + private Item(string name, Input id, CustomResourceOptions? options = null) + : base("google-native:cloudsearch/v1:Item", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + ReplaceOnChanges = + { + "datasourceId", + "itemId", + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing Item resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static Item Get(string name, Input id, CustomResourceOptions? options = null) + { + return new Item(name, id, options); + } + } + + public sealed class ItemArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + /// + [Input("connectorName")] + public Input? ConnectorName { get; set; } + + [Input("datasourceId", required: true)] + public Input DatasourceId { get; set; } = null!; + + /// + /// Common debug options. + /// + [Input("debugOptions")] + public Input? DebugOptions { get; set; } + + [Input("itemId", required: true)] + public Input ItemId { get; set; } = null!; + + public ItemArgs() + { + } + public static new ItemArgs Empty => new ItemArgs(); + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ContextAttributeResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ContextAttributeResponse.cs new file mode 100644 index 0000000000..23723ca9c6 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ContextAttributeResponse.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. + /// + [OutputType] + public sealed class ContextAttributeResponse + { + /// + /// The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. + /// + public readonly string Name; + /// + /// Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private ContextAttributeResponse( + string name, + + ImmutableArray values) + { + Name = name; + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/DateValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/DateValuesResponse.cs new file mode 100644 index 0000000000..67d2a730b8 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/DateValuesResponse.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of date values. + /// + [OutputType] + public sealed class DateValuesResponse + { + public readonly ImmutableArray Values; + + [OutputConstructor] + private DateValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/DoubleValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/DoubleValuesResponse.cs new file mode 100644 index 0000000000..8ff8744d18 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/DoubleValuesResponse.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of double values. + /// + [OutputType] + public sealed class DoubleValuesResponse + { + public readonly ImmutableArray Values; + + [OutputConstructor] + private DoubleValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/EnumValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/EnumValuesResponse.cs new file mode 100644 index 0000000000..457916172d --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/EnumValuesResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of enum values. + /// + [OutputType] + public sealed class EnumValuesResponse + { + /// + /// The maximum allowable length for string values is 32 characters. + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private EnumValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/FieldViolationResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/FieldViolationResponse.cs new file mode 100644 index 0000000000..f67a46348d --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/FieldViolationResponse.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + [OutputType] + public sealed class FieldViolationResponse + { + /// + /// The description of the error. + /// + public readonly string Description; + /// + /// Path of field with violation. + /// + public readonly string Field; + + [OutputConstructor] + private FieldViolationResponse( + string description, + + string field) + { + Description = description; + Field = field; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/HtmlValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/HtmlValuesResponse.cs new file mode 100644 index 0000000000..a6cd3c4666 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/HtmlValuesResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of html values. + /// + [OutputType] + public sealed class HtmlValuesResponse + { + /// + /// The maximum allowable length for html values is 2048 characters. + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private HtmlValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/IntegerValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/IntegerValuesResponse.cs new file mode 100644 index 0000000000..a0e407eaf1 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/IntegerValuesResponse.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of integer values. + /// + [OutputType] + public sealed class IntegerValuesResponse + { + public readonly ImmutableArray Values; + + [OutputConstructor] + private IntegerValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/InteractionResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/InteractionResponse.cs new file mode 100644 index 0000000000..59230c14f4 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/InteractionResponse.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Represents an interaction between a user and an item. + /// + [OutputType] + public sealed class InteractionResponse + { + /// + /// The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. + /// + public readonly string InteractionTime; + /// + /// The user that acted on the item. + /// + public readonly Outputs.PrincipalResponse Principal; + public readonly string Type; + + [OutputConstructor] + private InteractionResponse( + string interactionTime, + + Outputs.PrincipalResponse principal, + + string type) + { + InteractionTime = interactionTime; + Principal = principal; + Type = type; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ItemAclResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ItemAclResponse.cs new file mode 100644 index 0000000000..bd1f36e537 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ItemAclResponse.cs @@ -0,0 +1,59 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). + /// + [OutputType] + public sealed class ItemAclResponse + { + /// + /// Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. + /// + public readonly string AclInheritanceType; + /// + /// List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. + /// + public readonly ImmutableArray DeniedReaders; + /// + /// The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. + /// + public readonly string InheritAclFrom; + /// + /// Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. + /// + public readonly ImmutableArray Owners; + /// + /// List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. + /// + public readonly ImmutableArray Readers; + + [OutputConstructor] + private ItemAclResponse( + string aclInheritanceType, + + ImmutableArray deniedReaders, + + string inheritAclFrom, + + ImmutableArray owners, + + ImmutableArray readers) + { + AclInheritanceType = aclInheritanceType; + DeniedReaders = deniedReaders; + InheritAclFrom = inheritAclFrom; + Owners = owners; + Readers = readers; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ItemContentResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ItemContentResponse.cs new file mode 100644 index 0000000000..0a42ac779c --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ItemContentResponse.cs @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. + /// + [OutputType] + public sealed class ItemContentResponse + { + /// + /// Upload reference ID of a previously uploaded content via write method. + /// + public readonly Outputs.UploadItemRefResponse ContentDataRef; + public readonly string ContentFormat; + /// + /// Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + /// + public readonly string Hash; + /// + /// Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). + /// + public readonly string InlineContent; + + [OutputConstructor] + private ItemContentResponse( + Outputs.UploadItemRefResponse contentDataRef, + + string contentFormat, + + string hash, + + string inlineContent) + { + ContentDataRef = contentDataRef; + ContentFormat = contentFormat; + Hash = hash; + InlineContent = inlineContent; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ItemMetadataResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ItemMetadataResponse.cs new file mode 100644 index 0000000000..740587b139 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ItemMetadataResponse.cs @@ -0,0 +1,115 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Available metadata fields for the item. + /// + [OutputType] + public sealed class ItemMetadataResponse + { + /// + /// The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. + /// + public readonly string ContainerName; + /// + /// The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. + /// + public readonly string ContentLanguage; + /// + /// A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. + /// + public readonly ImmutableArray ContextAttributes; + /// + /// The time when the item was created in the source repository. + /// + public readonly string CreateTime; + /// + /// Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + /// + public readonly string Hash; + /// + /// A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. + /// + public readonly ImmutableArray Interactions; + /// + /// Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. + /// + public readonly ImmutableArray Keywords; + /// + /// The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. + /// + public readonly string MimeType; + /// + /// The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. + /// + public readonly string ObjectType; + /// + /// Additional search quality metadata of the item + /// + public readonly Outputs.SearchQualityMetadataResponse SearchQualityMetadata; + /// + /// Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. + /// + public readonly string SourceRepositoryUrl; + /// + /// The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. + /// + public readonly string Title; + /// + /// The time when the item was last modified in the source repository. + /// + public readonly string UpdateTime; + + [OutputConstructor] + private ItemMetadataResponse( + string containerName, + + string contentLanguage, + + ImmutableArray contextAttributes, + + string createTime, + + string hash, + + ImmutableArray interactions, + + ImmutableArray keywords, + + string mimeType, + + string objectType, + + Outputs.SearchQualityMetadataResponse searchQualityMetadata, + + string sourceRepositoryUrl, + + string title, + + string updateTime) + { + ContainerName = containerName; + ContentLanguage = contentLanguage; + ContextAttributes = contextAttributes; + CreateTime = createTime; + Hash = hash; + Interactions = interactions; + Keywords = keywords; + MimeType = mimeType; + ObjectType = objectType; + SearchQualityMetadata = searchQualityMetadata; + SourceRepositoryUrl = sourceRepositoryUrl; + Title = title; + UpdateTime = updateTime; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ItemStatusResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ItemStatusResponse.cs new file mode 100644 index 0000000000..2fb8b3f22d --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ItemStatusResponse.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// This contains item's status and any errors. + /// + [OutputType] + public sealed class ItemStatusResponse + { + /// + /// Status code. + /// + public readonly string Code; + /// + /// Error details in case the item is in ERROR state. + /// + public readonly ImmutableArray ProcessingErrors; + /// + /// Repository error reported by connector. + /// + public readonly ImmutableArray RepositoryErrors; + + [OutputConstructor] + private ItemStatusResponse( + string code, + + ImmutableArray processingErrors, + + ImmutableArray repositoryErrors) + { + Code = code; + ProcessingErrors = processingErrors; + RepositoryErrors = repositoryErrors; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ItemStructuredDataResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ItemStructuredDataResponse.cs new file mode 100644 index 0000000000..b14e316c46 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ItemStructuredDataResponse.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Available structured data fields for the item. + /// + [OutputType] + public sealed class ItemStructuredDataResponse + { + /// + /// Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + /// + public readonly string Hash; + /// + /// The structured data object that should conform to a registered object definition in the schema for the data source. + /// + public readonly Outputs.StructuredDataObjectResponse Object; + + [OutputConstructor] + private ItemStructuredDataResponse( + string hash, + + Outputs.StructuredDataObjectResponse @object) + { + Hash = hash; + Object = @object; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/NamedPropertyResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/NamedPropertyResponse.cs new file mode 100644 index 0000000000..6132a6e71b --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/NamedPropertyResponse.cs @@ -0,0 +1,67 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. + /// + [OutputType] + public sealed class NamedPropertyResponse + { + public readonly bool BooleanValue; + public readonly Outputs.DateValuesResponse DateValues; + public readonly Outputs.DoubleValuesResponse DoubleValues; + public readonly Outputs.EnumValuesResponse EnumValues; + public readonly Outputs.HtmlValuesResponse HtmlValues; + public readonly Outputs.IntegerValuesResponse IntegerValues; + /// + /// The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. + /// + public readonly string Name; + public readonly Outputs.ObjectValuesResponse ObjectValues; + public readonly Outputs.TextValuesResponse TextValues; + public readonly Outputs.TimestampValuesResponse TimestampValues; + + [OutputConstructor] + private NamedPropertyResponse( + bool booleanValue, + + Outputs.DateValuesResponse dateValues, + + Outputs.DoubleValuesResponse doubleValues, + + Outputs.EnumValuesResponse enumValues, + + Outputs.HtmlValuesResponse htmlValues, + + Outputs.IntegerValuesResponse integerValues, + + string name, + + Outputs.ObjectValuesResponse objectValues, + + Outputs.TextValuesResponse textValues, + + Outputs.TimestampValuesResponse timestampValues) + { + BooleanValue = booleanValue; + DateValues = dateValues; + DoubleValues = doubleValues; + EnumValues = enumValues; + HtmlValues = htmlValues; + IntegerValues = integerValues; + Name = name; + ObjectValues = objectValues; + TextValues = textValues; + TimestampValues = timestampValues; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ObjectValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ObjectValuesResponse.cs new file mode 100644 index 0000000000..8c3c1aaac4 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ObjectValuesResponse.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of object values. + /// + [OutputType] + public sealed class ObjectValuesResponse + { + public readonly ImmutableArray Values; + + [OutputConstructor] + private ObjectValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/PrincipalResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/PrincipalResponse.cs new file mode 100644 index 0000000000..1ba3157c4a --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/PrincipalResponse.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Reference to a user, group, or domain. + /// + [OutputType] + public sealed class PrincipalResponse + { + /// + /// This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} + /// + public readonly string GroupResourceName; + /// + /// This principal is a Google Workspace user, group or domain. + /// + public readonly Outputs.GSuitePrincipalResponse GsuitePrincipal; + /// + /// This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} + /// + public readonly string UserResourceName; + + [OutputConstructor] + private PrincipalResponse( + string groupResourceName, + + Outputs.GSuitePrincipalResponse gsuitePrincipal, + + string userResourceName) + { + GroupResourceName = groupResourceName; + GsuitePrincipal = gsuitePrincipal; + UserResourceName = userResourceName; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/ProcessingErrorResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/ProcessingErrorResponse.cs new file mode 100644 index 0000000000..f6d1ebe1f6 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/ProcessingErrorResponse.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + [OutputType] + public sealed class ProcessingErrorResponse + { + /// + /// Error code indicating the nature of the error. + /// + public readonly string Code; + /// + /// The description of the error. + /// + public readonly string ErrorMessage; + /// + /// In case the item fields are invalid, this field contains the details about the validation errors. + /// + public readonly ImmutableArray FieldViolations; + + [OutputConstructor] + private ProcessingErrorResponse( + string code, + + string errorMessage, + + ImmutableArray fieldViolations) + { + Code = code; + ErrorMessage = errorMessage; + FieldViolations = fieldViolations; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/RepositoryErrorResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/RepositoryErrorResponse.cs new file mode 100644 index 0000000000..66b2e94f07 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/RepositoryErrorResponse.cs @@ -0,0 +1,45 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Errors when the connector is communicating to the source repository. + /// + [OutputType] + public sealed class RepositoryErrorResponse + { + /// + /// Message that describes the error. The maximum allowable length of the message is 8192 characters. + /// + public readonly string ErrorMessage; + /// + /// Error codes. Matches the definition of HTTP status codes. + /// + public readonly int HttpStatusCode; + /// + /// The type of error. + /// + public readonly string Type; + + [OutputConstructor] + private RepositoryErrorResponse( + string errorMessage, + + int httpStatusCode, + + string type) + { + ErrorMessage = errorMessage; + HttpStatusCode = httpStatusCode; + Type = type; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/SearchQualityMetadataResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/SearchQualityMetadataResponse.cs new file mode 100644 index 0000000000..ce1005b5d2 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/SearchQualityMetadataResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Additional search quality metadata of the item. + /// + [OutputType] + public sealed class SearchQualityMetadataResponse + { + /// + /// An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. + /// + public readonly double Quality; + + [OutputConstructor] + private SearchQualityMetadataResponse(double quality) + { + Quality = quality; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/StructuredDataObjectResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/StructuredDataObjectResponse.cs new file mode 100644 index 0000000000..e98f625f19 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/StructuredDataObjectResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// A structured data object consisting of named properties. + /// + [OutputType] + public sealed class StructuredDataObjectResponse + { + /// + /// The properties for the object. The maximum number of elements is 1000. + /// + public readonly ImmutableArray Properties; + + [OutputConstructor] + private StructuredDataObjectResponse(ImmutableArray properties) + { + Properties = properties; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/TextValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/TextValuesResponse.cs new file mode 100644 index 0000000000..3924cda131 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/TextValuesResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of text values. + /// + [OutputType] + public sealed class TextValuesResponse + { + /// + /// The maximum allowable length for text values is 2048 characters. + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private TextValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/TimestampValuesResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/TimestampValuesResponse.cs new file mode 100644 index 0000000000..6b0a8c2a21 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/TimestampValuesResponse.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// List of timestamp values. + /// + [OutputType] + public sealed class TimestampValuesResponse + { + public readonly ImmutableArray Values; + + [OutputConstructor] + private TimestampValuesResponse(ImmutableArray values) + { + Values = values; + } + } +} diff --git a/sdk/dotnet/CloudSearch/V1/Outputs/UploadItemRefResponse.cs b/sdk/dotnet/CloudSearch/V1/Outputs/UploadItemRefResponse.cs new file mode 100644 index 0000000000..b3b7707113 --- /dev/null +++ b/sdk/dotnet/CloudSearch/V1/Outputs/UploadItemRefResponse.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.CloudSearch.V1.Outputs +{ + + /// + /// Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. + /// + [OutputType] + public sealed class UploadItemRefResponse + { + /// + /// The name of the content reference. The maximum length is 2048 characters. + /// + public readonly string Name; + + [OutputConstructor] + private UploadItemRefResponse(string name) + { + Name = name; + } + } +} diff --git a/sdk/dotnet/Contactcenterinsights/V1/Conversation.cs b/sdk/dotnet/Contactcenterinsights/V1/Conversation.cs index 85d0fa0213..a2e1585ccd 100644 --- a/sdk/dotnet/Contactcenterinsights/V1/Conversation.cs +++ b/sdk/dotnet/Contactcenterinsights/V1/Conversation.cs @@ -10,7 +10,7 @@ namespace Pulumi.GoogleNative.Contactcenterinsights.V1 { /// - /// Creates a conversation. + /// Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. /// [GoogleNativeResourceType("google-native:contactcenterinsights/v1:Conversation")] public partial class Conversation : global::Pulumi.CustomResource @@ -27,12 +27,6 @@ public partial class Conversation : global::Pulumi.CustomResource [Output("callMetadata")] public Output CallMetadata { get; private set; } = null!; - /// - /// A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - /// - [Output("conversationId")] - public Output ConversationId { get; private set; } = null!; - /// /// The time at which the conversation was created. /// @@ -155,7 +149,7 @@ public partial class Conversation : global::Pulumi.CustomResource /// The unique name of the resource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior - public Conversation(string name, ConversationArgs? args = null, CustomResourceOptions? options = null) + public Conversation(string name, ConversationArgs args, CustomResourceOptions? options = null) : base("google-native:contactcenterinsights/v1:Conversation", name, args ?? new ConversationArgs(), MakeResourceOptions(options, "")) { } @@ -210,7 +204,7 @@ public sealed class ConversationArgs : global::Pulumi.ResourceArgs public Input? CallMetadata { get; set; } /// - /// A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + /// Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` /// [Input("conversationId")] public Input? ConversationId { get; set; } @@ -266,9 +260,27 @@ public InputMap Labels [Input("obfuscatedUserId")] public Input? ObfuscatedUserId { get; set; } + /// + /// The parent resource of the conversation. + /// + [Input("parent", required: true)] + public Input Parent { get; set; } = null!; + [Input("project")] public Input? Project { get; set; } + /// + /// Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + /// + [Input("redactionConfig")] + public Input? RedactionConfig { get; set; } + + /// + /// Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. + /// + [Input("speechConfig")] + public Input? SpeechConfig { get; set; } + /// /// The time at which the conversation started. /// diff --git a/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1RedactionConfigArgs.cs b/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1RedactionConfigArgs.cs new file mode 100644 index 0000000000..1951f8f608 --- /dev/null +++ b/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1RedactionConfigArgs.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Contactcenterinsights.V1.Inputs +{ + + /// + /// DLP resources used for redaction while ingesting conversations. + /// + public sealed class GoogleCloudContactcenterinsightsV1RedactionConfigArgs : global::Pulumi.ResourceArgs + { + /// + /// The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + /// + [Input("deidentifyTemplate")] + public Input? DeidentifyTemplate { get; set; } + + /// + /// The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + /// + [Input("inspectTemplate")] + public Input? InspectTemplate { get; set; } + + public GoogleCloudContactcenterinsightsV1RedactionConfigArgs() + { + } + public static new GoogleCloudContactcenterinsightsV1RedactionConfigArgs Empty => new GoogleCloudContactcenterinsightsV1RedactionConfigArgs(); + } +} diff --git a/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1SpeechConfigArgs.cs b/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1SpeechConfigArgs.cs new file mode 100644 index 0000000000..221590cade --- /dev/null +++ b/sdk/dotnet/Contactcenterinsights/V1/Inputs/GoogleCloudContactcenterinsightsV1SpeechConfigArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.GoogleNative.Contactcenterinsights.V1.Inputs +{ + + /// + /// Speech-to-Text configuration. + /// + public sealed class GoogleCloudContactcenterinsightsV1SpeechConfigArgs : global::Pulumi.ResourceArgs + { + /// + /// The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + /// + [Input("speechRecognizer")] + public Input? SpeechRecognizer { get; set; } + + public GoogleCloudContactcenterinsightsV1SpeechConfigArgs() + { + } + public static new GoogleCloudContactcenterinsightsV1SpeechConfigArgs Empty => new GoogleCloudContactcenterinsightsV1SpeechConfigArgs(); + } +} diff --git a/sdk/dotnet/IAM/V1/Enums.cs b/sdk/dotnet/IAM/V1/Enums.cs index 7d2da471bb..f33303b9d4 100644 --- a/sdk/dotnet/IAM/V1/Enums.cs +++ b/sdk/dotnet/IAM/V1/Enums.cs @@ -179,88 +179,6 @@ private KeyDataKeySpec(string value) public override string ToString() => _value; } - /// - /// Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - /// - [EnumType] - public readonly struct KeyKeyAlgorithm : IEquatable - { - private readonly string _value; - - private KeyKeyAlgorithm(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - /// - /// An unspecified key algorithm. - /// - public static KeyKeyAlgorithm KeyAlgUnspecified { get; } = new KeyKeyAlgorithm("KEY_ALG_UNSPECIFIED"); - /// - /// 1k RSA Key. - /// - public static KeyKeyAlgorithm KeyAlgRsa1024 { get; } = new KeyKeyAlgorithm("KEY_ALG_RSA_1024"); - /// - /// 2k RSA Key. - /// - public static KeyKeyAlgorithm KeyAlgRsa2048 { get; } = new KeyKeyAlgorithm("KEY_ALG_RSA_2048"); - - public static bool operator ==(KeyKeyAlgorithm left, KeyKeyAlgorithm right) => left.Equals(right); - public static bool operator !=(KeyKeyAlgorithm left, KeyKeyAlgorithm right) => !left.Equals(right); - - public static explicit operator string(KeyKeyAlgorithm value) => value._value; - - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object? obj) => obj is KeyKeyAlgorithm other && Equals(other); - public bool Equals(KeyKeyAlgorithm other) => string.Equals(_value, other._value, StringComparison.Ordinal); - - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - - public override string ToString() => _value; - } - - /// - /// The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - /// - [EnumType] - public readonly struct KeyPrivateKeyType : IEquatable - { - private readonly string _value; - - private KeyPrivateKeyType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - /// - /// Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - /// - public static KeyPrivateKeyType TypeUnspecified { get; } = new KeyPrivateKeyType("TYPE_UNSPECIFIED"); - /// - /// PKCS12 format. The password for the PKCS12 file is `notasecret`. For more information, see https://tools.ietf.org/html/rfc7292. - /// - public static KeyPrivateKeyType TypePkcs12File { get; } = new KeyPrivateKeyType("TYPE_PKCS12_FILE"); - /// - /// Google Credentials File format. - /// - public static KeyPrivateKeyType TypeGoogleCredentialsFile { get; } = new KeyPrivateKeyType("TYPE_GOOGLE_CREDENTIALS_FILE"); - - public static bool operator ==(KeyPrivateKeyType left, KeyPrivateKeyType right) => left.Equals(right); - public static bool operator !=(KeyPrivateKeyType left, KeyPrivateKeyType right) => !left.Equals(right); - - public static explicit operator string(KeyPrivateKeyType value) => value._value; - - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object? obj) => obj is KeyPrivateKeyType other && Equals(other); - public bool Equals(KeyPrivateKeyType other) => string.Equals(_value, other._value, StringComparison.Ordinal); - - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - - public override string ToString() => _value; - } - /// /// The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role. /// diff --git a/sdk/dotnet/IAM/V1/Key.cs b/sdk/dotnet/IAM/V1/Key.cs index 8f4b72440d..c702330096 100644 --- a/sdk/dotnet/IAM/V1/Key.cs +++ b/sdk/dotnet/IAM/V1/Key.cs @@ -10,7 +10,7 @@ namespace Pulumi.GoogleNative.IAM.V1 { /// - /// Creates a ServiceAccountKey. + /// Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key. /// Auto-naming is currently not supported for this resource. /// [GoogleNativeResourceType("google-native:iam/v1:Key")] @@ -132,20 +132,14 @@ public static Key Get(string name, Input id, CustomResourceOptions? opti public sealed class KeyArgs : global::Pulumi.ResourceArgs { - /// - /// Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - /// - [Input("keyAlgorithm")] - public Input? KeyAlgorithm { get; set; } + [Input("project")] + public Input? Project { get; set; } /// - /// The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. + /// The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. /// - [Input("privateKeyType")] - public Input? PrivateKeyType { get; set; } - - [Input("project")] - public Input? Project { get; set; } + [Input("publicKeyData")] + public Input? PublicKeyData { get; set; } [Input("serviceAccountId", required: true)] public Input ServiceAccountId { get; set; } = null!; diff --git a/sdk/dotnet/Integrations/V1Alpha/Enums.cs b/sdk/dotnet/Integrations/V1Alpha/Enums.cs index 410aaaf796..6c3b33aef0 100644 --- a/sdk/dotnet/Integrations/V1Alpha/Enums.cs +++ b/sdk/dotnet/Integrations/V1Alpha/Enums.cs @@ -3352,6 +3352,47 @@ private VersionDatabasePersistencePolicy(string value) public override string ToString() => _value; } + /// + /// File format for upload request. + /// + [EnumType] + public readonly struct VersionFileFormat : IEquatable + { + private readonly string _value; + + private VersionFileFormat(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + /// + /// Unspecified file format + /// + public static VersionFileFormat FileFormatUnspecified { get; } = new VersionFileFormat("FILE_FORMAT_UNSPECIFIED"); + /// + /// JSON File Format + /// + public static VersionFileFormat Json { get; } = new VersionFileFormat("JSON"); + /// + /// YAML File Format + /// + public static VersionFileFormat Yaml { get; } = new VersionFileFormat("YAML"); + + public static bool operator ==(VersionFileFormat left, VersionFileFormat right) => left.Equals(right); + public static bool operator !=(VersionFileFormat left, VersionFileFormat right) => !left.Equals(right); + + public static explicit operator string(VersionFileFormat value) => value._value; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is VersionFileFormat other && Equals(other); + public bool Equals(VersionFileFormat other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + public override string ToString() => _value; + } + /// /// Optional. The origin that indicates where this integration is coming from. /// diff --git a/sdk/dotnet/Integrations/V1Alpha/Version.cs b/sdk/dotnet/Integrations/V1Alpha/Version.cs index 548bbb6ca0..c932814351 100644 --- a/sdk/dotnet/Integrations/V1Alpha/Version.cs +++ b/sdk/dotnet/Integrations/V1Alpha/Version.cs @@ -10,7 +10,7 @@ namespace Pulumi.GoogleNative.Integrations.V1Alpha { /// - /// Create a integration with a draft version in the specified project. + /// Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. /// Auto-naming is currently not supported for this resource. /// [GoogleNativeResourceType("google-native:integrations/v1alpha:Version")] @@ -22,12 +22,6 @@ public partial class Version : global::Pulumi.CustomResource [Output("cloudLoggingDetails")] public Output CloudLoggingDetails { get; private set; } = null!; - /// - /// Optional. Optional. Indicates if sample workflow should be created. - /// - [Output("createSampleIntegrations")] - public Output CreateSampleIntegrations { get; private set; } = null!; - /// /// Auto-generated. /// @@ -88,12 +82,6 @@ public partial class Version : global::Pulumi.CustomResource [Output("name")] public Output Name { get; private set; } = null!; - /// - /// Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - /// - [Output("newIntegration")] - public Output NewIntegration { get; private set; } = null!; - /// /// Optional. The origin that indicates where this integration is coming from. /// @@ -231,173 +219,29 @@ public static Version Get(string name, Input id, CustomResourceOptions? public sealed class VersionArgs : global::Pulumi.ResourceArgs { /// - /// Optional. Cloud Logging details for the integration version - /// - [Input("cloudLoggingDetails")] - public Input? CloudLoggingDetails { get; set; } - - /// - /// Optional. Optional. Indicates if sample workflow should be created. - /// - [Input("createSampleIntegrations")] - public Input? CreateSampleIntegrations { get; set; } - - /// - /// Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - /// - [Input("databasePersistencePolicy")] - public Input? DatabasePersistencePolicy { get; set; } - - /// - /// Optional. The integration description. + /// The textproto of the integration_version. /// - [Input("description")] - public Input? Description { get; set; } - - [Input("errorCatcherConfigs")] - private InputList? _errorCatcherConfigs; + [Input("content")] + public Input? Content { get; set; } /// - /// Optional. Error Catch Task configuration for the integration. It's optional. + /// File format for upload request. /// - public InputList ErrorCatcherConfigs - { - get => _errorCatcherConfigs ?? (_errorCatcherConfigs = new InputList()); - set => _errorCatcherConfigs = value; - } + [Input("fileFormat")] + public Input? FileFormat { get; set; } [Input("integrationId", required: true)] public Input IntegrationId { get; set; } = null!; - [Input("integrationParameters")] - private InputList? _integrationParameters; - - /// - /// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - /// - public InputList IntegrationParameters - { - get => _integrationParameters ?? (_integrationParameters = new InputList()); - set => _integrationParameters = value; - } - - /// - /// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - /// - [Input("integrationParametersInternal")] - public Input? IntegrationParametersInternal { get; set; } - - /// - /// Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - /// - [Input("lastModifierEmail")] - public Input? LastModifierEmail { get; set; } - [Input("location")] public Input? Location { get; set; } - /// - /// Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - /// - [Input("lockHolder")] - public Input? LockHolder { get; set; } - - /// - /// Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - /// - [Input("newIntegration")] - public Input? NewIntegration { get; set; } - - /// - /// Optional. The origin that indicates where this integration is coming from. - /// - [Input("origin")] - public Input? Origin { get; set; } - - /// - /// Optional. The id of the template which was used to create this integration_version. - /// - [Input("parentTemplateId")] - public Input? ParentTemplateId { get; set; } - [Input("productId", required: true)] public Input ProductId { get; set; } = null!; [Input("project")] public Input? Project { get; set; } - /// - /// Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - /// - [Input("runAsServiceAccount")] - public Input? RunAsServiceAccount { get; set; } - - /// - /// Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - /// - [Input("snapshotNumber")] - public Input? SnapshotNumber { get; set; } - - [Input("taskConfigs")] - private InputList? _taskConfigs; - - /// - /// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - /// - public InputList TaskConfigs - { - get => _taskConfigs ?? (_taskConfigs = new InputList()); - set => _taskConfigs = value; - } - - [Input("taskConfigsInternal")] - private InputList? _taskConfigsInternal; - - /// - /// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - /// - public InputList TaskConfigsInternal - { - get => _taskConfigsInternal ?? (_taskConfigsInternal = new InputList()); - set => _taskConfigsInternal = value; - } - - /// - /// Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - /// - [Input("teardown")] - public Input? Teardown { get; set; } - - [Input("triggerConfigs")] - private InputList? _triggerConfigs; - - /// - /// Optional. Trigger configurations. - /// - public InputList TriggerConfigs - { - get => _triggerConfigs ?? (_triggerConfigs = new InputList()); - set => _triggerConfigs = value; - } - - [Input("triggerConfigsInternal")] - private InputList? _triggerConfigsInternal; - - /// - /// Optional. Trigger configurations. - /// - public InputList TriggerConfigsInternal - { - get => _triggerConfigsInternal ?? (_triggerConfigsInternal = new InputList()); - set => _triggerConfigsInternal = value; - } - - /// - /// Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. - /// - [Input("userLabel")] - public Input? UserLabel { get; set; } - public VersionArgs() { } diff --git a/sdk/go/google/aiplatform/v1/getModel.go b/sdk/go/google/aiplatform/v1/getModel.go new file mode 100644 index 0000000000..2f72050f7d --- /dev/null +++ b/sdk/go/google/aiplatform/v1/getModel.go @@ -0,0 +1,280 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1 + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Gets a Model. +func LookupModel(ctx *pulumi.Context, args *LookupModelArgs, opts ...pulumi.InvokeOption) (*LookupModelResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupModelResult + err := ctx.Invoke("google-native:aiplatform/v1:getModel", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupModelArgs struct { + Location string `pulumi:"location"` + ModelId string `pulumi:"modelId"` + Project *string `pulumi:"project"` +} + +type LookupModelResult struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri string `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1ModelContainerSpecResponse `pulumi:"containerSpec"` + // Timestamp when this Model was uploaded into Vertex AI. + CreateTime string `pulumi:"createTime"` + // The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + DeployedModels []GoogleCloudAiplatformV1DeployedModelRefResponse `pulumi:"deployedModels"` + // The description of the Model. + Description string `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName string `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1EncryptionSpecResponse `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag string `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1ExplanationSpecResponse `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels map[string]string `pulumi:"labels"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata interface{} `pulumi:"metadata"` + // The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + MetadataArtifact string `pulumi:"metadataArtifact"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri string `pulumi:"metadataSchemaUri"` + // Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + ModelSourceInfo GoogleCloudAiplatformV1ModelSourceInfoResponse `pulumi:"modelSourceInfo"` + // The resource name of the Model. + Name string `pulumi:"name"` + // If this Model is a copy of another Model, this contains info about the original. + OriginalModelInfo GoogleCloudAiplatformV1ModelOriginalModelInfoResponse `pulumi:"originalModelInfo"` + // Optional. This field is populated if the model is produced by a pipeline job. + PipelineJob string `pulumi:"pipelineJob"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1PredictSchemataResponse `pulumi:"predictSchemata"` + // When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + SupportedDeploymentResourcesTypes []string `pulumi:"supportedDeploymentResourcesTypes"` + // The formats in which this Model may be exported. If empty, this Model is not available for export. + SupportedExportFormats []GoogleCloudAiplatformV1ModelExportFormatResponse `pulumi:"supportedExportFormats"` + // The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedInputStorageFormats []string `pulumi:"supportedInputStorageFormats"` + // The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedOutputStorageFormats []string `pulumi:"supportedOutputStorageFormats"` + // The resource name of the TrainingPipeline that uploaded this Model, if any. + TrainingPipeline string `pulumi:"trainingPipeline"` + // Timestamp when this Model was most recently updated. + UpdateTime string `pulumi:"updateTime"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases []string `pulumi:"versionAliases"` + // Timestamp when this version was created. + VersionCreateTime string `pulumi:"versionCreateTime"` + // The description of this version. + VersionDescription string `pulumi:"versionDescription"` + // Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + VersionId string `pulumi:"versionId"` + // Timestamp when this version was most recently updated. + VersionUpdateTime string `pulumi:"versionUpdateTime"` +} + +func LookupModelOutput(ctx *pulumi.Context, args LookupModelOutputArgs, opts ...pulumi.InvokeOption) LookupModelResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupModelResult, error) { + args := v.(LookupModelArgs) + r, err := LookupModel(ctx, &args, opts...) + var s LookupModelResult + if r != nil { + s = *r + } + return s, err + }).(LookupModelResultOutput) +} + +type LookupModelOutputArgs struct { + Location pulumi.StringInput `pulumi:"location"` + ModelId pulumi.StringInput `pulumi:"modelId"` + Project pulumi.StringPtrInput `pulumi:"project"` +} + +func (LookupModelOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupModelArgs)(nil)).Elem() +} + +type LookupModelResultOutput struct{ *pulumi.OutputState } + +func (LookupModelResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupModelResult)(nil)).Elem() +} + +func (o LookupModelResultOutput) ToLookupModelResultOutput() LookupModelResultOutput { + return o +} + +func (o LookupModelResultOutput) ToLookupModelResultOutputWithContext(ctx context.Context) LookupModelResultOutput { + return o +} + +// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. +func (o LookupModelResultOutput) ArtifactUri() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.ArtifactUri }).(pulumi.StringOutput) +} + +// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. +func (o LookupModelResultOutput) ContainerSpec() GoogleCloudAiplatformV1ModelContainerSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1ModelContainerSpecResponse { return v.ContainerSpec }).(GoogleCloudAiplatformV1ModelContainerSpecResponseOutput) +} + +// Timestamp when this Model was uploaded into Vertex AI. +func (o LookupModelResultOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.CreateTime }).(pulumi.StringOutput) +} + +// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. +func (o LookupModelResultOutput) DeployedModels() GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput { + return o.ApplyT(func(v LookupModelResult) []GoogleCloudAiplatformV1DeployedModelRefResponse { return v.DeployedModels }).(GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput) +} + +// The description of the Model. +func (o LookupModelResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Description }).(pulumi.StringOutput) +} + +// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. +func (o LookupModelResultOutput) DisplayName() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.DisplayName }).(pulumi.StringOutput) +} + +// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. +func (o LookupModelResultOutput) EncryptionSpec() GoogleCloudAiplatformV1EncryptionSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1EncryptionSpecResponse { return v.EncryptionSpec }).(GoogleCloudAiplatformV1EncryptionSpecResponseOutput) +} + +// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. +func (o LookupModelResultOutput) Etag() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Etag }).(pulumi.StringOutput) +} + +// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. +func (o LookupModelResultOutput) ExplanationSpec() GoogleCloudAiplatformV1ExplanationSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1ExplanationSpecResponse { return v.ExplanationSpec }).(GoogleCloudAiplatformV1ExplanationSpecResponseOutput) +} + +// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. +func (o LookupModelResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupModelResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +} + +// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. +func (o LookupModelResultOutput) Metadata() pulumi.AnyOutput { + return o.ApplyT(func(v LookupModelResult) interface{} { return v.Metadata }).(pulumi.AnyOutput) +} + +// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. +func (o LookupModelResultOutput) MetadataArtifact() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.MetadataArtifact }).(pulumi.StringOutput) +} + +// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. +func (o LookupModelResultOutput) MetadataSchemaUri() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.MetadataSchemaUri }).(pulumi.StringOutput) +} + +// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. +func (o LookupModelResultOutput) ModelSourceInfo() GoogleCloudAiplatformV1ModelSourceInfoResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1ModelSourceInfoResponse { return v.ModelSourceInfo }).(GoogleCloudAiplatformV1ModelSourceInfoResponseOutput) +} + +// The resource name of the Model. +func (o LookupModelResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Name }).(pulumi.StringOutput) +} + +// If this Model is a copy of another Model, this contains info about the original. +func (o LookupModelResultOutput) OriginalModelInfo() GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1ModelOriginalModelInfoResponse { + return v.OriginalModelInfo + }).(GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput) +} + +// Optional. This field is populated if the model is produced by a pipeline job. +func (o LookupModelResultOutput) PipelineJob() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.PipelineJob }).(pulumi.StringOutput) +} + +// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. +func (o LookupModelResultOutput) PredictSchemata() GoogleCloudAiplatformV1PredictSchemataResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1PredictSchemataResponse { return v.PredictSchemata }).(GoogleCloudAiplatformV1PredictSchemataResponseOutput) +} + +// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. +func (o LookupModelResultOutput) SupportedDeploymentResourcesTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedDeploymentResourcesTypes }).(pulumi.StringArrayOutput) +} + +// The formats in which this Model may be exported. If empty, this Model is not available for export. +func (o LookupModelResultOutput) SupportedExportFormats() GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput { + return o.ApplyT(func(v LookupModelResult) []GoogleCloudAiplatformV1ModelExportFormatResponse { + return v.SupportedExportFormats + }).(GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o LookupModelResultOutput) SupportedInputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedInputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o LookupModelResultOutput) SupportedOutputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedOutputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The resource name of the TrainingPipeline that uploaded this Model, if any. +func (o LookupModelResultOutput) TrainingPipeline() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.TrainingPipeline }).(pulumi.StringOutput) +} + +// Timestamp when this Model was most recently updated. +func (o LookupModelResultOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.UpdateTime }).(pulumi.StringOutput) +} + +// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. +func (o LookupModelResultOutput) VersionAliases() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.VersionAliases }).(pulumi.StringArrayOutput) +} + +// Timestamp when this version was created. +func (o LookupModelResultOutput) VersionCreateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionCreateTime }).(pulumi.StringOutput) +} + +// The description of this version. +func (o LookupModelResultOutput) VersionDescription() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionDescription }).(pulumi.StringOutput) +} + +// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. +func (o LookupModelResultOutput) VersionId() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionId }).(pulumi.StringOutput) +} + +// Timestamp when this version was most recently updated. +func (o LookupModelResultOutput) VersionUpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionUpdateTime }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupModelResultOutput{}) +} diff --git a/sdk/go/google/aiplatform/v1/init.go b/sdk/go/google/aiplatform/v1/init.go index 51d446b21f..994f327b17 100644 --- a/sdk/go/google/aiplatform/v1/init.go +++ b/sdk/go/google/aiplatform/v1/init.go @@ -79,6 +79,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &MetadataSchema{} case "google-native:aiplatform/v1:MetadataStore": r = &MetadataStore{} + case "google-native:aiplatform/v1:Model": + r = &Model{} case "google-native:aiplatform/v1:ModelDeploymentMonitoringJob": r = &ModelDeploymentMonitoringJob{} case "google-native:aiplatform/v1:NasJob": diff --git a/sdk/go/google/aiplatform/v1/model.go b/sdk/go/google/aiplatform/v1/model.go new file mode 100644 index 0000000000..972591b075 --- /dev/null +++ b/sdk/go/google/aiplatform/v1/model.go @@ -0,0 +1,406 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1 + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Uploads a Model artifact into Vertex AI. +type Model struct { + pulumi.CustomResourceState + + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri pulumi.StringOutput `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1ModelContainerSpecResponseOutput `pulumi:"containerSpec"` + // Timestamp when this Model was uploaded into Vertex AI. + CreateTime pulumi.StringOutput `pulumi:"createTime"` + // The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + DeployedModels GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput `pulumi:"deployedModels"` + // The description of the Model. + Description pulumi.StringOutput `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName pulumi.StringOutput `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1EncryptionSpecResponseOutput `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag pulumi.StringOutput `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1ExplanationSpecResponseOutput `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels pulumi.StringMapOutput `pulumi:"labels"` + Location pulumi.StringOutput `pulumi:"location"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata pulumi.AnyOutput `pulumi:"metadata"` + // The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + MetadataArtifact pulumi.StringOutput `pulumi:"metadataArtifact"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri pulumi.StringOutput `pulumi:"metadataSchemaUri"` + // Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + ModelSourceInfo GoogleCloudAiplatformV1ModelSourceInfoResponseOutput `pulumi:"modelSourceInfo"` + // The resource name of the Model. + Name pulumi.StringOutput `pulumi:"name"` + // If this Model is a copy of another Model, this contains info about the original. + OriginalModelInfo GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput `pulumi:"originalModelInfo"` + // Optional. This field is populated if the model is produced by a pipeline job. + PipelineJob pulumi.StringOutput `pulumi:"pipelineJob"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1PredictSchemataResponseOutput `pulumi:"predictSchemata"` + Project pulumi.StringOutput `pulumi:"project"` + // When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + SupportedDeploymentResourcesTypes pulumi.StringArrayOutput `pulumi:"supportedDeploymentResourcesTypes"` + // The formats in which this Model may be exported. If empty, this Model is not available for export. + SupportedExportFormats GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput `pulumi:"supportedExportFormats"` + // The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedInputStorageFormats pulumi.StringArrayOutput `pulumi:"supportedInputStorageFormats"` + // The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedOutputStorageFormats pulumi.StringArrayOutput `pulumi:"supportedOutputStorageFormats"` + // The resource name of the TrainingPipeline that uploaded this Model, if any. + TrainingPipeline pulumi.StringOutput `pulumi:"trainingPipeline"` + // Timestamp when this Model was most recently updated. + UpdateTime pulumi.StringOutput `pulumi:"updateTime"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases pulumi.StringArrayOutput `pulumi:"versionAliases"` + // Timestamp when this version was created. + VersionCreateTime pulumi.StringOutput `pulumi:"versionCreateTime"` + // The description of this version. + VersionDescription pulumi.StringOutput `pulumi:"versionDescription"` + // Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + VersionId pulumi.StringOutput `pulumi:"versionId"` + // Timestamp when this version was most recently updated. + VersionUpdateTime pulumi.StringOutput `pulumi:"versionUpdateTime"` +} + +// NewModel registers a new resource with the given unique name, arguments, and options. +func NewModel(ctx *pulumi.Context, + name string, args *ModelArgs, opts ...pulumi.ResourceOption) (*Model, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DisplayName == nil { + return nil, errors.New("invalid value for required argument 'DisplayName'") + } + replaceOnChanges := pulumi.ReplaceOnChanges([]string{ + "location", + "project", + }) + opts = append(opts, replaceOnChanges) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Model + err := ctx.RegisterResource("google-native:aiplatform/v1:Model", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetModel gets an existing Model resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetModel(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ModelState, opts ...pulumi.ResourceOption) (*Model, error) { + var resource Model + err := ctx.ReadResource("google-native:aiplatform/v1:Model", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Model resources. +type modelState struct { +} + +type ModelState struct { +} + +func (ModelState) ElementType() reflect.Type { + return reflect.TypeOf((*modelState)(nil)).Elem() +} + +type modelArgs struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri *string `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec *GoogleCloudAiplatformV1ModelContainerSpec `pulumi:"containerSpec"` + // The description of the Model. + Description *string `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName string `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag *string `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec *GoogleCloudAiplatformV1ExplanationSpec `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels map[string]string `pulumi:"labels"` + Location *string `pulumi:"location"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata interface{} `pulumi:"metadata"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri *string `pulumi:"metadataSchemaUri"` + // Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + ModelId *string `pulumi:"modelId"` + // The resource name of the Model. + Name *string `pulumi:"name"` + // Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + ParentModel *string `pulumi:"parentModel"` + // Optional. This field is populated if the model is produced by a pipeline job. + PipelineJob *string `pulumi:"pipelineJob"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata *GoogleCloudAiplatformV1PredictSchemata `pulumi:"predictSchemata"` + Project *string `pulumi:"project"` + // Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + ServiceAccount *string `pulumi:"serviceAccount"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases []string `pulumi:"versionAliases"` + // The description of this version. + VersionDescription *string `pulumi:"versionDescription"` +} + +// The set of arguments for constructing a Model resource. +type ModelArgs struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri pulumi.StringPtrInput + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1ModelContainerSpecPtrInput + // The description of the Model. + Description pulumi.StringPtrInput + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName pulumi.StringInput + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1EncryptionSpecPtrInput + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag pulumi.StringPtrInput + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1ExplanationSpecPtrInput + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels pulumi.StringMapInput + Location pulumi.StringPtrInput + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata pulumi.Input + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri pulumi.StringPtrInput + // Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + ModelId pulumi.StringPtrInput + // The resource name of the Model. + Name pulumi.StringPtrInput + // Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + ParentModel pulumi.StringPtrInput + // Optional. This field is populated if the model is produced by a pipeline job. + PipelineJob pulumi.StringPtrInput + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1PredictSchemataPtrInput + Project pulumi.StringPtrInput + // Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + ServiceAccount pulumi.StringPtrInput + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases pulumi.StringArrayInput + // The description of this version. + VersionDescription pulumi.StringPtrInput +} + +func (ModelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*modelArgs)(nil)).Elem() +} + +type ModelInput interface { + pulumi.Input + + ToModelOutput() ModelOutput + ToModelOutputWithContext(ctx context.Context) ModelOutput +} + +func (*Model) ElementType() reflect.Type { + return reflect.TypeOf((**Model)(nil)).Elem() +} + +func (i *Model) ToModelOutput() ModelOutput { + return i.ToModelOutputWithContext(context.Background()) +} + +func (i *Model) ToModelOutputWithContext(ctx context.Context) ModelOutput { + return pulumi.ToOutputWithContext(ctx, i).(ModelOutput) +} + +type ModelOutput struct{ *pulumi.OutputState } + +func (ModelOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Model)(nil)).Elem() +} + +func (o ModelOutput) ToModelOutput() ModelOutput { + return o +} + +func (o ModelOutput) ToModelOutputWithContext(ctx context.Context) ModelOutput { + return o +} + +// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. +func (o ModelOutput) ArtifactUri() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.ArtifactUri }).(pulumi.StringOutput) +} + +// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. +func (o ModelOutput) ContainerSpec() GoogleCloudAiplatformV1ModelContainerSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1ModelContainerSpecResponseOutput { return v.ContainerSpec }).(GoogleCloudAiplatformV1ModelContainerSpecResponseOutput) +} + +// Timestamp when this Model was uploaded into Vertex AI. +func (o ModelOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) +} + +// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. +func (o ModelOutput) DeployedModels() GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput { return v.DeployedModels }).(GoogleCloudAiplatformV1DeployedModelRefResponseArrayOutput) +} + +// The description of the Model. +func (o ModelOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) +} + +// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. +func (o ModelOutput) DisplayName() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput) +} + +// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. +func (o ModelOutput) EncryptionSpec() GoogleCloudAiplatformV1EncryptionSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1EncryptionSpecResponseOutput { return v.EncryptionSpec }).(GoogleCloudAiplatformV1EncryptionSpecResponseOutput) +} + +// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. +func (o ModelOutput) Etag() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput) +} + +// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. +func (o ModelOutput) ExplanationSpec() GoogleCloudAiplatformV1ExplanationSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1ExplanationSpecResponseOutput { return v.ExplanationSpec }).(GoogleCloudAiplatformV1ExplanationSpecResponseOutput) +} + +// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. +func (o ModelOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *Model) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +} + +func (o ModelOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. +func (o ModelOutput) Metadata() pulumi.AnyOutput { + return o.ApplyT(func(v *Model) pulumi.AnyOutput { return v.Metadata }).(pulumi.AnyOutput) +} + +// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. +func (o ModelOutput) MetadataArtifact() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.MetadataArtifact }).(pulumi.StringOutput) +} + +// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. +func (o ModelOutput) MetadataSchemaUri() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.MetadataSchemaUri }).(pulumi.StringOutput) +} + +// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. +func (o ModelOutput) ModelSourceInfo() GoogleCloudAiplatformV1ModelSourceInfoResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1ModelSourceInfoResponseOutput { return v.ModelSourceInfo }).(GoogleCloudAiplatformV1ModelSourceInfoResponseOutput) +} + +// The resource name of the Model. +func (o ModelOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// If this Model is a copy of another Model, this contains info about the original. +func (o ModelOutput) OriginalModelInfo() GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput { return v.OriginalModelInfo }).(GoogleCloudAiplatformV1ModelOriginalModelInfoResponseOutput) +} + +// Optional. This field is populated if the model is produced by a pipeline job. +func (o ModelOutput) PipelineJob() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.PipelineJob }).(pulumi.StringOutput) +} + +// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. +func (o ModelOutput) PredictSchemata() GoogleCloudAiplatformV1PredictSchemataResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1PredictSchemataResponseOutput { return v.PredictSchemata }).(GoogleCloudAiplatformV1PredictSchemataResponseOutput) +} + +func (o ModelOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. +func (o ModelOutput) SupportedDeploymentResourcesTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedDeploymentResourcesTypes }).(pulumi.StringArrayOutput) +} + +// The formats in which this Model may be exported. If empty, this Model is not available for export. +func (o ModelOutput) SupportedExportFormats() GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput { + return v.SupportedExportFormats + }).(GoogleCloudAiplatformV1ModelExportFormatResponseArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o ModelOutput) SupportedInputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedInputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o ModelOutput) SupportedOutputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedOutputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The resource name of the TrainingPipeline that uploaded this Model, if any. +func (o ModelOutput) TrainingPipeline() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.TrainingPipeline }).(pulumi.StringOutput) +} + +// Timestamp when this Model was most recently updated. +func (o ModelOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput) +} + +// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. +func (o ModelOutput) VersionAliases() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.VersionAliases }).(pulumi.StringArrayOutput) +} + +// Timestamp when this version was created. +func (o ModelOutput) VersionCreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionCreateTime }).(pulumi.StringOutput) +} + +// The description of this version. +func (o ModelOutput) VersionDescription() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionDescription }).(pulumi.StringOutput) +} + +// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. +func (o ModelOutput) VersionId() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionId }).(pulumi.StringOutput) +} + +// Timestamp when this version was most recently updated. +func (o ModelOutput) VersionUpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionUpdateTime }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ModelInput)(nil)).Elem(), &Model{}) + pulumi.RegisterOutputType(ModelOutput{}) +} diff --git a/sdk/go/google/aiplatform/v1beta1/getModel.go b/sdk/go/google/aiplatform/v1beta1/getModel.go new file mode 100644 index 0000000000..8130aae6e4 --- /dev/null +++ b/sdk/go/google/aiplatform/v1beta1/getModel.go @@ -0,0 +1,283 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1beta1 + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Gets a Model. +func LookupModel(ctx *pulumi.Context, args *LookupModelArgs, opts ...pulumi.InvokeOption) (*LookupModelResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupModelResult + err := ctx.Invoke("google-native:aiplatform/v1beta1:getModel", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupModelArgs struct { + Location string `pulumi:"location"` + ModelId string `pulumi:"modelId"` + Project *string `pulumi:"project"` +} + +type LookupModelResult struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri string `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1beta1ModelContainerSpecResponse `pulumi:"containerSpec"` + // Timestamp when this Model was uploaded into Vertex AI. + CreateTime string `pulumi:"createTime"` + // The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + DeployedModels []GoogleCloudAiplatformV1beta1DeployedModelRefResponse `pulumi:"deployedModels"` + // The description of the Model. + Description string `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName string `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1beta1EncryptionSpecResponse `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag string `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1beta1ExplanationSpecResponse `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels map[string]string `pulumi:"labels"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata interface{} `pulumi:"metadata"` + // The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + MetadataArtifact string `pulumi:"metadataArtifact"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri string `pulumi:"metadataSchemaUri"` + // Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + ModelSourceInfo GoogleCloudAiplatformV1beta1ModelSourceInfoResponse `pulumi:"modelSourceInfo"` + // The resource name of the Model. + Name string `pulumi:"name"` + // If this Model is a copy of another Model, this contains info about the original. + OriginalModelInfo GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse `pulumi:"originalModelInfo"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1beta1PredictSchemataResponse `pulumi:"predictSchemata"` + // When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + SupportedDeploymentResourcesTypes []string `pulumi:"supportedDeploymentResourcesTypes"` + // The formats in which this Model may be exported. If empty, this Model is not available for export. + SupportedExportFormats []GoogleCloudAiplatformV1beta1ModelExportFormatResponse `pulumi:"supportedExportFormats"` + // The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedInputStorageFormats []string `pulumi:"supportedInputStorageFormats"` + // The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedOutputStorageFormats []string `pulumi:"supportedOutputStorageFormats"` + // The resource name of the TrainingPipeline that uploaded this Model, if any. + TrainingPipeline string `pulumi:"trainingPipeline"` + // Timestamp when this Model was most recently updated. + UpdateTime string `pulumi:"updateTime"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases []string `pulumi:"versionAliases"` + // Timestamp when this version was created. + VersionCreateTime string `pulumi:"versionCreateTime"` + // The description of this version. + VersionDescription string `pulumi:"versionDescription"` + // Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + VersionId string `pulumi:"versionId"` + // Timestamp when this version was most recently updated. + VersionUpdateTime string `pulumi:"versionUpdateTime"` +} + +func LookupModelOutput(ctx *pulumi.Context, args LookupModelOutputArgs, opts ...pulumi.InvokeOption) LookupModelResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupModelResult, error) { + args := v.(LookupModelArgs) + r, err := LookupModel(ctx, &args, opts...) + var s LookupModelResult + if r != nil { + s = *r + } + return s, err + }).(LookupModelResultOutput) +} + +type LookupModelOutputArgs struct { + Location pulumi.StringInput `pulumi:"location"` + ModelId pulumi.StringInput `pulumi:"modelId"` + Project pulumi.StringPtrInput `pulumi:"project"` +} + +func (LookupModelOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupModelArgs)(nil)).Elem() +} + +type LookupModelResultOutput struct{ *pulumi.OutputState } + +func (LookupModelResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupModelResult)(nil)).Elem() +} + +func (o LookupModelResultOutput) ToLookupModelResultOutput() LookupModelResultOutput { + return o +} + +func (o LookupModelResultOutput) ToLookupModelResultOutputWithContext(ctx context.Context) LookupModelResultOutput { + return o +} + +// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. +func (o LookupModelResultOutput) ArtifactUri() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.ArtifactUri }).(pulumi.StringOutput) +} + +// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. +func (o LookupModelResultOutput) ContainerSpec() GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1ModelContainerSpecResponse { + return v.ContainerSpec + }).(GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput) +} + +// Timestamp when this Model was uploaded into Vertex AI. +func (o LookupModelResultOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.CreateTime }).(pulumi.StringOutput) +} + +// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. +func (o LookupModelResultOutput) DeployedModels() GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput { + return o.ApplyT(func(v LookupModelResult) []GoogleCloudAiplatformV1beta1DeployedModelRefResponse { + return v.DeployedModels + }).(GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput) +} + +// The description of the Model. +func (o LookupModelResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Description }).(pulumi.StringOutput) +} + +// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. +func (o LookupModelResultOutput) DisplayName() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.DisplayName }).(pulumi.StringOutput) +} + +// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. +func (o LookupModelResultOutput) EncryptionSpec() GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1EncryptionSpecResponse { return v.EncryptionSpec }).(GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput) +} + +// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. +func (o LookupModelResultOutput) Etag() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Etag }).(pulumi.StringOutput) +} + +// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. +func (o LookupModelResultOutput) ExplanationSpec() GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1ExplanationSpecResponse { + return v.ExplanationSpec + }).(GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput) +} + +// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. +func (o LookupModelResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupModelResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +} + +// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. +func (o LookupModelResultOutput) Metadata() pulumi.AnyOutput { + return o.ApplyT(func(v LookupModelResult) interface{} { return v.Metadata }).(pulumi.AnyOutput) +} + +// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. +func (o LookupModelResultOutput) MetadataArtifact() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.MetadataArtifact }).(pulumi.StringOutput) +} + +// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. +func (o LookupModelResultOutput) MetadataSchemaUri() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.MetadataSchemaUri }).(pulumi.StringOutput) +} + +// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. +func (o LookupModelResultOutput) ModelSourceInfo() GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1ModelSourceInfoResponse { + return v.ModelSourceInfo + }).(GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput) +} + +// The resource name of the Model. +func (o LookupModelResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.Name }).(pulumi.StringOutput) +} + +// If this Model is a copy of another Model, this contains info about the original. +func (o LookupModelResultOutput) OriginalModelInfo() GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse { + return v.OriginalModelInfo + }).(GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput) +} + +// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. +func (o LookupModelResultOutput) PredictSchemata() GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput { + return o.ApplyT(func(v LookupModelResult) GoogleCloudAiplatformV1beta1PredictSchemataResponse { + return v.PredictSchemata + }).(GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput) +} + +// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. +func (o LookupModelResultOutput) SupportedDeploymentResourcesTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedDeploymentResourcesTypes }).(pulumi.StringArrayOutput) +} + +// The formats in which this Model may be exported. If empty, this Model is not available for export. +func (o LookupModelResultOutput) SupportedExportFormats() GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput { + return o.ApplyT(func(v LookupModelResult) []GoogleCloudAiplatformV1beta1ModelExportFormatResponse { + return v.SupportedExportFormats + }).(GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o LookupModelResultOutput) SupportedInputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedInputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o LookupModelResultOutput) SupportedOutputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.SupportedOutputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The resource name of the TrainingPipeline that uploaded this Model, if any. +func (o LookupModelResultOutput) TrainingPipeline() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.TrainingPipeline }).(pulumi.StringOutput) +} + +// Timestamp when this Model was most recently updated. +func (o LookupModelResultOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.UpdateTime }).(pulumi.StringOutput) +} + +// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. +func (o LookupModelResultOutput) VersionAliases() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupModelResult) []string { return v.VersionAliases }).(pulumi.StringArrayOutput) +} + +// Timestamp when this version was created. +func (o LookupModelResultOutput) VersionCreateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionCreateTime }).(pulumi.StringOutput) +} + +// The description of this version. +func (o LookupModelResultOutput) VersionDescription() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionDescription }).(pulumi.StringOutput) +} + +// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. +func (o LookupModelResultOutput) VersionId() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionId }).(pulumi.StringOutput) +} + +// Timestamp when this version was most recently updated. +func (o LookupModelResultOutput) VersionUpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v LookupModelResult) string { return v.VersionUpdateTime }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupModelResultOutput{}) +} diff --git a/sdk/go/google/aiplatform/v1beta1/init.go b/sdk/go/google/aiplatform/v1beta1/init.go index ce7e8f9db2..35ab7c2984 100644 --- a/sdk/go/google/aiplatform/v1beta1/init.go +++ b/sdk/go/google/aiplatform/v1beta1/init.go @@ -85,6 +85,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &MetadataSchema{} case "google-native:aiplatform/v1beta1:MetadataStore": r = &MetadataStore{} + case "google-native:aiplatform/v1beta1:Model": + r = &Model{} case "google-native:aiplatform/v1beta1:ModelDeploymentMonitoringJob": r = &ModelDeploymentMonitoringJob{} case "google-native:aiplatform/v1beta1:ModelIamBinding": diff --git a/sdk/go/google/aiplatform/v1beta1/model.go b/sdk/go/google/aiplatform/v1beta1/model.go new file mode 100644 index 0000000000..60c007822e --- /dev/null +++ b/sdk/go/google/aiplatform/v1beta1/model.go @@ -0,0 +1,399 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1beta1 + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Uploads a Model artifact into Vertex AI. +type Model struct { + pulumi.CustomResourceState + + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri pulumi.StringOutput `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput `pulumi:"containerSpec"` + // Timestamp when this Model was uploaded into Vertex AI. + CreateTime pulumi.StringOutput `pulumi:"createTime"` + // The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + DeployedModels GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput `pulumi:"deployedModels"` + // The description of the Model. + Description pulumi.StringOutput `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName pulumi.StringOutput `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag pulumi.StringOutput `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels pulumi.StringMapOutput `pulumi:"labels"` + Location pulumi.StringOutput `pulumi:"location"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata pulumi.AnyOutput `pulumi:"metadata"` + // The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + MetadataArtifact pulumi.StringOutput `pulumi:"metadataArtifact"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri pulumi.StringOutput `pulumi:"metadataSchemaUri"` + // Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + ModelSourceInfo GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput `pulumi:"modelSourceInfo"` + // The resource name of the Model. + Name pulumi.StringOutput `pulumi:"name"` + // If this Model is a copy of another Model, this contains info about the original. + OriginalModelInfo GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput `pulumi:"originalModelInfo"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput `pulumi:"predictSchemata"` + Project pulumi.StringOutput `pulumi:"project"` + // When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + SupportedDeploymentResourcesTypes pulumi.StringArrayOutput `pulumi:"supportedDeploymentResourcesTypes"` + // The formats in which this Model may be exported. If empty, this Model is not available for export. + SupportedExportFormats GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput `pulumi:"supportedExportFormats"` + // The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedInputStorageFormats pulumi.StringArrayOutput `pulumi:"supportedInputStorageFormats"` + // The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + SupportedOutputStorageFormats pulumi.StringArrayOutput `pulumi:"supportedOutputStorageFormats"` + // The resource name of the TrainingPipeline that uploaded this Model, if any. + TrainingPipeline pulumi.StringOutput `pulumi:"trainingPipeline"` + // Timestamp when this Model was most recently updated. + UpdateTime pulumi.StringOutput `pulumi:"updateTime"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases pulumi.StringArrayOutput `pulumi:"versionAliases"` + // Timestamp when this version was created. + VersionCreateTime pulumi.StringOutput `pulumi:"versionCreateTime"` + // The description of this version. + VersionDescription pulumi.StringOutput `pulumi:"versionDescription"` + // Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + VersionId pulumi.StringOutput `pulumi:"versionId"` + // Timestamp when this version was most recently updated. + VersionUpdateTime pulumi.StringOutput `pulumi:"versionUpdateTime"` +} + +// NewModel registers a new resource with the given unique name, arguments, and options. +func NewModel(ctx *pulumi.Context, + name string, args *ModelArgs, opts ...pulumi.ResourceOption) (*Model, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DisplayName == nil { + return nil, errors.New("invalid value for required argument 'DisplayName'") + } + replaceOnChanges := pulumi.ReplaceOnChanges([]string{ + "location", + "project", + }) + opts = append(opts, replaceOnChanges) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Model + err := ctx.RegisterResource("google-native:aiplatform/v1beta1:Model", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetModel gets an existing Model resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetModel(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ModelState, opts ...pulumi.ResourceOption) (*Model, error) { + var resource Model + err := ctx.ReadResource("google-native:aiplatform/v1beta1:Model", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Model resources. +type modelState struct { +} + +type ModelState struct { +} + +func (ModelState) ElementType() reflect.Type { + return reflect.TypeOf((*modelState)(nil)).Elem() +} + +type modelArgs struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri *string `pulumi:"artifactUri"` + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec *GoogleCloudAiplatformV1beta1ModelContainerSpec `pulumi:"containerSpec"` + // The description of the Model. + Description *string `pulumi:"description"` + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName string `pulumi:"displayName"` + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1beta1EncryptionSpec `pulumi:"encryptionSpec"` + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag *string `pulumi:"etag"` + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec *GoogleCloudAiplatformV1beta1ExplanationSpec `pulumi:"explanationSpec"` + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels map[string]string `pulumi:"labels"` + Location *string `pulumi:"location"` + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata interface{} `pulumi:"metadata"` + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri *string `pulumi:"metadataSchemaUri"` + // Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + ModelId *string `pulumi:"modelId"` + // The resource name of the Model. + Name *string `pulumi:"name"` + // Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + ParentModel *string `pulumi:"parentModel"` + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata *GoogleCloudAiplatformV1beta1PredictSchemata `pulumi:"predictSchemata"` + Project *string `pulumi:"project"` + // Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + ServiceAccount *string `pulumi:"serviceAccount"` + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases []string `pulumi:"versionAliases"` + // The description of this version. + VersionDescription *string `pulumi:"versionDescription"` +} + +// The set of arguments for constructing a Model resource. +type ModelArgs struct { + // Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + ArtifactUri pulumi.StringPtrInput + // Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + ContainerSpec GoogleCloudAiplatformV1beta1ModelContainerSpecPtrInput + // The description of the Model. + Description pulumi.StringPtrInput + // The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + DisplayName pulumi.StringInput + // Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec GoogleCloudAiplatformV1beta1EncryptionSpecPtrInput + // Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + Etag pulumi.StringPtrInput + // The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + ExplanationSpec GoogleCloudAiplatformV1beta1ExplanationSpecPtrInput + // The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + Labels pulumi.StringMapInput + Location pulumi.StringPtrInput + // Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + Metadata pulumi.Input + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + MetadataSchemaUri pulumi.StringPtrInput + // Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + ModelId pulumi.StringPtrInput + // The resource name of the Model. + Name pulumi.StringPtrInput + // Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + ParentModel pulumi.StringPtrInput + // The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + PredictSchemata GoogleCloudAiplatformV1beta1PredictSchemataPtrInput + Project pulumi.StringPtrInput + // Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + ServiceAccount pulumi.StringPtrInput + // User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + VersionAliases pulumi.StringArrayInput + // The description of this version. + VersionDescription pulumi.StringPtrInput +} + +func (ModelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*modelArgs)(nil)).Elem() +} + +type ModelInput interface { + pulumi.Input + + ToModelOutput() ModelOutput + ToModelOutputWithContext(ctx context.Context) ModelOutput +} + +func (*Model) ElementType() reflect.Type { + return reflect.TypeOf((**Model)(nil)).Elem() +} + +func (i *Model) ToModelOutput() ModelOutput { + return i.ToModelOutputWithContext(context.Background()) +} + +func (i *Model) ToModelOutputWithContext(ctx context.Context) ModelOutput { + return pulumi.ToOutputWithContext(ctx, i).(ModelOutput) +} + +type ModelOutput struct{ *pulumi.OutputState } + +func (ModelOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Model)(nil)).Elem() +} + +func (o ModelOutput) ToModelOutput() ModelOutput { + return o +} + +func (o ModelOutput) ToModelOutputWithContext(ctx context.Context) ModelOutput { + return o +} + +// Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. +func (o ModelOutput) ArtifactUri() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.ArtifactUri }).(pulumi.StringOutput) +} + +// Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. +func (o ModelOutput) ContainerSpec() GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput { return v.ContainerSpec }).(GoogleCloudAiplatformV1beta1ModelContainerSpecResponseOutput) +} + +// Timestamp when this Model was uploaded into Vertex AI. +func (o ModelOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) +} + +// The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. +func (o ModelOutput) DeployedModels() GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput { + return v.DeployedModels + }).(GoogleCloudAiplatformV1beta1DeployedModelRefResponseArrayOutput) +} + +// The description of the Model. +func (o ModelOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) +} + +// The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. +func (o ModelOutput) DisplayName() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput) +} + +// Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. +func (o ModelOutput) EncryptionSpec() GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput { return v.EncryptionSpec }).(GoogleCloudAiplatformV1beta1EncryptionSpecResponseOutput) +} + +// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. +func (o ModelOutput) Etag() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput) +} + +// The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. +func (o ModelOutput) ExplanationSpec() GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput { return v.ExplanationSpec }).(GoogleCloudAiplatformV1beta1ExplanationSpecResponseOutput) +} + +// The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. +func (o ModelOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *Model) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +} + +func (o ModelOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. +func (o ModelOutput) Metadata() pulumi.AnyOutput { + return o.ApplyT(func(v *Model) pulumi.AnyOutput { return v.Metadata }).(pulumi.AnyOutput) +} + +// The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. +func (o ModelOutput) MetadataArtifact() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.MetadataArtifact }).(pulumi.StringOutput) +} + +// Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. +func (o ModelOutput) MetadataSchemaUri() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.MetadataSchemaUri }).(pulumi.StringOutput) +} + +// Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. +func (o ModelOutput) ModelSourceInfo() GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput { return v.ModelSourceInfo }).(GoogleCloudAiplatformV1beta1ModelSourceInfoResponseOutput) +} + +// The resource name of the Model. +func (o ModelOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// If this Model is a copy of another Model, this contains info about the original. +func (o ModelOutput) OriginalModelInfo() GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput { + return v.OriginalModelInfo + }).(GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponseOutput) +} + +// The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. +func (o ModelOutput) PredictSchemata() GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput { return v.PredictSchemata }).(GoogleCloudAiplatformV1beta1PredictSchemataResponseOutput) +} + +func (o ModelOutput) Project() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) +} + +// When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. +func (o ModelOutput) SupportedDeploymentResourcesTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedDeploymentResourcesTypes }).(pulumi.StringArrayOutput) +} + +// The formats in which this Model may be exported. If empty, this Model is not available for export. +func (o ModelOutput) SupportedExportFormats() GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput { + return o.ApplyT(func(v *Model) GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput { + return v.SupportedExportFormats + }).(GoogleCloudAiplatformV1beta1ModelExportFormatResponseArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o ModelOutput) SupportedInputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedInputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. +func (o ModelOutput) SupportedOutputStorageFormats() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.SupportedOutputStorageFormats }).(pulumi.StringArrayOutput) +} + +// The resource name of the TrainingPipeline that uploaded this Model, if any. +func (o ModelOutput) TrainingPipeline() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.TrainingPipeline }).(pulumi.StringOutput) +} + +// Timestamp when this Model was most recently updated. +func (o ModelOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput) +} + +// User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. +func (o ModelOutput) VersionAliases() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Model) pulumi.StringArrayOutput { return v.VersionAliases }).(pulumi.StringArrayOutput) +} + +// Timestamp when this version was created. +func (o ModelOutput) VersionCreateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionCreateTime }).(pulumi.StringOutput) +} + +// The description of this version. +func (o ModelOutput) VersionDescription() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionDescription }).(pulumi.StringOutput) +} + +// Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. +func (o ModelOutput) VersionId() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionId }).(pulumi.StringOutput) +} + +// Timestamp when this version was most recently updated. +func (o ModelOutput) VersionUpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v *Model) pulumi.StringOutput { return v.VersionUpdateTime }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ModelInput)(nil)).Elem(), &Model{}) + pulumi.RegisterOutputType(ModelOutput{}) +} diff --git a/sdk/go/google/cloudsearch/v1/getItem.go b/sdk/go/google/cloudsearch/v1/getItem.go new file mode 100644 index 0000000000..2dd6842dbc --- /dev/null +++ b/sdk/go/google/cloudsearch/v1/getItem.go @@ -0,0 +1,145 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1 + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. +func LookupItem(ctx *pulumi.Context, args *LookupItemArgs, opts ...pulumi.InvokeOption) (*LookupItemResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupItemResult + err := ctx.Invoke("google-native:cloudsearch/v1:getItem", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupItemArgs struct { + ConnectorName *string `pulumi:"connectorName"` + DatasourceId string `pulumi:"datasourceId"` + DebugOptionsEnableDebugging *bool `pulumi:"debugOptionsEnableDebugging"` + ItemId string `pulumi:"itemId"` +} + +type LookupItemResult struct { + // Access control list for this item. + Acl ItemAclResponse `pulumi:"acl"` + // Item content to be indexed and made text searchable. + Content ItemContentResponse `pulumi:"content"` + // The type for this item. + ItemType string `pulumi:"itemType"` + // The metadata information. + Metadata ItemMetadataResponse `pulumi:"metadata"` + // The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + Name string `pulumi:"name"` + // Additional state connector can store for this item. The maximum length is 10000 bytes. + Payload string `pulumi:"payload"` + // Queue this item belongs to. The maximum length is 100 characters. + Queue string `pulumi:"queue"` + // Status of the item. Output only field. + Status ItemStatusResponse `pulumi:"status"` + // The structured data for the item that should conform to a registered object definition in the schema for the data source. + StructuredData ItemStructuredDataResponse `pulumi:"structuredData"` + // The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + Version string `pulumi:"version"` +} + +func LookupItemOutput(ctx *pulumi.Context, args LookupItemOutputArgs, opts ...pulumi.InvokeOption) LookupItemResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupItemResult, error) { + args := v.(LookupItemArgs) + r, err := LookupItem(ctx, &args, opts...) + var s LookupItemResult + if r != nil { + s = *r + } + return s, err + }).(LookupItemResultOutput) +} + +type LookupItemOutputArgs struct { + ConnectorName pulumi.StringPtrInput `pulumi:"connectorName"` + DatasourceId pulumi.StringInput `pulumi:"datasourceId"` + DebugOptionsEnableDebugging pulumi.BoolPtrInput `pulumi:"debugOptionsEnableDebugging"` + ItemId pulumi.StringInput `pulumi:"itemId"` +} + +func (LookupItemOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupItemArgs)(nil)).Elem() +} + +type LookupItemResultOutput struct{ *pulumi.OutputState } + +func (LookupItemResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupItemResult)(nil)).Elem() +} + +func (o LookupItemResultOutput) ToLookupItemResultOutput() LookupItemResultOutput { + return o +} + +func (o LookupItemResultOutput) ToLookupItemResultOutputWithContext(ctx context.Context) LookupItemResultOutput { + return o +} + +// Access control list for this item. +func (o LookupItemResultOutput) Acl() ItemAclResponseOutput { + return o.ApplyT(func(v LookupItemResult) ItemAclResponse { return v.Acl }).(ItemAclResponseOutput) +} + +// Item content to be indexed and made text searchable. +func (o LookupItemResultOutput) Content() ItemContentResponseOutput { + return o.ApplyT(func(v LookupItemResult) ItemContentResponse { return v.Content }).(ItemContentResponseOutput) +} + +// The type for this item. +func (o LookupItemResultOutput) ItemType() pulumi.StringOutput { + return o.ApplyT(func(v LookupItemResult) string { return v.ItemType }).(pulumi.StringOutput) +} + +// The metadata information. +func (o LookupItemResultOutput) Metadata() ItemMetadataResponseOutput { + return o.ApplyT(func(v LookupItemResult) ItemMetadataResponse { return v.Metadata }).(ItemMetadataResponseOutput) +} + +// The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. +func (o LookupItemResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupItemResult) string { return v.Name }).(pulumi.StringOutput) +} + +// Additional state connector can store for this item. The maximum length is 10000 bytes. +func (o LookupItemResultOutput) Payload() pulumi.StringOutput { + return o.ApplyT(func(v LookupItemResult) string { return v.Payload }).(pulumi.StringOutput) +} + +// Queue this item belongs to. The maximum length is 100 characters. +func (o LookupItemResultOutput) Queue() pulumi.StringOutput { + return o.ApplyT(func(v LookupItemResult) string { return v.Queue }).(pulumi.StringOutput) +} + +// Status of the item. Output only field. +func (o LookupItemResultOutput) Status() ItemStatusResponseOutput { + return o.ApplyT(func(v LookupItemResult) ItemStatusResponse { return v.Status }).(ItemStatusResponseOutput) +} + +// The structured data for the item that should conform to a registered object definition in the schema for the data source. +func (o LookupItemResultOutput) StructuredData() ItemStructuredDataResponseOutput { + return o.ApplyT(func(v LookupItemResult) ItemStructuredDataResponse { return v.StructuredData }).(ItemStructuredDataResponseOutput) +} + +// The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). +func (o LookupItemResultOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v LookupItemResult) string { return v.Version }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupItemResultOutput{}) +} diff --git a/sdk/go/google/cloudsearch/v1/init.go b/sdk/go/google/cloudsearch/v1/init.go index 163998ab0c..b04d2eaef3 100644 --- a/sdk/go/google/cloudsearch/v1/init.go +++ b/sdk/go/google/cloudsearch/v1/init.go @@ -23,6 +23,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi switch typ { case "google-native:cloudsearch/v1:DataSource": r = &DataSource{} + case "google-native:cloudsearch/v1:Item": + r = &Item{} case "google-native:cloudsearch/v1:SearchApplication": r = &SearchApplication{} default: diff --git a/sdk/go/google/cloudsearch/v1/item.go b/sdk/go/google/cloudsearch/v1/item.go new file mode 100644 index 0000000000..bc6b9aeade --- /dev/null +++ b/sdk/go/google/cloudsearch/v1/item.go @@ -0,0 +1,211 @@ +// Code generated by the Pulumi SDK Generator DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package v1 + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. +// Auto-naming is currently not supported for this resource. +type Item struct { + pulumi.CustomResourceState + + // Access control list for this item. + Acl ItemAclResponseOutput `pulumi:"acl"` + // Item content to be indexed and made text searchable. + Content ItemContentResponseOutput `pulumi:"content"` + DatasourceId pulumi.StringOutput `pulumi:"datasourceId"` + ItemId pulumi.StringOutput `pulumi:"itemId"` + // The type for this item. + ItemType pulumi.StringOutput `pulumi:"itemType"` + // The metadata information. + Metadata ItemMetadataResponseOutput `pulumi:"metadata"` + // The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + Name pulumi.StringOutput `pulumi:"name"` + // Additional state connector can store for this item. The maximum length is 10000 bytes. + Payload pulumi.StringOutput `pulumi:"payload"` + // Queue this item belongs to. The maximum length is 100 characters. + Queue pulumi.StringOutput `pulumi:"queue"` + // Status of the item. Output only field. + Status ItemStatusResponseOutput `pulumi:"status"` + // The structured data for the item that should conform to a registered object definition in the schema for the data source. + StructuredData ItemStructuredDataResponseOutput `pulumi:"structuredData"` + // The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + Version pulumi.StringOutput `pulumi:"version"` +} + +// NewItem registers a new resource with the given unique name, arguments, and options. +func NewItem(ctx *pulumi.Context, + name string, args *ItemArgs, opts ...pulumi.ResourceOption) (*Item, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DatasourceId == nil { + return nil, errors.New("invalid value for required argument 'DatasourceId'") + } + if args.ItemId == nil { + return nil, errors.New("invalid value for required argument 'ItemId'") + } + replaceOnChanges := pulumi.ReplaceOnChanges([]string{ + "datasourceId", + "itemId", + }) + opts = append(opts, replaceOnChanges) + opts = internal.PkgResourceDefaultOpts(opts) + var resource Item + err := ctx.RegisterResource("google-native:cloudsearch/v1:Item", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetItem gets an existing Item resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetItem(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ItemState, opts ...pulumi.ResourceOption) (*Item, error) { + var resource Item + err := ctx.ReadResource("google-native:cloudsearch/v1:Item", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering Item resources. +type itemState struct { +} + +type ItemState struct { +} + +func (ItemState) ElementType() reflect.Type { + return reflect.TypeOf((*itemState)(nil)).Elem() +} + +type itemArgs struct { + // The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + ConnectorName *string `pulumi:"connectorName"` + DatasourceId string `pulumi:"datasourceId"` + // Common debug options. + DebugOptions *DebugOptions `pulumi:"debugOptions"` + ItemId string `pulumi:"itemId"` +} + +// The set of arguments for constructing a Item resource. +type ItemArgs struct { + // The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + ConnectorName pulumi.StringPtrInput + DatasourceId pulumi.StringInput + // Common debug options. + DebugOptions DebugOptionsPtrInput + ItemId pulumi.StringInput +} + +func (ItemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*itemArgs)(nil)).Elem() +} + +type ItemInput interface { + pulumi.Input + + ToItemOutput() ItemOutput + ToItemOutputWithContext(ctx context.Context) ItemOutput +} + +func (*Item) ElementType() reflect.Type { + return reflect.TypeOf((**Item)(nil)).Elem() +} + +func (i *Item) ToItemOutput() ItemOutput { + return i.ToItemOutputWithContext(context.Background()) +} + +func (i *Item) ToItemOutputWithContext(ctx context.Context) ItemOutput { + return pulumi.ToOutputWithContext(ctx, i).(ItemOutput) +} + +type ItemOutput struct{ *pulumi.OutputState } + +func (ItemOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Item)(nil)).Elem() +} + +func (o ItemOutput) ToItemOutput() ItemOutput { + return o +} + +func (o ItemOutput) ToItemOutputWithContext(ctx context.Context) ItemOutput { + return o +} + +// Access control list for this item. +func (o ItemOutput) Acl() ItemAclResponseOutput { + return o.ApplyT(func(v *Item) ItemAclResponseOutput { return v.Acl }).(ItemAclResponseOutput) +} + +// Item content to be indexed and made text searchable. +func (o ItemOutput) Content() ItemContentResponseOutput { + return o.ApplyT(func(v *Item) ItemContentResponseOutput { return v.Content }).(ItemContentResponseOutput) +} + +func (o ItemOutput) DatasourceId() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.DatasourceId }).(pulumi.StringOutput) +} + +func (o ItemOutput) ItemId() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.ItemId }).(pulumi.StringOutput) +} + +// The type for this item. +func (o ItemOutput) ItemType() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.ItemType }).(pulumi.StringOutput) +} + +// The metadata information. +func (o ItemOutput) Metadata() ItemMetadataResponseOutput { + return o.ApplyT(func(v *Item) ItemMetadataResponseOutput { return v.Metadata }).(ItemMetadataResponseOutput) +} + +// The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. +func (o ItemOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// Additional state connector can store for this item. The maximum length is 10000 bytes. +func (o ItemOutput) Payload() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.Payload }).(pulumi.StringOutput) +} + +// Queue this item belongs to. The maximum length is 100 characters. +func (o ItemOutput) Queue() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.Queue }).(pulumi.StringOutput) +} + +// Status of the item. Output only field. +func (o ItemOutput) Status() ItemStatusResponseOutput { + return o.ApplyT(func(v *Item) ItemStatusResponseOutput { return v.Status }).(ItemStatusResponseOutput) +} + +// The structured data for the item that should conform to a registered object definition in the schema for the data source. +func (o ItemOutput) StructuredData() ItemStructuredDataResponseOutput { + return o.ApplyT(func(v *Item) ItemStructuredDataResponseOutput { return v.StructuredData }).(ItemStructuredDataResponseOutput) +} + +// The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). +func (o ItemOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v *Item) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ItemInput)(nil)).Elem(), &Item{}) + pulumi.RegisterOutputType(ItemOutput{}) +} diff --git a/sdk/go/google/cloudsearch/v1/pulumiTypes.go b/sdk/go/google/cloudsearch/v1/pulumiTypes.go index 5ebd59569c..08727cdff3 100644 --- a/sdk/go/google/cloudsearch/v1/pulumiTypes.go +++ b/sdk/go/google/cloudsearch/v1/pulumiTypes.go @@ -200,6 +200,59 @@ func (o CompositeFilterResponseOutput) SubFilters() FilterResponseArrayOutput { return o.ApplyT(func(v CompositeFilterResponse) []FilterResponse { return v.SubFilters }).(FilterResponseArrayOutput) } +// A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. +type ContextAttributeResponse struct { + // The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. + Name string `pulumi:"name"` + // Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. + Values []string `pulumi:"values"` +} + +// A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. +type ContextAttributeResponseOutput struct{ *pulumi.OutputState } + +func (ContextAttributeResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContextAttributeResponse)(nil)).Elem() +} + +func (o ContextAttributeResponseOutput) ToContextAttributeResponseOutput() ContextAttributeResponseOutput { + return o +} + +func (o ContextAttributeResponseOutput) ToContextAttributeResponseOutputWithContext(ctx context.Context) ContextAttributeResponseOutput { + return o +} + +// The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. +func (o ContextAttributeResponseOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ContextAttributeResponse) string { return v.Name }).(pulumi.StringOutput) +} + +// Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. +func (o ContextAttributeResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v ContextAttributeResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +type ContextAttributeResponseArrayOutput struct{ *pulumi.OutputState } + +func (ContextAttributeResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContextAttributeResponse)(nil)).Elem() +} + +func (o ContextAttributeResponseArrayOutput) ToContextAttributeResponseArrayOutput() ContextAttributeResponseArrayOutput { + return o +} + +func (o ContextAttributeResponseArrayOutput) ToContextAttributeResponseArrayOutputWithContext(ctx context.Context) ContextAttributeResponseArrayOutput { + return o +} + +func (o ContextAttributeResponseArrayOutput) Index(i pulumi.IntInput) ContextAttributeResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContextAttributeResponse { + return vs[0].([]ContextAttributeResponse)[vs[1].(int)] + }).(ContextAttributeResponseOutput) +} + // Restriction on Datasource. type DataSourceRestriction struct { // Filter options restricting the results. If multiple filters are present, they are grouped by object type before joining. Filters with the same object type are joined conjunctively, then the resulting expressions are joined disjunctively. The maximum number of elements is 20. NOTE: Suggest API supports only few filters at the moment: "objecttype", "type" and "mimetype". For now, schema specific filters cannot be used to filter suggestions. @@ -580,6 +633,240 @@ func (o DateResponseOutput) Year() pulumi.IntOutput { return o.ApplyT(func(v DateResponse) int { return v.Year }).(pulumi.IntOutput) } +type DateResponseArrayOutput struct{ *pulumi.OutputState } + +func (DateResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]DateResponse)(nil)).Elem() +} + +func (o DateResponseArrayOutput) ToDateResponseArrayOutput() DateResponseArrayOutput { + return o +} + +func (o DateResponseArrayOutput) ToDateResponseArrayOutputWithContext(ctx context.Context) DateResponseArrayOutput { + return o +} + +func (o DateResponseArrayOutput) Index(i pulumi.IntInput) DateResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) DateResponse { + return vs[0].([]DateResponse)[vs[1].(int)] + }).(DateResponseOutput) +} + +// List of date values. +type DateValuesResponse struct { + Values []DateResponse `pulumi:"values"` +} + +// List of date values. +type DateValuesResponseOutput struct{ *pulumi.OutputState } + +func (DateValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DateValuesResponse)(nil)).Elem() +} + +func (o DateValuesResponseOutput) ToDateValuesResponseOutput() DateValuesResponseOutput { + return o +} + +func (o DateValuesResponseOutput) ToDateValuesResponseOutputWithContext(ctx context.Context) DateValuesResponseOutput { + return o +} + +func (o DateValuesResponseOutput) Values() DateResponseArrayOutput { + return o.ApplyT(func(v DateValuesResponse) []DateResponse { return v.Values }).(DateResponseArrayOutput) +} + +// Shared request debug options for all cloudsearch RPC methods. +type DebugOptions struct { + // If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + EnableDebugging *bool `pulumi:"enableDebugging"` +} + +// DebugOptionsInput is an input type that accepts DebugOptionsArgs and DebugOptionsOutput values. +// You can construct a concrete instance of `DebugOptionsInput` via: +// +// DebugOptionsArgs{...} +type DebugOptionsInput interface { + pulumi.Input + + ToDebugOptionsOutput() DebugOptionsOutput + ToDebugOptionsOutputWithContext(context.Context) DebugOptionsOutput +} + +// Shared request debug options for all cloudsearch RPC methods. +type DebugOptionsArgs struct { + // If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + EnableDebugging pulumi.BoolPtrInput `pulumi:"enableDebugging"` +} + +func (DebugOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DebugOptions)(nil)).Elem() +} + +func (i DebugOptionsArgs) ToDebugOptionsOutput() DebugOptionsOutput { + return i.ToDebugOptionsOutputWithContext(context.Background()) +} + +func (i DebugOptionsArgs) ToDebugOptionsOutputWithContext(ctx context.Context) DebugOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(DebugOptionsOutput) +} + +func (i DebugOptionsArgs) ToDebugOptionsPtrOutput() DebugOptionsPtrOutput { + return i.ToDebugOptionsPtrOutputWithContext(context.Background()) +} + +func (i DebugOptionsArgs) ToDebugOptionsPtrOutputWithContext(ctx context.Context) DebugOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DebugOptionsOutput).ToDebugOptionsPtrOutputWithContext(ctx) +} + +// DebugOptionsPtrInput is an input type that accepts DebugOptionsArgs, DebugOptionsPtr and DebugOptionsPtrOutput values. +// You can construct a concrete instance of `DebugOptionsPtrInput` via: +// +// DebugOptionsArgs{...} +// +// or: +// +// nil +type DebugOptionsPtrInput interface { + pulumi.Input + + ToDebugOptionsPtrOutput() DebugOptionsPtrOutput + ToDebugOptionsPtrOutputWithContext(context.Context) DebugOptionsPtrOutput +} + +type debugOptionsPtrType DebugOptionsArgs + +func DebugOptionsPtr(v *DebugOptionsArgs) DebugOptionsPtrInput { + return (*debugOptionsPtrType)(v) +} + +func (*debugOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DebugOptions)(nil)).Elem() +} + +func (i *debugOptionsPtrType) ToDebugOptionsPtrOutput() DebugOptionsPtrOutput { + return i.ToDebugOptionsPtrOutputWithContext(context.Background()) +} + +func (i *debugOptionsPtrType) ToDebugOptionsPtrOutputWithContext(ctx context.Context) DebugOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DebugOptionsPtrOutput) +} + +// Shared request debug options for all cloudsearch RPC methods. +type DebugOptionsOutput struct{ *pulumi.OutputState } + +func (DebugOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DebugOptions)(nil)).Elem() +} + +func (o DebugOptionsOutput) ToDebugOptionsOutput() DebugOptionsOutput { + return o +} + +func (o DebugOptionsOutput) ToDebugOptionsOutputWithContext(ctx context.Context) DebugOptionsOutput { + return o +} + +func (o DebugOptionsOutput) ToDebugOptionsPtrOutput() DebugOptionsPtrOutput { + return o.ToDebugOptionsPtrOutputWithContext(context.Background()) +} + +func (o DebugOptionsOutput) ToDebugOptionsPtrOutputWithContext(ctx context.Context) DebugOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DebugOptions) *DebugOptions { + return &v + }).(DebugOptionsPtrOutput) +} + +// If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. +func (o DebugOptionsOutput) EnableDebugging() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DebugOptions) *bool { return v.EnableDebugging }).(pulumi.BoolPtrOutput) +} + +type DebugOptionsPtrOutput struct{ *pulumi.OutputState } + +func (DebugOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DebugOptions)(nil)).Elem() +} + +func (o DebugOptionsPtrOutput) ToDebugOptionsPtrOutput() DebugOptionsPtrOutput { + return o +} + +func (o DebugOptionsPtrOutput) ToDebugOptionsPtrOutputWithContext(ctx context.Context) DebugOptionsPtrOutput { + return o +} + +func (o DebugOptionsPtrOutput) Elem() DebugOptionsOutput { + return o.ApplyT(func(v *DebugOptions) DebugOptions { + if v != nil { + return *v + } + var ret DebugOptions + return ret + }).(DebugOptionsOutput) +} + +// If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. +func (o DebugOptionsPtrOutput) EnableDebugging() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DebugOptions) *bool { + if v == nil { + return nil + } + return v.EnableDebugging + }).(pulumi.BoolPtrOutput) +} + +// List of double values. +type DoubleValuesResponse struct { + Values []float64 `pulumi:"values"` +} + +// List of double values. +type DoubleValuesResponseOutput struct{ *pulumi.OutputState } + +func (DoubleValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DoubleValuesResponse)(nil)).Elem() +} + +func (o DoubleValuesResponseOutput) ToDoubleValuesResponseOutput() DoubleValuesResponseOutput { + return o +} + +func (o DoubleValuesResponseOutput) ToDoubleValuesResponseOutputWithContext(ctx context.Context) DoubleValuesResponseOutput { + return o +} + +func (o DoubleValuesResponseOutput) Values() pulumi.Float64ArrayOutput { + return o.ApplyT(func(v DoubleValuesResponse) []float64 { return v.Values }).(pulumi.Float64ArrayOutput) +} + +// List of enum values. +type EnumValuesResponse struct { + // The maximum allowable length for string values is 32 characters. + Values []string `pulumi:"values"` +} + +// List of enum values. +type EnumValuesResponseOutput struct{ *pulumi.OutputState } + +func (EnumValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EnumValuesResponse)(nil)).Elem() +} + +func (o EnumValuesResponseOutput) ToEnumValuesResponseOutput() EnumValuesResponseOutput { + return o +} + +func (o EnumValuesResponseOutput) ToEnumValuesResponseOutputWithContext(ctx context.Context) EnumValuesResponseOutput { + return o +} + +// The maximum allowable length for string values is 32 characters. +func (o EnumValuesResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v EnumValuesResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + // Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. type FacetOptions struct { // If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets. @@ -790,6 +1077,57 @@ func (o FacetOptionsResponseArrayOutput) Index(i pulumi.IntInput) FacetOptionsRe }).(FacetOptionsResponseOutput) } +type FieldViolationResponse struct { + // The description of the error. + Description string `pulumi:"description"` + // Path of field with violation. + Field string `pulumi:"field"` +} + +type FieldViolationResponseOutput struct{ *pulumi.OutputState } + +func (FieldViolationResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*FieldViolationResponse)(nil)).Elem() +} + +func (o FieldViolationResponseOutput) ToFieldViolationResponseOutput() FieldViolationResponseOutput { + return o +} + +func (o FieldViolationResponseOutput) ToFieldViolationResponseOutputWithContext(ctx context.Context) FieldViolationResponseOutput { + return o +} + +// The description of the error. +func (o FieldViolationResponseOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v FieldViolationResponse) string { return v.Description }).(pulumi.StringOutput) +} + +// Path of field with violation. +func (o FieldViolationResponseOutput) Field() pulumi.StringOutput { + return o.ApplyT(func(v FieldViolationResponse) string { return v.Field }).(pulumi.StringOutput) +} + +type FieldViolationResponseArrayOutput struct{ *pulumi.OutputState } + +func (FieldViolationResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]FieldViolationResponse)(nil)).Elem() +} + +func (o FieldViolationResponseArrayOutput) ToFieldViolationResponseArrayOutput() FieldViolationResponseArrayOutput { + return o +} + +func (o FieldViolationResponseArrayOutput) ToFieldViolationResponseArrayOutputWithContext(ctx context.Context) FieldViolationResponseArrayOutput { + return o +} + +func (o FieldViolationResponseArrayOutput) Index(i pulumi.IntInput) FieldViolationResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) FieldViolationResponse { + return vs[0].([]FieldViolationResponse)[vs[1].(int)] + }).(FieldViolationResponseOutput) +} + // A generic way of expressing filters in a query, which supports two approaches: **1. Setting a ValueFilter.** The name must match an operator_name defined in the schema for your data source. **2. Setting a CompositeFilter.** The filters are evaluated using the logical operator. The top-level operators can only be either an AND or a NOT. AND can appear only at the top-most level. OR can appear only under a top-level AND. type Filter struct { CompositeFilter *CompositeFilter `pulumi:"compositeFilter"` @@ -1292,248 +1630,871 @@ func (o GSuitePrincipalOutput) GsuiteUserEmail() pulumi.StringPtrOutput { return o.ApplyT(func(v GSuitePrincipal) *string { return v.GsuiteUserEmail }).(pulumi.StringPtrOutput) } -type GSuitePrincipalArrayOutput struct{ *pulumi.OutputState } +type GSuitePrincipalArrayOutput struct{ *pulumi.OutputState } + +func (GSuitePrincipalArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GSuitePrincipal)(nil)).Elem() +} + +func (o GSuitePrincipalArrayOutput) ToGSuitePrincipalArrayOutput() GSuitePrincipalArrayOutput { + return o +} + +func (o GSuitePrincipalArrayOutput) ToGSuitePrincipalArrayOutputWithContext(ctx context.Context) GSuitePrincipalArrayOutput { + return o +} + +func (o GSuitePrincipalArrayOutput) Index(i pulumi.IntInput) GSuitePrincipalOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GSuitePrincipal { + return vs[0].([]GSuitePrincipal)[vs[1].(int)] + }).(GSuitePrincipalOutput) +} + +type GSuitePrincipalResponse struct { + // This principal represents all users of the Google Workspace domain of the customer. + GsuiteDomain bool `pulumi:"gsuiteDomain"` + // This principal references a Google Workspace group name. + GsuiteGroupEmail string `pulumi:"gsuiteGroupEmail"` + // This principal references a Google Workspace user account. + GsuiteUserEmail string `pulumi:"gsuiteUserEmail"` +} + +type GSuitePrincipalResponseOutput struct{ *pulumi.OutputState } + +func (GSuitePrincipalResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GSuitePrincipalResponse)(nil)).Elem() +} + +func (o GSuitePrincipalResponseOutput) ToGSuitePrincipalResponseOutput() GSuitePrincipalResponseOutput { + return o +} + +func (o GSuitePrincipalResponseOutput) ToGSuitePrincipalResponseOutputWithContext(ctx context.Context) GSuitePrincipalResponseOutput { + return o +} + +// This principal represents all users of the Google Workspace domain of the customer. +func (o GSuitePrincipalResponseOutput) GsuiteDomain() pulumi.BoolOutput { + return o.ApplyT(func(v GSuitePrincipalResponse) bool { return v.GsuiteDomain }).(pulumi.BoolOutput) +} + +// This principal references a Google Workspace group name. +func (o GSuitePrincipalResponseOutput) GsuiteGroupEmail() pulumi.StringOutput { + return o.ApplyT(func(v GSuitePrincipalResponse) string { return v.GsuiteGroupEmail }).(pulumi.StringOutput) +} + +// This principal references a Google Workspace user account. +func (o GSuitePrincipalResponseOutput) GsuiteUserEmail() pulumi.StringOutput { + return o.ApplyT(func(v GSuitePrincipalResponse) string { return v.GsuiteUserEmail }).(pulumi.StringOutput) +} + +type GSuitePrincipalResponseArrayOutput struct{ *pulumi.OutputState } + +func (GSuitePrincipalResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GSuitePrincipalResponse)(nil)).Elem() +} + +func (o GSuitePrincipalResponseArrayOutput) ToGSuitePrincipalResponseArrayOutput() GSuitePrincipalResponseArrayOutput { + return o +} + +func (o GSuitePrincipalResponseArrayOutput) ToGSuitePrincipalResponseArrayOutputWithContext(ctx context.Context) GSuitePrincipalResponseArrayOutput { + return o +} + +func (o GSuitePrincipalResponseArrayOutput) Index(i pulumi.IntInput) GSuitePrincipalResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GSuitePrincipalResponse { + return vs[0].([]GSuitePrincipalResponse)[vs[1].(int)] + }).(GSuitePrincipalResponseOutput) +} + +// List of html values. +type HtmlValuesResponse struct { + // The maximum allowable length for html values is 2048 characters. + Values []string `pulumi:"values"` +} + +// List of html values. +type HtmlValuesResponseOutput struct{ *pulumi.OutputState } + +func (HtmlValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HtmlValuesResponse)(nil)).Elem() +} + +func (o HtmlValuesResponseOutput) ToHtmlValuesResponseOutput() HtmlValuesResponseOutput { + return o +} + +func (o HtmlValuesResponseOutput) ToHtmlValuesResponseOutputWithContext(ctx context.Context) HtmlValuesResponseOutput { + return o +} + +// The maximum allowable length for html values is 2048 characters. +func (o HtmlValuesResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v HtmlValuesResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +// Used to specify integer faceting options. +type IntegerFacetingOptions struct { + // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. + IntegerBuckets []string `pulumi:"integerBuckets"` +} + +// IntegerFacetingOptionsInput is an input type that accepts IntegerFacetingOptionsArgs and IntegerFacetingOptionsOutput values. +// You can construct a concrete instance of `IntegerFacetingOptionsInput` via: +// +// IntegerFacetingOptionsArgs{...} +type IntegerFacetingOptionsInput interface { + pulumi.Input + + ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput + ToIntegerFacetingOptionsOutputWithContext(context.Context) IntegerFacetingOptionsOutput +} + +// Used to specify integer faceting options. +type IntegerFacetingOptionsArgs struct { + // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. + IntegerBuckets pulumi.StringArrayInput `pulumi:"integerBuckets"` +} + +func (IntegerFacetingOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IntegerFacetingOptions)(nil)).Elem() +} + +func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput { + return i.ToIntegerFacetingOptionsOutputWithContext(context.Background()) +} + +func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsOutputWithContext(ctx context.Context) IntegerFacetingOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsOutput) +} + +func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { + return i.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) +} + +func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsOutput).ToIntegerFacetingOptionsPtrOutputWithContext(ctx) +} + +// IntegerFacetingOptionsPtrInput is an input type that accepts IntegerFacetingOptionsArgs, IntegerFacetingOptionsPtr and IntegerFacetingOptionsPtrOutput values. +// You can construct a concrete instance of `IntegerFacetingOptionsPtrInput` via: +// +// IntegerFacetingOptionsArgs{...} +// +// or: +// +// nil +type IntegerFacetingOptionsPtrInput interface { + pulumi.Input + + ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput + ToIntegerFacetingOptionsPtrOutputWithContext(context.Context) IntegerFacetingOptionsPtrOutput +} + +type integerFacetingOptionsPtrType IntegerFacetingOptionsArgs + +func IntegerFacetingOptionsPtr(v *IntegerFacetingOptionsArgs) IntegerFacetingOptionsPtrInput { + return (*integerFacetingOptionsPtrType)(v) +} + +func (*integerFacetingOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IntegerFacetingOptions)(nil)).Elem() +} + +func (i *integerFacetingOptionsPtrType) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { + return i.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) +} + +func (i *integerFacetingOptionsPtrType) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsPtrOutput) +} + +// Used to specify integer faceting options. +type IntegerFacetingOptionsOutput struct{ *pulumi.OutputState } + +func (IntegerFacetingOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IntegerFacetingOptions)(nil)).Elem() +} + +func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput { + return o +} + +func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsOutputWithContext(ctx context.Context) IntegerFacetingOptionsOutput { + return o +} + +func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { + return o.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) +} + +func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegerFacetingOptions) *IntegerFacetingOptions { + return &v + }).(IntegerFacetingOptionsPtrOutput) +} + +// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. +func (o IntegerFacetingOptionsOutput) IntegerBuckets() pulumi.StringArrayOutput { + return o.ApplyT(func(v IntegerFacetingOptions) []string { return v.IntegerBuckets }).(pulumi.StringArrayOutput) +} + +type IntegerFacetingOptionsPtrOutput struct{ *pulumi.OutputState } + +func (IntegerFacetingOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IntegerFacetingOptions)(nil)).Elem() +} + +func (o IntegerFacetingOptionsPtrOutput) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { + return o +} + +func (o IntegerFacetingOptionsPtrOutput) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { + return o +} + +func (o IntegerFacetingOptionsPtrOutput) Elem() IntegerFacetingOptionsOutput { + return o.ApplyT(func(v *IntegerFacetingOptions) IntegerFacetingOptions { + if v != nil { + return *v + } + var ret IntegerFacetingOptions + return ret + }).(IntegerFacetingOptionsOutput) +} + +// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. +func (o IntegerFacetingOptionsPtrOutput) IntegerBuckets() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IntegerFacetingOptions) []string { + if v == nil { + return nil + } + return v.IntegerBuckets + }).(pulumi.StringArrayOutput) +} + +// Used to specify integer faceting options. +type IntegerFacetingOptionsResponse struct { + // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. + IntegerBuckets []string `pulumi:"integerBuckets"` +} + +// Used to specify integer faceting options. +type IntegerFacetingOptionsResponseOutput struct{ *pulumi.OutputState } + +func (IntegerFacetingOptionsResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IntegerFacetingOptionsResponse)(nil)).Elem() +} + +func (o IntegerFacetingOptionsResponseOutput) ToIntegerFacetingOptionsResponseOutput() IntegerFacetingOptionsResponseOutput { + return o +} + +func (o IntegerFacetingOptionsResponseOutput) ToIntegerFacetingOptionsResponseOutputWithContext(ctx context.Context) IntegerFacetingOptionsResponseOutput { + return o +} + +// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. +func (o IntegerFacetingOptionsResponseOutput) IntegerBuckets() pulumi.StringArrayOutput { + return o.ApplyT(func(v IntegerFacetingOptionsResponse) []string { return v.IntegerBuckets }).(pulumi.StringArrayOutput) +} + +// List of integer values. +type IntegerValuesResponse struct { + Values []string `pulumi:"values"` +} + +// List of integer values. +type IntegerValuesResponseOutput struct{ *pulumi.OutputState } + +func (IntegerValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IntegerValuesResponse)(nil)).Elem() +} + +func (o IntegerValuesResponseOutput) ToIntegerValuesResponseOutput() IntegerValuesResponseOutput { + return o +} + +func (o IntegerValuesResponseOutput) ToIntegerValuesResponseOutputWithContext(ctx context.Context) IntegerValuesResponseOutput { + return o +} + +func (o IntegerValuesResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v IntegerValuesResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +// Represents an interaction between a user and an item. +type InteractionResponse struct { + // The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. + InteractionTime string `pulumi:"interactionTime"` + // The user that acted on the item. + Principal PrincipalResponse `pulumi:"principal"` + Type string `pulumi:"type"` +} + +// Represents an interaction between a user and an item. +type InteractionResponseOutput struct{ *pulumi.OutputState } + +func (InteractionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*InteractionResponse)(nil)).Elem() +} + +func (o InteractionResponseOutput) ToInteractionResponseOutput() InteractionResponseOutput { + return o +} + +func (o InteractionResponseOutput) ToInteractionResponseOutputWithContext(ctx context.Context) InteractionResponseOutput { + return o +} + +// The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. +func (o InteractionResponseOutput) InteractionTime() pulumi.StringOutput { + return o.ApplyT(func(v InteractionResponse) string { return v.InteractionTime }).(pulumi.StringOutput) +} + +// The user that acted on the item. +func (o InteractionResponseOutput) Principal() PrincipalResponseOutput { + return o.ApplyT(func(v InteractionResponse) PrincipalResponse { return v.Principal }).(PrincipalResponseOutput) +} + +func (o InteractionResponseOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v InteractionResponse) string { return v.Type }).(pulumi.StringOutput) +} + +type InteractionResponseArrayOutput struct{ *pulumi.OutputState } + +func (InteractionResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]InteractionResponse)(nil)).Elem() +} + +func (o InteractionResponseArrayOutput) ToInteractionResponseArrayOutput() InteractionResponseArrayOutput { + return o +} + +func (o InteractionResponseArrayOutput) ToInteractionResponseArrayOutputWithContext(ctx context.Context) InteractionResponseArrayOutput { + return o +} + +func (o InteractionResponseArrayOutput) Index(i pulumi.IntInput) InteractionResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) InteractionResponse { + return vs[0].([]InteractionResponse)[vs[1].(int)] + }).(InteractionResponseOutput) +} + +// Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). +type ItemAclResponse struct { + // Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. + AclInheritanceType string `pulumi:"aclInheritanceType"` + // List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. + DeniedReaders []PrincipalResponse `pulumi:"deniedReaders"` + // The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. + InheritAclFrom string `pulumi:"inheritAclFrom"` + // Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. + Owners []PrincipalResponse `pulumi:"owners"` + // List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. + Readers []PrincipalResponse `pulumi:"readers"` +} + +// Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). +type ItemAclResponseOutput struct{ *pulumi.OutputState } + +func (ItemAclResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ItemAclResponse)(nil)).Elem() +} + +func (o ItemAclResponseOutput) ToItemAclResponseOutput() ItemAclResponseOutput { + return o +} + +func (o ItemAclResponseOutput) ToItemAclResponseOutputWithContext(ctx context.Context) ItemAclResponseOutput { + return o +} + +// Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. +func (o ItemAclResponseOutput) AclInheritanceType() pulumi.StringOutput { + return o.ApplyT(func(v ItemAclResponse) string { return v.AclInheritanceType }).(pulumi.StringOutput) +} + +// List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. +func (o ItemAclResponseOutput) DeniedReaders() PrincipalResponseArrayOutput { + return o.ApplyT(func(v ItemAclResponse) []PrincipalResponse { return v.DeniedReaders }).(PrincipalResponseArrayOutput) +} + +// The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. +func (o ItemAclResponseOutput) InheritAclFrom() pulumi.StringOutput { + return o.ApplyT(func(v ItemAclResponse) string { return v.InheritAclFrom }).(pulumi.StringOutput) +} + +// Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. +func (o ItemAclResponseOutput) Owners() PrincipalResponseArrayOutput { + return o.ApplyT(func(v ItemAclResponse) []PrincipalResponse { return v.Owners }).(PrincipalResponseArrayOutput) +} + +// List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. +func (o ItemAclResponseOutput) Readers() PrincipalResponseArrayOutput { + return o.ApplyT(func(v ItemAclResponse) []PrincipalResponse { return v.Readers }).(PrincipalResponseArrayOutput) +} + +// Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. +type ItemContentResponse struct { + // Upload reference ID of a previously uploaded content via write method. + ContentDataRef UploadItemRefResponse `pulumi:"contentDataRef"` + ContentFormat string `pulumi:"contentFormat"` + // Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + Hash string `pulumi:"hash"` + // Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). + InlineContent string `pulumi:"inlineContent"` +} + +// Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. +type ItemContentResponseOutput struct{ *pulumi.OutputState } + +func (ItemContentResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ItemContentResponse)(nil)).Elem() +} + +func (o ItemContentResponseOutput) ToItemContentResponseOutput() ItemContentResponseOutput { + return o +} + +func (o ItemContentResponseOutput) ToItemContentResponseOutputWithContext(ctx context.Context) ItemContentResponseOutput { + return o +} + +// Upload reference ID of a previously uploaded content via write method. +func (o ItemContentResponseOutput) ContentDataRef() UploadItemRefResponseOutput { + return o.ApplyT(func(v ItemContentResponse) UploadItemRefResponse { return v.ContentDataRef }).(UploadItemRefResponseOutput) +} + +func (o ItemContentResponseOutput) ContentFormat() pulumi.StringOutput { + return o.ApplyT(func(v ItemContentResponse) string { return v.ContentFormat }).(pulumi.StringOutput) +} + +// Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. +func (o ItemContentResponseOutput) Hash() pulumi.StringOutput { + return o.ApplyT(func(v ItemContentResponse) string { return v.Hash }).(pulumi.StringOutput) +} + +// Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). +func (o ItemContentResponseOutput) InlineContent() pulumi.StringOutput { + return o.ApplyT(func(v ItemContentResponse) string { return v.InlineContent }).(pulumi.StringOutput) +} + +// Available metadata fields for the item. +type ItemMetadataResponse struct { + // The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. + ContainerName string `pulumi:"containerName"` + // The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. + ContentLanguage string `pulumi:"contentLanguage"` + // A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. + ContextAttributes []ContextAttributeResponse `pulumi:"contextAttributes"` + // The time when the item was created in the source repository. + CreateTime string `pulumi:"createTime"` + // Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + Hash string `pulumi:"hash"` + // A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. + Interactions []InteractionResponse `pulumi:"interactions"` + // Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. + Keywords []string `pulumi:"keywords"` + // The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. + MimeType string `pulumi:"mimeType"` + // The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. + ObjectType string `pulumi:"objectType"` + // Additional search quality metadata of the item + SearchQualityMetadata SearchQualityMetadataResponse `pulumi:"searchQualityMetadata"` + // Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. + SourceRepositoryUrl string `pulumi:"sourceRepositoryUrl"` + // The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. + Title string `pulumi:"title"` + // The time when the item was last modified in the source repository. + UpdateTime string `pulumi:"updateTime"` +} + +// Available metadata fields for the item. +type ItemMetadataResponseOutput struct{ *pulumi.OutputState } + +func (ItemMetadataResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ItemMetadataResponse)(nil)).Elem() +} + +func (o ItemMetadataResponseOutput) ToItemMetadataResponseOutput() ItemMetadataResponseOutput { + return o +} + +func (o ItemMetadataResponseOutput) ToItemMetadataResponseOutputWithContext(ctx context.Context) ItemMetadataResponseOutput { + return o +} + +// The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. +func (o ItemMetadataResponseOutput) ContainerName() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.ContainerName }).(pulumi.StringOutput) +} + +// The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. +func (o ItemMetadataResponseOutput) ContentLanguage() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.ContentLanguage }).(pulumi.StringOutput) +} + +// A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. +func (o ItemMetadataResponseOutput) ContextAttributes() ContextAttributeResponseArrayOutput { + return o.ApplyT(func(v ItemMetadataResponse) []ContextAttributeResponse { return v.ContextAttributes }).(ContextAttributeResponseArrayOutput) +} + +// The time when the item was created in the source repository. +func (o ItemMetadataResponseOutput) CreateTime() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.CreateTime }).(pulumi.StringOutput) +} + +// Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. +func (o ItemMetadataResponseOutput) Hash() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.Hash }).(pulumi.StringOutput) +} + +// A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. +func (o ItemMetadataResponseOutput) Interactions() InteractionResponseArrayOutput { + return o.ApplyT(func(v ItemMetadataResponse) []InteractionResponse { return v.Interactions }).(InteractionResponseArrayOutput) +} + +// Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. +func (o ItemMetadataResponseOutput) Keywords() pulumi.StringArrayOutput { + return o.ApplyT(func(v ItemMetadataResponse) []string { return v.Keywords }).(pulumi.StringArrayOutput) +} + +// The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. +func (o ItemMetadataResponseOutput) MimeType() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.MimeType }).(pulumi.StringOutput) +} + +// The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. +func (o ItemMetadataResponseOutput) ObjectType() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.ObjectType }).(pulumi.StringOutput) +} + +// Additional search quality metadata of the item +func (o ItemMetadataResponseOutput) SearchQualityMetadata() SearchQualityMetadataResponseOutput { + return o.ApplyT(func(v ItemMetadataResponse) SearchQualityMetadataResponse { return v.SearchQualityMetadata }).(SearchQualityMetadataResponseOutput) +} + +// Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. +func (o ItemMetadataResponseOutput) SourceRepositoryUrl() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.SourceRepositoryUrl }).(pulumi.StringOutput) +} + +// The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. +func (o ItemMetadataResponseOutput) Title() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.Title }).(pulumi.StringOutput) +} + +// The time when the item was last modified in the source repository. +func (o ItemMetadataResponseOutput) UpdateTime() pulumi.StringOutput { + return o.ApplyT(func(v ItemMetadataResponse) string { return v.UpdateTime }).(pulumi.StringOutput) +} + +// This contains item's status and any errors. +type ItemStatusResponse struct { + // Status code. + Code string `pulumi:"code"` + // Error details in case the item is in ERROR state. + ProcessingErrors []ProcessingErrorResponse `pulumi:"processingErrors"` + // Repository error reported by connector. + RepositoryErrors []RepositoryErrorResponse `pulumi:"repositoryErrors"` +} + +// This contains item's status and any errors. +type ItemStatusResponseOutput struct{ *pulumi.OutputState } + +func (ItemStatusResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ItemStatusResponse)(nil)).Elem() +} + +func (o ItemStatusResponseOutput) ToItemStatusResponseOutput() ItemStatusResponseOutput { + return o +} + +func (o ItemStatusResponseOutput) ToItemStatusResponseOutputWithContext(ctx context.Context) ItemStatusResponseOutput { + return o +} + +// Status code. +func (o ItemStatusResponseOutput) Code() pulumi.StringOutput { + return o.ApplyT(func(v ItemStatusResponse) string { return v.Code }).(pulumi.StringOutput) +} + +// Error details in case the item is in ERROR state. +func (o ItemStatusResponseOutput) ProcessingErrors() ProcessingErrorResponseArrayOutput { + return o.ApplyT(func(v ItemStatusResponse) []ProcessingErrorResponse { return v.ProcessingErrors }).(ProcessingErrorResponseArrayOutput) +} + +// Repository error reported by connector. +func (o ItemStatusResponseOutput) RepositoryErrors() RepositoryErrorResponseArrayOutput { + return o.ApplyT(func(v ItemStatusResponse) []RepositoryErrorResponse { return v.RepositoryErrors }).(RepositoryErrorResponseArrayOutput) +} + +// Available structured data fields for the item. +type ItemStructuredDataResponse struct { + // Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + Hash string `pulumi:"hash"` + // The structured data object that should conform to a registered object definition in the schema for the data source. + Object StructuredDataObjectResponse `pulumi:"object"` +} + +// Available structured data fields for the item. +type ItemStructuredDataResponseOutput struct{ *pulumi.OutputState } + +func (ItemStructuredDataResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ItemStructuredDataResponse)(nil)).Elem() +} + +func (o ItemStructuredDataResponseOutput) ToItemStructuredDataResponseOutput() ItemStructuredDataResponseOutput { + return o +} + +func (o ItemStructuredDataResponseOutput) ToItemStructuredDataResponseOutputWithContext(ctx context.Context) ItemStructuredDataResponseOutput { + return o +} + +// Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. +func (o ItemStructuredDataResponseOutput) Hash() pulumi.StringOutput { + return o.ApplyT(func(v ItemStructuredDataResponse) string { return v.Hash }).(pulumi.StringOutput) +} + +// The structured data object that should conform to a registered object definition in the schema for the data source. +func (o ItemStructuredDataResponseOutput) Object() StructuredDataObjectResponseOutput { + return o.ApplyT(func(v ItemStructuredDataResponse) StructuredDataObjectResponse { return v.Object }).(StructuredDataObjectResponseOutput) +} + +// A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. +type NamedPropertyResponse struct { + BooleanValue bool `pulumi:"booleanValue"` + DateValues DateValuesResponse `pulumi:"dateValues"` + DoubleValues DoubleValuesResponse `pulumi:"doubleValues"` + EnumValues EnumValuesResponse `pulumi:"enumValues"` + HtmlValues HtmlValuesResponse `pulumi:"htmlValues"` + IntegerValues IntegerValuesResponse `pulumi:"integerValues"` + // The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. + Name string `pulumi:"name"` + ObjectValues ObjectValuesResponse `pulumi:"objectValues"` + TextValues TextValuesResponse `pulumi:"textValues"` + TimestampValues TimestampValuesResponse `pulumi:"timestampValues"` +} -func (GSuitePrincipalArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GSuitePrincipal)(nil)).Elem() +// A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. +type NamedPropertyResponseOutput struct{ *pulumi.OutputState } + +func (NamedPropertyResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*NamedPropertyResponse)(nil)).Elem() } -func (o GSuitePrincipalArrayOutput) ToGSuitePrincipalArrayOutput() GSuitePrincipalArrayOutput { +func (o NamedPropertyResponseOutput) ToNamedPropertyResponseOutput() NamedPropertyResponseOutput { return o } -func (o GSuitePrincipalArrayOutput) ToGSuitePrincipalArrayOutputWithContext(ctx context.Context) GSuitePrincipalArrayOutput { +func (o NamedPropertyResponseOutput) ToNamedPropertyResponseOutputWithContext(ctx context.Context) NamedPropertyResponseOutput { return o } -func (o GSuitePrincipalArrayOutput) Index(i pulumi.IntInput) GSuitePrincipalOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GSuitePrincipal { - return vs[0].([]GSuitePrincipal)[vs[1].(int)] - }).(GSuitePrincipalOutput) +func (o NamedPropertyResponseOutput) BooleanValue() pulumi.BoolOutput { + return o.ApplyT(func(v NamedPropertyResponse) bool { return v.BooleanValue }).(pulumi.BoolOutput) } -type GSuitePrincipalResponse struct { - // This principal represents all users of the Google Workspace domain of the customer. - GsuiteDomain bool `pulumi:"gsuiteDomain"` - // This principal references a Google Workspace group name. - GsuiteGroupEmail string `pulumi:"gsuiteGroupEmail"` - // This principal references a Google Workspace user account. - GsuiteUserEmail string `pulumi:"gsuiteUserEmail"` +func (o NamedPropertyResponseOutput) DateValues() DateValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) DateValuesResponse { return v.DateValues }).(DateValuesResponseOutput) } -type GSuitePrincipalResponseOutput struct{ *pulumi.OutputState } +func (o NamedPropertyResponseOutput) DoubleValues() DoubleValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) DoubleValuesResponse { return v.DoubleValues }).(DoubleValuesResponseOutput) +} -func (GSuitePrincipalResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GSuitePrincipalResponse)(nil)).Elem() +func (o NamedPropertyResponseOutput) EnumValues() EnumValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) EnumValuesResponse { return v.EnumValues }).(EnumValuesResponseOutput) } -func (o GSuitePrincipalResponseOutput) ToGSuitePrincipalResponseOutput() GSuitePrincipalResponseOutput { - return o +func (o NamedPropertyResponseOutput) HtmlValues() HtmlValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) HtmlValuesResponse { return v.HtmlValues }).(HtmlValuesResponseOutput) } -func (o GSuitePrincipalResponseOutput) ToGSuitePrincipalResponseOutputWithContext(ctx context.Context) GSuitePrincipalResponseOutput { - return o +func (o NamedPropertyResponseOutput) IntegerValues() IntegerValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) IntegerValuesResponse { return v.IntegerValues }).(IntegerValuesResponseOutput) } -// This principal represents all users of the Google Workspace domain of the customer. -func (o GSuitePrincipalResponseOutput) GsuiteDomain() pulumi.BoolOutput { - return o.ApplyT(func(v GSuitePrincipalResponse) bool { return v.GsuiteDomain }).(pulumi.BoolOutput) +// The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. +func (o NamedPropertyResponseOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v NamedPropertyResponse) string { return v.Name }).(pulumi.StringOutput) } -// This principal references a Google Workspace group name. -func (o GSuitePrincipalResponseOutput) GsuiteGroupEmail() pulumi.StringOutput { - return o.ApplyT(func(v GSuitePrincipalResponse) string { return v.GsuiteGroupEmail }).(pulumi.StringOutput) +func (o NamedPropertyResponseOutput) ObjectValues() ObjectValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) ObjectValuesResponse { return v.ObjectValues }).(ObjectValuesResponseOutput) } -// This principal references a Google Workspace user account. -func (o GSuitePrincipalResponseOutput) GsuiteUserEmail() pulumi.StringOutput { - return o.ApplyT(func(v GSuitePrincipalResponse) string { return v.GsuiteUserEmail }).(pulumi.StringOutput) +func (o NamedPropertyResponseOutput) TextValues() TextValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) TextValuesResponse { return v.TextValues }).(TextValuesResponseOutput) } -type GSuitePrincipalResponseArrayOutput struct{ *pulumi.OutputState } +func (o NamedPropertyResponseOutput) TimestampValues() TimestampValuesResponseOutput { + return o.ApplyT(func(v NamedPropertyResponse) TimestampValuesResponse { return v.TimestampValues }).(TimestampValuesResponseOutput) +} -func (GSuitePrincipalResponseArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GSuitePrincipalResponse)(nil)).Elem() +type NamedPropertyResponseArrayOutput struct{ *pulumi.OutputState } + +func (NamedPropertyResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]NamedPropertyResponse)(nil)).Elem() } -func (o GSuitePrincipalResponseArrayOutput) ToGSuitePrincipalResponseArrayOutput() GSuitePrincipalResponseArrayOutput { +func (o NamedPropertyResponseArrayOutput) ToNamedPropertyResponseArrayOutput() NamedPropertyResponseArrayOutput { return o } -func (o GSuitePrincipalResponseArrayOutput) ToGSuitePrincipalResponseArrayOutputWithContext(ctx context.Context) GSuitePrincipalResponseArrayOutput { +func (o NamedPropertyResponseArrayOutput) ToNamedPropertyResponseArrayOutputWithContext(ctx context.Context) NamedPropertyResponseArrayOutput { return o } -func (o GSuitePrincipalResponseArrayOutput) Index(i pulumi.IntInput) GSuitePrincipalResponseOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GSuitePrincipalResponse { - return vs[0].([]GSuitePrincipalResponse)[vs[1].(int)] - }).(GSuitePrincipalResponseOutput) +func (o NamedPropertyResponseArrayOutput) Index(i pulumi.IntInput) NamedPropertyResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) NamedPropertyResponse { + return vs[0].([]NamedPropertyResponse)[vs[1].(int)] + }).(NamedPropertyResponseOutput) } -// Used to specify integer faceting options. -type IntegerFacetingOptions struct { - // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. - IntegerBuckets []string `pulumi:"integerBuckets"` +// List of object values. +type ObjectValuesResponse struct { + Values []StructuredDataObjectResponse `pulumi:"values"` } -// IntegerFacetingOptionsInput is an input type that accepts IntegerFacetingOptionsArgs and IntegerFacetingOptionsOutput values. -// You can construct a concrete instance of `IntegerFacetingOptionsInput` via: -// -// IntegerFacetingOptionsArgs{...} -type IntegerFacetingOptionsInput interface { - pulumi.Input +// List of object values. +type ObjectValuesResponseOutput struct{ *pulumi.OutputState } - ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput - ToIntegerFacetingOptionsOutputWithContext(context.Context) IntegerFacetingOptionsOutput +func (ObjectValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ObjectValuesResponse)(nil)).Elem() } -// Used to specify integer faceting options. -type IntegerFacetingOptionsArgs struct { - // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. - IntegerBuckets pulumi.StringArrayInput `pulumi:"integerBuckets"` +func (o ObjectValuesResponseOutput) ToObjectValuesResponseOutput() ObjectValuesResponseOutput { + return o } -func (IntegerFacetingOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IntegerFacetingOptions)(nil)).Elem() +func (o ObjectValuesResponseOutput) ToObjectValuesResponseOutputWithContext(ctx context.Context) ObjectValuesResponseOutput { + return o } -func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput { - return i.ToIntegerFacetingOptionsOutputWithContext(context.Background()) +func (o ObjectValuesResponseOutput) Values() StructuredDataObjectResponseArrayOutput { + return o.ApplyT(func(v ObjectValuesResponse) []StructuredDataObjectResponse { return v.Values }).(StructuredDataObjectResponseArrayOutput) } -func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsOutputWithContext(ctx context.Context) IntegerFacetingOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsOutput) +// Reference to a user, group, or domain. +type PrincipalResponse struct { + // This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} + GroupResourceName string `pulumi:"groupResourceName"` + // This principal is a Google Workspace user, group or domain. + GsuitePrincipal GSuitePrincipalResponse `pulumi:"gsuitePrincipal"` + // This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} + UserResourceName string `pulumi:"userResourceName"` } -func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { - return i.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) -} +// Reference to a user, group, or domain. +type PrincipalResponseOutput struct{ *pulumi.OutputState } -func (i IntegerFacetingOptionsArgs) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsOutput).ToIntegerFacetingOptionsPtrOutputWithContext(ctx) +func (PrincipalResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PrincipalResponse)(nil)).Elem() } -// IntegerFacetingOptionsPtrInput is an input type that accepts IntegerFacetingOptionsArgs, IntegerFacetingOptionsPtr and IntegerFacetingOptionsPtrOutput values. -// You can construct a concrete instance of `IntegerFacetingOptionsPtrInput` via: -// -// IntegerFacetingOptionsArgs{...} -// -// or: -// -// nil -type IntegerFacetingOptionsPtrInput interface { - pulumi.Input - - ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput - ToIntegerFacetingOptionsPtrOutputWithContext(context.Context) IntegerFacetingOptionsPtrOutput +func (o PrincipalResponseOutput) ToPrincipalResponseOutput() PrincipalResponseOutput { + return o } -type integerFacetingOptionsPtrType IntegerFacetingOptionsArgs - -func IntegerFacetingOptionsPtr(v *IntegerFacetingOptionsArgs) IntegerFacetingOptionsPtrInput { - return (*integerFacetingOptionsPtrType)(v) +func (o PrincipalResponseOutput) ToPrincipalResponseOutputWithContext(ctx context.Context) PrincipalResponseOutput { + return o } -func (*integerFacetingOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**IntegerFacetingOptions)(nil)).Elem() +// This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} +func (o PrincipalResponseOutput) GroupResourceName() pulumi.StringOutput { + return o.ApplyT(func(v PrincipalResponse) string { return v.GroupResourceName }).(pulumi.StringOutput) } -func (i *integerFacetingOptionsPtrType) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { - return i.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) +// This principal is a Google Workspace user, group or domain. +func (o PrincipalResponseOutput) GsuitePrincipal() GSuitePrincipalResponseOutput { + return o.ApplyT(func(v PrincipalResponse) GSuitePrincipalResponse { return v.GsuitePrincipal }).(GSuitePrincipalResponseOutput) } -func (i *integerFacetingOptionsPtrType) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IntegerFacetingOptionsPtrOutput) +// This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} +func (o PrincipalResponseOutput) UserResourceName() pulumi.StringOutput { + return o.ApplyT(func(v PrincipalResponse) string { return v.UserResourceName }).(pulumi.StringOutput) } -// Used to specify integer faceting options. -type IntegerFacetingOptionsOutput struct{ *pulumi.OutputState } +type PrincipalResponseArrayOutput struct{ *pulumi.OutputState } -func (IntegerFacetingOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IntegerFacetingOptions)(nil)).Elem() +func (PrincipalResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PrincipalResponse)(nil)).Elem() } -func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsOutput() IntegerFacetingOptionsOutput { +func (o PrincipalResponseArrayOutput) ToPrincipalResponseArrayOutput() PrincipalResponseArrayOutput { return o } -func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsOutputWithContext(ctx context.Context) IntegerFacetingOptionsOutput { +func (o PrincipalResponseArrayOutput) ToPrincipalResponseArrayOutputWithContext(ctx context.Context) PrincipalResponseArrayOutput { return o } -func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { - return o.ToIntegerFacetingOptionsPtrOutputWithContext(context.Background()) -} - -func (o IntegerFacetingOptionsOutput) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegerFacetingOptions) *IntegerFacetingOptions { - return &v - }).(IntegerFacetingOptionsPtrOutput) +func (o PrincipalResponseArrayOutput) Index(i pulumi.IntInput) PrincipalResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PrincipalResponse { + return vs[0].([]PrincipalResponse)[vs[1].(int)] + }).(PrincipalResponseOutput) } -// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. -func (o IntegerFacetingOptionsOutput) IntegerBuckets() pulumi.StringArrayOutput { - return o.ApplyT(func(v IntegerFacetingOptions) []string { return v.IntegerBuckets }).(pulumi.StringArrayOutput) +type ProcessingErrorResponse struct { + // Error code indicating the nature of the error. + Code string `pulumi:"code"` + // The description of the error. + ErrorMessage string `pulumi:"errorMessage"` + // In case the item fields are invalid, this field contains the details about the validation errors. + FieldViolations []FieldViolationResponse `pulumi:"fieldViolations"` } -type IntegerFacetingOptionsPtrOutput struct{ *pulumi.OutputState } +type ProcessingErrorResponseOutput struct{ *pulumi.OutputState } -func (IntegerFacetingOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IntegerFacetingOptions)(nil)).Elem() +func (ProcessingErrorResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ProcessingErrorResponse)(nil)).Elem() } -func (o IntegerFacetingOptionsPtrOutput) ToIntegerFacetingOptionsPtrOutput() IntegerFacetingOptionsPtrOutput { +func (o ProcessingErrorResponseOutput) ToProcessingErrorResponseOutput() ProcessingErrorResponseOutput { return o } -func (o IntegerFacetingOptionsPtrOutput) ToIntegerFacetingOptionsPtrOutputWithContext(ctx context.Context) IntegerFacetingOptionsPtrOutput { +func (o ProcessingErrorResponseOutput) ToProcessingErrorResponseOutputWithContext(ctx context.Context) ProcessingErrorResponseOutput { return o } -func (o IntegerFacetingOptionsPtrOutput) Elem() IntegerFacetingOptionsOutput { - return o.ApplyT(func(v *IntegerFacetingOptions) IntegerFacetingOptions { - if v != nil { - return *v - } - var ret IntegerFacetingOptions - return ret - }).(IntegerFacetingOptionsOutput) +// Error code indicating the nature of the error. +func (o ProcessingErrorResponseOutput) Code() pulumi.StringOutput { + return o.ApplyT(func(v ProcessingErrorResponse) string { return v.Code }).(pulumi.StringOutput) } -// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. -func (o IntegerFacetingOptionsPtrOutput) IntegerBuckets() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IntegerFacetingOptions) []string { - if v == nil { - return nil - } - return v.IntegerBuckets - }).(pulumi.StringArrayOutput) +// The description of the error. +func (o ProcessingErrorResponseOutput) ErrorMessage() pulumi.StringOutput { + return o.ApplyT(func(v ProcessingErrorResponse) string { return v.ErrorMessage }).(pulumi.StringOutput) } -// Used to specify integer faceting options. -type IntegerFacetingOptionsResponse struct { - // Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. - IntegerBuckets []string `pulumi:"integerBuckets"` +// In case the item fields are invalid, this field contains the details about the validation errors. +func (o ProcessingErrorResponseOutput) FieldViolations() FieldViolationResponseArrayOutput { + return o.ApplyT(func(v ProcessingErrorResponse) []FieldViolationResponse { return v.FieldViolations }).(FieldViolationResponseArrayOutput) } -// Used to specify integer faceting options. -type IntegerFacetingOptionsResponseOutput struct{ *pulumi.OutputState } +type ProcessingErrorResponseArrayOutput struct{ *pulumi.OutputState } -func (IntegerFacetingOptionsResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IntegerFacetingOptionsResponse)(nil)).Elem() +func (ProcessingErrorResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ProcessingErrorResponse)(nil)).Elem() } -func (o IntegerFacetingOptionsResponseOutput) ToIntegerFacetingOptionsResponseOutput() IntegerFacetingOptionsResponseOutput { +func (o ProcessingErrorResponseArrayOutput) ToProcessingErrorResponseArrayOutput() ProcessingErrorResponseArrayOutput { return o } -func (o IntegerFacetingOptionsResponseOutput) ToIntegerFacetingOptionsResponseOutputWithContext(ctx context.Context) IntegerFacetingOptionsResponseOutput { +func (o ProcessingErrorResponseArrayOutput) ToProcessingErrorResponseArrayOutputWithContext(ctx context.Context) ProcessingErrorResponseArrayOutput { return o } -// Buckets for given integer values should be in strictly ascending order. For example, if values supplied are (1,5,10,100), the following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}. -func (o IntegerFacetingOptionsResponseOutput) IntegerBuckets() pulumi.StringArrayOutput { - return o.ApplyT(func(v IntegerFacetingOptionsResponse) []string { return v.IntegerBuckets }).(pulumi.StringArrayOutput) +func (o ProcessingErrorResponseArrayOutput) Index(i pulumi.IntInput) ProcessingErrorResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ProcessingErrorResponse { + return vs[0].([]ProcessingErrorResponse)[vs[1].(int)] + }).(ProcessingErrorResponseOutput) } // Default options to interpret user query. @@ -1728,6 +2689,66 @@ func (o QueryInterpretationConfigResponseOutput) ForceVerbatimMode() pulumi.Bool return o.ApplyT(func(v QueryInterpretationConfigResponse) bool { return v.ForceVerbatimMode }).(pulumi.BoolOutput) } +// Errors when the connector is communicating to the source repository. +type RepositoryErrorResponse struct { + // Message that describes the error. The maximum allowable length of the message is 8192 characters. + ErrorMessage string `pulumi:"errorMessage"` + // Error codes. Matches the definition of HTTP status codes. + HttpStatusCode int `pulumi:"httpStatusCode"` + // The type of error. + Type string `pulumi:"type"` +} + +// Errors when the connector is communicating to the source repository. +type RepositoryErrorResponseOutput struct{ *pulumi.OutputState } + +func (RepositoryErrorResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RepositoryErrorResponse)(nil)).Elem() +} + +func (o RepositoryErrorResponseOutput) ToRepositoryErrorResponseOutput() RepositoryErrorResponseOutput { + return o +} + +func (o RepositoryErrorResponseOutput) ToRepositoryErrorResponseOutputWithContext(ctx context.Context) RepositoryErrorResponseOutput { + return o +} + +// Message that describes the error. The maximum allowable length of the message is 8192 characters. +func (o RepositoryErrorResponseOutput) ErrorMessage() pulumi.StringOutput { + return o.ApplyT(func(v RepositoryErrorResponse) string { return v.ErrorMessage }).(pulumi.StringOutput) +} + +// Error codes. Matches the definition of HTTP status codes. +func (o RepositoryErrorResponseOutput) HttpStatusCode() pulumi.IntOutput { + return o.ApplyT(func(v RepositoryErrorResponse) int { return v.HttpStatusCode }).(pulumi.IntOutput) +} + +// The type of error. +func (o RepositoryErrorResponseOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v RepositoryErrorResponse) string { return v.Type }).(pulumi.StringOutput) +} + +type RepositoryErrorResponseArrayOutput struct{ *pulumi.OutputState } + +func (RepositoryErrorResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RepositoryErrorResponse)(nil)).Elem() +} + +func (o RepositoryErrorResponseArrayOutput) ToRepositoryErrorResponseArrayOutput() RepositoryErrorResponseArrayOutput { + return o +} + +func (o RepositoryErrorResponseArrayOutput) ToRepositoryErrorResponseArrayOutputWithContext(ctx context.Context) RepositoryErrorResponseArrayOutput { + return o +} + +func (o RepositoryErrorResponseArrayOutput) Index(i pulumi.IntInput) RepositoryErrorResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RepositoryErrorResponse { + return vs[0].([]RepositoryErrorResponse)[vs[1].(int)] + }).(RepositoryErrorResponseOutput) +} + // Scoring configurations for a source while processing a Search or Suggest request. type ScoringConfig struct { // Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI. @@ -1920,6 +2941,32 @@ func (o ScoringConfigResponseOutput) DisablePersonalization() pulumi.BoolOutput return o.ApplyT(func(v ScoringConfigResponse) bool { return v.DisablePersonalization }).(pulumi.BoolOutput) } +// Additional search quality metadata of the item. +type SearchQualityMetadataResponse struct { + // An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. + Quality float64 `pulumi:"quality"` +} + +// Additional search quality metadata of the item. +type SearchQualityMetadataResponseOutput struct{ *pulumi.OutputState } + +func (SearchQualityMetadataResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SearchQualityMetadataResponse)(nil)).Elem() +} + +func (o SearchQualityMetadataResponseOutput) ToSearchQualityMetadataResponseOutput() SearchQualityMetadataResponseOutput { + return o +} + +func (o SearchQualityMetadataResponseOutput) ToSearchQualityMetadataResponseOutputWithContext(ctx context.Context) SearchQualityMetadataResponseOutput { + return o +} + +// An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. +func (o SearchQualityMetadataResponseOutput) Quality() pulumi.Float64Output { + return o.ApplyT(func(v SearchQualityMetadataResponse) float64 { return v.Quality }).(pulumi.Float64Output) +} + type SortOptions struct { // The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. OperatorName *string `pulumi:"operatorName"` @@ -2835,6 +3882,128 @@ func (o SourceScoringConfigResponseOutput) SourceImportance() pulumi.StringOutpu return o.ApplyT(func(v SourceScoringConfigResponse) string { return v.SourceImportance }).(pulumi.StringOutput) } +// A structured data object consisting of named properties. +type StructuredDataObjectResponse struct { + // The properties for the object. The maximum number of elements is 1000. + Properties []NamedPropertyResponse `pulumi:"properties"` +} + +// A structured data object consisting of named properties. +type StructuredDataObjectResponseOutput struct{ *pulumi.OutputState } + +func (StructuredDataObjectResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*StructuredDataObjectResponse)(nil)).Elem() +} + +func (o StructuredDataObjectResponseOutput) ToStructuredDataObjectResponseOutput() StructuredDataObjectResponseOutput { + return o +} + +func (o StructuredDataObjectResponseOutput) ToStructuredDataObjectResponseOutputWithContext(ctx context.Context) StructuredDataObjectResponseOutput { + return o +} + +// The properties for the object. The maximum number of elements is 1000. +func (o StructuredDataObjectResponseOutput) Properties() NamedPropertyResponseArrayOutput { + return o.ApplyT(func(v StructuredDataObjectResponse) []NamedPropertyResponse { return v.Properties }).(NamedPropertyResponseArrayOutput) +} + +type StructuredDataObjectResponseArrayOutput struct{ *pulumi.OutputState } + +func (StructuredDataObjectResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]StructuredDataObjectResponse)(nil)).Elem() +} + +func (o StructuredDataObjectResponseArrayOutput) ToStructuredDataObjectResponseArrayOutput() StructuredDataObjectResponseArrayOutput { + return o +} + +func (o StructuredDataObjectResponseArrayOutput) ToStructuredDataObjectResponseArrayOutputWithContext(ctx context.Context) StructuredDataObjectResponseArrayOutput { + return o +} + +func (o StructuredDataObjectResponseArrayOutput) Index(i pulumi.IntInput) StructuredDataObjectResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) StructuredDataObjectResponse { + return vs[0].([]StructuredDataObjectResponse)[vs[1].(int)] + }).(StructuredDataObjectResponseOutput) +} + +// List of text values. +type TextValuesResponse struct { + // The maximum allowable length for text values is 2048 characters. + Values []string `pulumi:"values"` +} + +// List of text values. +type TextValuesResponseOutput struct{ *pulumi.OutputState } + +func (TextValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*TextValuesResponse)(nil)).Elem() +} + +func (o TextValuesResponseOutput) ToTextValuesResponseOutput() TextValuesResponseOutput { + return o +} + +func (o TextValuesResponseOutput) ToTextValuesResponseOutputWithContext(ctx context.Context) TextValuesResponseOutput { + return o +} + +// The maximum allowable length for text values is 2048 characters. +func (o TextValuesResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v TextValuesResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +// List of timestamp values. +type TimestampValuesResponse struct { + Values []string `pulumi:"values"` +} + +// List of timestamp values. +type TimestampValuesResponseOutput struct{ *pulumi.OutputState } + +func (TimestampValuesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*TimestampValuesResponse)(nil)).Elem() +} + +func (o TimestampValuesResponseOutput) ToTimestampValuesResponseOutput() TimestampValuesResponseOutput { + return o +} + +func (o TimestampValuesResponseOutput) ToTimestampValuesResponseOutputWithContext(ctx context.Context) TimestampValuesResponseOutput { + return o +} + +func (o TimestampValuesResponseOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v TimestampValuesResponse) []string { return v.Values }).(pulumi.StringArrayOutput) +} + +// Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. +type UploadItemRefResponse struct { + // The name of the content reference. The maximum length is 2048 characters. + Name string `pulumi:"name"` +} + +// Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. +type UploadItemRefResponseOutput struct{ *pulumi.OutputState } + +func (UploadItemRefResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*UploadItemRefResponse)(nil)).Elem() +} + +func (o UploadItemRefResponseOutput) ToUploadItemRefResponseOutput() UploadItemRefResponseOutput { + return o +} + +func (o UploadItemRefResponseOutput) ToUploadItemRefResponseOutputWithContext(ctx context.Context) UploadItemRefResponseOutput { + return o +} + +// The name of the content reference. The maximum length is 2048 characters. +func (o UploadItemRefResponseOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v UploadItemRefResponse) string { return v.Name }).(pulumi.StringOutput) +} + // Definition of a single value with generic type. type Value struct { BooleanValue *bool `pulumi:"booleanValue"` @@ -3289,6 +4458,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DataSourceRestrictionArrayInput)(nil)).Elem(), DataSourceRestrictionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DateInput)(nil)).Elem(), DateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatePtrInput)(nil)).Elem(), DateArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DebugOptionsInput)(nil)).Elem(), DebugOptionsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DebugOptionsPtrInput)(nil)).Elem(), DebugOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FacetOptionsInput)(nil)).Elem(), FacetOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FacetOptionsArrayInput)(nil)).Elem(), FacetOptionsArray{}) pulumi.RegisterInputType(reflect.TypeOf((*FilterInput)(nil)).Elem(), FilterArgs{}) @@ -3321,6 +4492,8 @@ func init() { pulumi.RegisterOutputType(CompositeFilterOutput{}) pulumi.RegisterOutputType(CompositeFilterPtrOutput{}) pulumi.RegisterOutputType(CompositeFilterResponseOutput{}) + pulumi.RegisterOutputType(ContextAttributeResponseOutput{}) + pulumi.RegisterOutputType(ContextAttributeResponseArrayOutput{}) pulumi.RegisterOutputType(DataSourceRestrictionOutput{}) pulumi.RegisterOutputType(DataSourceRestrictionArrayOutput{}) pulumi.RegisterOutputType(DataSourceRestrictionResponseOutput{}) @@ -3328,10 +4501,18 @@ func init() { pulumi.RegisterOutputType(DateOutput{}) pulumi.RegisterOutputType(DatePtrOutput{}) pulumi.RegisterOutputType(DateResponseOutput{}) + pulumi.RegisterOutputType(DateResponseArrayOutput{}) + pulumi.RegisterOutputType(DateValuesResponseOutput{}) + pulumi.RegisterOutputType(DebugOptionsOutput{}) + pulumi.RegisterOutputType(DebugOptionsPtrOutput{}) + pulumi.RegisterOutputType(DoubleValuesResponseOutput{}) + pulumi.RegisterOutputType(EnumValuesResponseOutput{}) pulumi.RegisterOutputType(FacetOptionsOutput{}) pulumi.RegisterOutputType(FacetOptionsArrayOutput{}) pulumi.RegisterOutputType(FacetOptionsResponseOutput{}) pulumi.RegisterOutputType(FacetOptionsResponseArrayOutput{}) + pulumi.RegisterOutputType(FieldViolationResponseOutput{}) + pulumi.RegisterOutputType(FieldViolationResponseArrayOutput{}) pulumi.RegisterOutputType(FilterOutput{}) pulumi.RegisterOutputType(FilterPtrOutput{}) pulumi.RegisterOutputType(FilterArrayOutput{}) @@ -3345,15 +4526,34 @@ func init() { pulumi.RegisterOutputType(GSuitePrincipalArrayOutput{}) pulumi.RegisterOutputType(GSuitePrincipalResponseOutput{}) pulumi.RegisterOutputType(GSuitePrincipalResponseArrayOutput{}) + pulumi.RegisterOutputType(HtmlValuesResponseOutput{}) pulumi.RegisterOutputType(IntegerFacetingOptionsOutput{}) pulumi.RegisterOutputType(IntegerFacetingOptionsPtrOutput{}) pulumi.RegisterOutputType(IntegerFacetingOptionsResponseOutput{}) + pulumi.RegisterOutputType(IntegerValuesResponseOutput{}) + pulumi.RegisterOutputType(InteractionResponseOutput{}) + pulumi.RegisterOutputType(InteractionResponseArrayOutput{}) + pulumi.RegisterOutputType(ItemAclResponseOutput{}) + pulumi.RegisterOutputType(ItemContentResponseOutput{}) + pulumi.RegisterOutputType(ItemMetadataResponseOutput{}) + pulumi.RegisterOutputType(ItemStatusResponseOutput{}) + pulumi.RegisterOutputType(ItemStructuredDataResponseOutput{}) + pulumi.RegisterOutputType(NamedPropertyResponseOutput{}) + pulumi.RegisterOutputType(NamedPropertyResponseArrayOutput{}) + pulumi.RegisterOutputType(ObjectValuesResponseOutput{}) + pulumi.RegisterOutputType(PrincipalResponseOutput{}) + pulumi.RegisterOutputType(PrincipalResponseArrayOutput{}) + pulumi.RegisterOutputType(ProcessingErrorResponseOutput{}) + pulumi.RegisterOutputType(ProcessingErrorResponseArrayOutput{}) pulumi.RegisterOutputType(QueryInterpretationConfigOutput{}) pulumi.RegisterOutputType(QueryInterpretationConfigPtrOutput{}) pulumi.RegisterOutputType(QueryInterpretationConfigResponseOutput{}) + pulumi.RegisterOutputType(RepositoryErrorResponseOutput{}) + pulumi.RegisterOutputType(RepositoryErrorResponseArrayOutput{}) pulumi.RegisterOutputType(ScoringConfigOutput{}) pulumi.RegisterOutputType(ScoringConfigPtrOutput{}) pulumi.RegisterOutputType(ScoringConfigResponseOutput{}) + pulumi.RegisterOutputType(SearchQualityMetadataResponseOutput{}) pulumi.RegisterOutputType(SortOptionsOutput{}) pulumi.RegisterOutputType(SortOptionsPtrOutput{}) pulumi.RegisterOutputType(SortOptionsResponseOutput{}) @@ -3370,6 +4570,11 @@ func init() { pulumi.RegisterOutputType(SourceScoringConfigOutput{}) pulumi.RegisterOutputType(SourceScoringConfigPtrOutput{}) pulumi.RegisterOutputType(SourceScoringConfigResponseOutput{}) + pulumi.RegisterOutputType(StructuredDataObjectResponseOutput{}) + pulumi.RegisterOutputType(StructuredDataObjectResponseArrayOutput{}) + pulumi.RegisterOutputType(TextValuesResponseOutput{}) + pulumi.RegisterOutputType(TimestampValuesResponseOutput{}) + pulumi.RegisterOutputType(UploadItemRefResponseOutput{}) pulumi.RegisterOutputType(ValueOutput{}) pulumi.RegisterOutputType(ValuePtrOutput{}) pulumi.RegisterOutputType(ValueFilterOutput{}) diff --git a/sdk/go/google/contactcenterinsights/v1/conversation.go b/sdk/go/google/contactcenterinsights/v1/conversation.go index a04cb23b1e..488a2f673c 100644 --- a/sdk/go/google/contactcenterinsights/v1/conversation.go +++ b/sdk/go/google/contactcenterinsights/v1/conversation.go @@ -7,11 +7,12 @@ import ( "context" "reflect" + "errors" "github.com/pulumi/pulumi-google-native/sdk/go/google/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Creates a conversation. +// Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. type Conversation struct { pulumi.CustomResourceState @@ -19,8 +20,6 @@ type Conversation struct { AgentId pulumi.StringOutput `pulumi:"agentId"` // Call-specific metadata. CallMetadata GoogleCloudContactcenterinsightsV1ConversationCallMetadataResponseOutput `pulumi:"callMetadata"` - // A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - ConversationId pulumi.StringPtrOutput `pulumi:"conversationId"` // The time at which the conversation was created. CreateTime pulumi.StringOutput `pulumi:"createTime"` // The source of the audio and transcription for the conversation. @@ -65,9 +64,12 @@ type Conversation struct { func NewConversation(ctx *pulumi.Context, name string, args *ConversationArgs, opts ...pulumi.ResourceOption) (*Conversation, error) { if args == nil { - args = &ConversationArgs{} + return nil, errors.New("missing one or more required arguments") } + if args.Parent == nil { + return nil, errors.New("invalid value for required argument 'Parent'") + } replaceOnChanges := pulumi.ReplaceOnChanges([]string{ "location", "project", @@ -110,7 +112,7 @@ type conversationArgs struct { AgentId *string `pulumi:"agentId"` // Call-specific metadata. CallMetadata *GoogleCloudContactcenterinsightsV1ConversationCallMetadata `pulumi:"callMetadata"` - // A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + // Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` ConversationId *string `pulumi:"conversationId"` // The source of the audio and transcription for the conversation. DataSource *GoogleCloudContactcenterinsightsV1ConversationDataSource `pulumi:"dataSource"` @@ -127,7 +129,13 @@ type conversationArgs struct { Name *string `pulumi:"name"` // Obfuscated user ID which the customer sent to us. ObfuscatedUserId *string `pulumi:"obfuscatedUserId"` - Project *string `pulumi:"project"` + // The parent resource of the conversation. + Parent string `pulumi:"parent"` + Project *string `pulumi:"project"` + // Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `pulumi:"redactionConfig"` + // Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. + SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `pulumi:"speechConfig"` // The time at which the conversation started. StartTime *string `pulumi:"startTime"` // Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. @@ -140,7 +148,7 @@ type ConversationArgs struct { AgentId pulumi.StringPtrInput // Call-specific metadata. CallMetadata GoogleCloudContactcenterinsightsV1ConversationCallMetadataPtrInput - // A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + // Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` ConversationId pulumi.StringPtrInput // The source of the audio and transcription for the conversation. DataSource GoogleCloudContactcenterinsightsV1ConversationDataSourcePtrInput @@ -157,7 +165,13 @@ type ConversationArgs struct { Name pulumi.StringPtrInput // Obfuscated user ID which the customer sent to us. ObfuscatedUserId pulumi.StringPtrInput - Project pulumi.StringPtrInput + // The parent resource of the conversation. + Parent pulumi.StringInput + Project pulumi.StringPtrInput + // Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + RedactionConfig GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput + // Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. + SpeechConfig GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput // The time at which the conversation started. StartTime pulumi.StringPtrInput // Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. @@ -213,11 +227,6 @@ func (o ConversationOutput) CallMetadata() GoogleCloudContactcenterinsightsV1Con }).(GoogleCloudContactcenterinsightsV1ConversationCallMetadataResponseOutput) } -// A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` -func (o ConversationOutput) ConversationId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Conversation) pulumi.StringPtrOutput { return v.ConversationId }).(pulumi.StringPtrOutput) -} - // The time at which the conversation was created. func (o ConversationOutput) CreateTime() pulumi.StringOutput { return o.ApplyT(func(v *Conversation) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) diff --git a/sdk/go/google/contactcenterinsights/v1/pulumiTypes.go b/sdk/go/google/contactcenterinsights/v1/pulumiTypes.go index f5837a6815..28933d9f81 100644 --- a/sdk/go/google/contactcenterinsights/v1/pulumiTypes.go +++ b/sdk/go/google/contactcenterinsights/v1/pulumiTypes.go @@ -3592,6 +3592,165 @@ func (o GoogleCloudContactcenterinsightsV1PhraseMatchRuleResponseArrayOutput) In }).(GoogleCloudContactcenterinsightsV1PhraseMatchRuleResponseOutput) } +// DLP resources used for redaction while ingesting conversations. +type GoogleCloudContactcenterinsightsV1RedactionConfig struct { + // The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate *string `pulumi:"deidentifyTemplate"` + // The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + InspectTemplate *string `pulumi:"inspectTemplate"` +} + +// GoogleCloudContactcenterinsightsV1RedactionConfigInput is an input type that accepts GoogleCloudContactcenterinsightsV1RedactionConfigArgs and GoogleCloudContactcenterinsightsV1RedactionConfigOutput values. +// You can construct a concrete instance of `GoogleCloudContactcenterinsightsV1RedactionConfigInput` via: +// +// GoogleCloudContactcenterinsightsV1RedactionConfigArgs{...} +type GoogleCloudContactcenterinsightsV1RedactionConfigInput interface { + pulumi.Input + + ToGoogleCloudContactcenterinsightsV1RedactionConfigOutput() GoogleCloudContactcenterinsightsV1RedactionConfigOutput + ToGoogleCloudContactcenterinsightsV1RedactionConfigOutputWithContext(context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigOutput +} + +// DLP resources used for redaction while ingesting conversations. +type GoogleCloudContactcenterinsightsV1RedactionConfigArgs struct { + // The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + DeidentifyTemplate pulumi.StringPtrInput `pulumi:"deidentifyTemplate"` + // The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + InspectTemplate pulumi.StringPtrInput `pulumi:"inspectTemplate"` +} + +func (GoogleCloudContactcenterinsightsV1RedactionConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudContactcenterinsightsV1RedactionConfig)(nil)).Elem() +} + +func (i GoogleCloudContactcenterinsightsV1RedactionConfigArgs) ToGoogleCloudContactcenterinsightsV1RedactionConfigOutput() GoogleCloudContactcenterinsightsV1RedactionConfigOutput { + return i.ToGoogleCloudContactcenterinsightsV1RedactionConfigOutputWithContext(context.Background()) +} + +func (i GoogleCloudContactcenterinsightsV1RedactionConfigArgs) ToGoogleCloudContactcenterinsightsV1RedactionConfigOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1RedactionConfigOutput) +} + +func (i GoogleCloudContactcenterinsightsV1RedactionConfigArgs) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput() GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return i.ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(context.Background()) +} + +func (i GoogleCloudContactcenterinsightsV1RedactionConfigArgs) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1RedactionConfigOutput).ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(ctx) +} + +// GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput is an input type that accepts GoogleCloudContactcenterinsightsV1RedactionConfigArgs, GoogleCloudContactcenterinsightsV1RedactionConfigPtr and GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput values. +// You can construct a concrete instance of `GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput` via: +// +// GoogleCloudContactcenterinsightsV1RedactionConfigArgs{...} +// +// or: +// +// nil +type GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput interface { + pulumi.Input + + ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput() GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput + ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput +} + +type googleCloudContactcenterinsightsV1RedactionConfigPtrType GoogleCloudContactcenterinsightsV1RedactionConfigArgs + +func GoogleCloudContactcenterinsightsV1RedactionConfigPtr(v *GoogleCloudContactcenterinsightsV1RedactionConfigArgs) GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput { + return (*googleCloudContactcenterinsightsV1RedactionConfigPtrType)(v) +} + +func (*googleCloudContactcenterinsightsV1RedactionConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudContactcenterinsightsV1RedactionConfig)(nil)).Elem() +} + +func (i *googleCloudContactcenterinsightsV1RedactionConfigPtrType) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput() GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return i.ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(context.Background()) +} + +func (i *googleCloudContactcenterinsightsV1RedactionConfigPtrType) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) +} + +// DLP resources used for redaction while ingesting conversations. +type GoogleCloudContactcenterinsightsV1RedactionConfigOutput struct{ *pulumi.OutputState } + +func (GoogleCloudContactcenterinsightsV1RedactionConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudContactcenterinsightsV1RedactionConfig)(nil)).Elem() +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigOutput() GoogleCloudContactcenterinsightsV1RedactionConfigOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput() GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return o.ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(context.Background()) +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudContactcenterinsightsV1RedactionConfig) *GoogleCloudContactcenterinsightsV1RedactionConfig { + return &v + }).(GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) +} + +// The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) DeidentifyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v GoogleCloudContactcenterinsightsV1RedactionConfig) *string { return v.DeidentifyTemplate }).(pulumi.StringPtrOutput) +} + +// The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` +func (o GoogleCloudContactcenterinsightsV1RedactionConfigOutput) InspectTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v GoogleCloudContactcenterinsightsV1RedactionConfig) *string { return v.InspectTemplate }).(pulumi.StringPtrOutput) +} + +type GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput struct{ *pulumi.OutputState } + +func (GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudContactcenterinsightsV1RedactionConfig)(nil)).Elem() +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput() GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) ToGoogleCloudContactcenterinsightsV1RedactionConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) Elem() GoogleCloudContactcenterinsightsV1RedactionConfigOutput { + return o.ApplyT(func(v *GoogleCloudContactcenterinsightsV1RedactionConfig) GoogleCloudContactcenterinsightsV1RedactionConfig { + if v != nil { + return *v + } + var ret GoogleCloudContactcenterinsightsV1RedactionConfig + return ret + }).(GoogleCloudContactcenterinsightsV1RedactionConfigOutput) +} + +// The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` +func (o GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) DeidentifyTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GoogleCloudContactcenterinsightsV1RedactionConfig) *string { + if v == nil { + return nil + } + return v.DeidentifyTemplate + }).(pulumi.StringPtrOutput) +} + +// The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` +func (o GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput) InspectTemplate() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GoogleCloudContactcenterinsightsV1RedactionConfig) *string { + if v == nil { + return nil + } + return v.InspectTemplate + }).(pulumi.StringPtrOutput) +} + // An annotation that was generated during the customer and agent interaction. type GoogleCloudContactcenterinsightsV1RuntimeAnnotationResponse struct { // The unique identifier of the annotation. Format: projects/{project}/locations/{location}/conversationDatasets/{dataset}/conversationDataItems/{data_item}/conversationAnnotations/{annotation} @@ -3880,6 +4039,146 @@ func (o GoogleCloudContactcenterinsightsV1SmartReplyDataResponseOutput) Reply() return o.ApplyT(func(v GoogleCloudContactcenterinsightsV1SmartReplyDataResponse) string { return v.Reply }).(pulumi.StringOutput) } +// Speech-to-Text configuration. +type GoogleCloudContactcenterinsightsV1SpeechConfig struct { + // The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + SpeechRecognizer *string `pulumi:"speechRecognizer"` +} + +// GoogleCloudContactcenterinsightsV1SpeechConfigInput is an input type that accepts GoogleCloudContactcenterinsightsV1SpeechConfigArgs and GoogleCloudContactcenterinsightsV1SpeechConfigOutput values. +// You can construct a concrete instance of `GoogleCloudContactcenterinsightsV1SpeechConfigInput` via: +// +// GoogleCloudContactcenterinsightsV1SpeechConfigArgs{...} +type GoogleCloudContactcenterinsightsV1SpeechConfigInput interface { + pulumi.Input + + ToGoogleCloudContactcenterinsightsV1SpeechConfigOutput() GoogleCloudContactcenterinsightsV1SpeechConfigOutput + ToGoogleCloudContactcenterinsightsV1SpeechConfigOutputWithContext(context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigOutput +} + +// Speech-to-Text configuration. +type GoogleCloudContactcenterinsightsV1SpeechConfigArgs struct { + // The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + SpeechRecognizer pulumi.StringPtrInput `pulumi:"speechRecognizer"` +} + +func (GoogleCloudContactcenterinsightsV1SpeechConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudContactcenterinsightsV1SpeechConfig)(nil)).Elem() +} + +func (i GoogleCloudContactcenterinsightsV1SpeechConfigArgs) ToGoogleCloudContactcenterinsightsV1SpeechConfigOutput() GoogleCloudContactcenterinsightsV1SpeechConfigOutput { + return i.ToGoogleCloudContactcenterinsightsV1SpeechConfigOutputWithContext(context.Background()) +} + +func (i GoogleCloudContactcenterinsightsV1SpeechConfigArgs) ToGoogleCloudContactcenterinsightsV1SpeechConfigOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1SpeechConfigOutput) +} + +func (i GoogleCloudContactcenterinsightsV1SpeechConfigArgs) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput() GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return i.ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(context.Background()) +} + +func (i GoogleCloudContactcenterinsightsV1SpeechConfigArgs) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1SpeechConfigOutput).ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(ctx) +} + +// GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput is an input type that accepts GoogleCloudContactcenterinsightsV1SpeechConfigArgs, GoogleCloudContactcenterinsightsV1SpeechConfigPtr and GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput values. +// You can construct a concrete instance of `GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput` via: +// +// GoogleCloudContactcenterinsightsV1SpeechConfigArgs{...} +// +// or: +// +// nil +type GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput interface { + pulumi.Input + + ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput() GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput + ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput +} + +type googleCloudContactcenterinsightsV1SpeechConfigPtrType GoogleCloudContactcenterinsightsV1SpeechConfigArgs + +func GoogleCloudContactcenterinsightsV1SpeechConfigPtr(v *GoogleCloudContactcenterinsightsV1SpeechConfigArgs) GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput { + return (*googleCloudContactcenterinsightsV1SpeechConfigPtrType)(v) +} + +func (*googleCloudContactcenterinsightsV1SpeechConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudContactcenterinsightsV1SpeechConfig)(nil)).Elem() +} + +func (i *googleCloudContactcenterinsightsV1SpeechConfigPtrType) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput() GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return i.ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(context.Background()) +} + +func (i *googleCloudContactcenterinsightsV1SpeechConfigPtrType) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) +} + +// Speech-to-Text configuration. +type GoogleCloudContactcenterinsightsV1SpeechConfigOutput struct{ *pulumi.OutputState } + +func (GoogleCloudContactcenterinsightsV1SpeechConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudContactcenterinsightsV1SpeechConfig)(nil)).Elem() +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigOutput() GoogleCloudContactcenterinsightsV1SpeechConfigOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput() GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return o.ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(context.Background()) +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudContactcenterinsightsV1SpeechConfig) *GoogleCloudContactcenterinsightsV1SpeechConfig { + return &v + }).(GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) +} + +// The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` +func (o GoogleCloudContactcenterinsightsV1SpeechConfigOutput) SpeechRecognizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v GoogleCloudContactcenterinsightsV1SpeechConfig) *string { return v.SpeechRecognizer }).(pulumi.StringPtrOutput) +} + +type GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput struct{ *pulumi.OutputState } + +func (GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudContactcenterinsightsV1SpeechConfig)(nil)).Elem() +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput() GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) ToGoogleCloudContactcenterinsightsV1SpeechConfigPtrOutputWithContext(ctx context.Context) GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput { + return o +} + +func (o GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) Elem() GoogleCloudContactcenterinsightsV1SpeechConfigOutput { + return o.ApplyT(func(v *GoogleCloudContactcenterinsightsV1SpeechConfig) GoogleCloudContactcenterinsightsV1SpeechConfig { + if v != nil { + return *v + } + var ret GoogleCloudContactcenterinsightsV1SpeechConfig + return ret + }).(GoogleCloudContactcenterinsightsV1SpeechConfigOutput) +} + +// The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` +func (o GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput) SpeechRecognizer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GoogleCloudContactcenterinsightsV1SpeechConfig) *string { + if v == nil { + return nil + } + return v.SpeechRecognizer + }).(pulumi.StringPtrOutput) +} + func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1AnnotatorSelectorInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1AnnotatorSelectorArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1AnnotatorSelectorPtrInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1AnnotatorSelectorArgs{}) @@ -3903,6 +4202,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfigPtrInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupArrayInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1RedactionConfigInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1RedactionConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1RedactionConfigPtrInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1RedactionConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1SpeechConfigInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1SpeechConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudContactcenterinsightsV1SpeechConfigPtrInput)(nil)).Elem(), GoogleCloudContactcenterinsightsV1SpeechConfigArgs{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1AnalysisResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadataResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1AnalysisResultResponseOutput{}) @@ -3968,10 +4271,14 @@ func init() { pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupResponseArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1PhraseMatchRuleResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1PhraseMatchRuleResponseArrayOutput{}) + pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1RedactionConfigOutput{}) + pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1RedactionConfigPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1RuntimeAnnotationResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1RuntimeAnnotationResponseArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SentimentDataResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SilenceDataResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SmartComposeSuggestionDataResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SmartReplyDataResponseOutput{}) + pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SpeechConfigOutput{}) + pulumi.RegisterOutputType(GoogleCloudContactcenterinsightsV1SpeechConfigPtrOutput{}) } diff --git a/sdk/go/google/iam/v1/key.go b/sdk/go/google/iam/v1/key.go index e2472b0572..f9d533ed7c 100644 --- a/sdk/go/google/iam/v1/key.go +++ b/sdk/go/google/iam/v1/key.go @@ -12,7 +12,7 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Creates a ServiceAccountKey. +// Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key. // Auto-naming is currently not supported for this resource. type Key struct { pulumi.CustomResourceState @@ -89,21 +89,17 @@ func (KeyState) ElementType() reflect.Type { } type keyArgs struct { - // Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - KeyAlgorithm *KeyKeyAlgorithm `pulumi:"keyAlgorithm"` - // The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - PrivateKeyType *KeyPrivateKeyType `pulumi:"privateKeyType"` - Project *string `pulumi:"project"` - ServiceAccountId string `pulumi:"serviceAccountId"` + Project *string `pulumi:"project"` + // The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. + PublicKeyData *string `pulumi:"publicKeyData"` + ServiceAccountId string `pulumi:"serviceAccountId"` } // The set of arguments for constructing a Key resource. type KeyArgs struct { - // Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - KeyAlgorithm KeyKeyAlgorithmPtrInput - // The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - PrivateKeyType KeyPrivateKeyTypePtrInput - Project pulumi.StringPtrInput + Project pulumi.StringPtrInput + // The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. + PublicKeyData pulumi.StringPtrInput ServiceAccountId pulumi.StringInput } diff --git a/sdk/go/google/iam/v1/pulumiEnums.go b/sdk/go/google/iam/v1/pulumiEnums.go index 9b119a07be..4c5130acb1 100644 --- a/sdk/go/google/iam/v1/pulumiEnums.go +++ b/sdk/go/google/iam/v1/pulumiEnums.go @@ -725,360 +725,6 @@ func (in *keyDataKeySpecPtr) ToOutput(ctx context.Context) pulumix.Output[*KeyDa } } -// Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. -type KeyKeyAlgorithm string - -const ( - // An unspecified key algorithm. - KeyKeyAlgorithmKeyAlgUnspecified = KeyKeyAlgorithm("KEY_ALG_UNSPECIFIED") - // 1k RSA Key. - KeyKeyAlgorithmKeyAlgRsa1024 = KeyKeyAlgorithm("KEY_ALG_RSA_1024") - // 2k RSA Key. - KeyKeyAlgorithmKeyAlgRsa2048 = KeyKeyAlgorithm("KEY_ALG_RSA_2048") -) - -func (KeyKeyAlgorithm) ElementType() reflect.Type { - return reflect.TypeOf((*KeyKeyAlgorithm)(nil)).Elem() -} - -func (e KeyKeyAlgorithm) ToKeyKeyAlgorithmOutput() KeyKeyAlgorithmOutput { - return pulumi.ToOutput(e).(KeyKeyAlgorithmOutput) -} - -func (e KeyKeyAlgorithm) ToKeyKeyAlgorithmOutputWithContext(ctx context.Context) KeyKeyAlgorithmOutput { - return pulumi.ToOutputWithContext(ctx, e).(KeyKeyAlgorithmOutput) -} - -func (e KeyKeyAlgorithm) ToKeyKeyAlgorithmPtrOutput() KeyKeyAlgorithmPtrOutput { - return e.ToKeyKeyAlgorithmPtrOutputWithContext(context.Background()) -} - -func (e KeyKeyAlgorithm) ToKeyKeyAlgorithmPtrOutputWithContext(ctx context.Context) KeyKeyAlgorithmPtrOutput { - return KeyKeyAlgorithm(e).ToKeyKeyAlgorithmOutputWithContext(ctx).ToKeyKeyAlgorithmPtrOutputWithContext(ctx) -} - -func (e KeyKeyAlgorithm) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e KeyKeyAlgorithm) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e KeyKeyAlgorithm) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e KeyKeyAlgorithm) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type KeyKeyAlgorithmOutput struct{ *pulumi.OutputState } - -func (KeyKeyAlgorithmOutput) ElementType() reflect.Type { - return reflect.TypeOf((*KeyKeyAlgorithm)(nil)).Elem() -} - -func (o KeyKeyAlgorithmOutput) ToKeyKeyAlgorithmOutput() KeyKeyAlgorithmOutput { - return o -} - -func (o KeyKeyAlgorithmOutput) ToKeyKeyAlgorithmOutputWithContext(ctx context.Context) KeyKeyAlgorithmOutput { - return o -} - -func (o KeyKeyAlgorithmOutput) ToKeyKeyAlgorithmPtrOutput() KeyKeyAlgorithmPtrOutput { - return o.ToKeyKeyAlgorithmPtrOutputWithContext(context.Background()) -} - -func (o KeyKeyAlgorithmOutput) ToKeyKeyAlgorithmPtrOutputWithContext(ctx context.Context) KeyKeyAlgorithmPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v KeyKeyAlgorithm) *KeyKeyAlgorithm { - return &v - }).(KeyKeyAlgorithmPtrOutput) -} - -func (o KeyKeyAlgorithmOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o KeyKeyAlgorithmOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e KeyKeyAlgorithm) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o KeyKeyAlgorithmOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o KeyKeyAlgorithmOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e KeyKeyAlgorithm) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type KeyKeyAlgorithmPtrOutput struct{ *pulumi.OutputState } - -func (KeyKeyAlgorithmPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**KeyKeyAlgorithm)(nil)).Elem() -} - -func (o KeyKeyAlgorithmPtrOutput) ToKeyKeyAlgorithmPtrOutput() KeyKeyAlgorithmPtrOutput { - return o -} - -func (o KeyKeyAlgorithmPtrOutput) ToKeyKeyAlgorithmPtrOutputWithContext(ctx context.Context) KeyKeyAlgorithmPtrOutput { - return o -} - -func (o KeyKeyAlgorithmPtrOutput) Elem() KeyKeyAlgorithmOutput { - return o.ApplyT(func(v *KeyKeyAlgorithm) KeyKeyAlgorithm { - if v != nil { - return *v - } - var ret KeyKeyAlgorithm - return ret - }).(KeyKeyAlgorithmOutput) -} - -func (o KeyKeyAlgorithmPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o KeyKeyAlgorithmPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *KeyKeyAlgorithm) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// KeyKeyAlgorithmInput is an input type that accepts values of the KeyKeyAlgorithm enum -// A concrete instance of `KeyKeyAlgorithmInput` can be one of the following: -// -// KeyKeyAlgorithmKeyAlgUnspecified -// KeyKeyAlgorithmKeyAlgRsa1024 -// KeyKeyAlgorithmKeyAlgRsa2048 -type KeyKeyAlgorithmInput interface { - pulumi.Input - - ToKeyKeyAlgorithmOutput() KeyKeyAlgorithmOutput - ToKeyKeyAlgorithmOutputWithContext(context.Context) KeyKeyAlgorithmOutput -} - -var keyKeyAlgorithmPtrType = reflect.TypeOf((**KeyKeyAlgorithm)(nil)).Elem() - -type KeyKeyAlgorithmPtrInput interface { - pulumi.Input - - ToKeyKeyAlgorithmPtrOutput() KeyKeyAlgorithmPtrOutput - ToKeyKeyAlgorithmPtrOutputWithContext(context.Context) KeyKeyAlgorithmPtrOutput -} - -type keyKeyAlgorithmPtr string - -func KeyKeyAlgorithmPtr(v string) KeyKeyAlgorithmPtrInput { - return (*keyKeyAlgorithmPtr)(&v) -} - -func (*keyKeyAlgorithmPtr) ElementType() reflect.Type { - return keyKeyAlgorithmPtrType -} - -func (in *keyKeyAlgorithmPtr) ToKeyKeyAlgorithmPtrOutput() KeyKeyAlgorithmPtrOutput { - return pulumi.ToOutput(in).(KeyKeyAlgorithmPtrOutput) -} - -func (in *keyKeyAlgorithmPtr) ToKeyKeyAlgorithmPtrOutputWithContext(ctx context.Context) KeyKeyAlgorithmPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(KeyKeyAlgorithmPtrOutput) -} - -func (in *keyKeyAlgorithmPtr) ToOutput(ctx context.Context) pulumix.Output[*KeyKeyAlgorithm] { - return pulumix.Output[*KeyKeyAlgorithm]{ - OutputState: in.ToKeyKeyAlgorithmPtrOutputWithContext(ctx).OutputState, - } -} - -// The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. -type KeyPrivateKeyType string - -const ( - // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - KeyPrivateKeyTypeTypeUnspecified = KeyPrivateKeyType("TYPE_UNSPECIFIED") - // PKCS12 format. The password for the PKCS12 file is `notasecret`. For more information, see https://tools.ietf.org/html/rfc7292. - KeyPrivateKeyTypeTypePkcs12File = KeyPrivateKeyType("TYPE_PKCS12_FILE") - // Google Credentials File format. - KeyPrivateKeyTypeTypeGoogleCredentialsFile = KeyPrivateKeyType("TYPE_GOOGLE_CREDENTIALS_FILE") -) - -func (KeyPrivateKeyType) ElementType() reflect.Type { - return reflect.TypeOf((*KeyPrivateKeyType)(nil)).Elem() -} - -func (e KeyPrivateKeyType) ToKeyPrivateKeyTypeOutput() KeyPrivateKeyTypeOutput { - return pulumi.ToOutput(e).(KeyPrivateKeyTypeOutput) -} - -func (e KeyPrivateKeyType) ToKeyPrivateKeyTypeOutputWithContext(ctx context.Context) KeyPrivateKeyTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(KeyPrivateKeyTypeOutput) -} - -func (e KeyPrivateKeyType) ToKeyPrivateKeyTypePtrOutput() KeyPrivateKeyTypePtrOutput { - return e.ToKeyPrivateKeyTypePtrOutputWithContext(context.Background()) -} - -func (e KeyPrivateKeyType) ToKeyPrivateKeyTypePtrOutputWithContext(ctx context.Context) KeyPrivateKeyTypePtrOutput { - return KeyPrivateKeyType(e).ToKeyPrivateKeyTypeOutputWithContext(ctx).ToKeyPrivateKeyTypePtrOutputWithContext(ctx) -} - -func (e KeyPrivateKeyType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e KeyPrivateKeyType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e KeyPrivateKeyType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e KeyPrivateKeyType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type KeyPrivateKeyTypeOutput struct{ *pulumi.OutputState } - -func (KeyPrivateKeyTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*KeyPrivateKeyType)(nil)).Elem() -} - -func (o KeyPrivateKeyTypeOutput) ToKeyPrivateKeyTypeOutput() KeyPrivateKeyTypeOutput { - return o -} - -func (o KeyPrivateKeyTypeOutput) ToKeyPrivateKeyTypeOutputWithContext(ctx context.Context) KeyPrivateKeyTypeOutput { - return o -} - -func (o KeyPrivateKeyTypeOutput) ToKeyPrivateKeyTypePtrOutput() KeyPrivateKeyTypePtrOutput { - return o.ToKeyPrivateKeyTypePtrOutputWithContext(context.Background()) -} - -func (o KeyPrivateKeyTypeOutput) ToKeyPrivateKeyTypePtrOutputWithContext(ctx context.Context) KeyPrivateKeyTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v KeyPrivateKeyType) *KeyPrivateKeyType { - return &v - }).(KeyPrivateKeyTypePtrOutput) -} - -func (o KeyPrivateKeyTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o KeyPrivateKeyTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e KeyPrivateKeyType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o KeyPrivateKeyTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o KeyPrivateKeyTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e KeyPrivateKeyType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type KeyPrivateKeyTypePtrOutput struct{ *pulumi.OutputState } - -func (KeyPrivateKeyTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**KeyPrivateKeyType)(nil)).Elem() -} - -func (o KeyPrivateKeyTypePtrOutput) ToKeyPrivateKeyTypePtrOutput() KeyPrivateKeyTypePtrOutput { - return o -} - -func (o KeyPrivateKeyTypePtrOutput) ToKeyPrivateKeyTypePtrOutputWithContext(ctx context.Context) KeyPrivateKeyTypePtrOutput { - return o -} - -func (o KeyPrivateKeyTypePtrOutput) Elem() KeyPrivateKeyTypeOutput { - return o.ApplyT(func(v *KeyPrivateKeyType) KeyPrivateKeyType { - if v != nil { - return *v - } - var ret KeyPrivateKeyType - return ret - }).(KeyPrivateKeyTypeOutput) -} - -func (o KeyPrivateKeyTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o KeyPrivateKeyTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *KeyPrivateKeyType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// KeyPrivateKeyTypeInput is an input type that accepts values of the KeyPrivateKeyType enum -// A concrete instance of `KeyPrivateKeyTypeInput` can be one of the following: -// -// KeyPrivateKeyTypeTypeUnspecified -// KeyPrivateKeyTypeTypePkcs12File -// KeyPrivateKeyTypeTypeGoogleCredentialsFile -type KeyPrivateKeyTypeInput interface { - pulumi.Input - - ToKeyPrivateKeyTypeOutput() KeyPrivateKeyTypeOutput - ToKeyPrivateKeyTypeOutputWithContext(context.Context) KeyPrivateKeyTypeOutput -} - -var keyPrivateKeyTypePtrType = reflect.TypeOf((**KeyPrivateKeyType)(nil)).Elem() - -type KeyPrivateKeyTypePtrInput interface { - pulumi.Input - - ToKeyPrivateKeyTypePtrOutput() KeyPrivateKeyTypePtrOutput - ToKeyPrivateKeyTypePtrOutputWithContext(context.Context) KeyPrivateKeyTypePtrOutput -} - -type keyPrivateKeyTypePtr string - -func KeyPrivateKeyTypePtr(v string) KeyPrivateKeyTypePtrInput { - return (*keyPrivateKeyTypePtr)(&v) -} - -func (*keyPrivateKeyTypePtr) ElementType() reflect.Type { - return keyPrivateKeyTypePtrType -} - -func (in *keyPrivateKeyTypePtr) ToKeyPrivateKeyTypePtrOutput() KeyPrivateKeyTypePtrOutput { - return pulumi.ToOutput(in).(KeyPrivateKeyTypePtrOutput) -} - -func (in *keyPrivateKeyTypePtr) ToKeyPrivateKeyTypePtrOutputWithContext(ctx context.Context) KeyPrivateKeyTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(KeyPrivateKeyTypePtrOutput) -} - -func (in *keyPrivateKeyTypePtr) ToOutput(ctx context.Context) pulumix.Output[*KeyPrivateKeyType] { - return pulumix.Output[*KeyPrivateKeyType]{ - OutputState: in.ToKeyPrivateKeyTypePtrOutputWithContext(ctx).OutputState, - } -} - // The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role. type OrganizationRoleStage string @@ -1808,10 +1454,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfigResponseTypePtrInput)(nil)).Elem(), GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfigResponseType("RESPONSE_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*KeyDataKeySpecInput)(nil)).Elem(), KeyDataKeySpec("KEY_SPEC_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*KeyDataKeySpecPtrInput)(nil)).Elem(), KeyDataKeySpec("KEY_SPEC_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*KeyKeyAlgorithmInput)(nil)).Elem(), KeyKeyAlgorithm("KEY_ALG_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*KeyKeyAlgorithmPtrInput)(nil)).Elem(), KeyKeyAlgorithm("KEY_ALG_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*KeyPrivateKeyTypeInput)(nil)).Elem(), KeyPrivateKeyType("TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*KeyPrivateKeyTypePtrInput)(nil)).Elem(), KeyPrivateKeyType("TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*OrganizationRoleStageInput)(nil)).Elem(), OrganizationRoleStage("ALPHA")) pulumi.RegisterInputType(reflect.TypeOf((*OrganizationRoleStagePtrInput)(nil)).Elem(), OrganizationRoleStage("ALPHA")) pulumi.RegisterInputType(reflect.TypeOf((*RoleStageInput)(nil)).Elem(), RoleStage("ALPHA")) @@ -1828,10 +1470,6 @@ func init() { pulumi.RegisterOutputType(GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfigResponseTypePtrOutput{}) pulumi.RegisterOutputType(KeyDataKeySpecOutput{}) pulumi.RegisterOutputType(KeyDataKeySpecPtrOutput{}) - pulumi.RegisterOutputType(KeyKeyAlgorithmOutput{}) - pulumi.RegisterOutputType(KeyKeyAlgorithmPtrOutput{}) - pulumi.RegisterOutputType(KeyPrivateKeyTypeOutput{}) - pulumi.RegisterOutputType(KeyPrivateKeyTypePtrOutput{}) pulumi.RegisterOutputType(OrganizationRoleStageOutput{}) pulumi.RegisterOutputType(OrganizationRoleStagePtrOutput{}) pulumi.RegisterOutputType(RoleStageOutput{}) diff --git a/sdk/go/google/integrations/v1alpha/pulumiEnums.go b/sdk/go/google/integrations/v1alpha/pulumiEnums.go index 80bf33bbdf..8960d6d24a 100644 --- a/sdk/go/google/integrations/v1alpha/pulumiEnums.go +++ b/sdk/go/google/integrations/v1alpha/pulumiEnums.go @@ -8605,173 +8605,6 @@ const ( GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityWarning = GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity("WARNING") ) -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity(e).ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity { - return &v - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) Elem() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity - return ret - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityCloudLoggingSeverityUnspecified -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityDefault -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityInfo -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityError -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityWarning -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput -} - -var googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput -} - -type googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr string - -func GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr(v string) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrInput { - return (*googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrType -} - -func (in *googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutputWithContext(ctx).OutputState, - } -} - // Credential type associated with auth config. type GoogleCloudIntegrationsV1alphaCredentialCredentialType string @@ -8998,117 +8831,187 @@ const ( GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyRestartIntegrationWithBackoff = GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy("RESTART_INTEGRATION_WITH_BACKOFF") ) -func (GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy)(nil)).Elem() +// The type of metric. +type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType string + +const ( + // The default value. Metric type should always be set to one of the other non-default values, otherwise it will result in an INVALID_ARGUMENT error. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeMetricTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("METRIC_TYPE_UNSPECIFIED") + // Specifies alerting on the rate of errors for the enclosing integration. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventErrorRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_ERROR_RATE") + // Specifies alerting on the rate of warnings for the enclosing integration. Warnings use the same enum values as errors. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventWarningRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_WARNING_RATE") + // Specifies alerting on the rate of errors for any task in the enclosing integration. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskErrorRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_ERROR_RATE") + // Specifies alerting on the rate of warnings for any task in the enclosing integration. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskWarningRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_WARNING_RATE") + // Specifies alerting on the rate of executions over all tasks in the enclosing integration. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_RATE") + // Specifies alerting on the number of events executed in the given aggregation_period. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_RATE") + // Specifies alerting on the average duration of executions for this integration. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventAverageDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_AVERAGE_DURATION") + // Specifies alerting on the duration value of a particular percentile of integration executions. E.g. If 10% or more of the integration executions have durations above 5 seconds, alert. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventPercentileDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_PERCENTILE_DURATION") + // Specifies alerting on the average duration of any task in the enclosing integration, + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskAverageDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_AVERAGE_DURATION") + // Specifies alerting on the duration value of a particular percentile of any task executions within the enclosing integration. E.g. If 10% or more of the task executions in the integration have durations above 5 seconds, alert. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskPercentileDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_PERCENTILE_DURATION") +) + +// The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. +type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType string + +const ( + // Default. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeThresholdTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("THRESHOLD_TYPE_UNSPECIFIED") + // Note that this field will only trigger alerts if the integration specifying it runs at least once in 24 hours (which is our in-memory retention period for monarch streams). Also note that `aggregation_period` for this alert configuration must be less than 24 hours. Min value threshold. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMin = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("EXPECTED_MIN") + // Max value threshold. + GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMax = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("EXPECTED_MAX") +) + +// Type of the parameter. +type GoogleCloudIntegrationsV1alphaIntegrationParameterDataType string + +const ( + // Unspecified. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") + // String. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("STRING_VALUE") + // Integer. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INT_VALUE") + // Double Number. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("DOUBLE_VALUE") + // Boolean. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("BOOLEAN_VALUE") + // String Array. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("STRING_ARRAY") + // Integer Array. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INT_ARRAY") + // Double Number Array. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("DOUBLE_ARRAY") + // Boolean Array. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("BOOLEAN_ARRAY") + // Json. + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeJsonValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("JSON_VALUE") + // Proto Value (Internal use only). + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("PROTO_VALUE") + // Proto Array (Internal use only). + GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("PROTO_ARRAY") +) + +func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy(e).ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return GoogleCloudIntegrationsV1alphaIntegrationParameterDataType(e).ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType { return &v - }).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) + }).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) *string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) GoogleCloudIntegrationsV1alphaIntegrationParameterDataType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy + var ret GoogleCloudIntegrationsV1alphaIntegrationParameterDataType return ret - }).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput) + }).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy) *string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *string { if e == nil { return nil } @@ -9117,381 +9020,186 @@ func (o GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) ToStr }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationParameterDataType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyRetryStrategyUnspecified -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyIgnore -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyNone -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyFatal -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyFixedInterval -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyLinearBackoff -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyExponentialBackoff -// GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyRestartIntegrationWithBackoff -type GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyInput interface { +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntegrationParameterDataTypeUnspecified +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringArray +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntArray +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleArray +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanArray +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeJsonValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoValue +// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoArray +type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput - ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput } -var googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy)(nil)).Elem() +var googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrInput interface { +type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput - ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput } -type googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr string +type googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr string -func GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr(v string) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrInput { - return (*googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr)(&v) +func GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrInput { + return (*googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrType +func (*googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrType } -func (in *googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) +func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr) ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) +func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx).OutputState, } } -// The type of metric. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType string - -const ( - // The default value. Metric type should always be set to one of the other non-default values, otherwise it will result in an INVALID_ARGUMENT error. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeMetricTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("METRIC_TYPE_UNSPECIFIED") - // Specifies alerting on the rate of errors for the enclosing integration. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventErrorRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_ERROR_RATE") - // Specifies alerting on the rate of warnings for the enclosing integration. Warnings use the same enum values as errors. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventWarningRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_WARNING_RATE") - // Specifies alerting on the rate of errors for any task in the enclosing integration. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskErrorRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_ERROR_RATE") - // Specifies alerting on the rate of warnings for any task in the enclosing integration. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskWarningRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_WARNING_RATE") - // Specifies alerting on the rate of executions over all tasks in the enclosing integration. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_RATE") - // Specifies alerting on the number of events executed in the given aggregation_period. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventRate = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_RATE") - // Specifies alerting on the average duration of executions for this integration. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventAverageDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_AVERAGE_DURATION") - // Specifies alerting on the duration value of a particular percentile of integration executions. E.g. If 10% or more of the integration executions have durations above 5 seconds, alert. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventPercentileDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("EVENT_PERCENTILE_DURATION") - // Specifies alerting on the average duration of any task in the enclosing integration, - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskAverageDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_AVERAGE_DURATION") - // Specifies alerting on the duration value of a particular percentile of any task executions within the enclosing integration. E.g. If 10% or more of the task executions in the integration have durations above 5 seconds, alert. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskPercentileDuration = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("TASK_PERCENTILE_DURATION") -) - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType(e).ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType { - return &v - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType - return ret - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeMetricTypeUnspecified -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventErrorRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventWarningRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskErrorRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskWarningRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventRate -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventAverageDuration -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeEventPercentileDuration -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskAverageDuration -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeTaskPercentileDuration -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput -} - -var googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput -} - -type googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr string - -func GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrInput { - return (*googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutputWithContext(ctx).OutputState, - } -} - -// The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType string +// Specifies the input/output type for the parameter. +type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType string const ( // Default. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeThresholdTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("THRESHOLD_TYPE_UNSPECIFIED") - // Note that this field will only trigger alerts if the integration specifying it runs at least once in 24 hours (which is our in-memory retention period for monarch streams). Also note that `aggregation_period` for this alert configuration must be less than 24 hours. Min value threshold. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMin = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("EXPECTED_MIN") - // Max value threshold. - GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMax = GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("EXPECTED_MAX") + GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOutTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN_OUT_TYPE_UNSPECIFIED") + // Input parameters for the integration. EventBus validates that these parameters exist in the integrations before execution. + GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeIn = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN") + // Output Parameters for the integration. EventBus will only return the integration parameters tagged with OUT in the response back. + GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOut = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("OUT") + // Input and Output Parameters. These can be used as both input and output. EventBus will validate for the existence of these parameters before execution and will also return this parameter back in the response. + GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOut = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN_OUT") ) -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType(e).ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType(e).ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType { return &v - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) + }).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) *string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType + var ret GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType return ret - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput) + }).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType) *string { +func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *string { if e == nil { return nil } @@ -9500,1867 +9208,180 @@ func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutp }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeThresholdTypeUnspecified -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMin -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeExpectedMax -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeInput interface { +// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOutTypeUnspecified +// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeIn +// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOut +// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOut +type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput } -var googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType)(nil)).Elem() +var googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrInput interface { +type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput + ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput } -type googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr string +type googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr string -func GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrInput { - return (*googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr)(&v) +func GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrInput { + return (*googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrType +func (*googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrType } -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx).OutputState, } } -// Type of the parameter. -type GoogleCloudIntegrationsV1alphaIntegrationParameterDataType string +// Mockstrategy defines how the particular task should be mocked during test execution +type GoogleCloudIntegrationsV1alphaMockConfigMockStrategy string const ( - // Unspecified. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") - // String. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("STRING_VALUE") - // Integer. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INT_VALUE") - // Double Number. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("DOUBLE_VALUE") - // Boolean. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("BOOLEAN_VALUE") - // String Array. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("STRING_ARRAY") - // Integer Array. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INT_ARRAY") - // Double Number Array. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("DOUBLE_ARRAY") - // Boolean Array. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("BOOLEAN_ARRAY") - // Json. - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeJsonValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("JSON_VALUE") - // Proto Value (Internal use only). - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoValue = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("PROTO_VALUE") - // Proto Array (Internal use only). - GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoArray = GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("PROTO_ARRAY") -) - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return GoogleCloudIntegrationsV1alphaIntegrationParameterDataType(e).ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType { - return &v - }).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) GoogleCloudIntegrationsV1alphaIntegrationParameterDataType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaIntegrationParameterDataType - return ret - }).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationParameterDataType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationParameterDataType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntegrationParameterDataTypeUnspecified -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeStringArray -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeIntArray -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeDoubleArray -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeBooleanArray -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeJsonValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoValue -// GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeProtoArray -type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput - ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput -} - -var googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterDataType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput - ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput -} - -type googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr string - -func GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrInput { - return (*googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterDataTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterDataType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Specifies the input/output type for the parameter. -type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType string - -const ( - // Default. - GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOutTypeUnspecified = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN_OUT_TYPE_UNSPECIFIED") - // Input parameters for the integration. EventBus validates that these parameters exist in the integrations before execution. - GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeIn = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN") - // Output Parameters for the integration. EventBus will only return the integration parameters tagged with OUT in the response back. - GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOut = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("OUT") - // Input and Output Parameters. These can be used as both input and output. EventBus will validate for the existence of these parameters before execution and will also return this parameter back in the response. - GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOut = GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN_OUT") -) - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType(e).ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType { - return &v - }).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType - return ret - }).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOutTypeUnspecified -// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeIn -// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOut -// GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInOut -type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput - ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput -} - -var googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput - ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput -} - -type googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr string - -func GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr(v string) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrInput { - return (*googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Mockstrategy defines how the particular task should be mocked during test execution -type GoogleCloudIntegrationsV1alphaMockConfigMockStrategy string - -const ( - // This should never be used to annotate a field - GoogleCloudIntegrationsV1alphaMockConfigMockStrategyMockStrategyUnspecified = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("MOCK_STRATEGY_UNSPECIFIED") - // Execute actual task - GoogleCloudIntegrationsV1alphaMockConfigMockStrategyNoMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("NO_MOCK_STRATEGY") - // Don't execute actual task, instead use the values specified by user for output of the task - GoogleCloudIntegrationsV1alphaMockConfigMockStrategySpecificMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("SPECIFIC_MOCK_STRATEGY") - // Don't execute actual task, instead return task failure - GoogleCloudIntegrationsV1alphaMockConfigMockStrategyFailureMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("FAILURE_MOCK_STRATEGY") - // Don't execute actual task, instead mark it as successful - GoogleCloudIntegrationsV1alphaMockConfigMockStrategySkipMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("SKIP_MOCK_STRATEGY") -) - -func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return GoogleCloudIntegrationsV1alphaMockConfigMockStrategy(e).ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy { - return &v - }).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) GoogleCloudIntegrationsV1alphaMockConfigMockStrategy { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaMockConfigMockStrategy - return ret - }).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaMockConfigMockStrategy enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyMockStrategyUnspecified -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyNoMockStrategy -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategySpecificMockStrategy -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyFailureMockStrategy -// GoogleCloudIntegrationsV1alphaMockConfigMockStrategySkipMockStrategy -type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput - ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput -} - -var googleCloudIntegrationsV1alphaMockConfigMockStrategyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput - ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput -} - -type googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr string - -func GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtr(v string) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrInput { - return (*googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaMockConfigMockStrategyPtrType -} - -func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx).OutputState, - } -} - -// Represent how to pass parameters to fetch access token -type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType string - -const ( - // Unspecified request type - GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("REQUEST_TYPE_UNSPECIFIED") - // To pass all the parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("REQUEST_BODY") - // To pass all the parameters as a part of query parameter. - GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("QUERY_PARAMETERS") - // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("ENCODED_HEADER") -) - -func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType { - return &v - }).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType - return ret - }).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestTypeUnspecified -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestBody -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeQueryParameters -// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeEncodedHeader -type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput - ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput -} - -var googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput - ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput -} - -type googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr string - -func GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrInput { - return (*googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Represent how to pass parameters to fetch access token -type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType string - -const ( - // Unspecified request type - GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("REQUEST_TYPE_UNSPECIFIED") - // To pass all the parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("REQUEST_BODY") - // To pass all the parameters as a part of query parameter. - GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("QUERY_PARAMETERS") - // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("ENCODED_HEADER") -) - -func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType { - return &v - }).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType - return ret - }).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestTypeUnspecified -// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestBody -// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeQueryParameters -// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeEncodedHeader -type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput - ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput -} - -var googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput - ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput -} - -type googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr string - -func GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrInput { - return (*googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Represent how to pass parameters to fetch access token -type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType string - -const ( - // Unspecified request type - GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("REQUEST_TYPE_UNSPECIFIED") - // To pass all the parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("REQUEST_BODY") - // To pass all the parameters as a part of query parameter. - GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("QUERY_PARAMETERS") - // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. - GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("ENCODED_HEADER") -) - -func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType { - return &v - }).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType - return ret - }).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestTypeUnspecified -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestBody -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeQueryParameters -// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeEncodedHeader -type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput - ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput -} - -var googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput - ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput -} - -type googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr string - -func GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrInput { - return (*googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Option to specify key type for all entries of the map. If provided then field types for all entries must conform to this. -type GoogleCloudIntegrationsV1alphaParameterMapKeyType string - -const ( - // Unspecified. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") - // String. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("STRING_VALUE") - // Integer. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INT_VALUE") - // Double Number. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("DOUBLE_VALUE") - // Boolean. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("BOOLEAN_VALUE") - // String Array. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("STRING_ARRAY") - // Integer Array. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INT_ARRAY") - // Double Number Array. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("DOUBLE_ARRAY") - // Boolean Array. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("BOOLEAN_ARRAY") - // Json. - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeJsonValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("JSON_VALUE") - // Proto Value (Internal use only). - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("PROTO_VALUE") - // Proto Array (Internal use only). - GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("PROTO_ARRAY") -) - -func (GoogleCloudIntegrationsV1alphaParameterMapKeyType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return GoogleCloudIntegrationsV1alphaParameterMapKeyType(e).ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaParameterMapKeyType) *GoogleCloudIntegrationsV1alphaParameterMapKeyType { - return &v - }).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapKeyType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapKeyType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaParameterMapKeyType) GoogleCloudIntegrationsV1alphaParameterMapKeyType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaParameterMapKeyType - return ret - }).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaParameterMapKeyType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaParameterMapKeyType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntegrationParameterDataTypeUnspecified -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringArray -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntArray -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleArray -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanArray -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeJsonValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoValue -// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoArray -type GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput - ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput -} - -var googleCloudIntegrationsV1alphaParameterMapKeyTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput - ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput -} - -type googleCloudIntegrationsV1alphaParameterMapKeyTypePtr string - -func GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtr(v string) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrInput { - return (*googleCloudIntegrationsV1alphaParameterMapKeyTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaParameterMapKeyTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapKeyType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapKeyType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx).OutputState, - } -} - -// Option to specify value type for all entries of the map. If provided then field types for all entries must conform to this. -type GoogleCloudIntegrationsV1alphaParameterMapValueType string - -const ( - // Unspecified. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaParameterMapValueType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") - // String. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("STRING_VALUE") - // Integer. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("INT_VALUE") - // Double Number. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("DOUBLE_VALUE") - // Boolean. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("BOOLEAN_VALUE") - // String Array. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("STRING_ARRAY") - // Integer Array. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("INT_ARRAY") - // Double Number Array. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("DOUBLE_ARRAY") - // Boolean Array. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("BOOLEAN_ARRAY") - // Json. - GoogleCloudIntegrationsV1alphaParameterMapValueTypeJsonValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("JSON_VALUE") - // Proto Value (Internal use only). - GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("PROTO_VALUE") - // Proto Array (Internal use only). - GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("PROTO_ARRAY") -) - -func (GoogleCloudIntegrationsV1alphaParameterMapValueType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return GoogleCloudIntegrationsV1alphaParameterMapValueType(e).ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaParameterMapValueType) *GoogleCloudIntegrationsV1alphaParameterMapValueType { - return &v - }).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapValueType) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapValueType) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaParameterMapValueType) GoogleCloudIntegrationsV1alphaParameterMapValueType { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaParameterMapValueType - return ret - }).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaParameterMapValueType) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaParameterMapValueType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntegrationParameterDataTypeUnspecified -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringArray -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntArray -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleArray -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanArray -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeJsonValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoValue -// GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoArray -type GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput - ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput -} - -var googleCloudIntegrationsV1alphaParameterMapValueTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput - ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput -} - -type googleCloudIntegrationsV1alphaParameterMapValueTypePtr string - -func GoogleCloudIntegrationsV1alphaParameterMapValueTypePtr(v string) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrInput { - return (*googleCloudIntegrationsV1alphaParameterMapValueTypePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaParameterMapValueTypePtrType -} - -func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapValueType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapValueType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx).OutputState, - } -} - -// State to which the execution snapshot status will be set if the task succeeds. -type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState string - -const ( - // UNSPECIFIED. - GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateFinalStateUnspecified = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("FINAL_STATE_UNSPECIFIED") - // The default behavior, where successful tasks will be marked as SUCCEEDED. - GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSucceeded = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("SUCCEEDED") - // Sets the state to SUSPENDED after executing. This is required for SuspensionTask; event execution will continue once the user calls ResolveSuspensions with the event_execution_info_id and the task number. - GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSuspended = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("SUSPENDED") -) - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState)(nil)).Elem() -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState(e).ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState { - return &v - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) Elem() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState - return ret - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateInput` can be one of the following: -// -// GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateFinalStateUnspecified -// GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSucceeded -// GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSuspended -type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput - ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput -} - -var googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState)(nil)).Elem() - -type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput - ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput -} - -type googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr string - -func GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr(v string) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrInput { - return (*googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr)(&v) -} - -func (*googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrType -} - -func (in *googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr) ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) -} - -func (in *googleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutputWithContext(ctx).OutputState, - } -} - -// Optional. External task type of the task -type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType string - -const ( - // Default value. External task type is not specified - GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeExternalTaskTypeUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("EXTERNAL_TASK_TYPE_UNSPECIFIED") - // Tasks belongs to the normal task flows - GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeNormalTask = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("NORMAL_TASK") - // Task belongs to the error catch task flows - GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeErrorTask = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("ERROR_TASK") + // This should never be used to annotate a field + GoogleCloudIntegrationsV1alphaMockConfigMockStrategyMockStrategyUnspecified = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("MOCK_STRATEGY_UNSPECIFIED") + // Execute actual task + GoogleCloudIntegrationsV1alphaMockConfigMockStrategyNoMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("NO_MOCK_STRATEGY") + // Don't execute actual task, instead use the values specified by user for output of the task + GoogleCloudIntegrationsV1alphaMockConfigMockStrategySpecificMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("SPECIFIC_MOCK_STRATEGY") + // Don't execute actual task, instead return task failure + GoogleCloudIntegrationsV1alphaMockConfigMockStrategyFailureMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("FAILURE_MOCK_STRATEGY") + // Don't execute actual task, instead mark it as successful + GoogleCloudIntegrationsV1alphaMockConfigMockStrategySkipMockStrategy = GoogleCloudIntegrationsV1alphaMockConfigMockStrategy("SKIP_MOCK_STRATEGY") ) -func (GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType(e).ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return GoogleCloudIntegrationsV1alphaMockConfigMockStrategy(e).ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) *GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy { return &v - }).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) + }).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) string { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) *string { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) GoogleCloudIntegrationsV1alphaMockConfigMockStrategy { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType + var ret GoogleCloudIntegrationsV1alphaMockConfigMockStrategy return ret - }).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput) + }).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType) *string { +func (o GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaMockConfigMockStrategy) *string { if e == nil { return nil } @@ -11369,179 +9390,179 @@ func (o GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) ToStr }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaMockConfigMockStrategy enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeExternalTaskTypeUnspecified -// GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeNormalTask -// GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeErrorTask -type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeInput interface { +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyMockStrategyUnspecified +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyNoMockStrategy +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategySpecificMockStrategy +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategyFailureMockStrategy +// GoogleCloudIntegrationsV1alphaMockConfigMockStrategySkipMockStrategy +type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput + ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput + ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyOutput } -var googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType)(nil)).Elem() +var googleCloudIntegrationsV1alphaMockConfigMockStrategyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaMockConfigMockStrategy)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrInput interface { +type GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput + ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput + ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput } -type googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr string +type googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr string -func GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr(v string) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrInput { - return (*googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr)(&v) +func GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtr(v string) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrInput { + return (*googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr)(&v) } -func (*googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrType +func (*googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaMockConfigMockStrategyPtrType } -func (in *googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput() GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr) ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaMockConfigMockStrategyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaMockConfigMockStrategy]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaMockConfigMockStrategyPtrOutputWithContext(ctx).OutputState, } } -// Optional. If set, overrides the option configured in the Task implementation class. -type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption string +// Represent how to pass parameters to fetch access token +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType string const ( - // As per the default behavior, no validation will be run. Will not override any option set in a Task. - GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionJsonValidationOptionUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("JSON_VALIDATION_OPTION_UNSPECIFIED") - // Do not run any validation against JSON schemas. - GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionSkip = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("SKIP") - // Validate all potential input JSON parameters against schemas specified in IntegrationParameter. - GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPreExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("PRE_EXECUTION") - // Validate all potential output JSON parameters against schemas specified in IntegrationParameter. - GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPostExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("POST_EXECUTION") - // Perform both PRE_EXECUTION and POST_EXECUTION validations. - GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPrePostExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("PRE_POST_EXECUTION") + // Unspecified request type + GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("REQUEST_TYPE_UNSPECIFIED") + // To pass all the parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("REQUEST_BODY") + // To pass all the parameters as a part of query parameter. + GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("QUERY_PARAMETERS") + // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType("ENCODED_HEADER") ) -func (GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption(e).ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) *GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType { return &v - }).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) string { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) Elem() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption + var ret GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType return ret - }).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType) *string { if e == nil { return nil } @@ -11550,177 +9571,178 @@ func (o GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) T }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionJsonValidationOptionUnspecified -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionSkip -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPreExecution -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPostExecution -// GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPrePostExecution -type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionInput interface { +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestTypeUnspecified +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeRequestBody +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeQueryParameters +// GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeEncodedHeader +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput + ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput + ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypeOutput } -var googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption)(nil)).Elem() +var googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrInput interface { +type GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput } -type googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr string +type googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr string -func GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr(v string) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrInput { - return (*googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr)(&v) +func GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrInput { + return (*googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrType +func (*googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrType } -func (in *googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2AuthorizationCodeRequestTypePtrOutputWithContext(ctx).OutputState, } } -// Optional. The policy dictating the execution of the next set of tasks for the current task. -type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy string +// Represent how to pass parameters to fetch access token +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType string const ( - // Default. - GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED") - // Execute all the tasks that satisfy their associated condition. - GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunAllMatch = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("RUN_ALL_MATCH") - // Execute the first task that satisfies the associated condition. - GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunFirstMatch = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("RUN_FIRST_MATCH") + // Unspecified request type + GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("REQUEST_TYPE_UNSPECIFIED") + // To pass all the parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("REQUEST_BODY") + // To pass all the parameters as a part of query parameter. + GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("QUERY_PARAMETERS") + // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType("ENCODED_HEADER") ) -func (GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy(e).ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) *GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType { return &v - }).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy + var ret GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType return ret - }).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType) *string { if e == nil { return nil } @@ -11729,177 +9751,178 @@ func (o GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutpu }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified -// GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunAllMatch -// GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunFirstMatch -type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyInput interface { +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestTypeUnspecified +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeRequestBody +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeQueryParameters +// GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeEncodedHeader +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypeOutput } -var googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy)(nil)).Elem() +var googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrInput interface { +type GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput } -type googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr string +type googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr string -func GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr(v string) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrInput { - return (*googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr)(&v) +func GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrInput { + return (*googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrType +func (*googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrType } -func (in *googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2ClientCredentialsRequestTypePtrOutputWithContext(ctx).OutputState, } } -// Optional. The policy dictating the execution strategy of this task. -type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy string - -const ( - // Default. If the strategy is not set explicitly, it will default to `WHEN_ALL_SUCCEED`. - GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyTaskExecutionStrategyUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("TASK_EXECUTION_STRATEGY_UNSPECIFIED") - // Wait until all of its previous tasks finished execution, then verify at least one of the edge conditions is met, and execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. - GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllSucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ALL_SUCCEED") - // Start execution as long as any of its previous tasks finished execution and the corresponding edge condition is met (since we will execute if only that succeeding edge condition is met). - GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAnySucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ANY_SUCCEED") - // Wait until all of its previous tasks finished execution, then verify the all edge conditions are met and execute if possible. - GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllTasksAndConditionsSucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED") +// Represent how to pass parameters to fetch access token +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType string + +const ( + // Unspecified request type + GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestTypeUnspecified = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("REQUEST_TYPE_UNSPECIFIED") + // To pass all the parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestBody = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("REQUEST_BODY") + // To pass all the parameters as a part of query parameter. + GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeQueryParameters = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("QUERY_PARAMETERS") + // To pass client id and client secret as base 64 encoding of client_id:client_password and rest parameters in post body. + GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeEncodedHeader = GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType("ENCODED_HEADER") ) -func (GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy(e).ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType(e).ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) *GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType { return &v - }).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy + var ret GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType return ret - }).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput) + }).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy) *string { +func (o GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType) *string { if e == nil { return nil } @@ -11908,176 +9931,194 @@ func (o GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyTaskExecutionStrategyUnspecified -// GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllSucceed -// GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAnySucceed -// GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllTasksAndConditionsSucceed -type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyInput interface { +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestTypeUnspecified +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeRequestBody +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeQueryParameters +// GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeEncodedHeader +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypeOutput } -var googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy)(nil)).Elem() +var googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrInput interface { +type GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput + ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput } -type googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr string +type googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr string -func GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr(v string) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrInput { - return (*googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr)(&v) +func GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr(v string) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrInput { + return (*googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrType +func (*googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrType } -func (in *googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput() GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr) ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) +func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentialsRequestTypePtrOutputWithContext(ctx).OutputState, } } -// Optional. Dictates how next tasks will be executed. -type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy string +// Option to specify key type for all entries of the map. If provided then field types for all entries must conform to this. +type GoogleCloudIntegrationsV1alphaParameterMapKeyType string const ( - // Default. - GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED") - // Execute all the tasks that satisfy their associated condition. - GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunAllMatch = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("RUN_ALL_MATCH") - // Execute the first task that satisfies the associated condition. - GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunFirstMatch = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("RUN_FIRST_MATCH") + // Unspecified. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") + // String. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("STRING_VALUE") + // Integer. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INT_VALUE") + // Double Number. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("DOUBLE_VALUE") + // Boolean. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("BOOLEAN_VALUE") + // String Array. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("STRING_ARRAY") + // Integer Array. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("INT_ARRAY") + // Double Number Array. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("DOUBLE_ARRAY") + // Boolean Array. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("BOOLEAN_ARRAY") + // Json. + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeJsonValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("JSON_VALUE") + // Proto Value (Internal use only). + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoValue = GoogleCloudIntegrationsV1alphaParameterMapKeyType("PROTO_VALUE") + // Proto Array (Internal use only). + GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoArray = GoogleCloudIntegrationsV1alphaParameterMapKeyType("PROTO_ARRAY") ) -func (GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapKeyType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy(e).ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return GoogleCloudIntegrationsV1alphaParameterMapKeyType(e).ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapKeyType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) *GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaParameterMapKeyType) *GoogleCloudIntegrationsV1alphaParameterMapKeyType { return &v - }).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) + }).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) string { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapKeyType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) *string { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapKeyType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaParameterMapKeyType) GoogleCloudIntegrationsV1alphaParameterMapKeyType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy + var ret GoogleCloudIntegrationsV1alphaParameterMapKeyType return ret - }).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput) + }).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy) *string { +func (o GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaParameterMapKeyType) *string { if e == nil { return nil } @@ -12086,187 +10127,202 @@ func (o GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOu }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaParameterMapKeyType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified -// GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunAllMatch -// GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunFirstMatch -type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyInput interface { +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntegrationParameterDataTypeUnspecified +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeStringArray +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeIntArray +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeDoubleArray +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeBooleanArray +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeJsonValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoValue +// GoogleCloudIntegrationsV1alphaParameterMapKeyTypeProtoArray +type GoogleCloudIntegrationsV1alphaParameterMapKeyTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput + ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput + ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypeOutput } -var googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy)(nil)).Elem() +var googleCloudIntegrationsV1alphaParameterMapKeyTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapKeyType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrInput interface { +type GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput + ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput + ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput } -type googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr string +type googleCloudIntegrationsV1alphaParameterMapKeyTypePtr string -func GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr(v string) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrInput { - return (*googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr)(&v) +func GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtr(v string) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrInput { + return (*googleCloudIntegrationsV1alphaParameterMapKeyTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrType +func (*googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaParameterMapKeyTypePtrType } -func (in *googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) +func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr) ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) +func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaParameterMapKeyTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapKeyType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapKeyType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutputWithContext(ctx).OutputState, } } -// Optional. Type of trigger -type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType string +// Option to specify value type for all entries of the map. If provided then field types for all entries must conform to this. +type GoogleCloudIntegrationsV1alphaParameterMapValueType string const ( - // Unknown. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeTriggerTypeUnspecified = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("TRIGGER_TYPE_UNSPECIFIED") - // Trigger by scheduled time. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCron = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CRON") - // Trigger by API call. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeApi = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("API") - // Trigger by Salesforce Channel. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcChannel = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("SFDC_CHANNEL") - // Trigger by Pub/Sub external. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudPubsubExternal = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CLOUD_PUBSUB_EXTERNAL") - // SFDC Channel Trigger for CDC. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcCdcChannel = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("SFDC_CDC_CHANNEL") - // Trigger by Cloud Scheduler job. - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudScheduler = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CLOUD_SCHEDULER") - // Trigger by Connector Event - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeIntegrationConnectorTrigger = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("INTEGRATION_CONNECTOR_TRIGGER") - // Trigger for private workflow - GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePrivateTrigger = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("PRIVATE_TRIGGER") + // Unspecified. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntegrationParameterDataTypeUnspecified = GoogleCloudIntegrationsV1alphaParameterMapValueType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED") + // String. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("STRING_VALUE") + // Integer. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("INT_VALUE") + // Double Number. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("DOUBLE_VALUE") + // Boolean. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("BOOLEAN_VALUE") + // String Array. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("STRING_ARRAY") + // Integer Array. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("INT_ARRAY") + // Double Number Array. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("DOUBLE_ARRAY") + // Boolean Array. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("BOOLEAN_ARRAY") + // Json. + GoogleCloudIntegrationsV1alphaParameterMapValueTypeJsonValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("JSON_VALUE") + // Proto Value (Internal use only). + GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoValue = GoogleCloudIntegrationsV1alphaParameterMapValueType("PROTO_VALUE") + // Proto Array (Internal use only). + GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoArray = GoogleCloudIntegrationsV1alphaParameterMapValueType("PROTO_ARRAY") ) -func (GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapValueType) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput { - return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { + return pulumi.ToOutput(e).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput { - return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return e.ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(context.Background()) +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return e.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType(e).ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx) +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return GoogleCloudIntegrationsV1alphaParameterMapValueType(e).ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx).ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToStringOutput() pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e GoogleCloudIntegrationsV1alphaParameterMapValueType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return o.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) *GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaParameterMapValueType) *GoogleCloudIntegrationsV1alphaParameterMapValueType { return &v - }).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) + }).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToStringOutput() pulumi.StringOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) string { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapValueType) string { return string(e) }).(pulumi.StringOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) *string { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudIntegrationsV1alphaParameterMapValueType) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput struct{ *pulumi.OutputState } +type GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput struct{ *pulumi.OutputState } -func (GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType)(nil)).Elem() +func (GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { return o } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) Elem() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput { + return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaParameterMapValueType) GoogleCloudIntegrationsV1alphaParameterMapValueType { if v != nil { return *v } - var ret GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType + var ret GoogleCloudIntegrationsV1alphaParameterMapValueType return ret - }).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput) + }).(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType) *string { +func (o GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudIntegrationsV1alphaParameterMapValueType) *string { if e == nil { return nil } @@ -12275,58 +10331,163 @@ func (o GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) ToStrin }).(pulumi.StringPtrOutput) } -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType enum -// A concrete instance of `GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeInput` can be one of the following: +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput is an input type that accepts values of the GoogleCloudIntegrationsV1alphaParameterMapValueType enum +// A concrete instance of `GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput` can be one of the following: // -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeTriggerTypeUnspecified -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCron -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeApi -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcChannel -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudPubsubExternal -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcCdcChannel -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudScheduler -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeIntegrationConnectorTrigger -// GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePrivateTrigger -type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeInput interface { +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntegrationParameterDataTypeUnspecified +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeStringArray +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeIntArray +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeDoubleArray +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeBooleanArray +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeJsonValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoValue +// GoogleCloudIntegrationsV1alphaParameterMapValueTypeProtoArray +type GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput + ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput + ToGoogleCloudIntegrationsV1alphaParameterMapValueTypeOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput } -var googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType)(nil)).Elem() +var googleCloudIntegrationsV1alphaParameterMapValueTypePtrType = reflect.TypeOf((**GoogleCloudIntegrationsV1alphaParameterMapValueType)(nil)).Elem() -type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrInput interface { +type GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrInput interface { pulumi.Input - ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput + ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput + ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput } -type googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr string +type googleCloudIntegrationsV1alphaParameterMapValueTypePtr string -func GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr(v string) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrInput { - return (*googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr)(&v) +func GoogleCloudIntegrationsV1alphaParameterMapValueTypePtr(v string) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrInput { + return (*googleCloudIntegrationsV1alphaParameterMapValueTypePtr)(&v) } -func (*googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr) ElementType() reflect.Type { - return googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrType +func (*googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ElementType() reflect.Type { + return googleCloudIntegrationsV1alphaParameterMapValueTypePtrType } -func (in *googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput() GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return pulumi.ToOutput(in).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr) ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) +func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput) } -func (in *googleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType] { - return pulumix.Output[*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType]{ - OutputState: in.ToGoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutputWithContext(ctx).OutputState, +func (in *googleCloudIntegrationsV1alphaParameterMapValueTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapValueType] { + return pulumix.Output[*GoogleCloudIntegrationsV1alphaParameterMapValueType]{ + OutputState: in.ToGoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutputWithContext(ctx).OutputState, } } +// State to which the execution snapshot status will be set if the task succeeds. +type GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState string + +const ( + // UNSPECIFIED. + GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateFinalStateUnspecified = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("FINAL_STATE_UNSPECIFIED") + // The default behavior, where successful tasks will be marked as SUCCEEDED. + GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSucceeded = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("SUCCEEDED") + // Sets the state to SUSPENDED after executing. This is required for SuspensionTask; event execution will continue once the user calls ResolveSuspensions with the event_execution_info_id and the task number. + GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateSuspended = GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("SUSPENDED") +) + +// Optional. External task type of the task +type GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType string + +const ( + // Default value. External task type is not specified + GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeExternalTaskTypeUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("EXTERNAL_TASK_TYPE_UNSPECIFIED") + // Tasks belongs to the normal task flows + GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeNormalTask = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("NORMAL_TASK") + // Task belongs to the error catch task flows + GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeErrorTask = GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("ERROR_TASK") +) + +// Optional. If set, overrides the option configured in the Task implementation class. +type GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption string + +const ( + // As per the default behavior, no validation will be run. Will not override any option set in a Task. + GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionJsonValidationOptionUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("JSON_VALIDATION_OPTION_UNSPECIFIED") + // Do not run any validation against JSON schemas. + GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionSkip = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("SKIP") + // Validate all potential input JSON parameters against schemas specified in IntegrationParameter. + GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPreExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("PRE_EXECUTION") + // Validate all potential output JSON parameters against schemas specified in IntegrationParameter. + GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPostExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("POST_EXECUTION") + // Perform both PRE_EXECUTION and POST_EXECUTION validations. + GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPrePostExecution = GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("PRE_POST_EXECUTION") +) + +// Optional. The policy dictating the execution of the next set of tasks for the current task. +type GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy string + +const ( + // Default. + GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED") + // Execute all the tasks that satisfy their associated condition. + GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunAllMatch = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("RUN_ALL_MATCH") + // Execute the first task that satisfies the associated condition. + GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyRunFirstMatch = GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("RUN_FIRST_MATCH") +) + +// Optional. The policy dictating the execution strategy of this task. +type GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy string + +const ( + // Default. If the strategy is not set explicitly, it will default to `WHEN_ALL_SUCCEED`. + GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyTaskExecutionStrategyUnspecified = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("TASK_EXECUTION_STRATEGY_UNSPECIFIED") + // Wait until all of its previous tasks finished execution, then verify at least one of the edge conditions is met, and execute if possible. This should be considered as WHEN_ALL_TASKS_SUCCEED. + GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllSucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ALL_SUCCEED") + // Start execution as long as any of its previous tasks finished execution and the corresponding edge condition is met (since we will execute if only that succeeding edge condition is met). + GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAnySucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ANY_SUCCEED") + // Wait until all of its previous tasks finished execution, then verify the all edge conditions are met and execute if possible. + GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyWhenAllTasksAndConditionsSucceed = GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("WHEN_ALL_TASKS_AND_CONDITIONS_SUCCEED") +) + +// Optional. Dictates how next tasks will be executed. +type GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy string + +const ( + // Default. + GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyNextTasksExecutionPolicyUnspecified = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED") + // Execute all the tasks that satisfy their associated condition. + GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunAllMatch = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("RUN_ALL_MATCH") + // Execute the first task that satisfies the associated condition. + GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyRunFirstMatch = GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("RUN_FIRST_MATCH") +) + +// Optional. Type of trigger +type GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType string + +const ( + // Unknown. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeTriggerTypeUnspecified = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("TRIGGER_TYPE_UNSPECIFIED") + // Trigger by scheduled time. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCron = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CRON") + // Trigger by API call. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeApi = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("API") + // Trigger by Salesforce Channel. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcChannel = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("SFDC_CHANNEL") + // Trigger by Pub/Sub external. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudPubsubExternal = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CLOUD_PUBSUB_EXTERNAL") + // SFDC Channel Trigger for CDC. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeSfdcCdcChannel = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("SFDC_CDC_CHANNEL") + // Trigger by Cloud Scheduler job. + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeCloudScheduler = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("CLOUD_SCHEDULER") + // Trigger by Connector Event + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeIntegrationConnectorTrigger = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("INTEGRATION_CONNECTOR_TRIGGER") + // Trigger for private workflow + GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePrivateTrigger = GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("PRIVATE_TRIGGER") +) + // Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. type TemplatesVersionDatabasePersistencePolicy string @@ -12704,117 +10865,129 @@ const ( VersionDatabasePersistencePolicyDatabasePersistenceAsync = VersionDatabasePersistencePolicy("DATABASE_PERSISTENCE_ASYNC") ) -func (VersionDatabasePersistencePolicy) ElementType() reflect.Type { - return reflect.TypeOf((*VersionDatabasePersistencePolicy)(nil)).Elem() +// File format for upload request. +type VersionFileFormat string + +const ( + // Unspecified file format + VersionFileFormatFileFormatUnspecified = VersionFileFormat("FILE_FORMAT_UNSPECIFIED") + // JSON File Format + VersionFileFormatJson = VersionFileFormat("JSON") + // YAML File Format + VersionFileFormatYaml = VersionFileFormat("YAML") +) + +func (VersionFileFormat) ElementType() reflect.Type { + return reflect.TypeOf((*VersionFileFormat)(nil)).Elem() } -func (e VersionDatabasePersistencePolicy) ToVersionDatabasePersistencePolicyOutput() VersionDatabasePersistencePolicyOutput { - return pulumi.ToOutput(e).(VersionDatabasePersistencePolicyOutput) +func (e VersionFileFormat) ToVersionFileFormatOutput() VersionFileFormatOutput { + return pulumi.ToOutput(e).(VersionFileFormatOutput) } -func (e VersionDatabasePersistencePolicy) ToVersionDatabasePersistencePolicyOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyOutput { - return pulumi.ToOutputWithContext(ctx, e).(VersionDatabasePersistencePolicyOutput) +func (e VersionFileFormat) ToVersionFileFormatOutputWithContext(ctx context.Context) VersionFileFormatOutput { + return pulumi.ToOutputWithContext(ctx, e).(VersionFileFormatOutput) } -func (e VersionDatabasePersistencePolicy) ToVersionDatabasePersistencePolicyPtrOutput() VersionDatabasePersistencePolicyPtrOutput { - return e.ToVersionDatabasePersistencePolicyPtrOutputWithContext(context.Background()) +func (e VersionFileFormat) ToVersionFileFormatPtrOutput() VersionFileFormatPtrOutput { + return e.ToVersionFileFormatPtrOutputWithContext(context.Background()) } -func (e VersionDatabasePersistencePolicy) ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyPtrOutput { - return VersionDatabasePersistencePolicy(e).ToVersionDatabasePersistencePolicyOutputWithContext(ctx).ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx) +func (e VersionFileFormat) ToVersionFileFormatPtrOutputWithContext(ctx context.Context) VersionFileFormatPtrOutput { + return VersionFileFormat(e).ToVersionFileFormatOutputWithContext(ctx).ToVersionFileFormatPtrOutputWithContext(ctx) } -func (e VersionDatabasePersistencePolicy) ToStringOutput() pulumi.StringOutput { +func (e VersionFileFormat) ToStringOutput() pulumi.StringOutput { return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) } -func (e VersionDatabasePersistencePolicy) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { +func (e VersionFileFormat) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) } -func (e VersionDatabasePersistencePolicy) ToStringPtrOutput() pulumi.StringPtrOutput { +func (e VersionFileFormat) ToStringPtrOutput() pulumi.StringPtrOutput { return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) } -func (e VersionDatabasePersistencePolicy) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { +func (e VersionFileFormat) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) } -type VersionDatabasePersistencePolicyOutput struct{ *pulumi.OutputState } +type VersionFileFormatOutput struct{ *pulumi.OutputState } -func (VersionDatabasePersistencePolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*VersionDatabasePersistencePolicy)(nil)).Elem() +func (VersionFileFormatOutput) ElementType() reflect.Type { + return reflect.TypeOf((*VersionFileFormat)(nil)).Elem() } -func (o VersionDatabasePersistencePolicyOutput) ToVersionDatabasePersistencePolicyOutput() VersionDatabasePersistencePolicyOutput { +func (o VersionFileFormatOutput) ToVersionFileFormatOutput() VersionFileFormatOutput { return o } -func (o VersionDatabasePersistencePolicyOutput) ToVersionDatabasePersistencePolicyOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyOutput { +func (o VersionFileFormatOutput) ToVersionFileFormatOutputWithContext(ctx context.Context) VersionFileFormatOutput { return o } -func (o VersionDatabasePersistencePolicyOutput) ToVersionDatabasePersistencePolicyPtrOutput() VersionDatabasePersistencePolicyPtrOutput { - return o.ToVersionDatabasePersistencePolicyPtrOutputWithContext(context.Background()) +func (o VersionFileFormatOutput) ToVersionFileFormatPtrOutput() VersionFileFormatPtrOutput { + return o.ToVersionFileFormatPtrOutputWithContext(context.Background()) } -func (o VersionDatabasePersistencePolicyOutput) ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v VersionDatabasePersistencePolicy) *VersionDatabasePersistencePolicy { +func (o VersionFileFormatOutput) ToVersionFileFormatPtrOutputWithContext(ctx context.Context) VersionFileFormatPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v VersionFileFormat) *VersionFileFormat { return &v - }).(VersionDatabasePersistencePolicyPtrOutput) + }).(VersionFileFormatPtrOutput) } -func (o VersionDatabasePersistencePolicyOutput) ToStringOutput() pulumi.StringOutput { +func (o VersionFileFormatOutput) ToStringOutput() pulumi.StringOutput { return o.ToStringOutputWithContext(context.Background()) } -func (o VersionDatabasePersistencePolicyOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionDatabasePersistencePolicy) string { +func (o VersionFileFormatOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionFileFormat) string { return string(e) }).(pulumi.StringOutput) } -func (o VersionDatabasePersistencePolicyOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o VersionFileFormatOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o VersionDatabasePersistencePolicyOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionDatabasePersistencePolicy) *string { +func (o VersionFileFormatOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionFileFormat) *string { v := string(e) return &v }).(pulumi.StringPtrOutput) } -type VersionDatabasePersistencePolicyPtrOutput struct{ *pulumi.OutputState } +type VersionFileFormatPtrOutput struct{ *pulumi.OutputState } -func (VersionDatabasePersistencePolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**VersionDatabasePersistencePolicy)(nil)).Elem() +func (VersionFileFormatPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**VersionFileFormat)(nil)).Elem() } -func (o VersionDatabasePersistencePolicyPtrOutput) ToVersionDatabasePersistencePolicyPtrOutput() VersionDatabasePersistencePolicyPtrOutput { +func (o VersionFileFormatPtrOutput) ToVersionFileFormatPtrOutput() VersionFileFormatPtrOutput { return o } -func (o VersionDatabasePersistencePolicyPtrOutput) ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyPtrOutput { +func (o VersionFileFormatPtrOutput) ToVersionFileFormatPtrOutputWithContext(ctx context.Context) VersionFileFormatPtrOutput { return o } -func (o VersionDatabasePersistencePolicyPtrOutput) Elem() VersionDatabasePersistencePolicyOutput { - return o.ApplyT(func(v *VersionDatabasePersistencePolicy) VersionDatabasePersistencePolicy { +func (o VersionFileFormatPtrOutput) Elem() VersionFileFormatOutput { + return o.ApplyT(func(v *VersionFileFormat) VersionFileFormat { if v != nil { return *v } - var ret VersionDatabasePersistencePolicy + var ret VersionFileFormat return ret - }).(VersionDatabasePersistencePolicyOutput) + }).(VersionFileFormatOutput) } -func (o VersionDatabasePersistencePolicyPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { +func (o VersionFileFormatPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { return o.ToStringPtrOutputWithContext(context.Background()) } -func (o VersionDatabasePersistencePolicyPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *VersionDatabasePersistencePolicy) *string { +func (o VersionFileFormatPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *VersionFileFormat) *string { if e == nil { return nil } @@ -12823,49 +10996,49 @@ func (o VersionDatabasePersistencePolicyPtrOutput) ToStringPtrOutputWithContext( }).(pulumi.StringPtrOutput) } -// VersionDatabasePersistencePolicyInput is an input type that accepts values of the VersionDatabasePersistencePolicy enum -// A concrete instance of `VersionDatabasePersistencePolicyInput` can be one of the following: +// VersionFileFormatInput is an input type that accepts values of the VersionFileFormat enum +// A concrete instance of `VersionFileFormatInput` can be one of the following: // -// VersionDatabasePersistencePolicyDatabasePersistencePolicyUnspecified -// VersionDatabasePersistencePolicyDatabasePersistenceDisabled -// VersionDatabasePersistencePolicyDatabasePersistenceAsync -type VersionDatabasePersistencePolicyInput interface { +// VersionFileFormatFileFormatUnspecified +// VersionFileFormatJson +// VersionFileFormatYaml +type VersionFileFormatInput interface { pulumi.Input - ToVersionDatabasePersistencePolicyOutput() VersionDatabasePersistencePolicyOutput - ToVersionDatabasePersistencePolicyOutputWithContext(context.Context) VersionDatabasePersistencePolicyOutput + ToVersionFileFormatOutput() VersionFileFormatOutput + ToVersionFileFormatOutputWithContext(context.Context) VersionFileFormatOutput } -var versionDatabasePersistencePolicyPtrType = reflect.TypeOf((**VersionDatabasePersistencePolicy)(nil)).Elem() +var versionFileFormatPtrType = reflect.TypeOf((**VersionFileFormat)(nil)).Elem() -type VersionDatabasePersistencePolicyPtrInput interface { +type VersionFileFormatPtrInput interface { pulumi.Input - ToVersionDatabasePersistencePolicyPtrOutput() VersionDatabasePersistencePolicyPtrOutput - ToVersionDatabasePersistencePolicyPtrOutputWithContext(context.Context) VersionDatabasePersistencePolicyPtrOutput + ToVersionFileFormatPtrOutput() VersionFileFormatPtrOutput + ToVersionFileFormatPtrOutputWithContext(context.Context) VersionFileFormatPtrOutput } -type versionDatabasePersistencePolicyPtr string +type versionFileFormatPtr string -func VersionDatabasePersistencePolicyPtr(v string) VersionDatabasePersistencePolicyPtrInput { - return (*versionDatabasePersistencePolicyPtr)(&v) +func VersionFileFormatPtr(v string) VersionFileFormatPtrInput { + return (*versionFileFormatPtr)(&v) } -func (*versionDatabasePersistencePolicyPtr) ElementType() reflect.Type { - return versionDatabasePersistencePolicyPtrType +func (*versionFileFormatPtr) ElementType() reflect.Type { + return versionFileFormatPtrType } -func (in *versionDatabasePersistencePolicyPtr) ToVersionDatabasePersistencePolicyPtrOutput() VersionDatabasePersistencePolicyPtrOutput { - return pulumi.ToOutput(in).(VersionDatabasePersistencePolicyPtrOutput) +func (in *versionFileFormatPtr) ToVersionFileFormatPtrOutput() VersionFileFormatPtrOutput { + return pulumi.ToOutput(in).(VersionFileFormatPtrOutput) } -func (in *versionDatabasePersistencePolicyPtr) ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx context.Context) VersionDatabasePersistencePolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(VersionDatabasePersistencePolicyPtrOutput) +func (in *versionFileFormatPtr) ToVersionFileFormatPtrOutputWithContext(ctx context.Context) VersionFileFormatPtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(VersionFileFormatPtrOutput) } -func (in *versionDatabasePersistencePolicyPtr) ToOutput(ctx context.Context) pulumix.Output[*VersionDatabasePersistencePolicy] { - return pulumix.Output[*VersionDatabasePersistencePolicy]{ - OutputState: in.ToVersionDatabasePersistencePolicyPtrOutputWithContext(ctx).OutputState, +func (in *versionFileFormatPtr) ToOutput(ctx context.Context) pulumix.Output[*VersionFileFormat] { + return pulumix.Output[*VersionFileFormat]{ + OutputState: in.ToVersionFileFormatPtrOutputWithContext(ctx).OutputState, } } @@ -12886,174 +11059,6 @@ const ( VersionOriginTestCase = VersionOrigin("TEST_CASE") ) -func (VersionOrigin) ElementType() reflect.Type { - return reflect.TypeOf((*VersionOrigin)(nil)).Elem() -} - -func (e VersionOrigin) ToVersionOriginOutput() VersionOriginOutput { - return pulumi.ToOutput(e).(VersionOriginOutput) -} - -func (e VersionOrigin) ToVersionOriginOutputWithContext(ctx context.Context) VersionOriginOutput { - return pulumi.ToOutputWithContext(ctx, e).(VersionOriginOutput) -} - -func (e VersionOrigin) ToVersionOriginPtrOutput() VersionOriginPtrOutput { - return e.ToVersionOriginPtrOutputWithContext(context.Background()) -} - -func (e VersionOrigin) ToVersionOriginPtrOutputWithContext(ctx context.Context) VersionOriginPtrOutput { - return VersionOrigin(e).ToVersionOriginOutputWithContext(ctx).ToVersionOriginPtrOutputWithContext(ctx) -} - -func (e VersionOrigin) ToStringOutput() pulumi.StringOutput { - return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) -} - -func (e VersionOrigin) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) -} - -func (e VersionOrigin) ToStringPtrOutput() pulumi.StringPtrOutput { - return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) -} - -func (e VersionOrigin) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) -} - -type VersionOriginOutput struct{ *pulumi.OutputState } - -func (VersionOriginOutput) ElementType() reflect.Type { - return reflect.TypeOf((*VersionOrigin)(nil)).Elem() -} - -func (o VersionOriginOutput) ToVersionOriginOutput() VersionOriginOutput { - return o -} - -func (o VersionOriginOutput) ToVersionOriginOutputWithContext(ctx context.Context) VersionOriginOutput { - return o -} - -func (o VersionOriginOutput) ToVersionOriginPtrOutput() VersionOriginPtrOutput { - return o.ToVersionOriginPtrOutputWithContext(context.Background()) -} - -func (o VersionOriginOutput) ToVersionOriginPtrOutputWithContext(ctx context.Context) VersionOriginPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v VersionOrigin) *VersionOrigin { - return &v - }).(VersionOriginPtrOutput) -} - -func (o VersionOriginOutput) ToStringOutput() pulumi.StringOutput { - return o.ToStringOutputWithContext(context.Background()) -} - -func (o VersionOriginOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionOrigin) string { - return string(e) - }).(pulumi.StringOutput) -} - -func (o VersionOriginOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o VersionOriginOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e VersionOrigin) *string { - v := string(e) - return &v - }).(pulumi.StringPtrOutput) -} - -type VersionOriginPtrOutput struct{ *pulumi.OutputState } - -func (VersionOriginPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**VersionOrigin)(nil)).Elem() -} - -func (o VersionOriginPtrOutput) ToVersionOriginPtrOutput() VersionOriginPtrOutput { - return o -} - -func (o VersionOriginPtrOutput) ToVersionOriginPtrOutputWithContext(ctx context.Context) VersionOriginPtrOutput { - return o -} - -func (o VersionOriginPtrOutput) Elem() VersionOriginOutput { - return o.ApplyT(func(v *VersionOrigin) VersionOrigin { - if v != nil { - return *v - } - var ret VersionOrigin - return ret - }).(VersionOriginOutput) -} - -func (o VersionOriginPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { - return o.ToStringPtrOutputWithContext(context.Background()) -} - -func (o VersionOriginPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, e *VersionOrigin) *string { - if e == nil { - return nil - } - v := string(*e) - return &v - }).(pulumi.StringPtrOutput) -} - -// VersionOriginInput is an input type that accepts values of the VersionOrigin enum -// A concrete instance of `VersionOriginInput` can be one of the following: -// -// VersionOriginUnspecified -// VersionOriginUi -// VersionOriginPiperV2 -// VersionOriginPiperV3 -// VersionOriginApplicationIpProvisioning -// VersionOriginTestCase -type VersionOriginInput interface { - pulumi.Input - - ToVersionOriginOutput() VersionOriginOutput - ToVersionOriginOutputWithContext(context.Context) VersionOriginOutput -} - -var versionOriginPtrType = reflect.TypeOf((**VersionOrigin)(nil)).Elem() - -type VersionOriginPtrInput interface { - pulumi.Input - - ToVersionOriginPtrOutput() VersionOriginPtrOutput - ToVersionOriginPtrOutputWithContext(context.Context) VersionOriginPtrOutput -} - -type versionOriginPtr string - -func VersionOriginPtr(v string) VersionOriginPtrInput { - return (*versionOriginPtr)(&v) -} - -func (*versionOriginPtr) ElementType() reflect.Type { - return versionOriginPtrType -} - -func (in *versionOriginPtr) ToVersionOriginPtrOutput() VersionOriginPtrOutput { - return pulumi.ToOutput(in).(VersionOriginPtrOutput) -} - -func (in *versionOriginPtr) ToVersionOriginPtrOutputWithContext(ctx context.Context) VersionOriginPtrOutput { - return pulumi.ToOutputWithContext(ctx, in).(VersionOriginPtrOutput) -} - -func (in *versionOriginPtr) ToOutput(ctx context.Context) pulumix.Output[*VersionOrigin] { - return pulumix.Output[*VersionOrigin]{ - OutputState: in.ToVersionOriginPtrOutputWithContext(ctx).OutputState, - } -} - func init() { pulumi.RegisterInputType(reflect.TypeOf((*AuthConfigCredentialTypeInput)(nil)).Elem(), AuthConfigCredentialType("CREDENTIAL_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*AuthConfigCredentialTypePtrInput)(nil)).Elem(), AuthConfigCredentialType("CREDENTIAL_TYPE_UNSPECIFIED")) @@ -13149,16 +11154,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*EnterpriseCrmLoggingGwsSanitizeOptionsSanitizeTypePtrInput)(nil)).Elem(), EnterpriseCrmLoggingGwsSanitizeOptionsSanitizeType("SANITIZE_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaAssertionAssertionStrategyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaAssertionAssertionStrategy("ASSERTION_STRATEGY_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaAssertionAssertionStrategyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaAssertionAssertionStrategy("ASSERTION_STRATEGY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity("CLOUD_LOGGING_SEVERITY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity("CLOUD_LOGGING_SEVERITY_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCredentialCredentialTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCredentialCredentialType("CREDENTIAL_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCredentialCredentialTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCredentialCredentialType("CREDENTIAL_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy("RETRY_STRATEGY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy("RETRY_STRATEGY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("METRIC_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType("METRIC_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("THRESHOLD_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType("THRESHOLD_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationParameterDataType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputType("IN_OUT_TYPE_UNSPECIFIED")) @@ -13175,28 +11172,12 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaParameterMapKeyType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaParameterMapValueType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaParameterMapValueType("INTEGRATION_PARAMETER_DATA_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("FINAL_STATE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState("FINAL_STATE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("EXTERNAL_TASK_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType("EXTERNAL_TASK_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("JSON_VALIDATION_OPTION_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption("JSON_VALIDATION_OPTION_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("TASK_EXECUTION_STRATEGY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy("TASK_EXECUTION_STRATEGY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy("NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("TRIGGER_TYPE_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType("TRIGGER_TYPE_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*TemplatesVersionDatabasePersistencePolicyInput)(nil)).Elem(), TemplatesVersionDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*TemplatesVersionDatabasePersistencePolicyPtrInput)(nil)).Elem(), TemplatesVersionDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*TestCaseDatabasePersistencePolicyInput)(nil)).Elem(), TestCaseDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) pulumi.RegisterInputType(reflect.TypeOf((*TestCaseDatabasePersistencePolicyPtrInput)(nil)).Elem(), TestCaseDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*VersionDatabasePersistencePolicyInput)(nil)).Elem(), VersionDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*VersionDatabasePersistencePolicyPtrInput)(nil)).Elem(), VersionDatabasePersistencePolicy("DATABASE_PERSISTENCE_POLICY_UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*VersionOriginInput)(nil)).Elem(), VersionOrigin("UNSPECIFIED")) - pulumi.RegisterInputType(reflect.TypeOf((*VersionOriginPtrInput)(nil)).Elem(), VersionOrigin("UNSPECIFIED")) + pulumi.RegisterInputType(reflect.TypeOf((*VersionFileFormatInput)(nil)).Elem(), VersionFileFormat("FILE_FORMAT_UNSPECIFIED")) + pulumi.RegisterInputType(reflect.TypeOf((*VersionFileFormatPtrInput)(nil)).Elem(), VersionFileFormat("FILE_FORMAT_UNSPECIFIED")) pulumi.RegisterOutputType(AuthConfigCredentialTypeOutput{}) pulumi.RegisterOutputType(AuthConfigCredentialTypePtrOutput{}) pulumi.RegisterOutputType(AuthConfigStateEnumOutput{}) @@ -13291,16 +11272,8 @@ func init() { pulumi.RegisterOutputType(EnterpriseCrmLoggingGwsSanitizeOptionsSanitizeTypePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaAssertionAssertionStrategyOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaAssertionAssertionStrategyPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCredentialCredentialTypeOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCredentialCredentialTypePtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypeOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypeOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypeOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationParameterDataTypePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationParameterInputOutputTypeOutput{}) @@ -13317,26 +11290,10 @@ func init() { pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaParameterMapKeyTypePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaParameterMapValueTypeOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaParameterMapValueTypePtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStateOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypeOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypeOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput{}) pulumi.RegisterOutputType(TemplatesVersionDatabasePersistencePolicyOutput{}) pulumi.RegisterOutputType(TemplatesVersionDatabasePersistencePolicyPtrOutput{}) pulumi.RegisterOutputType(TestCaseDatabasePersistencePolicyOutput{}) pulumi.RegisterOutputType(TestCaseDatabasePersistencePolicyPtrOutput{}) - pulumi.RegisterOutputType(VersionDatabasePersistencePolicyOutput{}) - pulumi.RegisterOutputType(VersionDatabasePersistencePolicyPtrOutput{}) - pulumi.RegisterOutputType(VersionOriginOutput{}) - pulumi.RegisterOutputType(VersionOriginPtrOutput{}) + pulumi.RegisterOutputType(VersionFileFormatOutput{}) + pulumi.RegisterOutputType(VersionFileFormatPtrOutput{}) } diff --git a/sdk/go/google/integrations/v1alpha/pulumiTypes.go b/sdk/go/google/integrations/v1alpha/pulumiTypes.go index fde682bbd6..04f693b013 100644 --- a/sdk/go/google/integrations/v1alpha/pulumiTypes.go +++ b/sdk/go/google/integrations/v1alpha/pulumiTypes.go @@ -15822,159 +15822,6 @@ type GoogleCloudIntegrationsV1alphaCloudLoggingDetails struct { EnableCloudLogging *bool `pulumi:"enableCloudLogging"` } -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsInput is an input type that accepts GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs and GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaCloudLoggingDetailsInput` via: -// -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs{...} -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput -} - -// Cloud Logging details for execution info -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs struct { - // Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. - CloudLoggingSeverity GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrInput `pulumi:"cloudLoggingSeverity"` - // Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. - EnableCloudLogging pulumi.BoolPtrInput `pulumi:"enableCloudLogging"` -} - -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetails)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) -} - -func (i GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput).ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(ctx) -} - -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput is an input type that accepts GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs, GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtr and GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput` via: -// -// GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs{...} -// -// or: -// -// nil -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput - ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput -} - -type googleCloudIntegrationsV1alphaCloudLoggingDetailsPtrType GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs - -func GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtr(v *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput { - return (*googleCloudIntegrationsV1alphaCloudLoggingDetailsPtrType)(v) -} - -func (*googleCloudIntegrationsV1alphaCloudLoggingDetailsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudLoggingDetails)(nil)).Elem() -} - -func (i *googleCloudIntegrationsV1alphaCloudLoggingDetailsPtrType) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(context.Background()) -} - -func (i *googleCloudIntegrationsV1alphaCloudLoggingDetailsPtrType) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) -} - -// Cloud Logging details for execution info -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetails)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaCloudLoggingDetails) *GoogleCloudIntegrationsV1alphaCloudLoggingDetails { - return &v - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) -} - -// Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) CloudLoggingSeverity() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudLoggingDetails) *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity { - return v.CloudLoggingSeverity - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) -} - -// Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) EnableCloudLogging() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudLoggingDetails) *bool { return v.EnableCloudLogging }).(pulumi.BoolPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudLoggingDetails)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) Elem() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudLoggingDetails) GoogleCloudIntegrationsV1alphaCloudLoggingDetails { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaCloudLoggingDetails - return ret - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput) -} - -// Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) CloudLoggingSeverity() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudLoggingDetails) *GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity { - if v == nil { - return nil - } - return v.CloudLoggingSeverity - }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverityPtrOutput) -} - -// Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. -func (o GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput) EnableCloudLogging() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudLoggingDetails) *bool { - if v == nil { - return nil - } - return v.EnableCloudLogging - }).(pulumi.BoolPtrOutput) -} - // Cloud Logging details for execution info type GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponse struct { // Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. @@ -16022,191 +15869,6 @@ type GoogleCloudIntegrationsV1alphaCloudSchedulerConfig struct { ServiceAccountEmail string `pulumi:"serviceAccountEmail"` } -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfigInput is an input type that accepts GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs and GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaCloudSchedulerConfigInput` via: -// -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs{...} -type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput - ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput -} - -// Cloud Scheduler Trigger configuration -type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs struct { - // The cron tab of cloud scheduler trigger. - CronTab pulumi.StringInput `pulumi:"cronTab"` - // Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations - ErrorMessage pulumi.StringPtrInput `pulumi:"errorMessage"` - // The location where associated cloud scheduler job will be created - Location pulumi.StringInput `pulumi:"location"` - // Service account used by Cloud Scheduler to trigger the integration at scheduled time - ServiceAccountEmail pulumi.StringInput `pulumi:"serviceAccountEmail"` -} - -func (GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudSchedulerConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) -} - -func (i GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput).ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(ctx) -} - -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput is an input type that accepts GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs, GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtr and GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput` via: -// -// GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs{...} -// -// or: -// -// nil -type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput - ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput -} - -type googleCloudIntegrationsV1alphaCloudSchedulerConfigPtrType GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs - -func GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtr(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput { - return (*googleCloudIntegrationsV1alphaCloudSchedulerConfigPtrType)(v) -} - -func (*googleCloudIntegrationsV1alphaCloudSchedulerConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudSchedulerConfig)(nil)).Elem() -} - -func (i *googleCloudIntegrationsV1alphaCloudSchedulerConfigPtrType) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(context.Background()) -} - -func (i *googleCloudIntegrationsV1alphaCloudSchedulerConfigPtrType) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) -} - -// Cloud Scheduler Trigger configuration -type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudSchedulerConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig { - return &v - }).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) -} - -// The cron tab of cloud scheduler trigger. -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) CronTab() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) string { return v.CronTab }).(pulumi.StringOutput) -} - -// Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ErrorMessage() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *string { return v.ErrorMessage }).(pulumi.StringPtrOutput) -} - -// The location where associated cloud scheduler job will be created -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) Location() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) string { return v.Location }).(pulumi.StringOutput) -} - -// Service account used by Cloud Scheduler to trigger the integration at scheduled time -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) ServiceAccountEmail() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) string { return v.ServiceAccountEmail }).(pulumi.StringOutput) -} - -type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaCloudSchedulerConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) ToGoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) Elem() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) GoogleCloudIntegrationsV1alphaCloudSchedulerConfig { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaCloudSchedulerConfig - return ret - }).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput) -} - -// The cron tab of cloud scheduler trigger. -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) CronTab() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *string { - if v == nil { - return nil - } - return &v.CronTab - }).(pulumi.StringPtrOutput) -} - -// Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) ErrorMessage() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *string { - if v == nil { - return nil - } - return v.ErrorMessage - }).(pulumi.StringPtrOutput) -} - -// The location where associated cloud scheduler job will be created -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) Location() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *string { - if v == nil { - return nil - } - return &v.Location - }).(pulumi.StringPtrOutput) -} - -// Service account used by Cloud Scheduler to trigger the integration at scheduled time -func (o GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) ServiceAccountEmail() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig) *string { - if v == nil { - return nil - } - return &v.ServiceAccountEmail - }).(pulumi.StringPtrOutput) -} - // Cloud Scheduler Trigger configuration type GoogleCloudIntegrationsV1alphaCloudSchedulerConfigResponse struct { // The cron tab of cloud scheduler trigger. @@ -17525,231 +17187,61 @@ type GoogleCloudIntegrationsV1alphaFailurePolicy struct { RetryStrategy *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy `pulumi:"retryStrategy"` } -// GoogleCloudIntegrationsV1alphaFailurePolicyInput is an input type that accepts GoogleCloudIntegrationsV1alphaFailurePolicyArgs and GoogleCloudIntegrationsV1alphaFailurePolicyOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaFailurePolicyInput` via: -// -// GoogleCloudIntegrationsV1alphaFailurePolicyArgs{...} -type GoogleCloudIntegrationsV1alphaFailurePolicyInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaFailurePolicyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyOutput - ToGoogleCloudIntegrationsV1alphaFailurePolicyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyOutput -} - // Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). -type GoogleCloudIntegrationsV1alphaFailurePolicyArgs struct { +type GoogleCloudIntegrationsV1alphaFailurePolicyResponse struct { // Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. - IntervalTime pulumi.StringPtrInput `pulumi:"intervalTime"` + IntervalTime string `pulumi:"intervalTime"` // Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. - MaxRetries pulumi.IntPtrInput `pulumi:"maxRetries"` + MaxRetries int `pulumi:"maxRetries"` // Defines what happens to the task upon failure. - RetryStrategy GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrInput `pulumi:"retryStrategy"` + RetryStrategy string `pulumi:"retryStrategy"` } -func (GoogleCloudIntegrationsV1alphaFailurePolicyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicy)(nil)).Elem() -} +// Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). +type GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput struct{ *pulumi.OutputState } -func (i GoogleCloudIntegrationsV1alphaFailurePolicyArgs) ToGoogleCloudIntegrationsV1alphaFailurePolicyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyOutput { - return i.ToGoogleCloudIntegrationsV1alphaFailurePolicyOutputWithContext(context.Background()) +func (GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyResponse)(nil)).Elem() } -func (i GoogleCloudIntegrationsV1alphaFailurePolicyArgs) ToGoogleCloudIntegrationsV1alphaFailurePolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaFailurePolicyOutput) +func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput() GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput { + return o } -func (i GoogleCloudIntegrationsV1alphaFailurePolicyArgs) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(context.Background()) +func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyResponseOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput { + return o } -func (i GoogleCloudIntegrationsV1alphaFailurePolicyArgs) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaFailurePolicyOutput).ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(ctx) +// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. +func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) IntervalTime() pulumi.StringOutput { + return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) string { return v.IntervalTime }).(pulumi.StringOutput) } -// GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput is an input type that accepts GoogleCloudIntegrationsV1alphaFailurePolicyArgs, GoogleCloudIntegrationsV1alphaFailurePolicyPtr and GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput` via: -// -// GoogleCloudIntegrationsV1alphaFailurePolicyArgs{...} -// -// or: -// -// nil -type GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput - ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput +// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. +func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) MaxRetries() pulumi.IntOutput { + return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) int { return v.MaxRetries }).(pulumi.IntOutput) } -type googleCloudIntegrationsV1alphaFailurePolicyPtrType GoogleCloudIntegrationsV1alphaFailurePolicyArgs - -func GoogleCloudIntegrationsV1alphaFailurePolicyPtr(v *GoogleCloudIntegrationsV1alphaFailurePolicyArgs) GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput { - return (*googleCloudIntegrationsV1alphaFailurePolicyPtrType)(v) +// Defines what happens to the task upon failure. +func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) RetryStrategy() pulumi.StringOutput { + return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) string { return v.RetryStrategy }).(pulumi.StringOutput) } -func (*googleCloudIntegrationsV1alphaFailurePolicyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaFailurePolicy)(nil)).Elem() +// This message only contains a field of integer array. +type GoogleCloudIntegrationsV1alphaIntParameterArray struct { + // Integer array. + IntValues []string `pulumi:"intValues"` } -func (i *googleCloudIntegrationsV1alphaFailurePolicyPtrType) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(context.Background()) -} +// GoogleCloudIntegrationsV1alphaIntParameterArrayInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntParameterArray and GoogleCloudIntegrationsV1alphaIntParameterArrayOutput values. +// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntParameterArrayInput` via: +// +// GoogleCloudIntegrationsV1alphaIntParameterArray{ GoogleCloudIntegrationsV1alphaIntParameterArgs{...} } +type GoogleCloudIntegrationsV1alphaIntParameterArrayInput interface { + pulumi.Input -func (i *googleCloudIntegrationsV1alphaFailurePolicyPtrType) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) -} - -// Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). -type GoogleCloudIntegrationsV1alphaFailurePolicyOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaFailurePolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyOutput() GoogleCloudIntegrationsV1alphaFailurePolicyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaFailurePolicy) *GoogleCloudIntegrationsV1alphaFailurePolicy { - return &v - }).(GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) IntervalTime() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicy) *string { return v.IntervalTime }).(pulumi.StringPtrOutput) -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) MaxRetries() pulumi.IntPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicy) *int { return v.MaxRetries }).(pulumi.IntPtrOutput) -} - -// Defines what happens to the task upon failure. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyOutput) RetryStrategy() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicy) *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy { - return v.RetryStrategy - }).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaFailurePolicy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaFailurePolicyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaFailurePolicy) GoogleCloudIntegrationsV1alphaFailurePolicy { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaFailurePolicy - return ret - }).(GoogleCloudIntegrationsV1alphaFailurePolicyOutput) -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) IntervalTime() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaFailurePolicy) *string { - if v == nil { - return nil - } - return v.IntervalTime - }).(pulumi.StringPtrOutput) -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) MaxRetries() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaFailurePolicy) *int { - if v == nil { - return nil - } - return v.MaxRetries - }).(pulumi.IntPtrOutput) -} - -// Defines what happens to the task upon failure. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) RetryStrategy() GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaFailurePolicy) *GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy { - if v == nil { - return nil - } - return v.RetryStrategy - }).(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategyPtrOutput) -} - -// Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). -type GoogleCloudIntegrationsV1alphaFailurePolicyResponse struct { - // Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. - IntervalTime string `pulumi:"intervalTime"` - // Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. - MaxRetries int `pulumi:"maxRetries"` - // Defines what happens to the task upon failure. - RetryStrategy string `pulumi:"retryStrategy"` -} - -// Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). -type GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyResponse)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput() GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) ToGoogleCloudIntegrationsV1alphaFailurePolicyResponseOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput { - return o -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) IntervalTime() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) string { return v.IntervalTime }).(pulumi.StringOutput) -} - -// Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) MaxRetries() pulumi.IntOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) int { return v.MaxRetries }).(pulumi.IntOutput) -} - -// Defines what happens to the task upon failure. -func (o GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput) RetryStrategy() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaFailurePolicyResponse) string { return v.RetryStrategy }).(pulumi.StringOutput) -} - -// This message only contains a field of integer array. -type GoogleCloudIntegrationsV1alphaIntParameterArray struct { - // Integer array. - IntValues []string `pulumi:"intValues"` -} - -// GoogleCloudIntegrationsV1alphaIntParameterArrayInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntParameterArray and GoogleCloudIntegrationsV1alphaIntParameterArrayOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntParameterArrayInput` via: -// -// GoogleCloudIntegrationsV1alphaIntParameterArray{ GoogleCloudIntegrationsV1alphaIntParameterArgs{...} } -type GoogleCloudIntegrationsV1alphaIntParameterArrayInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntParameterArrayOutput() GoogleCloudIntegrationsV1alphaIntParameterArrayOutput - ToGoogleCloudIntegrationsV1alphaIntParameterArrayOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntParameterArrayOutput + ToGoogleCloudIntegrationsV1alphaIntParameterArrayOutput() GoogleCloudIntegrationsV1alphaIntParameterArrayOutput + ToGoogleCloudIntegrationsV1alphaIntParameterArrayOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntParameterArrayOutput } // This message only contains a field of integer array. @@ -17923,162 +17415,6 @@ type GoogleCloudIntegrationsV1alphaIntegrationAlertConfig struct { ThresholdValue *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue `pulumi:"thresholdValue"` } -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs and GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigInput` via: -// -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs{...} -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput -} - -// Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs struct { - // The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. - AggregationPeriod pulumi.StringPtrInput `pulumi:"aggregationPeriod"` - // For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. - AlertThreshold pulumi.IntPtrInput `pulumi:"alertThreshold"` - // Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. - DisableAlert pulumi.BoolPtrInput `pulumi:"disableAlert"` - // Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. - DisplayName pulumi.StringPtrInput `pulumi:"displayName"` - // Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. - DurationThreshold pulumi.StringPtrInput `pulumi:"durationThreshold"` - // The type of metric. - MetricType GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrInput `pulumi:"metricType"` - // For either events or tasks, depending on the type of alert, count only final attempts, not retries. - OnlyFinalAttempt pulumi.BoolPtrInput `pulumi:"onlyFinalAttempt"` - // The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. - ThresholdType GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrInput `pulumi:"thresholdType"` - // The metric value, above or below which the alert should be triggered. - ThresholdValue GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput `pulumi:"thresholdValue"` -} - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput { - return i.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) -} - -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray and GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayInput` via: -// -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray{ GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs{...} } -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput -} - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray []GoogleCloudIntegrationsV1alphaIntegrationAlertConfigInput - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaIntegrationAlertConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput { - return i.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) -} - -// Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput { - return o -} - -// The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) AggregationPeriod() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *string { return v.AggregationPeriod }).(pulumi.StringPtrOutput) -} - -// For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) AlertThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *int { return v.AlertThreshold }).(pulumi.IntPtrOutput) -} - -// Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) DisableAlert() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *bool { return v.DisableAlert }).(pulumi.BoolPtrOutput) -} - -// Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) DisplayName() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *string { return v.DisplayName }).(pulumi.StringPtrOutput) -} - -// Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) DurationThreshold() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *string { return v.DurationThreshold }).(pulumi.StringPtrOutput) -} - -// The type of metric. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) MetricType() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType { - return v.MetricType - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricTypePtrOutput) -} - -// For either events or tasks, depending on the type of alert, count only final attempts, not retries. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) OnlyFinalAttempt() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *bool { return v.OnlyFinalAttempt }).(pulumi.BoolPtrOutput) -} - -// The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) ThresholdType() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType { - return v.ThresholdType - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdTypePtrOutput) -} - -// The metric value, above or below which the alert should be triggered. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) ThresholdValue() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue { - return v.ThresholdValue - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) -} - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaIntegrationAlertConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) Index(i pulumi.IntInput) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudIntegrationsV1alphaIntegrationAlertConfig { - return vs[0].([]GoogleCloudIntegrationsV1alphaIntegrationAlertConfig)[vs[1].(int)] - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput) -} - // Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigResponse struct { // The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. @@ -18195,157 +17531,6 @@ type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue struct { Percentage *int `pulumi:"percentage"` } -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs and GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueInput` via: -// -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs{...} -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput -} - -// The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs struct { - // Absolute value threshold. - Absolute pulumi.StringPtrInput `pulumi:"absolute"` - // Percentage threshold. - Percentage pulumi.IntPtrInput `pulumi:"percentage"` -} - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput { - return i.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput).ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(ctx) -} - -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput is an input type that accepts GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs, GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtr and GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput` via: -// -// GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs{...} -// -// or: -// -// nil -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput - ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput -} - -type googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrType GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs - -func GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtr(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput { - return (*googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrType)(v) -} - -func (*googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue)(nil)).Elem() -} - -func (i *googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(context.Background()) -} - -func (i *googleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrType) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) -} - -// The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue { - return &v - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) -} - -// Absolute value threshold. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) Absolute() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) *string { return v.Absolute }).(pulumi.StringPtrOutput) -} - -// Percentage threshold. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) Percentage() pulumi.IntPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) *int { return v.Percentage }).(pulumi.IntPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) ToGoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) Elem() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue - return ret - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput) -} - -// Absolute value threshold. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) Absolute() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) *string { - if v == nil { - return nil - } - return v.Absolute - }).(pulumi.StringPtrOutput) -} - -// Percentage threshold. -func (o GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput) Percentage() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue) *int { - if v == nil { - return nil - } - return v.Percentage - }).(pulumi.IntPtrOutput) -} - // The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. type GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueResponse struct { // Absolute value threshold. @@ -21696,151 +20881,15 @@ func (o GoogleCloudIntegrationsV1alphaStringParameterArrayResponseOutput) ToGoog return o } -// String array. -func (o GoogleCloudIntegrationsV1alphaStringParameterArrayResponseOutput) StringValues() pulumi.StringArrayOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaStringParameterArrayResponse) []string { return v.StringValues }).(pulumi.StringArrayOutput) -} - -// Policy that dictates the behavior for the task after it completes successfully. -type GoogleCloudIntegrationsV1alphaSuccessPolicy struct { - // State to which the execution snapshot status will be set if the task succeeds. - FinalState *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState `pulumi:"finalState"` -} - -// GoogleCloudIntegrationsV1alphaSuccessPolicyInput is an input type that accepts GoogleCloudIntegrationsV1alphaSuccessPolicyArgs and GoogleCloudIntegrationsV1alphaSuccessPolicyOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaSuccessPolicyInput` via: -// -// GoogleCloudIntegrationsV1alphaSuccessPolicyArgs{...} -type GoogleCloudIntegrationsV1alphaSuccessPolicyInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyOutput - ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyOutput -} - -// Policy that dictates the behavior for the task after it completes successfully. -type GoogleCloudIntegrationsV1alphaSuccessPolicyArgs struct { - // State to which the execution snapshot status will be set if the task succeeds. - FinalState GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrInput `pulumi:"finalState"` -} - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicy)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyOutput { - return i.ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) -} - -func (i GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaSuccessPolicyOutput).ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(ctx) -} - -// GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput is an input type that accepts GoogleCloudIntegrationsV1alphaSuccessPolicyArgs, GoogleCloudIntegrationsV1alphaSuccessPolicyPtr and GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput` via: -// -// GoogleCloudIntegrationsV1alphaSuccessPolicyArgs{...} -// -// or: -// -// nil -type GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput - ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput -} - -type googleCloudIntegrationsV1alphaSuccessPolicyPtrType GoogleCloudIntegrationsV1alphaSuccessPolicyArgs - -func GoogleCloudIntegrationsV1alphaSuccessPolicyPtr(v *GoogleCloudIntegrationsV1alphaSuccessPolicyArgs) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput { - return (*googleCloudIntegrationsV1alphaSuccessPolicyPtrType)(v) -} - -func (*googleCloudIntegrationsV1alphaSuccessPolicyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaSuccessPolicy)(nil)).Elem() -} - -func (i *googleCloudIntegrationsV1alphaSuccessPolicyPtrType) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return i.ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(context.Background()) -} - -func (i *googleCloudIntegrationsV1alphaSuccessPolicyPtrType) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) -} - -// Policy that dictates the behavior for the task after it completes successfully. -type GoogleCloudIntegrationsV1alphaSuccessPolicyOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return o.ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(context.Background()) -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudIntegrationsV1alphaSuccessPolicy) *GoogleCloudIntegrationsV1alphaSuccessPolicy { - return &v - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) -} - -// State to which the execution snapshot status will be set if the task succeeds. -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) FinalState() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaSuccessPolicy) *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState { - return v.FinalState - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) -} - -type GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GoogleCloudIntegrationsV1alphaSuccessPolicy)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) ToGoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) Elem() GoogleCloudIntegrationsV1alphaSuccessPolicyOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaSuccessPolicy) GoogleCloudIntegrationsV1alphaSuccessPolicy { - if v != nil { - return *v - } - var ret GoogleCloudIntegrationsV1alphaSuccessPolicy - return ret - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyOutput) +// String array. +func (o GoogleCloudIntegrationsV1alphaStringParameterArrayResponseOutput) StringValues() pulumi.StringArrayOutput { + return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaStringParameterArrayResponse) []string { return v.StringValues }).(pulumi.StringArrayOutput) } -// State to which the execution snapshot status will be set if the task succeeds. -func (o GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) FinalState() GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput { - return o.ApplyT(func(v *GoogleCloudIntegrationsV1alphaSuccessPolicy) *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState { - if v == nil { - return nil - } - return v.FinalState - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyFinalStatePtrOutput) +// Policy that dictates the behavior for the task after it completes successfully. +type GoogleCloudIntegrationsV1alphaSuccessPolicy struct { + // State to which the execution snapshot status will be set if the task succeeds. + FinalState *GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState `pulumi:"finalState"` } // Policy that dictates the behavior for the task after it completes successfully. @@ -21905,223 +20954,6 @@ type GoogleCloudIntegrationsV1alphaTaskConfig struct { TaskTemplate *string `pulumi:"taskTemplate"` } -// GoogleCloudIntegrationsV1alphaTaskConfigInput is an input type that accepts GoogleCloudIntegrationsV1alphaTaskConfigArgs and GoogleCloudIntegrationsV1alphaTaskConfigOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigInput` via: -// -// GoogleCloudIntegrationsV1alphaTaskConfigArgs{...} -type GoogleCloudIntegrationsV1alphaTaskConfigInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaTaskConfigOutput() GoogleCloudIntegrationsV1alphaTaskConfigOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigOutput -} - -// The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. -type GoogleCloudIntegrationsV1alphaTaskConfigArgs struct { - // Optional. User-provided description intended to give additional business context about the task. - Description pulumi.StringPtrInput `pulumi:"description"` - // Optional. User-provided label that is attached to this TaskConfig in the UI. - DisplayName pulumi.StringPtrInput `pulumi:"displayName"` - // Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - ErrorCatcherId pulumi.StringPtrInput `pulumi:"errorCatcherId"` - // Optional. External task type of the task - ExternalTaskType GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrInput `pulumi:"externalTaskType"` - // Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). - FailurePolicy GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput `pulumi:"failurePolicy"` - // Optional. If set, overrides the option configured in the Task implementation class. - JsonValidationOption GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrInput `pulumi:"jsonValidationOption"` - // Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. - NextTasks GoogleCloudIntegrationsV1alphaNextTaskArrayInput `pulumi:"nextTasks"` - // Optional. The policy dictating the execution of the next set of tasks for the current task. - NextTasksExecutionPolicy GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrInput `pulumi:"nextTasksExecutionPolicy"` - // Optional. The customized parameters the user can pass to this task. - Parameters pulumi.StringMapInput `pulumi:"parameters"` - // Optional. Informs the front-end application where to draw this error catcher config on the UI. - Position GoogleCloudIntegrationsV1alphaCoordinatePtrInput `pulumi:"position"` - // Optional. Determines what action to take upon successful task completion. - SuccessPolicy GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput `pulumi:"successPolicy"` - // Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). - SynchronousCallFailurePolicy GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput `pulumi:"synchronousCallFailurePolicy"` - // Optional. The name for the task. - Task pulumi.StringPtrInput `pulumi:"task"` - // Optional. The policy dictating the execution strategy of this task. - TaskExecutionStrategy GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrInput `pulumi:"taskExecutionStrategy"` - // The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). - TaskId pulumi.StringInput `pulumi:"taskId"` - // Optional. Used to define task-template name if task is of type task-template - TaskTemplate pulumi.StringPtrInput `pulumi:"taskTemplate"` -} - -func (GoogleCloudIntegrationsV1alphaTaskConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaTaskConfigArgs) ToGoogleCloudIntegrationsV1alphaTaskConfigOutput() GoogleCloudIntegrationsV1alphaTaskConfigOutput { - return i.ToGoogleCloudIntegrationsV1alphaTaskConfigOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaTaskConfigArgs) ToGoogleCloudIntegrationsV1alphaTaskConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaTaskConfigOutput) -} - -// GoogleCloudIntegrationsV1alphaTaskConfigArrayInput is an input type that accepts GoogleCloudIntegrationsV1alphaTaskConfigArray and GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaTaskConfigArrayInput` via: -// -// GoogleCloudIntegrationsV1alphaTaskConfigArray{ GoogleCloudIntegrationsV1alphaTaskConfigArgs{...} } -type GoogleCloudIntegrationsV1alphaTaskConfigArrayInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutput() GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput - ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput -} - -type GoogleCloudIntegrationsV1alphaTaskConfigArray []GoogleCloudIntegrationsV1alphaTaskConfigInput - -func (GoogleCloudIntegrationsV1alphaTaskConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaTaskConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaTaskConfigArray) ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutput() GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput { - return i.ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaTaskConfigArray) ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput) -} - -// The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. -type GoogleCloudIntegrationsV1alphaTaskConfigOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaTaskConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigOutput() GoogleCloudIntegrationsV1alphaTaskConfigOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigOutput { - return o -} - -// Optional. User-provided description intended to give additional business context about the task. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *string { return v.Description }).(pulumi.StringPtrOutput) -} - -// Optional. User-provided label that is attached to this TaskConfig in the UI. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) DisplayName() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *string { return v.DisplayName }).(pulumi.StringPtrOutput) -} - -// Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) ErrorCatcherId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *string { return v.ErrorCatcherId }).(pulumi.StringPtrOutput) -} - -// Optional. External task type of the task -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) ExternalTaskType() GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType { - return v.ExternalTaskType - }).(GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskTypePtrOutput) -} - -// Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) FailurePolicy() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaFailurePolicy { - return v.FailurePolicy - }).(GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) -} - -// Optional. If set, overrides the option configured in the Task implementation class. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) JsonValidationOption() GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption { - return v.JsonValidationOption - }).(GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOptionPtrOutput) -} - -// Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) NextTasks() GoogleCloudIntegrationsV1alphaNextTaskArrayOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) []GoogleCloudIntegrationsV1alphaNextTask { - return v.NextTasks - }).(GoogleCloudIntegrationsV1alphaNextTaskArrayOutput) -} - -// Optional. The policy dictating the execution of the next set of tasks for the current task. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) NextTasksExecutionPolicy() GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy { - return v.NextTasksExecutionPolicy - }).(GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicyPtrOutput) -} - -// Optional. The customized parameters the user can pass to this task. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) Parameters() pulumi.StringMapOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) map[string]string { return v.Parameters }).(pulumi.StringMapOutput) -} - -// Optional. Informs the front-end application where to draw this error catcher config on the UI. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) Position() GoogleCloudIntegrationsV1alphaCoordinatePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaCoordinate { - return v.Position - }).(GoogleCloudIntegrationsV1alphaCoordinatePtrOutput) -} - -// Optional. Determines what action to take upon successful task completion. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) SuccessPolicy() GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaSuccessPolicy { - return v.SuccessPolicy - }).(GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput) -} - -// Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) SynchronousCallFailurePolicy() GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaFailurePolicy { - return v.SynchronousCallFailurePolicy - }).(GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput) -} - -// Optional. The name for the task. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) Task() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *string { return v.Task }).(pulumi.StringPtrOutput) -} - -// Optional. The policy dictating the execution strategy of this task. -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) TaskExecutionStrategy() GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy { - return v.TaskExecutionStrategy - }).(GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategyPtrOutput) -} - -// The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) TaskId() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) string { return v.TaskId }).(pulumi.StringOutput) -} - -// Optional. Used to define task-template name if task is of type task-template -func (o GoogleCloudIntegrationsV1alphaTaskConfigOutput) TaskTemplate() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTaskConfig) *string { return v.TaskTemplate }).(pulumi.StringPtrOutput) -} - -type GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaTaskConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutput() GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaTaskConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput) Index(i pulumi.IntInput) GoogleCloudIntegrationsV1alphaTaskConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudIntegrationsV1alphaTaskConfig { - return vs[0].([]GoogleCloudIntegrationsV1alphaTaskConfig)[vs[1].(int)] - }).(GoogleCloudIntegrationsV1alphaTaskConfigOutput) -} - // The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. type GoogleCloudIntegrationsV1alphaTaskConfigResponse struct { // Optional. User-provided description intended to give additional business context about the task. @@ -22515,196 +21347,6 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { TriggerType *GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType `pulumi:"triggerType"` } -// GoogleCloudIntegrationsV1alphaTriggerConfigInput is an input type that accepts GoogleCloudIntegrationsV1alphaTriggerConfigArgs and GoogleCloudIntegrationsV1alphaTriggerConfigOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaTriggerConfigInput` via: -// -// GoogleCloudIntegrationsV1alphaTriggerConfigArgs{...} -type GoogleCloudIntegrationsV1alphaTriggerConfigInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaTriggerConfigOutput() GoogleCloudIntegrationsV1alphaTriggerConfigOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigOutput -} - -// Configuration detail of a trigger. -type GoogleCloudIntegrationsV1alphaTriggerConfigArgs struct { - // Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. - AlertConfig GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayInput `pulumi:"alertConfig"` - // Optional. Cloud Scheduler Trigger related metadata - CloudSchedulerConfig GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput `pulumi:"cloudSchedulerConfig"` - // Optional. User-provided description intended to give additional business context about the task. - Description pulumi.StringPtrInput `pulumi:"description"` - // Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - ErrorCatcherId pulumi.StringPtrInput `pulumi:"errorCatcherId"` - // Optional. The user created label for a particular trigger. - Label pulumi.StringPtrInput `pulumi:"label"` - // Optional. Dictates how next tasks will be executed. - NextTasksExecutionPolicy GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrInput `pulumi:"nextTasksExecutionPolicy"` - // Optional. Informs the front-end application where to draw this error catcher config on the UI. - Position GoogleCloudIntegrationsV1alphaCoordinatePtrInput `pulumi:"position"` - // Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. - Properties pulumi.StringMapInput `pulumi:"properties"` - // Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). - StartTasks GoogleCloudIntegrationsV1alphaNextTaskArrayInput `pulumi:"startTasks"` - // Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. - Trigger pulumi.StringPtrInput `pulumi:"trigger"` - // Optional. The backend trigger ID. - TriggerId pulumi.StringPtrInput `pulumi:"triggerId"` - // A number to uniquely identify each trigger config within the integration on UI. - TriggerNumber pulumi.StringInput `pulumi:"triggerNumber"` - // Optional. Type of trigger - TriggerType GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrInput `pulumi:"triggerType"` -} - -func (GoogleCloudIntegrationsV1alphaTriggerConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaTriggerConfigArgs) ToGoogleCloudIntegrationsV1alphaTriggerConfigOutput() GoogleCloudIntegrationsV1alphaTriggerConfigOutput { - return i.ToGoogleCloudIntegrationsV1alphaTriggerConfigOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaTriggerConfigArgs) ToGoogleCloudIntegrationsV1alphaTriggerConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaTriggerConfigOutput) -} - -// GoogleCloudIntegrationsV1alphaTriggerConfigArrayInput is an input type that accepts GoogleCloudIntegrationsV1alphaTriggerConfigArray and GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput values. -// You can construct a concrete instance of `GoogleCloudIntegrationsV1alphaTriggerConfigArrayInput` via: -// -// GoogleCloudIntegrationsV1alphaTriggerConfigArray{ GoogleCloudIntegrationsV1alphaTriggerConfigArgs{...} } -type GoogleCloudIntegrationsV1alphaTriggerConfigArrayInput interface { - pulumi.Input - - ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput() GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput - ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutputWithContext(context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput -} - -type GoogleCloudIntegrationsV1alphaTriggerConfigArray []GoogleCloudIntegrationsV1alphaTriggerConfigInput - -func (GoogleCloudIntegrationsV1alphaTriggerConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaTriggerConfig)(nil)).Elem() -} - -func (i GoogleCloudIntegrationsV1alphaTriggerConfigArray) ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput() GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput { - return i.ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutputWithContext(context.Background()) -} - -func (i GoogleCloudIntegrationsV1alphaTriggerConfigArray) ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput) -} - -// Configuration detail of a trigger. -type GoogleCloudIntegrationsV1alphaTriggerConfigOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaTriggerConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigOutput() GoogleCloudIntegrationsV1alphaTriggerConfigOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigOutput { - return o -} - -// Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) AlertConfig() GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) []GoogleCloudIntegrationsV1alphaIntegrationAlertConfig { - return v.AlertConfig - }).(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput) -} - -// Optional. Cloud Scheduler Trigger related metadata -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) CloudSchedulerConfig() GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *GoogleCloudIntegrationsV1alphaCloudSchedulerConfig { - return v.CloudSchedulerConfig - }).(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput) -} - -// Optional. User-provided description intended to give additional business context about the task. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *string { return v.Description }).(pulumi.StringPtrOutput) -} - -// Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) ErrorCatcherId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *string { return v.ErrorCatcherId }).(pulumi.StringPtrOutput) -} - -// Optional. The user created label for a particular trigger. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) Label() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *string { return v.Label }).(pulumi.StringPtrOutput) -} - -// Optional. Dictates how next tasks will be executed. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) NextTasksExecutionPolicy() GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy { - return v.NextTasksExecutionPolicy - }).(GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicyPtrOutput) -} - -// Optional. Informs the front-end application where to draw this error catcher config on the UI. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) Position() GoogleCloudIntegrationsV1alphaCoordinatePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *GoogleCloudIntegrationsV1alphaCoordinate { - return v.Position - }).(GoogleCloudIntegrationsV1alphaCoordinatePtrOutput) -} - -// Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) Properties() pulumi.StringMapOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) map[string]string { return v.Properties }).(pulumi.StringMapOutput) -} - -// Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) StartTasks() GoogleCloudIntegrationsV1alphaNextTaskArrayOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) []GoogleCloudIntegrationsV1alphaNextTask { - return v.StartTasks - }).(GoogleCloudIntegrationsV1alphaNextTaskArrayOutput) -} - -// Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) Trigger() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *string { return v.Trigger }).(pulumi.StringPtrOutput) -} - -// Optional. The backend trigger ID. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) TriggerId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *string { return v.TriggerId }).(pulumi.StringPtrOutput) -} - -// A number to uniquely identify each trigger config within the integration on UI. -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) TriggerNumber() pulumi.StringOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) string { return v.TriggerNumber }).(pulumi.StringOutput) -} - -// Optional. Type of trigger -func (o GoogleCloudIntegrationsV1alphaTriggerConfigOutput) TriggerType() GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput { - return o.ApplyT(func(v GoogleCloudIntegrationsV1alphaTriggerConfig) *GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType { - return v.TriggerType - }).(GoogleCloudIntegrationsV1alphaTriggerConfigTriggerTypePtrOutput) -} - -type GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput struct{ *pulumi.OutputState } - -func (GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GoogleCloudIntegrationsV1alphaTriggerConfig)(nil)).Elem() -} - -func (o GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput() GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput) ToGoogleCloudIntegrationsV1alphaTriggerConfigArrayOutputWithContext(ctx context.Context) GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput { - return o -} - -func (o GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput) Index(i pulumi.IntInput) GoogleCloudIntegrationsV1alphaTriggerConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudIntegrationsV1alphaTriggerConfig { - return vs[0].([]GoogleCloudIntegrationsV1alphaTriggerConfig)[vs[1].(int)] - }).(GoogleCloudIntegrationsV1alphaTriggerConfigOutput) -} - // Configuration detail of a trigger. type GoogleCloudIntegrationsV1alphaTriggerConfigResponse struct { // Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. @@ -23564,10 +22206,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaBooleanParameterArrayPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaBooleanParameterArrayArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaClientCertificateInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaClientCertificateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaClientCertificatePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaClientCertificateArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudSchedulerConfigInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCoordinateInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCoordinateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCoordinatePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCoordinateArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaCredentialInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaCredentialArgs{}) @@ -23579,14 +22217,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaEventParameterInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaEventParameterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaEventParameterPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaEventParameterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaEventParameterArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaEventParameterArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaFailurePolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaFailurePolicyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaFailurePolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntParameterArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntParameterArrayArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntParameterArrayPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntParameterArrayArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationParameterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaIntegrationParameterArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaIntegrationParameterArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaJwtInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaJwtArgs{}) @@ -23613,14 +22245,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaServiceAccountCredentialsPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaServiceAccountCredentialsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaStringParameterArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaStringParameterArrayArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaStringParameterArrayPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaStringParameterArrayArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaSuccessPolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaSuccessPolicyPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaSuccessPolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTaskConfigArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTaskConfigArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTestTaskConfigInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTestTaskConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTestTaskConfigArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTestTaskConfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaTriggerConfigArrayInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaTriggerConfigArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaUsernameAndPasswordInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaUsernameAndPasswordArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaUsernameAndPasswordPtrInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaUsernameAndPasswordArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GoogleCloudIntegrationsV1alphaValueTypeInput)(nil)).Elem(), GoogleCloudIntegrationsV1alphaValueTypeArgs{}) @@ -23848,11 +22474,7 @@ func init() { pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaClientCertificateOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaClientCertificatePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaClientCertificateResponseOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponseOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCloudSchedulerConfigResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCoordinateOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaCoordinatePtrOutput{}) @@ -23872,18 +22494,12 @@ func init() { pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaEventParameterArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaEventParameterResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaEventParameterResponseArrayOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaFailurePolicyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaFailurePolicyPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaFailurePolicyResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntParameterArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntParameterArrayPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntParameterArrayResponseOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigResponseArrayOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValuePtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationParameterOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaIntegrationParameterArrayOutput{}) @@ -23927,19 +22543,13 @@ func init() { pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaStringParameterArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaStringParameterArrayPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaStringParameterArrayResponseOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaSuccessPolicyOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaSuccessPolicyPtrOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaSuccessPolicyResponseOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTaskConfigResponseArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTestTaskConfigOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTestTaskConfigArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTestTaskConfigResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTestTaskConfigResponseArrayOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigOutput{}) - pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigResponseOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaTriggerConfigResponseArrayOutput{}) pulumi.RegisterOutputType(GoogleCloudIntegrationsV1alphaUsernameAndPasswordOutput{}) diff --git a/sdk/go/google/integrations/v1alpha/version.go b/sdk/go/google/integrations/v1alpha/version.go index 0008f4f243..554e91759b 100644 --- a/sdk/go/google/integrations/v1alpha/version.go +++ b/sdk/go/google/integrations/v1alpha/version.go @@ -12,15 +12,13 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Create a integration with a draft version in the specified project. +// Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. // Auto-naming is currently not supported for this resource. type Version struct { pulumi.CustomResourceState // Optional. Cloud Logging details for the integration version CloudLoggingDetails GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponseOutput `pulumi:"cloudLoggingDetails"` - // Optional. Optional. Indicates if sample workflow should be created. - CreateSampleIntegrations pulumi.BoolPtrOutput `pulumi:"createSampleIntegrations"` // Auto-generated. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. @@ -41,8 +39,6 @@ type Version struct { LockHolder pulumi.StringOutput `pulumi:"lockHolder"` // Auto-generated primary key. Name pulumi.StringOutput `pulumi:"name"` - // Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - NewIntegration pulumi.BoolPtrOutput `pulumi:"newIntegration"` // Optional. The origin that indicates where this integration is coming from. Origin pulumi.StringOutput `pulumi:"origin"` // Optional. The id of the template which was used to create this integration_version. @@ -126,98 +122,26 @@ func (VersionState) ElementType() reflect.Type { } type versionArgs struct { - // Optional. Cloud Logging details for the integration version - CloudLoggingDetails *GoogleCloudIntegrationsV1alphaCloudLoggingDetails `pulumi:"cloudLoggingDetails"` - // Optional. Optional. Indicates if sample workflow should be created. - CreateSampleIntegrations *bool `pulumi:"createSampleIntegrations"` - // Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - DatabasePersistencePolicy *VersionDatabasePersistencePolicy `pulumi:"databasePersistencePolicy"` - // Optional. The integration description. - Description *string `pulumi:"description"` - // Optional. Error Catch Task configuration for the integration. It's optional. - ErrorCatcherConfigs []GoogleCloudIntegrationsV1alphaErrorCatcherConfig `pulumi:"errorCatcherConfigs"` - IntegrationId string `pulumi:"integrationId"` - // Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - IntegrationParameters []GoogleCloudIntegrationsV1alphaIntegrationParameter `pulumi:"integrationParameters"` - // Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - IntegrationParametersInternal *EnterpriseCrmFrontendsEventbusProtoWorkflowParameters `pulumi:"integrationParametersInternal"` - // Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - LastModifierEmail *string `pulumi:"lastModifierEmail"` - Location *string `pulumi:"location"` - // Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - LockHolder *string `pulumi:"lockHolder"` - // Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - NewIntegration *bool `pulumi:"newIntegration"` - // Optional. The origin that indicates where this integration is coming from. - Origin *VersionOrigin `pulumi:"origin"` - // Optional. The id of the template which was used to create this integration_version. - ParentTemplateId *string `pulumi:"parentTemplateId"` - ProductId string `pulumi:"productId"` - Project *string `pulumi:"project"` - // Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - RunAsServiceAccount *string `pulumi:"runAsServiceAccount"` - // Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - SnapshotNumber *string `pulumi:"snapshotNumber"` - // Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - TaskConfigs []GoogleCloudIntegrationsV1alphaTaskConfig `pulumi:"taskConfigs"` - // Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - TaskConfigsInternal []EnterpriseCrmFrontendsEventbusProtoTaskConfig `pulumi:"taskConfigsInternal"` - // Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - Teardown *EnterpriseCrmEventbusProtoTeardown `pulumi:"teardown"` - // Optional. Trigger configurations. - TriggerConfigs []GoogleCloudIntegrationsV1alphaTriggerConfig `pulumi:"triggerConfigs"` - // Optional. Trigger configurations. - TriggerConfigsInternal []EnterpriseCrmFrontendsEventbusProtoTriggerConfig `pulumi:"triggerConfigsInternal"` - // Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. - UserLabel *string `pulumi:"userLabel"` + // The textproto of the integration_version. + Content *string `pulumi:"content"` + // File format for upload request. + FileFormat *VersionFileFormat `pulumi:"fileFormat"` + IntegrationId string `pulumi:"integrationId"` + Location *string `pulumi:"location"` + ProductId string `pulumi:"productId"` + Project *string `pulumi:"project"` } // The set of arguments for constructing a Version resource. type VersionArgs struct { - // Optional. Cloud Logging details for the integration version - CloudLoggingDetails GoogleCloudIntegrationsV1alphaCloudLoggingDetailsPtrInput - // Optional. Optional. Indicates if sample workflow should be created. - CreateSampleIntegrations pulumi.BoolPtrInput - // Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - DatabasePersistencePolicy VersionDatabasePersistencePolicyPtrInput - // Optional. The integration description. - Description pulumi.StringPtrInput - // Optional. Error Catch Task configuration for the integration. It's optional. - ErrorCatcherConfigs GoogleCloudIntegrationsV1alphaErrorCatcherConfigArrayInput - IntegrationId pulumi.StringInput - // Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - IntegrationParameters GoogleCloudIntegrationsV1alphaIntegrationParameterArrayInput - // Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - IntegrationParametersInternal EnterpriseCrmFrontendsEventbusProtoWorkflowParametersPtrInput - // Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - LastModifierEmail pulumi.StringPtrInput - Location pulumi.StringPtrInput - // Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - LockHolder pulumi.StringPtrInput - // Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - NewIntegration pulumi.BoolPtrInput - // Optional. The origin that indicates where this integration is coming from. - Origin VersionOriginPtrInput - // Optional. The id of the template which was used to create this integration_version. - ParentTemplateId pulumi.StringPtrInput - ProductId pulumi.StringInput - Project pulumi.StringPtrInput - // Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - RunAsServiceAccount pulumi.StringPtrInput - // Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - SnapshotNumber pulumi.StringPtrInput - // Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - TaskConfigs GoogleCloudIntegrationsV1alphaTaskConfigArrayInput - // Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - TaskConfigsInternal EnterpriseCrmFrontendsEventbusProtoTaskConfigArrayInput - // Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - Teardown EnterpriseCrmEventbusProtoTeardownPtrInput - // Optional. Trigger configurations. - TriggerConfigs GoogleCloudIntegrationsV1alphaTriggerConfigArrayInput - // Optional. Trigger configurations. - TriggerConfigsInternal EnterpriseCrmFrontendsEventbusProtoTriggerConfigArrayInput - // Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. - UserLabel pulumi.StringPtrInput + // The textproto of the integration_version. + Content pulumi.StringPtrInput + // File format for upload request. + FileFormat VersionFileFormatPtrInput + IntegrationId pulumi.StringInput + Location pulumi.StringPtrInput + ProductId pulumi.StringInput + Project pulumi.StringPtrInput } func (VersionArgs) ElementType() reflect.Type { @@ -264,11 +188,6 @@ func (o VersionOutput) CloudLoggingDetails() GoogleCloudIntegrationsV1alphaCloud }).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponseOutput) } -// Optional. Optional. Indicates if sample workflow should be created. -func (o VersionOutput) CreateSampleIntegrations() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *Version) pulumi.BoolPtrOutput { return v.CreateSampleIntegrations }).(pulumi.BoolPtrOutput) -} - // Auto-generated. func (o VersionOutput) CreateTime() pulumi.StringOutput { return o.ApplyT(func(v *Version) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput) @@ -328,11 +247,6 @@ func (o VersionOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *Version) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. -func (o VersionOutput) NewIntegration() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *Version) pulumi.BoolPtrOutput { return v.NewIntegration }).(pulumi.BoolPtrOutput) -} - // Optional. The origin that indicates where this integration is coming from. func (o VersionOutput) Origin() pulumi.StringOutput { return o.ApplyT(func(v *Version) pulumi.StringOutput { return v.Origin }).(pulumi.StringOutput) diff --git a/sdk/nodejs/aiplatform/v1/getModel.ts b/sdk/nodejs/aiplatform/v1/getModel.ts new file mode 100644 index 0000000000..16e30f49c7 --- /dev/null +++ b/sdk/nodejs/aiplatform/v1/getModel.ts @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Gets a Model. + */ +export function getModel(args: GetModelArgs, opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("google-native:aiplatform/v1:getModel", { + "location": args.location, + "modelId": args.modelId, + "project": args.project, + }, opts); +} + +export interface GetModelArgs { + location: string; + modelId: string; + project?: string; +} + +export interface GetModelResult { + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + readonly artifactUri: string; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + readonly containerSpec: outputs.aiplatform.v1.GoogleCloudAiplatformV1ModelContainerSpecResponse; + /** + * Timestamp when this Model was uploaded into Vertex AI. + */ + readonly createTime: string; + /** + * The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + */ + readonly deployedModels: outputs.aiplatform.v1.GoogleCloudAiplatformV1DeployedModelRefResponse[]; + /** + * The description of the Model. + */ + readonly description: string; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + readonly displayName: string; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + readonly encryptionSpec: outputs.aiplatform.v1.GoogleCloudAiplatformV1EncryptionSpecResponse; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + readonly etag: string; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + readonly explanationSpec: outputs.aiplatform.v1.GoogleCloudAiplatformV1ExplanationSpecResponse; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + readonly labels: {[key: string]: string}; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + readonly metadata: any; + /** + * The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + */ + readonly metadataArtifact: string; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + readonly metadataSchemaUri: string; + /** + * Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + */ + readonly modelSourceInfo: outputs.aiplatform.v1.GoogleCloudAiplatformV1ModelSourceInfoResponse; + /** + * The resource name of the Model. + */ + readonly name: string; + /** + * If this Model is a copy of another Model, this contains info about the original. + */ + readonly originalModelInfo: outputs.aiplatform.v1.GoogleCloudAiplatformV1ModelOriginalModelInfoResponse; + /** + * Optional. This field is populated if the model is produced by a pipeline job. + */ + readonly pipelineJob: string; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + readonly predictSchemata: outputs.aiplatform.v1.GoogleCloudAiplatformV1PredictSchemataResponse; + /** + * When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + */ + readonly supportedDeploymentResourcesTypes: string[]; + /** + * The formats in which this Model may be exported. If empty, this Model is not available for export. + */ + readonly supportedExportFormats: outputs.aiplatform.v1.GoogleCloudAiplatformV1ModelExportFormatResponse[]; + /** + * The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + readonly supportedInputStorageFormats: string[]; + /** + * The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + readonly supportedOutputStorageFormats: string[]; + /** + * The resource name of the TrainingPipeline that uploaded this Model, if any. + */ + readonly trainingPipeline: string; + /** + * Timestamp when this Model was most recently updated. + */ + readonly updateTime: string; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + readonly versionAliases: string[]; + /** + * Timestamp when this version was created. + */ + readonly versionCreateTime: string; + /** + * The description of this version. + */ + readonly versionDescription: string; + /** + * Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + */ + readonly versionId: string; + /** + * Timestamp when this version was most recently updated. + */ + readonly versionUpdateTime: string; +} +/** + * Gets a Model. + */ +export function getModelOutput(args: GetModelOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getModel(a, opts)) +} + +export interface GetModelOutputArgs { + location: pulumi.Input; + modelId: pulumi.Input; + project?: pulumi.Input; +} diff --git a/sdk/nodejs/aiplatform/v1/index.ts b/sdk/nodejs/aiplatform/v1/index.ts index 75cff93e3d..0223a09a92 100644 --- a/sdk/nodejs/aiplatform/v1/index.ts +++ b/sdk/nodejs/aiplatform/v1/index.ts @@ -250,6 +250,11 @@ export const getMetadataStore: typeof import("./getMetadataStore").getMetadataSt export const getMetadataStoreOutput: typeof import("./getMetadataStore").getMetadataStoreOutput = null as any; utilities.lazyLoad(exports, ["getMetadataStore","getMetadataStoreOutput"], () => require("./getMetadataStore")); +export { GetModelArgs, GetModelResult, GetModelOutputArgs } from "./getModel"; +export const getModel: typeof import("./getModel").getModel = null as any; +export const getModelOutput: typeof import("./getModel").getModelOutput = null as any; +utilities.lazyLoad(exports, ["getModel","getModelOutput"], () => require("./getModel")); + export { GetModelDeploymentMonitoringJobArgs, GetModelDeploymentMonitoringJobResult, GetModelDeploymentMonitoringJobOutputArgs } from "./getModelDeploymentMonitoringJob"; export const getModelDeploymentMonitoringJob: typeof import("./getModelDeploymentMonitoringJob").getModelDeploymentMonitoringJob = null as any; export const getModelDeploymentMonitoringJobOutput: typeof import("./getModelDeploymentMonitoringJob").getModelDeploymentMonitoringJobOutput = null as any; @@ -340,6 +345,11 @@ export type MetadataStore = import("./metadataStore").MetadataStore; export const MetadataStore: typeof import("./metadataStore").MetadataStore = null as any; utilities.lazyLoad(exports, ["MetadataStore"], () => require("./metadataStore")); +export { ModelArgs } from "./model"; +export type Model = import("./model").Model; +export const Model: typeof import("./model").Model = null as any; +utilities.lazyLoad(exports, ["Model"], () => require("./model")); + export { ModelDeploymentMonitoringJobArgs } from "./modelDeploymentMonitoringJob"; export type ModelDeploymentMonitoringJob = import("./modelDeploymentMonitoringJob").ModelDeploymentMonitoringJob; export const ModelDeploymentMonitoringJob: typeof import("./modelDeploymentMonitoringJob").ModelDeploymentMonitoringJob = null as any; @@ -481,6 +491,8 @@ const _module = { return new MetadataSchema(name, undefined, { urn }) case "google-native:aiplatform/v1:MetadataStore": return new MetadataStore(name, undefined, { urn }) + case "google-native:aiplatform/v1:Model": + return new Model(name, undefined, { urn }) case "google-native:aiplatform/v1:ModelDeploymentMonitoringJob": return new ModelDeploymentMonitoringJob(name, undefined, { urn }) case "google-native:aiplatform/v1:NasJob": diff --git a/sdk/nodejs/aiplatform/v1/model.ts b/sdk/nodejs/aiplatform/v1/model.ts new file mode 100644 index 0000000000..3386fd6b6d --- /dev/null +++ b/sdk/nodejs/aiplatform/v1/model.ts @@ -0,0 +1,325 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Uploads a Model artifact into Vertex AI. + */ +export class Model extends pulumi.CustomResource { + /** + * Get an existing Model resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Model { + return new Model(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'google-native:aiplatform/v1:Model'; + + /** + * Returns true if the given object is an instance of Model. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Model { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Model.__pulumiType; + } + + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + public readonly artifactUri!: pulumi.Output; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + public readonly containerSpec!: pulumi.Output; + /** + * Timestamp when this Model was uploaded into Vertex AI. + */ + public /*out*/ readonly createTime!: pulumi.Output; + /** + * The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + */ + public /*out*/ readonly deployedModels!: pulumi.Output; + /** + * The description of the Model. + */ + public readonly description!: pulumi.Output; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + public readonly displayName!: pulumi.Output; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + public readonly encryptionSpec!: pulumi.Output; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + public readonly etag!: pulumi.Output; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + public readonly explanationSpec!: pulumi.Output; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + public readonly labels!: pulumi.Output<{[key: string]: string}>; + public readonly location!: pulumi.Output; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + public readonly metadata!: pulumi.Output; + /** + * The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + */ + public /*out*/ readonly metadataArtifact!: pulumi.Output; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + public readonly metadataSchemaUri!: pulumi.Output; + /** + * Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + */ + public /*out*/ readonly modelSourceInfo!: pulumi.Output; + /** + * The resource name of the Model. + */ + public readonly name!: pulumi.Output; + /** + * If this Model is a copy of another Model, this contains info about the original. + */ + public /*out*/ readonly originalModelInfo!: pulumi.Output; + /** + * Optional. This field is populated if the model is produced by a pipeline job. + */ + public readonly pipelineJob!: pulumi.Output; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + public readonly predictSchemata!: pulumi.Output; + public readonly project!: pulumi.Output; + /** + * When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + */ + public /*out*/ readonly supportedDeploymentResourcesTypes!: pulumi.Output; + /** + * The formats in which this Model may be exported. If empty, this Model is not available for export. + */ + public /*out*/ readonly supportedExportFormats!: pulumi.Output; + /** + * The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + public /*out*/ readonly supportedInputStorageFormats!: pulumi.Output; + /** + * The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + public /*out*/ readonly supportedOutputStorageFormats!: pulumi.Output; + /** + * The resource name of the TrainingPipeline that uploaded this Model, if any. + */ + public /*out*/ readonly trainingPipeline!: pulumi.Output; + /** + * Timestamp when this Model was most recently updated. + */ + public /*out*/ readonly updateTime!: pulumi.Output; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + public readonly versionAliases!: pulumi.Output; + /** + * Timestamp when this version was created. + */ + public /*out*/ readonly versionCreateTime!: pulumi.Output; + /** + * The description of this version. + */ + public readonly versionDescription!: pulumi.Output; + /** + * Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + */ + public /*out*/ readonly versionId!: pulumi.Output; + /** + * Timestamp when this version was most recently updated. + */ + public /*out*/ readonly versionUpdateTime!: pulumi.Output; + + /** + * Create a Model resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ModelArgs, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (!opts.id) { + if ((!args || args.displayName === undefined) && !opts.urn) { + throw new Error("Missing required property 'displayName'"); + } + resourceInputs["artifactUri"] = args ? args.artifactUri : undefined; + resourceInputs["containerSpec"] = args ? args.containerSpec : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["displayName"] = args ? args.displayName : undefined; + resourceInputs["encryptionSpec"] = args ? args.encryptionSpec : undefined; + resourceInputs["etag"] = args ? args.etag : undefined; + resourceInputs["explanationSpec"] = args ? args.explanationSpec : undefined; + resourceInputs["labels"] = args ? args.labels : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["metadata"] = args ? args.metadata : undefined; + resourceInputs["metadataSchemaUri"] = args ? args.metadataSchemaUri : undefined; + resourceInputs["modelId"] = args ? args.modelId : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["parentModel"] = args ? args.parentModel : undefined; + resourceInputs["pipelineJob"] = args ? args.pipelineJob : undefined; + resourceInputs["predictSchemata"] = args ? args.predictSchemata : undefined; + resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["serviceAccount"] = args ? args.serviceAccount : undefined; + resourceInputs["versionAliases"] = args ? args.versionAliases : undefined; + resourceInputs["versionDescription"] = args ? args.versionDescription : undefined; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["deployedModels"] = undefined /*out*/; + resourceInputs["metadataArtifact"] = undefined /*out*/; + resourceInputs["modelSourceInfo"] = undefined /*out*/; + resourceInputs["originalModelInfo"] = undefined /*out*/; + resourceInputs["supportedDeploymentResourcesTypes"] = undefined /*out*/; + resourceInputs["supportedExportFormats"] = undefined /*out*/; + resourceInputs["supportedInputStorageFormats"] = undefined /*out*/; + resourceInputs["supportedOutputStorageFormats"] = undefined /*out*/; + resourceInputs["trainingPipeline"] = undefined /*out*/; + resourceInputs["updateTime"] = undefined /*out*/; + resourceInputs["versionCreateTime"] = undefined /*out*/; + resourceInputs["versionId"] = undefined /*out*/; + resourceInputs["versionUpdateTime"] = undefined /*out*/; + } else { + resourceInputs["artifactUri"] = undefined /*out*/; + resourceInputs["containerSpec"] = undefined /*out*/; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["deployedModels"] = undefined /*out*/; + resourceInputs["description"] = undefined /*out*/; + resourceInputs["displayName"] = undefined /*out*/; + resourceInputs["encryptionSpec"] = undefined /*out*/; + resourceInputs["etag"] = undefined /*out*/; + resourceInputs["explanationSpec"] = undefined /*out*/; + resourceInputs["labels"] = undefined /*out*/; + resourceInputs["location"] = undefined /*out*/; + resourceInputs["metadata"] = undefined /*out*/; + resourceInputs["metadataArtifact"] = undefined /*out*/; + resourceInputs["metadataSchemaUri"] = undefined /*out*/; + resourceInputs["modelSourceInfo"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["originalModelInfo"] = undefined /*out*/; + resourceInputs["pipelineJob"] = undefined /*out*/; + resourceInputs["predictSchemata"] = undefined /*out*/; + resourceInputs["project"] = undefined /*out*/; + resourceInputs["supportedDeploymentResourcesTypes"] = undefined /*out*/; + resourceInputs["supportedExportFormats"] = undefined /*out*/; + resourceInputs["supportedInputStorageFormats"] = undefined /*out*/; + resourceInputs["supportedOutputStorageFormats"] = undefined /*out*/; + resourceInputs["trainingPipeline"] = undefined /*out*/; + resourceInputs["updateTime"] = undefined /*out*/; + resourceInputs["versionAliases"] = undefined /*out*/; + resourceInputs["versionCreateTime"] = undefined /*out*/; + resourceInputs["versionDescription"] = undefined /*out*/; + resourceInputs["versionId"] = undefined /*out*/; + resourceInputs["versionUpdateTime"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const replaceOnChanges = { replaceOnChanges: ["location", "project"] }; + opts = pulumi.mergeOptions(opts, replaceOnChanges); + super(Model.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * The set of arguments for constructing a Model resource. + */ +export interface ModelArgs { + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + artifactUri?: pulumi.Input; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + containerSpec?: pulumi.Input; + /** + * The description of the Model. + */ + description?: pulumi.Input; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + displayName: pulumi.Input; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + encryptionSpec?: pulumi.Input; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + etag?: pulumi.Input; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + explanationSpec?: pulumi.Input; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + labels?: pulumi.Input<{[key: string]: pulumi.Input}>; + location?: pulumi.Input; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + metadata?: any; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + metadataSchemaUri?: pulumi.Input; + /** + * Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + modelId?: pulumi.Input; + /** + * The resource name of the Model. + */ + name?: pulumi.Input; + /** + * Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + */ + parentModel?: pulumi.Input; + /** + * Optional. This field is populated if the model is produced by a pipeline job. + */ + pipelineJob?: pulumi.Input; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + predictSchemata?: pulumi.Input; + project?: pulumi.Input; + /** + * Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + */ + serviceAccount?: pulumi.Input; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + versionAliases?: pulumi.Input[]>; + /** + * The description of this version. + */ + versionDescription?: pulumi.Input; +} diff --git a/sdk/nodejs/aiplatform/v1beta1/getModel.ts b/sdk/nodejs/aiplatform/v1beta1/getModel.ts new file mode 100644 index 0000000000..2efe82622c --- /dev/null +++ b/sdk/nodejs/aiplatform/v1beta1/getModel.ts @@ -0,0 +1,154 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Gets a Model. + */ +export function getModel(args: GetModelArgs, opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("google-native:aiplatform/v1beta1:getModel", { + "location": args.location, + "modelId": args.modelId, + "project": args.project, + }, opts); +} + +export interface GetModelArgs { + location: string; + modelId: string; + project?: string; +} + +export interface GetModelResult { + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + readonly artifactUri: string; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + readonly containerSpec: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1ModelContainerSpecResponse; + /** + * Timestamp when this Model was uploaded into Vertex AI. + */ + readonly createTime: string; + /** + * The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + */ + readonly deployedModels: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1DeployedModelRefResponse[]; + /** + * The description of the Model. + */ + readonly description: string; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + readonly displayName: string; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + readonly encryptionSpec: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1EncryptionSpecResponse; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + readonly etag: string; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + readonly explanationSpec: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1ExplanationSpecResponse; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + readonly labels: {[key: string]: string}; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + readonly metadata: any; + /** + * The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + */ + readonly metadataArtifact: string; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + readonly metadataSchemaUri: string; + /** + * Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + */ + readonly modelSourceInfo: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1ModelSourceInfoResponse; + /** + * The resource name of the Model. + */ + readonly name: string; + /** + * If this Model is a copy of another Model, this contains info about the original. + */ + readonly originalModelInfo: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + readonly predictSchemata: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1PredictSchemataResponse; + /** + * When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + */ + readonly supportedDeploymentResourcesTypes: string[]; + /** + * The formats in which this Model may be exported. If empty, this Model is not available for export. + */ + readonly supportedExportFormats: outputs.aiplatform.v1beta1.GoogleCloudAiplatformV1beta1ModelExportFormatResponse[]; + /** + * The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + readonly supportedInputStorageFormats: string[]; + /** + * The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + readonly supportedOutputStorageFormats: string[]; + /** + * The resource name of the TrainingPipeline that uploaded this Model, if any. + */ + readonly trainingPipeline: string; + /** + * Timestamp when this Model was most recently updated. + */ + readonly updateTime: string; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + readonly versionAliases: string[]; + /** + * Timestamp when this version was created. + */ + readonly versionCreateTime: string; + /** + * The description of this version. + */ + readonly versionDescription: string; + /** + * Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + */ + readonly versionId: string; + /** + * Timestamp when this version was most recently updated. + */ + readonly versionUpdateTime: string; +} +/** + * Gets a Model. + */ +export function getModelOutput(args: GetModelOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getModel(a, opts)) +} + +export interface GetModelOutputArgs { + location: pulumi.Input; + modelId: pulumi.Input; + project?: pulumi.Input; +} diff --git a/sdk/nodejs/aiplatform/v1beta1/index.ts b/sdk/nodejs/aiplatform/v1beta1/index.ts index 94fff6deda..8e502919a1 100644 --- a/sdk/nodejs/aiplatform/v1beta1/index.ts +++ b/sdk/nodejs/aiplatform/v1beta1/index.ts @@ -270,6 +270,11 @@ export const getMetadataStore: typeof import("./getMetadataStore").getMetadataSt export const getMetadataStoreOutput: typeof import("./getMetadataStore").getMetadataStoreOutput = null as any; utilities.lazyLoad(exports, ["getMetadataStore","getMetadataStoreOutput"], () => require("./getMetadataStore")); +export { GetModelArgs, GetModelResult, GetModelOutputArgs } from "./getModel"; +export const getModel: typeof import("./getModel").getModel = null as any; +export const getModelOutput: typeof import("./getModel").getModelOutput = null as any; +utilities.lazyLoad(exports, ["getModel","getModelOutput"], () => require("./getModel")); + export { GetModelDeploymentMonitoringJobArgs, GetModelDeploymentMonitoringJobResult, GetModelDeploymentMonitoringJobOutputArgs } from "./getModelDeploymentMonitoringJob"; export const getModelDeploymentMonitoringJob: typeof import("./getModelDeploymentMonitoringJob").getModelDeploymentMonitoringJob = null as any; export const getModelDeploymentMonitoringJobOutput: typeof import("./getModelDeploymentMonitoringJob").getModelDeploymentMonitoringJobOutput = null as any; @@ -370,6 +375,11 @@ export type MetadataStore = import("./metadataStore").MetadataStore; export const MetadataStore: typeof import("./metadataStore").MetadataStore = null as any; utilities.lazyLoad(exports, ["MetadataStore"], () => require("./metadataStore")); +export { ModelArgs } from "./model"; +export type Model = import("./model").Model; +export const Model: typeof import("./model").Model = null as any; +utilities.lazyLoad(exports, ["Model"], () => require("./model")); + export { ModelDeploymentMonitoringJobArgs } from "./modelDeploymentMonitoringJob"; export type ModelDeploymentMonitoringJob = import("./modelDeploymentMonitoringJob").ModelDeploymentMonitoringJob; export const ModelDeploymentMonitoringJob: typeof import("./modelDeploymentMonitoringJob").ModelDeploymentMonitoringJob = null as any; @@ -537,6 +547,8 @@ const _module = { return new MetadataSchema(name, undefined, { urn }) case "google-native:aiplatform/v1beta1:MetadataStore": return new MetadataStore(name, undefined, { urn }) + case "google-native:aiplatform/v1beta1:Model": + return new Model(name, undefined, { urn }) case "google-native:aiplatform/v1beta1:ModelDeploymentMonitoringJob": return new ModelDeploymentMonitoringJob(name, undefined, { urn }) case "google-native:aiplatform/v1beta1:ModelIamBinding": diff --git a/sdk/nodejs/aiplatform/v1beta1/model.ts b/sdk/nodejs/aiplatform/v1beta1/model.ts new file mode 100644 index 0000000000..7e0b6b3ad2 --- /dev/null +++ b/sdk/nodejs/aiplatform/v1beta1/model.ts @@ -0,0 +1,315 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Uploads a Model artifact into Vertex AI. + */ +export class Model extends pulumi.CustomResource { + /** + * Get an existing Model resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Model { + return new Model(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'google-native:aiplatform/v1beta1:Model'; + + /** + * Returns true if the given object is an instance of Model. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Model { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Model.__pulumiType; + } + + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + public readonly artifactUri!: pulumi.Output; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + public readonly containerSpec!: pulumi.Output; + /** + * Timestamp when this Model was uploaded into Vertex AI. + */ + public /*out*/ readonly createTime!: pulumi.Output; + /** + * The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + */ + public /*out*/ readonly deployedModels!: pulumi.Output; + /** + * The description of the Model. + */ + public readonly description!: pulumi.Output; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + public readonly displayName!: pulumi.Output; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + public readonly encryptionSpec!: pulumi.Output; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + public readonly etag!: pulumi.Output; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + public readonly explanationSpec!: pulumi.Output; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + public readonly labels!: pulumi.Output<{[key: string]: string}>; + public readonly location!: pulumi.Output; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + public readonly metadata!: pulumi.Output; + /** + * The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + */ + public /*out*/ readonly metadataArtifact!: pulumi.Output; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + public readonly metadataSchemaUri!: pulumi.Output; + /** + * Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + */ + public /*out*/ readonly modelSourceInfo!: pulumi.Output; + /** + * The resource name of the Model. + */ + public readonly name!: pulumi.Output; + /** + * If this Model is a copy of another Model, this contains info about the original. + */ + public /*out*/ readonly originalModelInfo!: pulumi.Output; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + public readonly predictSchemata!: pulumi.Output; + public readonly project!: pulumi.Output; + /** + * When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + */ + public /*out*/ readonly supportedDeploymentResourcesTypes!: pulumi.Output; + /** + * The formats in which this Model may be exported. If empty, this Model is not available for export. + */ + public /*out*/ readonly supportedExportFormats!: pulumi.Output; + /** + * The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + public /*out*/ readonly supportedInputStorageFormats!: pulumi.Output; + /** + * The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + */ + public /*out*/ readonly supportedOutputStorageFormats!: pulumi.Output; + /** + * The resource name of the TrainingPipeline that uploaded this Model, if any. + */ + public /*out*/ readonly trainingPipeline!: pulumi.Output; + /** + * Timestamp when this Model was most recently updated. + */ + public /*out*/ readonly updateTime!: pulumi.Output; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + public readonly versionAliases!: pulumi.Output; + /** + * Timestamp when this version was created. + */ + public /*out*/ readonly versionCreateTime!: pulumi.Output; + /** + * The description of this version. + */ + public readonly versionDescription!: pulumi.Output; + /** + * Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + */ + public /*out*/ readonly versionId!: pulumi.Output; + /** + * Timestamp when this version was most recently updated. + */ + public /*out*/ readonly versionUpdateTime!: pulumi.Output; + + /** + * Create a Model resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ModelArgs, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (!opts.id) { + if ((!args || args.displayName === undefined) && !opts.urn) { + throw new Error("Missing required property 'displayName'"); + } + resourceInputs["artifactUri"] = args ? args.artifactUri : undefined; + resourceInputs["containerSpec"] = args ? args.containerSpec : undefined; + resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["displayName"] = args ? args.displayName : undefined; + resourceInputs["encryptionSpec"] = args ? args.encryptionSpec : undefined; + resourceInputs["etag"] = args ? args.etag : undefined; + resourceInputs["explanationSpec"] = args ? args.explanationSpec : undefined; + resourceInputs["labels"] = args ? args.labels : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["metadata"] = args ? args.metadata : undefined; + resourceInputs["metadataSchemaUri"] = args ? args.metadataSchemaUri : undefined; + resourceInputs["modelId"] = args ? args.modelId : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["parentModel"] = args ? args.parentModel : undefined; + resourceInputs["predictSchemata"] = args ? args.predictSchemata : undefined; + resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["serviceAccount"] = args ? args.serviceAccount : undefined; + resourceInputs["versionAliases"] = args ? args.versionAliases : undefined; + resourceInputs["versionDescription"] = args ? args.versionDescription : undefined; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["deployedModels"] = undefined /*out*/; + resourceInputs["metadataArtifact"] = undefined /*out*/; + resourceInputs["modelSourceInfo"] = undefined /*out*/; + resourceInputs["originalModelInfo"] = undefined /*out*/; + resourceInputs["supportedDeploymentResourcesTypes"] = undefined /*out*/; + resourceInputs["supportedExportFormats"] = undefined /*out*/; + resourceInputs["supportedInputStorageFormats"] = undefined /*out*/; + resourceInputs["supportedOutputStorageFormats"] = undefined /*out*/; + resourceInputs["trainingPipeline"] = undefined /*out*/; + resourceInputs["updateTime"] = undefined /*out*/; + resourceInputs["versionCreateTime"] = undefined /*out*/; + resourceInputs["versionId"] = undefined /*out*/; + resourceInputs["versionUpdateTime"] = undefined /*out*/; + } else { + resourceInputs["artifactUri"] = undefined /*out*/; + resourceInputs["containerSpec"] = undefined /*out*/; + resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["deployedModels"] = undefined /*out*/; + resourceInputs["description"] = undefined /*out*/; + resourceInputs["displayName"] = undefined /*out*/; + resourceInputs["encryptionSpec"] = undefined /*out*/; + resourceInputs["etag"] = undefined /*out*/; + resourceInputs["explanationSpec"] = undefined /*out*/; + resourceInputs["labels"] = undefined /*out*/; + resourceInputs["location"] = undefined /*out*/; + resourceInputs["metadata"] = undefined /*out*/; + resourceInputs["metadataArtifact"] = undefined /*out*/; + resourceInputs["metadataSchemaUri"] = undefined /*out*/; + resourceInputs["modelSourceInfo"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["originalModelInfo"] = undefined /*out*/; + resourceInputs["predictSchemata"] = undefined /*out*/; + resourceInputs["project"] = undefined /*out*/; + resourceInputs["supportedDeploymentResourcesTypes"] = undefined /*out*/; + resourceInputs["supportedExportFormats"] = undefined /*out*/; + resourceInputs["supportedInputStorageFormats"] = undefined /*out*/; + resourceInputs["supportedOutputStorageFormats"] = undefined /*out*/; + resourceInputs["trainingPipeline"] = undefined /*out*/; + resourceInputs["updateTime"] = undefined /*out*/; + resourceInputs["versionAliases"] = undefined /*out*/; + resourceInputs["versionCreateTime"] = undefined /*out*/; + resourceInputs["versionDescription"] = undefined /*out*/; + resourceInputs["versionId"] = undefined /*out*/; + resourceInputs["versionUpdateTime"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const replaceOnChanges = { replaceOnChanges: ["location", "project"] }; + opts = pulumi.mergeOptions(opts, replaceOnChanges); + super(Model.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * The set of arguments for constructing a Model resource. + */ +export interface ModelArgs { + /** + * Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + */ + artifactUri?: pulumi.Input; + /** + * Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + */ + containerSpec?: pulumi.Input; + /** + * The description of the Model. + */ + description?: pulumi.Input; + /** + * The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + */ + displayName: pulumi.Input; + /** + * Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + */ + encryptionSpec?: pulumi.Input; + /** + * Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + */ + etag?: pulumi.Input; + /** + * The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + */ + explanationSpec?: pulumi.Input; + /** + * The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + */ + labels?: pulumi.Input<{[key: string]: pulumi.Input}>; + location?: pulumi.Input; + /** + * Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + */ + metadata?: any; + /** + * Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + */ + metadataSchemaUri?: pulumi.Input; + /** + * Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + modelId?: pulumi.Input; + /** + * The resource name of the Model. + */ + name?: pulumi.Input; + /** + * Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + */ + parentModel?: pulumi.Input; + /** + * The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + */ + predictSchemata?: pulumi.Input; + project?: pulumi.Input; + /** + * Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + */ + serviceAccount?: pulumi.Input; + /** + * User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + */ + versionAliases?: pulumi.Input[]>; + /** + * The description of this version. + */ + versionDescription?: pulumi.Input; +} diff --git a/sdk/nodejs/cloudsearch/v1/getItem.ts b/sdk/nodejs/cloudsearch/v1/getItem.ts new file mode 100644 index 0000000000..5620eafd5b --- /dev/null +++ b/sdk/nodejs/cloudsearch/v1/getItem.ts @@ -0,0 +1,85 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + */ +export function getItem(args: GetItemArgs, opts?: pulumi.InvokeOptions): Promise { + + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("google-native:cloudsearch/v1:getItem", { + "connectorName": args.connectorName, + "datasourceId": args.datasourceId, + "debugOptionsEnableDebugging": args.debugOptionsEnableDebugging, + "itemId": args.itemId, + }, opts); +} + +export interface GetItemArgs { + connectorName?: string; + datasourceId: string; + debugOptionsEnableDebugging?: boolean; + itemId: string; +} + +export interface GetItemResult { + /** + * Access control list for this item. + */ + readonly acl: outputs.cloudsearch.v1.ItemAclResponse; + /** + * Item content to be indexed and made text searchable. + */ + readonly content: outputs.cloudsearch.v1.ItemContentResponse; + /** + * The type for this item. + */ + readonly itemType: string; + /** + * The metadata information. + */ + readonly metadata: outputs.cloudsearch.v1.ItemMetadataResponse; + /** + * The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + */ + readonly name: string; + /** + * Additional state connector can store for this item. The maximum length is 10000 bytes. + */ + readonly payload: string; + /** + * Queue this item belongs to. The maximum length is 100 characters. + */ + readonly queue: string; + /** + * Status of the item. Output only field. + */ + readonly status: outputs.cloudsearch.v1.ItemStatusResponse; + /** + * The structured data for the item that should conform to a registered object definition in the schema for the data source. + */ + readonly structuredData: outputs.cloudsearch.v1.ItemStructuredDataResponse; + /** + * The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + */ + readonly version: string; +} +/** + * Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + */ +export function getItemOutput(args: GetItemOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getItem(a, opts)) +} + +export interface GetItemOutputArgs { + connectorName?: pulumi.Input; + datasourceId: pulumi.Input; + debugOptionsEnableDebugging?: pulumi.Input; + itemId: pulumi.Input; +} diff --git a/sdk/nodejs/cloudsearch/v1/index.ts b/sdk/nodejs/cloudsearch/v1/index.ts index eb18697e69..5dd796981d 100644 --- a/sdk/nodejs/cloudsearch/v1/index.ts +++ b/sdk/nodejs/cloudsearch/v1/index.ts @@ -15,11 +15,21 @@ export const getDataSource: typeof import("./getDataSource").getDataSource = nul export const getDataSourceOutput: typeof import("./getDataSource").getDataSourceOutput = null as any; utilities.lazyLoad(exports, ["getDataSource","getDataSourceOutput"], () => require("./getDataSource")); +export { GetItemArgs, GetItemResult, GetItemOutputArgs } from "./getItem"; +export const getItem: typeof import("./getItem").getItem = null as any; +export const getItemOutput: typeof import("./getItem").getItemOutput = null as any; +utilities.lazyLoad(exports, ["getItem","getItemOutput"], () => require("./getItem")); + export { GetSearchApplicationArgs, GetSearchApplicationResult, GetSearchApplicationOutputArgs } from "./getSearchApplication"; export const getSearchApplication: typeof import("./getSearchApplication").getSearchApplication = null as any; export const getSearchApplicationOutput: typeof import("./getSearchApplication").getSearchApplicationOutput = null as any; utilities.lazyLoad(exports, ["getSearchApplication","getSearchApplicationOutput"], () => require("./getSearchApplication")); +export { ItemArgs } from "./item"; +export type Item = import("./item").Item; +export const Item: typeof import("./item").Item = null as any; +utilities.lazyLoad(exports, ["Item"], () => require("./item")); + export { SearchApplicationArgs } from "./searchApplication"; export type SearchApplication = import("./searchApplication").SearchApplication; export const SearchApplication: typeof import("./searchApplication").SearchApplication = null as any; @@ -35,6 +45,8 @@ const _module = { switch (type) { case "google-native:cloudsearch/v1:DataSource": return new DataSource(name, undefined, { urn }) + case "google-native:cloudsearch/v1:Item": + return new Item(name, undefined, { urn }) case "google-native:cloudsearch/v1:SearchApplication": return new SearchApplication(name, undefined, { urn }) default: diff --git a/sdk/nodejs/cloudsearch/v1/item.ts b/sdk/nodejs/cloudsearch/v1/item.ts new file mode 100644 index 0000000000..ee7aa6e12b --- /dev/null +++ b/sdk/nodejs/cloudsearch/v1/item.ts @@ -0,0 +1,150 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as enums from "../../types/enums"; +import * as utilities from "../../utilities"; + +/** + * Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + * Auto-naming is currently not supported for this resource. + */ +export class Item extends pulumi.CustomResource { + /** + * Get an existing Item resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): Item { + return new Item(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'google-native:cloudsearch/v1:Item'; + + /** + * Returns true if the given object is an instance of Item. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is Item { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === Item.__pulumiType; + } + + /** + * Access control list for this item. + */ + public /*out*/ readonly acl!: pulumi.Output; + /** + * Item content to be indexed and made text searchable. + */ + public /*out*/ readonly content!: pulumi.Output; + public readonly datasourceId!: pulumi.Output; + public readonly itemId!: pulumi.Output; + /** + * The type for this item. + */ + public /*out*/ readonly itemType!: pulumi.Output; + /** + * The metadata information. + */ + public /*out*/ readonly metadata!: pulumi.Output; + /** + * The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * Additional state connector can store for this item. The maximum length is 10000 bytes. + */ + public /*out*/ readonly payload!: pulumi.Output; + /** + * Queue this item belongs to. The maximum length is 100 characters. + */ + public /*out*/ readonly queue!: pulumi.Output; + /** + * Status of the item. Output only field. + */ + public /*out*/ readonly status!: pulumi.Output; + /** + * The structured data for the item that should conform to a registered object definition in the schema for the data source. + */ + public /*out*/ readonly structuredData!: pulumi.Output; + /** + * The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + */ + public /*out*/ readonly version!: pulumi.Output; + + /** + * Create a Item resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: ItemArgs, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (!opts.id) { + if ((!args || args.datasourceId === undefined) && !opts.urn) { + throw new Error("Missing required property 'datasourceId'"); + } + if ((!args || args.itemId === undefined) && !opts.urn) { + throw new Error("Missing required property 'itemId'"); + } + resourceInputs["connectorName"] = args ? args.connectorName : undefined; + resourceInputs["datasourceId"] = args ? args.datasourceId : undefined; + resourceInputs["debugOptions"] = args ? args.debugOptions : undefined; + resourceInputs["itemId"] = args ? args.itemId : undefined; + resourceInputs["acl"] = undefined /*out*/; + resourceInputs["content"] = undefined /*out*/; + resourceInputs["itemType"] = undefined /*out*/; + resourceInputs["metadata"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["payload"] = undefined /*out*/; + resourceInputs["queue"] = undefined /*out*/; + resourceInputs["status"] = undefined /*out*/; + resourceInputs["structuredData"] = undefined /*out*/; + resourceInputs["version"] = undefined /*out*/; + } else { + resourceInputs["acl"] = undefined /*out*/; + resourceInputs["content"] = undefined /*out*/; + resourceInputs["datasourceId"] = undefined /*out*/; + resourceInputs["itemId"] = undefined /*out*/; + resourceInputs["itemType"] = undefined /*out*/; + resourceInputs["metadata"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["payload"] = undefined /*out*/; + resourceInputs["queue"] = undefined /*out*/; + resourceInputs["status"] = undefined /*out*/; + resourceInputs["structuredData"] = undefined /*out*/; + resourceInputs["version"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const replaceOnChanges = { replaceOnChanges: ["datasourceId", "itemId"] }; + opts = pulumi.mergeOptions(opts, replaceOnChanges); + super(Item.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * The set of arguments for constructing a Item resource. + */ +export interface ItemArgs { + /** + * The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + */ + connectorName?: pulumi.Input; + datasourceId: pulumi.Input; + /** + * Common debug options. + */ + debugOptions?: pulumi.Input; + itemId: pulumi.Input; +} diff --git a/sdk/nodejs/contactcenterinsights/v1/conversation.ts b/sdk/nodejs/contactcenterinsights/v1/conversation.ts index 5983c073f0..14e3abcbc3 100644 --- a/sdk/nodejs/contactcenterinsights/v1/conversation.ts +++ b/sdk/nodejs/contactcenterinsights/v1/conversation.ts @@ -8,7 +8,7 @@ import * as enums from "../../types/enums"; import * as utilities from "../../utilities"; /** - * Creates a conversation. + * Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. */ export class Conversation extends pulumi.CustomResource { /** @@ -45,10 +45,6 @@ export class Conversation extends pulumi.CustomResource { * Call-specific metadata. */ public readonly callMetadata!: pulumi.Output; - /** - * A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - */ - public readonly conversationId!: pulumi.Output; /** * The time at which the conversation was created. */ @@ -131,10 +127,13 @@ export class Conversation extends pulumi.CustomResource { * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ - constructor(name: string, args?: ConversationArgs, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: ConversationArgs, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (!opts.id) { + if ((!args || args.parent === undefined) && !opts.urn) { + throw new Error("Missing required property 'parent'"); + } resourceInputs["agentId"] = args ? args.agentId : undefined; resourceInputs["callMetadata"] = args ? args.callMetadata : undefined; resourceInputs["conversationId"] = args ? args.conversationId : undefined; @@ -146,7 +145,10 @@ export class Conversation extends pulumi.CustomResource { resourceInputs["medium"] = args ? args.medium : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["obfuscatedUserId"] = args ? args.obfuscatedUserId : undefined; + resourceInputs["parent"] = args ? args.parent : undefined; resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["redactionConfig"] = args ? args.redactionConfig : undefined; + resourceInputs["speechConfig"] = args ? args.speechConfig : undefined; resourceInputs["startTime"] = args ? args.startTime : undefined; resourceInputs["ttl"] = args ? args.ttl : undefined; resourceInputs["createTime"] = undefined /*out*/; @@ -161,7 +163,6 @@ export class Conversation extends pulumi.CustomResource { } else { resourceInputs["agentId"] = undefined /*out*/; resourceInputs["callMetadata"] = undefined /*out*/; - resourceInputs["conversationId"] = undefined /*out*/; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["dataSource"] = undefined /*out*/; resourceInputs["dialogflowIntents"] = undefined /*out*/; @@ -203,7 +204,7 @@ export interface ConversationArgs { */ callMetadata?: pulumi.Input; /** - * A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + * Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` */ conversationId?: pulumi.Input; /** @@ -235,7 +236,19 @@ export interface ConversationArgs { * Obfuscated user ID which the customer sent to us. */ obfuscatedUserId?: pulumi.Input; + /** + * The parent resource of the conversation. + */ + parent: pulumi.Input; project?: pulumi.Input; + /** + * Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + */ + redactionConfig?: pulumi.Input; + /** + * Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. + */ + speechConfig?: pulumi.Input; /** * The time at which the conversation started. */ diff --git a/sdk/nodejs/iam/v1/key.ts b/sdk/nodejs/iam/v1/key.ts index 9c675ae504..8d1b8082a2 100644 --- a/sdk/nodejs/iam/v1/key.ts +++ b/sdk/nodejs/iam/v1/key.ts @@ -2,13 +2,10 @@ // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "../../types/input"; -import * as outputs from "../../types/output"; -import * as enums from "../../types/enums"; import * as utilities from "../../utilities"; /** - * Creates a ServiceAccountKey. + * Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key. * Auto-naming is currently not supported for this resource. */ export class Key extends pulumi.CustomResource { @@ -45,7 +42,7 @@ export class Key extends pulumi.CustomResource { /** * Specifies the algorithm (and possibly key size) for the key. */ - public readonly keyAlgorithm!: pulumi.Output; + public /*out*/ readonly keyAlgorithm!: pulumi.Output; /** * The key origin. */ @@ -65,12 +62,12 @@ export class Key extends pulumi.CustomResource { /** * The output format for the private key. Only provided in `CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or `ListServiceAccountKey` responses. Google never exposes system-managed private keys, and never retains user-managed private keys. */ - public readonly privateKeyType!: pulumi.Output; + public /*out*/ readonly privateKeyType!: pulumi.Output; public readonly project!: pulumi.Output; /** * The public key data. Only provided in `GetServiceAccountKey` responses. */ - public /*out*/ readonly publicKeyData!: pulumi.Output; + public readonly publicKeyData!: pulumi.Output; public readonly serviceAccountId!: pulumi.Output; /** * The key can be used after this timestamp. @@ -95,16 +92,16 @@ export class Key extends pulumi.CustomResource { if ((!args || args.serviceAccountId === undefined) && !opts.urn) { throw new Error("Missing required property 'serviceAccountId'"); } - resourceInputs["keyAlgorithm"] = args ? args.keyAlgorithm : undefined; - resourceInputs["privateKeyType"] = args ? args.privateKeyType : undefined; resourceInputs["project"] = args ? args.project : undefined; + resourceInputs["publicKeyData"] = args ? args.publicKeyData : undefined; resourceInputs["serviceAccountId"] = args ? args.serviceAccountId : undefined; resourceInputs["disabled"] = undefined /*out*/; + resourceInputs["keyAlgorithm"] = undefined /*out*/; resourceInputs["keyOrigin"] = undefined /*out*/; resourceInputs["keyType"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["privateKeyData"] = undefined /*out*/; - resourceInputs["publicKeyData"] = undefined /*out*/; + resourceInputs["privateKeyType"] = undefined /*out*/; resourceInputs["validAfterTime"] = undefined /*out*/; resourceInputs["validBeforeTime"] = undefined /*out*/; } else { @@ -132,14 +129,10 @@ export class Key extends pulumi.CustomResource { * The set of arguments for constructing a Key resource. */ export interface KeyArgs { + project?: pulumi.Input; /** - * Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - */ - keyAlgorithm?: pulumi.Input; - /** - * The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. + * The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. */ - privateKeyType?: pulumi.Input; - project?: pulumi.Input; + publicKeyData?: pulumi.Input; serviceAccountId: pulumi.Input; } diff --git a/sdk/nodejs/integrations/v1alpha/version.ts b/sdk/nodejs/integrations/v1alpha/version.ts index 91187e140d..56b4d8b07d 100644 --- a/sdk/nodejs/integrations/v1alpha/version.ts +++ b/sdk/nodejs/integrations/v1alpha/version.ts @@ -8,7 +8,7 @@ import * as enums from "../../types/enums"; import * as utilities from "../../utilities"; /** - * Create a integration with a draft version in the specified project. + * Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. * Auto-naming is currently not supported for this resource. */ export class Version extends pulumi.CustomResource { @@ -41,11 +41,7 @@ export class Version extends pulumi.CustomResource { /** * Optional. Cloud Logging details for the integration version */ - public readonly cloudLoggingDetails!: pulumi.Output; - /** - * Optional. Optional. Indicates if sample workflow should be created. - */ - public readonly createSampleIntegrations!: pulumi.Output; + public /*out*/ readonly cloudLoggingDetails!: pulumi.Output; /** * Auto-generated. */ @@ -53,59 +49,55 @@ export class Version extends pulumi.CustomResource { /** * Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. */ - public readonly databasePersistencePolicy!: pulumi.Output; + public /*out*/ readonly databasePersistencePolicy!: pulumi.Output; /** * Optional. The integration description. */ - public readonly description!: pulumi.Output; + public /*out*/ readonly description!: pulumi.Output; /** * Optional. Error Catch Task configuration for the integration. It's optional. */ - public readonly errorCatcherConfigs!: pulumi.Output; + public /*out*/ readonly errorCatcherConfigs!: pulumi.Output; public readonly integrationId!: pulumi.Output; /** * Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. */ - public readonly integrationParameters!: pulumi.Output; + public /*out*/ readonly integrationParameters!: pulumi.Output; /** * Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. */ - public readonly integrationParametersInternal!: pulumi.Output; + public /*out*/ readonly integrationParametersInternal!: pulumi.Output; /** * Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. */ - public readonly lastModifierEmail!: pulumi.Output; + public /*out*/ readonly lastModifierEmail!: pulumi.Output; public readonly location!: pulumi.Output; /** * Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. */ - public readonly lockHolder!: pulumi.Output; + public /*out*/ readonly lockHolder!: pulumi.Output; /** * Auto-generated primary key. */ public /*out*/ readonly name!: pulumi.Output; - /** - * Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - */ - public readonly newIntegration!: pulumi.Output; /** * Optional. The origin that indicates where this integration is coming from. */ - public readonly origin!: pulumi.Output; + public /*out*/ readonly origin!: pulumi.Output; /** * Optional. The id of the template which was used to create this integration_version. */ - public readonly parentTemplateId!: pulumi.Output; + public /*out*/ readonly parentTemplateId!: pulumi.Output; public readonly productId!: pulumi.Output; public readonly project!: pulumi.Output; /** * Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. */ - public readonly runAsServiceAccount!: pulumi.Output; + public /*out*/ readonly runAsServiceAccount!: pulumi.Output; /** * Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. */ - public readonly snapshotNumber!: pulumi.Output; + public /*out*/ readonly snapshotNumber!: pulumi.Output; /** * User should not set it as an input. */ @@ -117,23 +109,23 @@ export class Version extends pulumi.CustomResource { /** * Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. */ - public readonly taskConfigs!: pulumi.Output; + public /*out*/ readonly taskConfigs!: pulumi.Output; /** * Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. */ - public readonly taskConfigsInternal!: pulumi.Output; + public /*out*/ readonly taskConfigsInternal!: pulumi.Output; /** * Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. */ - public readonly teardown!: pulumi.Output; + public /*out*/ readonly teardown!: pulumi.Output; /** * Optional. Trigger configurations. */ - public readonly triggerConfigs!: pulumi.Output; + public /*out*/ readonly triggerConfigs!: pulumi.Output; /** * Optional. Trigger configurations. */ - public readonly triggerConfigsInternal!: pulumi.Output; + public /*out*/ readonly triggerConfigsInternal!: pulumi.Output; /** * Auto-generated. */ @@ -141,7 +133,7 @@ export class Version extends pulumi.CustomResource { /** * Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. */ - public readonly userLabel!: pulumi.Output; + public /*out*/ readonly userLabel!: pulumi.Output; /** * Create a Version resource with the given unique name, arguments, and options. @@ -160,38 +152,37 @@ export class Version extends pulumi.CustomResource { if ((!args || args.productId === undefined) && !opts.urn) { throw new Error("Missing required property 'productId'"); } - resourceInputs["cloudLoggingDetails"] = args ? args.cloudLoggingDetails : undefined; - resourceInputs["createSampleIntegrations"] = args ? args.createSampleIntegrations : undefined; - resourceInputs["databasePersistencePolicy"] = args ? args.databasePersistencePolicy : undefined; - resourceInputs["description"] = args ? args.description : undefined; - resourceInputs["errorCatcherConfigs"] = args ? args.errorCatcherConfigs : undefined; + resourceInputs["content"] = args ? args.content : undefined; + resourceInputs["fileFormat"] = args ? args.fileFormat : undefined; resourceInputs["integrationId"] = args ? args.integrationId : undefined; - resourceInputs["integrationParameters"] = args ? args.integrationParameters : undefined; - resourceInputs["integrationParametersInternal"] = args ? args.integrationParametersInternal : undefined; - resourceInputs["lastModifierEmail"] = args ? args.lastModifierEmail : undefined; resourceInputs["location"] = args ? args.location : undefined; - resourceInputs["lockHolder"] = args ? args.lockHolder : undefined; - resourceInputs["newIntegration"] = args ? args.newIntegration : undefined; - resourceInputs["origin"] = args ? args.origin : undefined; - resourceInputs["parentTemplateId"] = args ? args.parentTemplateId : undefined; resourceInputs["productId"] = args ? args.productId : undefined; resourceInputs["project"] = args ? args.project : undefined; - resourceInputs["runAsServiceAccount"] = args ? args.runAsServiceAccount : undefined; - resourceInputs["snapshotNumber"] = args ? args.snapshotNumber : undefined; - resourceInputs["taskConfigs"] = args ? args.taskConfigs : undefined; - resourceInputs["taskConfigsInternal"] = args ? args.taskConfigsInternal : undefined; - resourceInputs["teardown"] = args ? args.teardown : undefined; - resourceInputs["triggerConfigs"] = args ? args.triggerConfigs : undefined; - resourceInputs["triggerConfigsInternal"] = args ? args.triggerConfigsInternal : undefined; - resourceInputs["userLabel"] = args ? args.userLabel : undefined; + resourceInputs["cloudLoggingDetails"] = undefined /*out*/; resourceInputs["createTime"] = undefined /*out*/; + resourceInputs["databasePersistencePolicy"] = undefined /*out*/; + resourceInputs["description"] = undefined /*out*/; + resourceInputs["errorCatcherConfigs"] = undefined /*out*/; + resourceInputs["integrationParameters"] = undefined /*out*/; + resourceInputs["integrationParametersInternal"] = undefined /*out*/; + resourceInputs["lastModifierEmail"] = undefined /*out*/; + resourceInputs["lockHolder"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; + resourceInputs["origin"] = undefined /*out*/; + resourceInputs["parentTemplateId"] = undefined /*out*/; + resourceInputs["runAsServiceAccount"] = undefined /*out*/; + resourceInputs["snapshotNumber"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; + resourceInputs["taskConfigs"] = undefined /*out*/; + resourceInputs["taskConfigsInternal"] = undefined /*out*/; + resourceInputs["teardown"] = undefined /*out*/; + resourceInputs["triggerConfigs"] = undefined /*out*/; + resourceInputs["triggerConfigsInternal"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; + resourceInputs["userLabel"] = undefined /*out*/; } else { resourceInputs["cloudLoggingDetails"] = undefined /*out*/; - resourceInputs["createSampleIntegrations"] = undefined /*out*/; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["databasePersistencePolicy"] = undefined /*out*/; resourceInputs["description"] = undefined /*out*/; @@ -203,7 +194,6 @@ export class Version extends pulumi.CustomResource { resourceInputs["location"] = undefined /*out*/; resourceInputs["lockHolder"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; - resourceInputs["newIntegration"] = undefined /*out*/; resourceInputs["origin"] = undefined /*out*/; resourceInputs["parentTemplateId"] = undefined /*out*/; resourceInputs["productId"] = undefined /*out*/; @@ -232,87 +222,15 @@ export class Version extends pulumi.CustomResource { */ export interface VersionArgs { /** - * Optional. Cloud Logging details for the integration version - */ - cloudLoggingDetails?: pulumi.Input; - /** - * Optional. Optional. Indicates if sample workflow should be created. + * The textproto of the integration_version. */ - createSampleIntegrations?: pulumi.Input; + content?: pulumi.Input; /** - * Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - */ - databasePersistencePolicy?: pulumi.Input; - /** - * Optional. The integration description. + * File format for upload request. */ - description?: pulumi.Input; - /** - * Optional. Error Catch Task configuration for the integration. It's optional. - */ - errorCatcherConfigs?: pulumi.Input[]>; + fileFormat?: pulumi.Input; integrationId: pulumi.Input; - /** - * Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - */ - integrationParameters?: pulumi.Input[]>; - /** - * Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - */ - integrationParametersInternal?: pulumi.Input; - /** - * Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - */ - lastModifierEmail?: pulumi.Input; location?: pulumi.Input; - /** - * Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - */ - lockHolder?: pulumi.Input; - /** - * Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - */ - newIntegration?: pulumi.Input; - /** - * Optional. The origin that indicates where this integration is coming from. - */ - origin?: pulumi.Input; - /** - * Optional. The id of the template which was used to create this integration_version. - */ - parentTemplateId?: pulumi.Input; productId: pulumi.Input; project?: pulumi.Input; - /** - * Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - */ - runAsServiceAccount?: pulumi.Input; - /** - * Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - */ - snapshotNumber?: pulumi.Input; - /** - * Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - */ - taskConfigs?: pulumi.Input[]>; - /** - * Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - */ - taskConfigsInternal?: pulumi.Input[]>; - /** - * Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - */ - teardown?: pulumi.Input; - /** - * Optional. Trigger configurations. - */ - triggerConfigs?: pulumi.Input[]>; - /** - * Optional. Trigger configurations. - */ - triggerConfigsInternal?: pulumi.Input[]>; - /** - * Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. - */ - userLabel?: pulumi.Input; } diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 5116c0d3e5..f4ca2188f3 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -86,6 +86,7 @@ "aiplatform/v1/getIndexEndpoint.ts", "aiplatform/v1/getMetadataSchema.ts", "aiplatform/v1/getMetadataStore.ts", + "aiplatform/v1/getModel.ts", "aiplatform/v1/getModelDeploymentMonitoringJob.ts", "aiplatform/v1/getNasJob.ts", "aiplatform/v1/getNotebookRuntimeTemplate.ts", @@ -105,6 +106,7 @@ "aiplatform/v1/index_.ts", "aiplatform/v1/metadataSchema.ts", "aiplatform/v1/metadataStore.ts", + "aiplatform/v1/model.ts", "aiplatform/v1/modelDeploymentMonitoringJob.ts", "aiplatform/v1/nasJob.ts", "aiplatform/v1/notebookRuntimeTemplate.ts", @@ -173,6 +175,7 @@ "aiplatform/v1beta1/getIndexEndpoint.ts", "aiplatform/v1beta1/getMetadataSchema.ts", "aiplatform/v1beta1/getMetadataStore.ts", + "aiplatform/v1beta1/getModel.ts", "aiplatform/v1beta1/getModelDeploymentMonitoringJob.ts", "aiplatform/v1beta1/getModelIamPolicy.ts", "aiplatform/v1beta1/getNasJob.ts", @@ -194,6 +197,7 @@ "aiplatform/v1beta1/index_.ts", "aiplatform/v1beta1/metadataSchema.ts", "aiplatform/v1beta1/metadataStore.ts", + "aiplatform/v1beta1/model.ts", "aiplatform/v1beta1/modelDeploymentMonitoringJob.ts", "aiplatform/v1beta1/modelIamBinding.ts", "aiplatform/v1beta1/modelIamMember.ts", @@ -1042,8 +1046,10 @@ "cloudsearch/index.ts", "cloudsearch/v1/dataSource.ts", "cloudsearch/v1/getDataSource.ts", + "cloudsearch/v1/getItem.ts", "cloudsearch/v1/getSearchApplication.ts", "cloudsearch/v1/index.ts", + "cloudsearch/v1/item.ts", "cloudsearch/v1/searchApplication.ts", "cloudsupport/index.ts", "cloudsupport/v2/case.ts", diff --git a/sdk/nodejs/types/enums/iam/v1/index.ts b/sdk/nodejs/types/enums/iam/v1/index.ts index 9624468cd7..f054c1dc99 100644 --- a/sdk/nodejs/types/enums/iam/v1/index.ts +++ b/sdk/nodejs/types/enums/iam/v1/index.ts @@ -90,46 +90,6 @@ export const KeyDataKeySpec = { */ export type KeyDataKeySpec = (typeof KeyDataKeySpec)[keyof typeof KeyDataKeySpec]; -export const KeyKeyAlgorithm = { - /** - * An unspecified key algorithm. - */ - KeyAlgUnspecified: "KEY_ALG_UNSPECIFIED", - /** - * 1k RSA Key. - */ - KeyAlgRsa1024: "KEY_ALG_RSA_1024", - /** - * 2k RSA Key. - */ - KeyAlgRsa2048: "KEY_ALG_RSA_2048", -} as const; - -/** - * Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - */ -export type KeyKeyAlgorithm = (typeof KeyKeyAlgorithm)[keyof typeof KeyKeyAlgorithm]; - -export const KeyPrivateKeyType = { - /** - * Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - */ - TypeUnspecified: "TYPE_UNSPECIFIED", - /** - * PKCS12 format. The password for the PKCS12 file is `notasecret`. For more information, see https://tools.ietf.org/html/rfc7292. - */ - TypePkcs12File: "TYPE_PKCS12_FILE", - /** - * Google Credentials File format. - */ - TypeGoogleCredentialsFile: "TYPE_GOOGLE_CREDENTIALS_FILE", -} as const; - -/** - * The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - */ -export type KeyPrivateKeyType = (typeof KeyPrivateKeyType)[keyof typeof KeyPrivateKeyType]; - export const OrganizationRoleStage = { /** * The user has indicated this role is currently in an Alpha phase. If this launch stage is selected, the `stage` field will not be included when requesting the definition for a given role. diff --git a/sdk/nodejs/types/enums/integrations/v1alpha/index.ts b/sdk/nodejs/types/enums/integrations/v1alpha/index.ts index 18f4c42ca1..989155d369 100644 --- a/sdk/nodejs/types/enums/integrations/v1alpha/index.ts +++ b/sdk/nodejs/types/enums/integrations/v1alpha/index.ts @@ -1877,6 +1877,26 @@ export const VersionDatabasePersistencePolicy = { */ export type VersionDatabasePersistencePolicy = (typeof VersionDatabasePersistencePolicy)[keyof typeof VersionDatabasePersistencePolicy]; +export const VersionFileFormat = { + /** + * Unspecified file format + */ + FileFormatUnspecified: "FILE_FORMAT_UNSPECIFIED", + /** + * JSON File Format + */ + Json: "JSON", + /** + * YAML File Format + */ + Yaml: "YAML", +} as const; + +/** + * File format for upload request. + */ +export type VersionFileFormat = (typeof VersionFileFormat)[keyof typeof VersionFileFormat]; + export const VersionOrigin = { Unspecified: "UNSPECIFIED", /** diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 002e201702..069b65318b 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -18116,6 +18116,16 @@ export namespace cloudsearch { year?: pulumi.Input; } + /** + * Shared request debug options for all cloudsearch RPC methods. + */ + export interface DebugOptionsArgs { + /** + * If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + */ + enableDebugging?: pulumi.Input; + } + /** * Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. */ @@ -34983,6 +34993,29 @@ export namespace contactcenterinsights { type: pulumi.Input; } + /** + * DLP resources used for redaction while ingesting conversations. + */ + export interface GoogleCloudContactcenterinsightsV1RedactionConfigArgs { + /** + * The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + */ + deidentifyTemplate?: pulumi.Input; + /** + * The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + */ + inspectTemplate?: pulumi.Input; + } + + /** + * Speech-to-Text configuration. + */ + export interface GoogleCloudContactcenterinsightsV1SpeechConfigArgs { + /** + * The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + */ + speechRecognizer?: pulumi.Input; + } } } @@ -75470,42 +75503,6 @@ export namespace integrations { sslCertificate?: pulumi.Input; } - /** - * Cloud Logging details for execution info - */ - export interface GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs { - /** - * Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. - */ - cloudLoggingSeverity?: pulumi.Input; - /** - * Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. - */ - enableCloudLogging?: pulumi.Input; - } - - /** - * Cloud Scheduler Trigger configuration - */ - export interface GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs { - /** - * The cron tab of cloud scheduler trigger. - */ - cronTab: pulumi.Input; - /** - * Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations - */ - errorMessage?: pulumi.Input; - /** - * The location where associated cloud scheduler job will be created - */ - location: pulumi.Input; - /** - * Service account used by Cloud Scheduler to trigger the integration at scheduled time - */ - serviceAccountEmail: pulumi.Input; - } - /** * Configuration detail of coordinate, it used for UI */ @@ -75616,24 +75613,6 @@ export namespace integrations { value?: pulumi.Input; } - /** - * Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). - */ - export interface GoogleCloudIntegrationsV1alphaFailurePolicyArgs { - /** - * Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. - */ - intervalTime?: pulumi.Input; - /** - * Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. - */ - maxRetries?: pulumi.Input; - /** - * Defines what happens to the task upon failure. - */ - retryStrategy?: pulumi.Input; - } - /** * This message only contains a field of integer array. */ @@ -75644,62 +75623,6 @@ export namespace integrations { intValues?: pulumi.Input[]>; } - /** - * Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. - */ - export interface GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs { - /** - * The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. - */ - aggregationPeriod?: pulumi.Input; - /** - * For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. - */ - alertThreshold?: pulumi.Input; - /** - * Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. - */ - disableAlert?: pulumi.Input; - /** - * Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. - */ - displayName?: pulumi.Input; - /** - * Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. - */ - durationThreshold?: pulumi.Input; - /** - * The type of metric. - */ - metricType?: pulumi.Input; - /** - * For either events or tasks, depending on the type of alert, count only final attempts, not retries. - */ - onlyFinalAttempt?: pulumi.Input; - /** - * The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. - */ - thresholdType?: pulumi.Input; - /** - * The metric value, above or below which the alert should be triggered. - */ - thresholdValue?: pulumi.Input; - } - - /** - * The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. - */ - export interface GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs { - /** - * Absolute value threshold. - */ - absolute?: pulumi.Input; - /** - * Percentage threshold. - */ - percentage?: pulumi.Input; - } - /** * Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition. */ @@ -76026,86 +75949,6 @@ export namespace integrations { stringValues?: pulumi.Input[]>; } - /** - * Policy that dictates the behavior for the task after it completes successfully. - */ - export interface GoogleCloudIntegrationsV1alphaSuccessPolicyArgs { - /** - * State to which the execution snapshot status will be set if the task succeeds. - */ - finalState?: pulumi.Input; - } - - /** - * The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. - */ - export interface GoogleCloudIntegrationsV1alphaTaskConfigArgs { - /** - * Optional. User-provided description intended to give additional business context about the task. - */ - description?: pulumi.Input; - /** - * Optional. User-provided label that is attached to this TaskConfig in the UI. - */ - displayName?: pulumi.Input; - /** - * Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - */ - errorCatcherId?: pulumi.Input; - /** - * Optional. External task type of the task - */ - externalTaskType?: pulumi.Input; - /** - * Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). - */ - failurePolicy?: pulumi.Input; - /** - * Optional. If set, overrides the option configured in the Task implementation class. - */ - jsonValidationOption?: pulumi.Input; - /** - * Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. - */ - nextTasks?: pulumi.Input[]>; - /** - * Optional. The policy dictating the execution of the next set of tasks for the current task. - */ - nextTasksExecutionPolicy?: pulumi.Input; - /** - * Optional. The customized parameters the user can pass to this task. - */ - parameters?: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * Optional. Informs the front-end application where to draw this error catcher config on the UI. - */ - position?: pulumi.Input; - /** - * Optional. Determines what action to take upon successful task completion. - */ - successPolicy?: pulumi.Input; - /** - * Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). - */ - synchronousCallFailurePolicy?: pulumi.Input; - /** - * Optional. The name for the task. - */ - task?: pulumi.Input; - /** - * Optional. The policy dictating the execution strategy of this task. - */ - taskExecutionStrategy?: pulumi.Input; - /** - * The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). - */ - taskId: pulumi.Input; - /** - * Optional. Used to define task-template name if task is of type task-template - */ - taskTemplate?: pulumi.Input; - } - /** * The task mock configuration details and assertions for functional tests. Next available id: 5 */ @@ -76128,64 +75971,6 @@ export namespace integrations { taskNumber: pulumi.Input; } - /** - * Configuration detail of a trigger. - */ - export interface GoogleCloudIntegrationsV1alphaTriggerConfigArgs { - /** - * Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. - */ - alertConfig?: pulumi.Input[]>; - /** - * Optional. Cloud Scheduler Trigger related metadata - */ - cloudSchedulerConfig?: pulumi.Input; - /** - * Optional. User-provided description intended to give additional business context about the task. - */ - description?: pulumi.Input; - /** - * Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - */ - errorCatcherId?: pulumi.Input; - /** - * Optional. The user created label for a particular trigger. - */ - label?: pulumi.Input; - /** - * Optional. Dictates how next tasks will be executed. - */ - nextTasksExecutionPolicy?: pulumi.Input; - /** - * Optional. Informs the front-end application where to draw this error catcher config on the UI. - */ - position?: pulumi.Input; - /** - * Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. - */ - properties?: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). - */ - startTasks?: pulumi.Input[]>; - /** - * Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. - */ - trigger?: pulumi.Input; - /** - * Optional. The backend trigger ID. - */ - triggerId?: pulumi.Input; - /** - * A number to uniquely identify each trigger config within the integration on UI. - */ - triggerNumber: pulumi.Input; - /** - * Optional. Type of trigger - */ - triggerType?: pulumi.Input; - } - /** * Username and password pair. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 09b6e5f447..39264a64cf 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -23759,6 +23759,20 @@ export namespace cloudsearch { subFilters: outputs.cloudsearch.v1.FilterResponse[]; } + /** + * A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. + */ + export interface ContextAttributeResponse { + /** + * The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. + */ + name: string; + /** + * Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. + */ + values: string[]; + } + /** * Restriction on Datasource. */ @@ -23791,6 +23805,30 @@ export namespace cloudsearch { year: number; } + /** + * List of date values. + */ + export interface DateValuesResponse { + values: outputs.cloudsearch.v1.DateResponse[]; + } + + /** + * List of double values. + */ + export interface DoubleValuesResponse { + values: number[]; + } + + /** + * List of enum values. + */ + export interface EnumValuesResponse { + /** + * The maximum allowable length for string values is 32 characters. + */ + values: string[]; + } + /** * Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination. */ @@ -23817,6 +23855,17 @@ export namespace cloudsearch { sourceName: string; } + export interface FieldViolationResponse { + /** + * The description of the error. + */ + description: string; + /** + * Path of field with violation. + */ + field: string; + } + /** * Filter options to be applied on query. */ @@ -23854,6 +23903,16 @@ export namespace cloudsearch { gsuiteUserEmail: string; } + /** + * List of html values. + */ + export interface HtmlValuesResponse { + /** + * The maximum allowable length for html values is 2048 characters. + */ + values: string[]; + } + /** * Used to specify integer faceting options. */ @@ -23864,6 +23923,222 @@ export namespace cloudsearch { integerBuckets: string[]; } + /** + * List of integer values. + */ + export interface IntegerValuesResponse { + values: string[]; + } + + /** + * Represents an interaction between a user and an item. + */ + export interface InteractionResponse { + /** + * The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. + */ + interactionTime: string; + /** + * The user that acted on the item. + */ + principal: outputs.cloudsearch.v1.PrincipalResponse; + type: string; + } + + /** + * Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). + */ + export interface ItemAclResponse { + /** + * Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. + */ + aclInheritanceType: string; + /** + * List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. + */ + deniedReaders: outputs.cloudsearch.v1.PrincipalResponse[]; + /** + * The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. + */ + inheritAclFrom: string; + /** + * Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. + */ + owners: outputs.cloudsearch.v1.PrincipalResponse[]; + /** + * List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. + */ + readers: outputs.cloudsearch.v1.PrincipalResponse[]; + } + + /** + * Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. + */ + export interface ItemContentResponse { + /** + * Upload reference ID of a previously uploaded content via write method. + */ + contentDataRef: outputs.cloudsearch.v1.UploadItemRefResponse; + contentFormat: string; + /** + * Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + */ + hash: string; + /** + * Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). + */ + inlineContent: string; + } + + /** + * Available metadata fields for the item. + */ + export interface ItemMetadataResponse { + /** + * The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. + */ + containerName: string; + /** + * The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. + */ + contentLanguage: string; + /** + * A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. + */ + contextAttributes: outputs.cloudsearch.v1.ContextAttributeResponse[]; + /** + * The time when the item was created in the source repository. + */ + createTime: string; + /** + * Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + */ + hash: string; + /** + * A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. + */ + interactions: outputs.cloudsearch.v1.InteractionResponse[]; + /** + * Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. + */ + keywords: string[]; + /** + * The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. + */ + mimeType: string; + /** + * The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. + */ + objectType: string; + /** + * Additional search quality metadata of the item + */ + searchQualityMetadata: outputs.cloudsearch.v1.SearchQualityMetadataResponse; + /** + * Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. + */ + sourceRepositoryUrl: string; + /** + * The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. + */ + title: string; + /** + * The time when the item was last modified in the source repository. + */ + updateTime: string; + } + + /** + * This contains item's status and any errors. + */ + export interface ItemStatusResponse { + /** + * Status code. + */ + code: string; + /** + * Error details in case the item is in ERROR state. + */ + processingErrors: outputs.cloudsearch.v1.ProcessingErrorResponse[]; + /** + * Repository error reported by connector. + */ + repositoryErrors: outputs.cloudsearch.v1.RepositoryErrorResponse[]; + } + + /** + * Available structured data fields for the item. + */ + export interface ItemStructuredDataResponse { + /** + * Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + */ + hash: string; + /** + * The structured data object that should conform to a registered object definition in the schema for the data source. + */ + object: outputs.cloudsearch.v1.StructuredDataObjectResponse; + } + + /** + * A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. + */ + export interface NamedPropertyResponse { + booleanValue: boolean; + dateValues: outputs.cloudsearch.v1.DateValuesResponse; + doubleValues: outputs.cloudsearch.v1.DoubleValuesResponse; + enumValues: outputs.cloudsearch.v1.EnumValuesResponse; + htmlValues: outputs.cloudsearch.v1.HtmlValuesResponse; + integerValues: outputs.cloudsearch.v1.IntegerValuesResponse; + /** + * The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. + */ + name: string; + objectValues: outputs.cloudsearch.v1.ObjectValuesResponse; + textValues: outputs.cloudsearch.v1.TextValuesResponse; + timestampValues: outputs.cloudsearch.v1.TimestampValuesResponse; + } + + /** + * List of object values. + */ + export interface ObjectValuesResponse { + values: outputs.cloudsearch.v1.StructuredDataObjectResponse[]; + } + + /** + * Reference to a user, group, or domain. + */ + export interface PrincipalResponse { + /** + * This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} + */ + groupResourceName: string; + /** + * This principal is a Google Workspace user, group or domain. + */ + gsuitePrincipal: outputs.cloudsearch.v1.GSuitePrincipalResponse; + /** + * This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} + */ + userResourceName: string; + } + + export interface ProcessingErrorResponse { + /** + * Error code indicating the nature of the error. + */ + code: string; + /** + * The description of the error. + */ + errorMessage: string; + /** + * In case the item fields are invalid, this field contains the details about the validation errors. + */ + fieldViolations: outputs.cloudsearch.v1.FieldViolationResponse[]; + } + /** * Default options to interpret user query. */ @@ -23878,6 +24153,24 @@ export namespace cloudsearch { forceVerbatimMode: boolean; } + /** + * Errors when the connector is communicating to the source repository. + */ + export interface RepositoryErrorResponse { + /** + * Message that describes the error. The maximum allowable length of the message is 8192 characters. + */ + errorMessage: string; + /** + * Error codes. Matches the definition of HTTP status codes. + */ + httpStatusCode: number; + /** + * The type of error. + */ + type: string; + } + /** * Scoring configurations for a source while processing a Search or Suggest request. */ @@ -23892,6 +24185,16 @@ export namespace cloudsearch { disablePersonalization: boolean; } + /** + * Additional search quality metadata of the item. + */ + export interface SearchQualityMetadataResponse { + /** + * An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. + */ + quality: number; + } + export interface SortOptionsResponse { /** * The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. @@ -23959,6 +24262,43 @@ export namespace cloudsearch { sourceImportance: string; } + /** + * A structured data object consisting of named properties. + */ + export interface StructuredDataObjectResponse { + /** + * The properties for the object. The maximum number of elements is 1000. + */ + properties: outputs.cloudsearch.v1.NamedPropertyResponse[]; + } + + /** + * List of text values. + */ + export interface TextValuesResponse { + /** + * The maximum allowable length for text values is 2048 characters. + */ + values: string[]; + } + + /** + * List of timestamp values. + */ + export interface TimestampValuesResponse { + values: string[]; + } + + /** + * Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. + */ + export interface UploadItemRefResponse { + /** + * The name of the content reference. The maximum length is 2048 characters. + */ + name: string; + } + export interface ValueFilterResponse { /** * The `operator_name` applied to the query, such as *price_greater_than*. The filter can work against both types of filters defined in the schema for your data source: 1. `operator_name`, where the query filters results by the property that matches the value. 2. `greater_than_operator_name` or `less_than_operator_name` in your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query. diff --git a/sdk/python/pulumi_google_native/__init__.py b/sdk/python/pulumi_google_native/__init__.py index dd9dfd386b..f41bf344a7 100644 --- a/sdk/python/pulumi_google_native/__init__.py +++ b/sdk/python/pulumi_google_native/__init__.py @@ -508,6 +508,7 @@ "google-native:aiplatform/v1:IndexEndpoint": "IndexEndpoint", "google-native:aiplatform/v1:MetadataSchema": "MetadataSchema", "google-native:aiplatform/v1:MetadataStore": "MetadataStore", + "google-native:aiplatform/v1:Model": "Model", "google-native:aiplatform/v1:ModelDeploymentMonitoringJob": "ModelDeploymentMonitoringJob", "google-native:aiplatform/v1:NasJob": "NasJob", "google-native:aiplatform/v1:NotebookRuntimeTemplate": "NotebookRuntimeTemplate", @@ -562,6 +563,7 @@ "google-native:aiplatform/v1beta1:IndexEndpoint": "IndexEndpoint", "google-native:aiplatform/v1beta1:MetadataSchema": "MetadataSchema", "google-native:aiplatform/v1beta1:MetadataStore": "MetadataStore", + "google-native:aiplatform/v1beta1:Model": "Model", "google-native:aiplatform/v1beta1:ModelDeploymentMonitoringJob": "ModelDeploymentMonitoringJob", "google-native:aiplatform/v1beta1:ModelIamBinding": "ModelIamBinding", "google-native:aiplatform/v1beta1:ModelIamMember": "ModelIamMember", @@ -1462,6 +1464,7 @@ "fqn": "pulumi_google_native.cloudsearch.v1", "classes": { "google-native:cloudsearch/v1:DataSource": "DataSource", + "google-native:cloudsearch/v1:Item": "Item", "google-native:cloudsearch/v1:SearchApplication": "SearchApplication" } }, diff --git a/sdk/python/pulumi_google_native/aiplatform/v1/__init__.py b/sdk/python/pulumi_google_native/aiplatform/v1/__init__.py index 39c9a829d0..02f16ad12c 100644 --- a/sdk/python/pulumi_google_native/aiplatform/v1/__init__.py +++ b/sdk/python/pulumi_google_native/aiplatform/v1/__init__.py @@ -55,6 +55,7 @@ from .get_index_endpoint import * from .get_metadata_schema import * from .get_metadata_store import * +from .get_model import * from .get_model_deployment_monitoring_job import * from .get_nas_job import * from .get_notebook_runtime_template import * @@ -73,6 +74,7 @@ from .index_endpoint import * from .metadata_schema import * from .metadata_store import * +from .model import * from .model_deployment_monitoring_job import * from .nas_job import * from .notebook_runtime_template import * diff --git a/sdk/python/pulumi_google_native/aiplatform/v1/get_model.py b/sdk/python/pulumi_google_native/aiplatform/v1/get_model.py new file mode 100644 index 0000000000..9ef7c82ba3 --- /dev/null +++ b/sdk/python/pulumi_google_native/aiplatform/v1/get_model.py @@ -0,0 +1,435 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs + +__all__ = [ + 'GetModelResult', + 'AwaitableGetModelResult', + 'get_model', + 'get_model_output', +] + +@pulumi.output_type +class GetModelResult: + def __init__(__self__, artifact_uri=None, container_spec=None, create_time=None, deployed_models=None, description=None, display_name=None, encryption_spec=None, etag=None, explanation_spec=None, labels=None, metadata=None, metadata_artifact=None, metadata_schema_uri=None, model_source_info=None, name=None, original_model_info=None, pipeline_job=None, predict_schemata=None, supported_deployment_resources_types=None, supported_export_formats=None, supported_input_storage_formats=None, supported_output_storage_formats=None, training_pipeline=None, update_time=None, version_aliases=None, version_create_time=None, version_description=None, version_id=None, version_update_time=None): + if artifact_uri and not isinstance(artifact_uri, str): + raise TypeError("Expected argument 'artifact_uri' to be a str") + pulumi.set(__self__, "artifact_uri", artifact_uri) + if container_spec and not isinstance(container_spec, dict): + raise TypeError("Expected argument 'container_spec' to be a dict") + pulumi.set(__self__, "container_spec", container_spec) + if create_time and not isinstance(create_time, str): + raise TypeError("Expected argument 'create_time' to be a str") + pulumi.set(__self__, "create_time", create_time) + if deployed_models and not isinstance(deployed_models, list): + raise TypeError("Expected argument 'deployed_models' to be a list") + pulumi.set(__self__, "deployed_models", deployed_models) + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) + if display_name and not isinstance(display_name, str): + raise TypeError("Expected argument 'display_name' to be a str") + pulumi.set(__self__, "display_name", display_name) + if encryption_spec and not isinstance(encryption_spec, dict): + raise TypeError("Expected argument 'encryption_spec' to be a dict") + pulumi.set(__self__, "encryption_spec", encryption_spec) + if etag and not isinstance(etag, str): + raise TypeError("Expected argument 'etag' to be a str") + pulumi.set(__self__, "etag", etag) + if explanation_spec and not isinstance(explanation_spec, dict): + raise TypeError("Expected argument 'explanation_spec' to be a dict") + pulumi.set(__self__, "explanation_spec", explanation_spec) + if labels and not isinstance(labels, dict): + raise TypeError("Expected argument 'labels' to be a dict") + pulumi.set(__self__, "labels", labels) + if metadata and not isinstance(metadata, dict): + raise TypeError("Expected argument 'metadata' to be a dict") + pulumi.set(__self__, "metadata", metadata) + if metadata_artifact and not isinstance(metadata_artifact, str): + raise TypeError("Expected argument 'metadata_artifact' to be a str") + pulumi.set(__self__, "metadata_artifact", metadata_artifact) + if metadata_schema_uri and not isinstance(metadata_schema_uri, str): + raise TypeError("Expected argument 'metadata_schema_uri' to be a str") + pulumi.set(__self__, "metadata_schema_uri", metadata_schema_uri) + if model_source_info and not isinstance(model_source_info, dict): + raise TypeError("Expected argument 'model_source_info' to be a dict") + pulumi.set(__self__, "model_source_info", model_source_info) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if original_model_info and not isinstance(original_model_info, dict): + raise TypeError("Expected argument 'original_model_info' to be a dict") + pulumi.set(__self__, "original_model_info", original_model_info) + if pipeline_job and not isinstance(pipeline_job, str): + raise TypeError("Expected argument 'pipeline_job' to be a str") + pulumi.set(__self__, "pipeline_job", pipeline_job) + if predict_schemata and not isinstance(predict_schemata, dict): + raise TypeError("Expected argument 'predict_schemata' to be a dict") + pulumi.set(__self__, "predict_schemata", predict_schemata) + if supported_deployment_resources_types and not isinstance(supported_deployment_resources_types, list): + raise TypeError("Expected argument 'supported_deployment_resources_types' to be a list") + pulumi.set(__self__, "supported_deployment_resources_types", supported_deployment_resources_types) + if supported_export_formats and not isinstance(supported_export_formats, list): + raise TypeError("Expected argument 'supported_export_formats' to be a list") + pulumi.set(__self__, "supported_export_formats", supported_export_formats) + if supported_input_storage_formats and not isinstance(supported_input_storage_formats, list): + raise TypeError("Expected argument 'supported_input_storage_formats' to be a list") + pulumi.set(__self__, "supported_input_storage_formats", supported_input_storage_formats) + if supported_output_storage_formats and not isinstance(supported_output_storage_formats, list): + raise TypeError("Expected argument 'supported_output_storage_formats' to be a list") + pulumi.set(__self__, "supported_output_storage_formats", supported_output_storage_formats) + if training_pipeline and not isinstance(training_pipeline, str): + raise TypeError("Expected argument 'training_pipeline' to be a str") + pulumi.set(__self__, "training_pipeline", training_pipeline) + if update_time and not isinstance(update_time, str): + raise TypeError("Expected argument 'update_time' to be a str") + pulumi.set(__self__, "update_time", update_time) + if version_aliases and not isinstance(version_aliases, list): + raise TypeError("Expected argument 'version_aliases' to be a list") + pulumi.set(__self__, "version_aliases", version_aliases) + if version_create_time and not isinstance(version_create_time, str): + raise TypeError("Expected argument 'version_create_time' to be a str") + pulumi.set(__self__, "version_create_time", version_create_time) + if version_description and not isinstance(version_description, str): + raise TypeError("Expected argument 'version_description' to be a str") + pulumi.set(__self__, "version_description", version_description) + if version_id and not isinstance(version_id, str): + raise TypeError("Expected argument 'version_id' to be a str") + pulumi.set(__self__, "version_id", version_id) + if version_update_time and not isinstance(version_update_time, str): + raise TypeError("Expected argument 'version_update_time' to be a str") + pulumi.set(__self__, "version_update_time", version_update_time) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> str: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> 'outputs.GoogleCloudAiplatformV1ModelContainerSpecResponse': + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> str: + """ + Timestamp when this Model was uploaded into Vertex AI. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter(name="deployedModels") + def deployed_models(self) -> Sequence['outputs.GoogleCloudAiplatformV1DeployedModelRefResponse']: + """ + The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + """ + return pulumi.get(self, "deployed_models") + + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> str: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> 'outputs.GoogleCloudAiplatformV1EncryptionSpecResponse': + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @property + @pulumi.getter + def etag(self) -> str: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> 'outputs.GoogleCloudAiplatformV1ExplanationSpecResponse': + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @property + @pulumi.getter + def labels(self) -> Mapping[str, str]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @property + @pulumi.getter + def metadata(self) -> Any: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter(name="metadataArtifact") + def metadata_artifact(self) -> str: + """ + The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + """ + return pulumi.get(self, "metadata_artifact") + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> str: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @property + @pulumi.getter(name="modelSourceInfo") + def model_source_info(self) -> 'outputs.GoogleCloudAiplatformV1ModelSourceInfoResponse': + """ + Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + """ + return pulumi.get(self, "model_source_info") + + @property + @pulumi.getter + def name(self) -> str: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="originalModelInfo") + def original_model_info(self) -> 'outputs.GoogleCloudAiplatformV1ModelOriginalModelInfoResponse': + """ + If this Model is a copy of another Model, this contains info about the original. + """ + return pulumi.get(self, "original_model_info") + + @property + @pulumi.getter(name="pipelineJob") + def pipeline_job(self) -> str: + """ + Optional. This field is populated if the model is produced by a pipeline job. + """ + return pulumi.get(self, "pipeline_job") + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> 'outputs.GoogleCloudAiplatformV1PredictSchemataResponse': + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @property + @pulumi.getter(name="supportedDeploymentResourcesTypes") + def supported_deployment_resources_types(self) -> Sequence[str]: + """ + When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + """ + return pulumi.get(self, "supported_deployment_resources_types") + + @property + @pulumi.getter(name="supportedExportFormats") + def supported_export_formats(self) -> Sequence['outputs.GoogleCloudAiplatformV1ModelExportFormatResponse']: + """ + The formats in which this Model may be exported. If empty, this Model is not available for export. + """ + return pulumi.get(self, "supported_export_formats") + + @property + @pulumi.getter(name="supportedInputStorageFormats") + def supported_input_storage_formats(self) -> Sequence[str]: + """ + The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_input_storage_formats") + + @property + @pulumi.getter(name="supportedOutputStorageFormats") + def supported_output_storage_formats(self) -> Sequence[str]: + """ + The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_output_storage_formats") + + @property + @pulumi.getter(name="trainingPipeline") + def training_pipeline(self) -> str: + """ + The resource name of the TrainingPipeline that uploaded this Model, if any. + """ + return pulumi.get(self, "training_pipeline") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> str: + """ + Timestamp when this Model was most recently updated. + """ + return pulumi.get(self, "update_time") + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> Sequence[str]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @property + @pulumi.getter(name="versionCreateTime") + def version_create_time(self) -> str: + """ + Timestamp when this version was created. + """ + return pulumi.get(self, "version_create_time") + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> str: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @property + @pulumi.getter(name="versionId") + def version_id(self) -> str: + """ + Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + """ + return pulumi.get(self, "version_id") + + @property + @pulumi.getter(name="versionUpdateTime") + def version_update_time(self) -> str: + """ + Timestamp when this version was most recently updated. + """ + return pulumi.get(self, "version_update_time") + + +class AwaitableGetModelResult(GetModelResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetModelResult( + artifact_uri=self.artifact_uri, + container_spec=self.container_spec, + create_time=self.create_time, + deployed_models=self.deployed_models, + description=self.description, + display_name=self.display_name, + encryption_spec=self.encryption_spec, + etag=self.etag, + explanation_spec=self.explanation_spec, + labels=self.labels, + metadata=self.metadata, + metadata_artifact=self.metadata_artifact, + metadata_schema_uri=self.metadata_schema_uri, + model_source_info=self.model_source_info, + name=self.name, + original_model_info=self.original_model_info, + pipeline_job=self.pipeline_job, + predict_schemata=self.predict_schemata, + supported_deployment_resources_types=self.supported_deployment_resources_types, + supported_export_formats=self.supported_export_formats, + supported_input_storage_formats=self.supported_input_storage_formats, + supported_output_storage_formats=self.supported_output_storage_formats, + training_pipeline=self.training_pipeline, + update_time=self.update_time, + version_aliases=self.version_aliases, + version_create_time=self.version_create_time, + version_description=self.version_description, + version_id=self.version_id, + version_update_time=self.version_update_time) + + +def get_model(location: Optional[str] = None, + model_id: Optional[str] = None, + project: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetModelResult: + """ + Gets a Model. + """ + __args__ = dict() + __args__['location'] = location + __args__['modelId'] = model_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('google-native:aiplatform/v1:getModel', __args__, opts=opts, typ=GetModelResult).value + + return AwaitableGetModelResult( + artifact_uri=pulumi.get(__ret__, 'artifact_uri'), + container_spec=pulumi.get(__ret__, 'container_spec'), + create_time=pulumi.get(__ret__, 'create_time'), + deployed_models=pulumi.get(__ret__, 'deployed_models'), + description=pulumi.get(__ret__, 'description'), + display_name=pulumi.get(__ret__, 'display_name'), + encryption_spec=pulumi.get(__ret__, 'encryption_spec'), + etag=pulumi.get(__ret__, 'etag'), + explanation_spec=pulumi.get(__ret__, 'explanation_spec'), + labels=pulumi.get(__ret__, 'labels'), + metadata=pulumi.get(__ret__, 'metadata'), + metadata_artifact=pulumi.get(__ret__, 'metadata_artifact'), + metadata_schema_uri=pulumi.get(__ret__, 'metadata_schema_uri'), + model_source_info=pulumi.get(__ret__, 'model_source_info'), + name=pulumi.get(__ret__, 'name'), + original_model_info=pulumi.get(__ret__, 'original_model_info'), + pipeline_job=pulumi.get(__ret__, 'pipeline_job'), + predict_schemata=pulumi.get(__ret__, 'predict_schemata'), + supported_deployment_resources_types=pulumi.get(__ret__, 'supported_deployment_resources_types'), + supported_export_formats=pulumi.get(__ret__, 'supported_export_formats'), + supported_input_storage_formats=pulumi.get(__ret__, 'supported_input_storage_formats'), + supported_output_storage_formats=pulumi.get(__ret__, 'supported_output_storage_formats'), + training_pipeline=pulumi.get(__ret__, 'training_pipeline'), + update_time=pulumi.get(__ret__, 'update_time'), + version_aliases=pulumi.get(__ret__, 'version_aliases'), + version_create_time=pulumi.get(__ret__, 'version_create_time'), + version_description=pulumi.get(__ret__, 'version_description'), + version_id=pulumi.get(__ret__, 'version_id'), + version_update_time=pulumi.get(__ret__, 'version_update_time')) + + +@_utilities.lift_output_func(get_model) +def get_model_output(location: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[Optional[str]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetModelResult]: + """ + Gets a Model. + """ + ... diff --git a/sdk/python/pulumi_google_native/aiplatform/v1/model.py b/sdk/python/pulumi_google_native/aiplatform/v1/model.py new file mode 100644 index 0000000000..b76e8f3e95 --- /dev/null +++ b/sdk/python/pulumi_google_native/aiplatform/v1/model.py @@ -0,0 +1,773 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs +from ._enums import * +from ._inputs import * + +__all__ = ['ModelArgs', 'Model'] + +@pulumi.input_type +class ModelArgs: + def __init__(__self__, *, + display_name: pulumi.Input[str], + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1ModelContainerSpecArgs']] = None, + description: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1EncryptionSpecArgs']] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1ExplanationSpecArgs']] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + pipeline_job: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input['GoogleCloudAiplatformV1PredictSchemataArgs']] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Model resource. + :param pulumi.Input[str] display_name: The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + :param pulumi.Input[str] artifact_uri: Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + :param pulumi.Input['GoogleCloudAiplatformV1ModelContainerSpecArgs'] container_spec: Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + :param pulumi.Input[str] description: The description of the Model. + :param pulumi.Input['GoogleCloudAiplatformV1EncryptionSpecArgs'] encryption_spec: Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + :param pulumi.Input[str] etag: Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + :param pulumi.Input['GoogleCloudAiplatformV1ExplanationSpecArgs'] explanation_spec: The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + :param Any metadata: Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + :param pulumi.Input[str] metadata_schema_uri: Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + :param pulumi.Input[str] model_id: Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + :param pulumi.Input[str] name: The resource name of the Model. + :param pulumi.Input[str] parent_model: Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + :param pulumi.Input[str] pipeline_job: Optional. This field is populated if the model is produced by a pipeline job. + :param pulumi.Input['GoogleCloudAiplatformV1PredictSchemataArgs'] predict_schemata: The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + :param pulumi.Input[str] service_account: Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + :param pulumi.Input[Sequence[pulumi.Input[str]]] version_aliases: User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + :param pulumi.Input[str] version_description: The description of this version. + """ + pulumi.set(__self__, "display_name", display_name) + if artifact_uri is not None: + pulumi.set(__self__, "artifact_uri", artifact_uri) + if container_spec is not None: + pulumi.set(__self__, "container_spec", container_spec) + if description is not None: + pulumi.set(__self__, "description", description) + if encryption_spec is not None: + pulumi.set(__self__, "encryption_spec", encryption_spec) + if etag is not None: + pulumi.set(__self__, "etag", etag) + if explanation_spec is not None: + pulumi.set(__self__, "explanation_spec", explanation_spec) + if labels is not None: + pulumi.set(__self__, "labels", labels) + if location is not None: + pulumi.set(__self__, "location", location) + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if metadata_schema_uri is not None: + pulumi.set(__self__, "metadata_schema_uri", metadata_schema_uri) + if model_id is not None: + pulumi.set(__self__, "model_id", model_id) + if name is not None: + pulumi.set(__self__, "name", name) + if parent_model is not None: + pulumi.set(__self__, "parent_model", parent_model) + if pipeline_job is not None: + pulumi.set(__self__, "pipeline_job", pipeline_job) + if predict_schemata is not None: + pulumi.set(__self__, "predict_schemata", predict_schemata) + if project is not None: + pulumi.set(__self__, "project", project) + if service_account is not None: + pulumi.set(__self__, "service_account", service_account) + if version_aliases is not None: + pulumi.set(__self__, "version_aliases", version_aliases) + if version_description is not None: + pulumi.set(__self__, "version_description", version_description) + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> pulumi.Input[str]: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @display_name.setter + def display_name(self, value: pulumi.Input[str]): + pulumi.set(self, "display_name", value) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> Optional[pulumi.Input[str]]: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @artifact_uri.setter + def artifact_uri(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "artifact_uri", value) + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1ModelContainerSpecArgs']]: + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @container_spec.setter + def container_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1ModelContainerSpecArgs']]): + pulumi.set(self, "container_spec", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1EncryptionSpecArgs']]: + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @encryption_spec.setter + def encryption_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1EncryptionSpecArgs']]): + pulumi.set(self, "encryption_spec", value) + + @property + @pulumi.getter + def etag(self) -> Optional[pulumi.Input[str]]: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @etag.setter + def etag(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "etag", value) + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1ExplanationSpecArgs']]: + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @explanation_spec.setter + def explanation_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1ExplanationSpecArgs']]): + pulumi.set(self, "explanation_spec", value) + + @property + @pulumi.getter + def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @labels.setter + def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "labels", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[Any]: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[Any]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> Optional[pulumi.Input[str]]: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @metadata_schema_uri.setter + def metadata_schema_uri(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "metadata_schema_uri", value) + + @property + @pulumi.getter(name="modelId") + def model_id(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + """ + return pulumi.get(self, "model_id") + + @model_id.setter + def model_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "model_id", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="parentModel") + def parent_model(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + """ + return pulumi.get(self, "parent_model") + + @parent_model.setter + def parent_model(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "parent_model", value) + + @property + @pulumi.getter(name="pipelineJob") + def pipeline_job(self) -> Optional[pulumi.Input[str]]: + """ + Optional. This field is populated if the model is produced by a pipeline job. + """ + return pulumi.get(self, "pipeline_job") + + @pipeline_job.setter + def pipeline_job(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "pipeline_job", value) + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1PredictSchemataArgs']]: + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @predict_schemata.setter + def predict_schemata(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1PredictSchemataArgs']]): + pulumi.set(self, "predict_schemata", value) + + @property + @pulumi.getter + def project(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "project") + + @project.setter + def project(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "project", value) + + @property + @pulumi.getter(name="serviceAccount") + def service_account(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + """ + return pulumi.get(self, "service_account") + + @service_account.setter + def service_account(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "service_account", value) + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @version_aliases.setter + def version_aliases(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "version_aliases", value) + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> Optional[pulumi.Input[str]]: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @version_description.setter + def version_description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "version_description", value) + + +class Model(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ModelContainerSpecArgs']]] = None, + description: Optional[pulumi.Input[str]] = None, + display_name: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1EncryptionSpecArgs']]] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ExplanationSpecArgs']]] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + pipeline_job: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1PredictSchemataArgs']]] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Uploads a Model artifact into Vertex AI. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] artifact_uri: Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ModelContainerSpecArgs']] container_spec: Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + :param pulumi.Input[str] description: The description of the Model. + :param pulumi.Input[str] display_name: The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1EncryptionSpecArgs']] encryption_spec: Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + :param pulumi.Input[str] etag: Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ExplanationSpecArgs']] explanation_spec: The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + :param Any metadata: Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + :param pulumi.Input[str] metadata_schema_uri: Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + :param pulumi.Input[str] model_id: Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + :param pulumi.Input[str] name: The resource name of the Model. + :param pulumi.Input[str] parent_model: Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + :param pulumi.Input[str] pipeline_job: Optional. This field is populated if the model is produced by a pipeline job. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1PredictSchemataArgs']] predict_schemata: The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + :param pulumi.Input[str] service_account: Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + :param pulumi.Input[Sequence[pulumi.Input[str]]] version_aliases: User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + :param pulumi.Input[str] version_description: The description of this version. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ModelArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Uploads a Model artifact into Vertex AI. + + :param str resource_name: The name of the resource. + :param ModelArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ModelArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ModelContainerSpecArgs']]] = None, + description: Optional[pulumi.Input[str]] = None, + display_name: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1EncryptionSpecArgs']]] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1ExplanationSpecArgs']]] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + pipeline_job: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1PredictSchemataArgs']]] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ModelArgs.__new__(ModelArgs) + + __props__.__dict__["artifact_uri"] = artifact_uri + __props__.__dict__["container_spec"] = container_spec + __props__.__dict__["description"] = description + if display_name is None and not opts.urn: + raise TypeError("Missing required property 'display_name'") + __props__.__dict__["display_name"] = display_name + __props__.__dict__["encryption_spec"] = encryption_spec + __props__.__dict__["etag"] = etag + __props__.__dict__["explanation_spec"] = explanation_spec + __props__.__dict__["labels"] = labels + __props__.__dict__["location"] = location + __props__.__dict__["metadata"] = metadata + __props__.__dict__["metadata_schema_uri"] = metadata_schema_uri + __props__.__dict__["model_id"] = model_id + __props__.__dict__["name"] = name + __props__.__dict__["parent_model"] = parent_model + __props__.__dict__["pipeline_job"] = pipeline_job + __props__.__dict__["predict_schemata"] = predict_schemata + __props__.__dict__["project"] = project + __props__.__dict__["service_account"] = service_account + __props__.__dict__["version_aliases"] = version_aliases + __props__.__dict__["version_description"] = version_description + __props__.__dict__["create_time"] = None + __props__.__dict__["deployed_models"] = None + __props__.__dict__["metadata_artifact"] = None + __props__.__dict__["model_source_info"] = None + __props__.__dict__["original_model_info"] = None + __props__.__dict__["supported_deployment_resources_types"] = None + __props__.__dict__["supported_export_formats"] = None + __props__.__dict__["supported_input_storage_formats"] = None + __props__.__dict__["supported_output_storage_formats"] = None + __props__.__dict__["training_pipeline"] = None + __props__.__dict__["update_time"] = None + __props__.__dict__["version_create_time"] = None + __props__.__dict__["version_id"] = None + __props__.__dict__["version_update_time"] = None + replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["location", "project"]) + opts = pulumi.ResourceOptions.merge(opts, replace_on_changes) + super(Model, __self__).__init__( + 'google-native:aiplatform/v1:Model', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'Model': + """ + Get an existing Model resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = ModelArgs.__new__(ModelArgs) + + __props__.__dict__["artifact_uri"] = None + __props__.__dict__["container_spec"] = None + __props__.__dict__["create_time"] = None + __props__.__dict__["deployed_models"] = None + __props__.__dict__["description"] = None + __props__.__dict__["display_name"] = None + __props__.__dict__["encryption_spec"] = None + __props__.__dict__["etag"] = None + __props__.__dict__["explanation_spec"] = None + __props__.__dict__["labels"] = None + __props__.__dict__["location"] = None + __props__.__dict__["metadata"] = None + __props__.__dict__["metadata_artifact"] = None + __props__.__dict__["metadata_schema_uri"] = None + __props__.__dict__["model_source_info"] = None + __props__.__dict__["name"] = None + __props__.__dict__["original_model_info"] = None + __props__.__dict__["pipeline_job"] = None + __props__.__dict__["predict_schemata"] = None + __props__.__dict__["project"] = None + __props__.__dict__["supported_deployment_resources_types"] = None + __props__.__dict__["supported_export_formats"] = None + __props__.__dict__["supported_input_storage_formats"] = None + __props__.__dict__["supported_output_storage_formats"] = None + __props__.__dict__["training_pipeline"] = None + __props__.__dict__["update_time"] = None + __props__.__dict__["version_aliases"] = None + __props__.__dict__["version_create_time"] = None + __props__.__dict__["version_description"] = None + __props__.__dict__["version_id"] = None + __props__.__dict__["version_update_time"] = None + return Model(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> pulumi.Output[str]: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1ModelContainerSpecResponse']: + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> pulumi.Output[str]: + """ + Timestamp when this Model was uploaded into Vertex AI. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter(name="deployedModels") + def deployed_models(self) -> pulumi.Output[Sequence['outputs.GoogleCloudAiplatformV1DeployedModelRefResponse']]: + """ + The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + """ + return pulumi.get(self, "deployed_models") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[str]: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> pulumi.Output[str]: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1EncryptionSpecResponse']: + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @property + @pulumi.getter + def etag(self) -> pulumi.Output[str]: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1ExplanationSpecResponse']: + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @property + @pulumi.getter + def labels(self) -> pulumi.Output[Mapping[str, str]]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + return pulumi.get(self, "location") + + @property + @pulumi.getter + def metadata(self) -> pulumi.Output[Any]: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter(name="metadataArtifact") + def metadata_artifact(self) -> pulumi.Output[str]: + """ + The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + """ + return pulumi.get(self, "metadata_artifact") + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> pulumi.Output[str]: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @property + @pulumi.getter(name="modelSourceInfo") + def model_source_info(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1ModelSourceInfoResponse']: + """ + Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + """ + return pulumi.get(self, "model_source_info") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="originalModelInfo") + def original_model_info(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1ModelOriginalModelInfoResponse']: + """ + If this Model is a copy of another Model, this contains info about the original. + """ + return pulumi.get(self, "original_model_info") + + @property + @pulumi.getter(name="pipelineJob") + def pipeline_job(self) -> pulumi.Output[str]: + """ + Optional. This field is populated if the model is produced by a pipeline job. + """ + return pulumi.get(self, "pipeline_job") + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1PredictSchemataResponse']: + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @property + @pulumi.getter + def project(self) -> pulumi.Output[str]: + return pulumi.get(self, "project") + + @property + @pulumi.getter(name="supportedDeploymentResourcesTypes") + def supported_deployment_resources_types(self) -> pulumi.Output[Sequence[str]]: + """ + When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + """ + return pulumi.get(self, "supported_deployment_resources_types") + + @property + @pulumi.getter(name="supportedExportFormats") + def supported_export_formats(self) -> pulumi.Output[Sequence['outputs.GoogleCloudAiplatformV1ModelExportFormatResponse']]: + """ + The formats in which this Model may be exported. If empty, this Model is not available for export. + """ + return pulumi.get(self, "supported_export_formats") + + @property + @pulumi.getter(name="supportedInputStorageFormats") + def supported_input_storage_formats(self) -> pulumi.Output[Sequence[str]]: + """ + The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_input_storage_formats") + + @property + @pulumi.getter(name="supportedOutputStorageFormats") + def supported_output_storage_formats(self) -> pulumi.Output[Sequence[str]]: + """ + The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_output_storage_formats") + + @property + @pulumi.getter(name="trainingPipeline") + def training_pipeline(self) -> pulumi.Output[str]: + """ + The resource name of the TrainingPipeline that uploaded this Model, if any. + """ + return pulumi.get(self, "training_pipeline") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> pulumi.Output[str]: + """ + Timestamp when this Model was most recently updated. + """ + return pulumi.get(self, "update_time") + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> pulumi.Output[Sequence[str]]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @property + @pulumi.getter(name="versionCreateTime") + def version_create_time(self) -> pulumi.Output[str]: + """ + Timestamp when this version was created. + """ + return pulumi.get(self, "version_create_time") + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> pulumi.Output[str]: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @property + @pulumi.getter(name="versionId") + def version_id(self) -> pulumi.Output[str]: + """ + Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + """ + return pulumi.get(self, "version_id") + + @property + @pulumi.getter(name="versionUpdateTime") + def version_update_time(self) -> pulumi.Output[str]: + """ + Timestamp when this version was most recently updated. + """ + return pulumi.get(self, "version_update_time") + diff --git a/sdk/python/pulumi_google_native/aiplatform/v1beta1/__init__.py b/sdk/python/pulumi_google_native/aiplatform/v1beta1/__init__.py index eda8c0faa3..f4df995366 100644 --- a/sdk/python/pulumi_google_native/aiplatform/v1beta1/__init__.py +++ b/sdk/python/pulumi_google_native/aiplatform/v1beta1/__init__.py @@ -59,6 +59,7 @@ from .get_index_endpoint import * from .get_metadata_schema import * from .get_metadata_store import * +from .get_model import * from .get_model_deployment_monitoring_job import * from .get_model_iam_policy import * from .get_nas_job import * @@ -79,6 +80,7 @@ from .index_endpoint import * from .metadata_schema import * from .metadata_store import * +from .model import * from .model_deployment_monitoring_job import * from .model_iam_binding import * from .model_iam_member import * diff --git a/sdk/python/pulumi_google_native/aiplatform/v1beta1/get_model.py b/sdk/python/pulumi_google_native/aiplatform/v1beta1/get_model.py new file mode 100644 index 0000000000..4d3f67aa21 --- /dev/null +++ b/sdk/python/pulumi_google_native/aiplatform/v1beta1/get_model.py @@ -0,0 +1,422 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs + +__all__ = [ + 'GetModelResult', + 'AwaitableGetModelResult', + 'get_model', + 'get_model_output', +] + +@pulumi.output_type +class GetModelResult: + def __init__(__self__, artifact_uri=None, container_spec=None, create_time=None, deployed_models=None, description=None, display_name=None, encryption_spec=None, etag=None, explanation_spec=None, labels=None, metadata=None, metadata_artifact=None, metadata_schema_uri=None, model_source_info=None, name=None, original_model_info=None, predict_schemata=None, supported_deployment_resources_types=None, supported_export_formats=None, supported_input_storage_formats=None, supported_output_storage_formats=None, training_pipeline=None, update_time=None, version_aliases=None, version_create_time=None, version_description=None, version_id=None, version_update_time=None): + if artifact_uri and not isinstance(artifact_uri, str): + raise TypeError("Expected argument 'artifact_uri' to be a str") + pulumi.set(__self__, "artifact_uri", artifact_uri) + if container_spec and not isinstance(container_spec, dict): + raise TypeError("Expected argument 'container_spec' to be a dict") + pulumi.set(__self__, "container_spec", container_spec) + if create_time and not isinstance(create_time, str): + raise TypeError("Expected argument 'create_time' to be a str") + pulumi.set(__self__, "create_time", create_time) + if deployed_models and not isinstance(deployed_models, list): + raise TypeError("Expected argument 'deployed_models' to be a list") + pulumi.set(__self__, "deployed_models", deployed_models) + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) + if display_name and not isinstance(display_name, str): + raise TypeError("Expected argument 'display_name' to be a str") + pulumi.set(__self__, "display_name", display_name) + if encryption_spec and not isinstance(encryption_spec, dict): + raise TypeError("Expected argument 'encryption_spec' to be a dict") + pulumi.set(__self__, "encryption_spec", encryption_spec) + if etag and not isinstance(etag, str): + raise TypeError("Expected argument 'etag' to be a str") + pulumi.set(__self__, "etag", etag) + if explanation_spec and not isinstance(explanation_spec, dict): + raise TypeError("Expected argument 'explanation_spec' to be a dict") + pulumi.set(__self__, "explanation_spec", explanation_spec) + if labels and not isinstance(labels, dict): + raise TypeError("Expected argument 'labels' to be a dict") + pulumi.set(__self__, "labels", labels) + if metadata and not isinstance(metadata, dict): + raise TypeError("Expected argument 'metadata' to be a dict") + pulumi.set(__self__, "metadata", metadata) + if metadata_artifact and not isinstance(metadata_artifact, str): + raise TypeError("Expected argument 'metadata_artifact' to be a str") + pulumi.set(__self__, "metadata_artifact", metadata_artifact) + if metadata_schema_uri and not isinstance(metadata_schema_uri, str): + raise TypeError("Expected argument 'metadata_schema_uri' to be a str") + pulumi.set(__self__, "metadata_schema_uri", metadata_schema_uri) + if model_source_info and not isinstance(model_source_info, dict): + raise TypeError("Expected argument 'model_source_info' to be a dict") + pulumi.set(__self__, "model_source_info", model_source_info) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if original_model_info and not isinstance(original_model_info, dict): + raise TypeError("Expected argument 'original_model_info' to be a dict") + pulumi.set(__self__, "original_model_info", original_model_info) + if predict_schemata and not isinstance(predict_schemata, dict): + raise TypeError("Expected argument 'predict_schemata' to be a dict") + pulumi.set(__self__, "predict_schemata", predict_schemata) + if supported_deployment_resources_types and not isinstance(supported_deployment_resources_types, list): + raise TypeError("Expected argument 'supported_deployment_resources_types' to be a list") + pulumi.set(__self__, "supported_deployment_resources_types", supported_deployment_resources_types) + if supported_export_formats and not isinstance(supported_export_formats, list): + raise TypeError("Expected argument 'supported_export_formats' to be a list") + pulumi.set(__self__, "supported_export_formats", supported_export_formats) + if supported_input_storage_formats and not isinstance(supported_input_storage_formats, list): + raise TypeError("Expected argument 'supported_input_storage_formats' to be a list") + pulumi.set(__self__, "supported_input_storage_formats", supported_input_storage_formats) + if supported_output_storage_formats and not isinstance(supported_output_storage_formats, list): + raise TypeError("Expected argument 'supported_output_storage_formats' to be a list") + pulumi.set(__self__, "supported_output_storage_formats", supported_output_storage_formats) + if training_pipeline and not isinstance(training_pipeline, str): + raise TypeError("Expected argument 'training_pipeline' to be a str") + pulumi.set(__self__, "training_pipeline", training_pipeline) + if update_time and not isinstance(update_time, str): + raise TypeError("Expected argument 'update_time' to be a str") + pulumi.set(__self__, "update_time", update_time) + if version_aliases and not isinstance(version_aliases, list): + raise TypeError("Expected argument 'version_aliases' to be a list") + pulumi.set(__self__, "version_aliases", version_aliases) + if version_create_time and not isinstance(version_create_time, str): + raise TypeError("Expected argument 'version_create_time' to be a str") + pulumi.set(__self__, "version_create_time", version_create_time) + if version_description and not isinstance(version_description, str): + raise TypeError("Expected argument 'version_description' to be a str") + pulumi.set(__self__, "version_description", version_description) + if version_id and not isinstance(version_id, str): + raise TypeError("Expected argument 'version_id' to be a str") + pulumi.set(__self__, "version_id", version_id) + if version_update_time and not isinstance(version_update_time, str): + raise TypeError("Expected argument 'version_update_time' to be a str") + pulumi.set(__self__, "version_update_time", version_update_time) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> str: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> 'outputs.GoogleCloudAiplatformV1beta1ModelContainerSpecResponse': + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> str: + """ + Timestamp when this Model was uploaded into Vertex AI. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter(name="deployedModels") + def deployed_models(self) -> Sequence['outputs.GoogleCloudAiplatformV1beta1DeployedModelRefResponse']: + """ + The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + """ + return pulumi.get(self, "deployed_models") + + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> str: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> 'outputs.GoogleCloudAiplatformV1beta1EncryptionSpecResponse': + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @property + @pulumi.getter + def etag(self) -> str: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> 'outputs.GoogleCloudAiplatformV1beta1ExplanationSpecResponse': + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @property + @pulumi.getter + def labels(self) -> Mapping[str, str]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @property + @pulumi.getter + def metadata(self) -> Any: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter(name="metadataArtifact") + def metadata_artifact(self) -> str: + """ + The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + """ + return pulumi.get(self, "metadata_artifact") + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> str: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @property + @pulumi.getter(name="modelSourceInfo") + def model_source_info(self) -> 'outputs.GoogleCloudAiplatformV1beta1ModelSourceInfoResponse': + """ + Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + """ + return pulumi.get(self, "model_source_info") + + @property + @pulumi.getter + def name(self) -> str: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="originalModelInfo") + def original_model_info(self) -> 'outputs.GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse': + """ + If this Model is a copy of another Model, this contains info about the original. + """ + return pulumi.get(self, "original_model_info") + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> 'outputs.GoogleCloudAiplatformV1beta1PredictSchemataResponse': + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @property + @pulumi.getter(name="supportedDeploymentResourcesTypes") + def supported_deployment_resources_types(self) -> Sequence[str]: + """ + When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + """ + return pulumi.get(self, "supported_deployment_resources_types") + + @property + @pulumi.getter(name="supportedExportFormats") + def supported_export_formats(self) -> Sequence['outputs.GoogleCloudAiplatformV1beta1ModelExportFormatResponse']: + """ + The formats in which this Model may be exported. If empty, this Model is not available for export. + """ + return pulumi.get(self, "supported_export_formats") + + @property + @pulumi.getter(name="supportedInputStorageFormats") + def supported_input_storage_formats(self) -> Sequence[str]: + """ + The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_input_storage_formats") + + @property + @pulumi.getter(name="supportedOutputStorageFormats") + def supported_output_storage_formats(self) -> Sequence[str]: + """ + The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_output_storage_formats") + + @property + @pulumi.getter(name="trainingPipeline") + def training_pipeline(self) -> str: + """ + The resource name of the TrainingPipeline that uploaded this Model, if any. + """ + return pulumi.get(self, "training_pipeline") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> str: + """ + Timestamp when this Model was most recently updated. + """ + return pulumi.get(self, "update_time") + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> Sequence[str]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @property + @pulumi.getter(name="versionCreateTime") + def version_create_time(self) -> str: + """ + Timestamp when this version was created. + """ + return pulumi.get(self, "version_create_time") + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> str: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @property + @pulumi.getter(name="versionId") + def version_id(self) -> str: + """ + Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + """ + return pulumi.get(self, "version_id") + + @property + @pulumi.getter(name="versionUpdateTime") + def version_update_time(self) -> str: + """ + Timestamp when this version was most recently updated. + """ + return pulumi.get(self, "version_update_time") + + +class AwaitableGetModelResult(GetModelResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetModelResult( + artifact_uri=self.artifact_uri, + container_spec=self.container_spec, + create_time=self.create_time, + deployed_models=self.deployed_models, + description=self.description, + display_name=self.display_name, + encryption_spec=self.encryption_spec, + etag=self.etag, + explanation_spec=self.explanation_spec, + labels=self.labels, + metadata=self.metadata, + metadata_artifact=self.metadata_artifact, + metadata_schema_uri=self.metadata_schema_uri, + model_source_info=self.model_source_info, + name=self.name, + original_model_info=self.original_model_info, + predict_schemata=self.predict_schemata, + supported_deployment_resources_types=self.supported_deployment_resources_types, + supported_export_formats=self.supported_export_formats, + supported_input_storage_formats=self.supported_input_storage_formats, + supported_output_storage_formats=self.supported_output_storage_formats, + training_pipeline=self.training_pipeline, + update_time=self.update_time, + version_aliases=self.version_aliases, + version_create_time=self.version_create_time, + version_description=self.version_description, + version_id=self.version_id, + version_update_time=self.version_update_time) + + +def get_model(location: Optional[str] = None, + model_id: Optional[str] = None, + project: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetModelResult: + """ + Gets a Model. + """ + __args__ = dict() + __args__['location'] = location + __args__['modelId'] = model_id + __args__['project'] = project + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('google-native:aiplatform/v1beta1:getModel', __args__, opts=opts, typ=GetModelResult).value + + return AwaitableGetModelResult( + artifact_uri=pulumi.get(__ret__, 'artifact_uri'), + container_spec=pulumi.get(__ret__, 'container_spec'), + create_time=pulumi.get(__ret__, 'create_time'), + deployed_models=pulumi.get(__ret__, 'deployed_models'), + description=pulumi.get(__ret__, 'description'), + display_name=pulumi.get(__ret__, 'display_name'), + encryption_spec=pulumi.get(__ret__, 'encryption_spec'), + etag=pulumi.get(__ret__, 'etag'), + explanation_spec=pulumi.get(__ret__, 'explanation_spec'), + labels=pulumi.get(__ret__, 'labels'), + metadata=pulumi.get(__ret__, 'metadata'), + metadata_artifact=pulumi.get(__ret__, 'metadata_artifact'), + metadata_schema_uri=pulumi.get(__ret__, 'metadata_schema_uri'), + model_source_info=pulumi.get(__ret__, 'model_source_info'), + name=pulumi.get(__ret__, 'name'), + original_model_info=pulumi.get(__ret__, 'original_model_info'), + predict_schemata=pulumi.get(__ret__, 'predict_schemata'), + supported_deployment_resources_types=pulumi.get(__ret__, 'supported_deployment_resources_types'), + supported_export_formats=pulumi.get(__ret__, 'supported_export_formats'), + supported_input_storage_formats=pulumi.get(__ret__, 'supported_input_storage_formats'), + supported_output_storage_formats=pulumi.get(__ret__, 'supported_output_storage_formats'), + training_pipeline=pulumi.get(__ret__, 'training_pipeline'), + update_time=pulumi.get(__ret__, 'update_time'), + version_aliases=pulumi.get(__ret__, 'version_aliases'), + version_create_time=pulumi.get(__ret__, 'version_create_time'), + version_description=pulumi.get(__ret__, 'version_description'), + version_id=pulumi.get(__ret__, 'version_id'), + version_update_time=pulumi.get(__ret__, 'version_update_time')) + + +@_utilities.lift_output_func(get_model) +def get_model_output(location: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + project: Optional[pulumi.Input[Optional[str]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetModelResult]: + """ + Gets a Model. + """ + ... diff --git a/sdk/python/pulumi_google_native/aiplatform/v1beta1/model.py b/sdk/python/pulumi_google_native/aiplatform/v1beta1/model.py new file mode 100644 index 0000000000..daad27ebf7 --- /dev/null +++ b/sdk/python/pulumi_google_native/aiplatform/v1beta1/model.py @@ -0,0 +1,744 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs +from ._enums import * +from ._inputs import * + +__all__ = ['ModelArgs', 'Model'] + +@pulumi.input_type +class ModelArgs: + def __init__(__self__, *, + display_name: pulumi.Input[str], + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']] = None, + description: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1PredictSchemataArgs']] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a Model resource. + :param pulumi.Input[str] display_name: The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + :param pulumi.Input[str] artifact_uri: Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + :param pulumi.Input['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs'] container_spec: Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + :param pulumi.Input[str] description: The description of the Model. + :param pulumi.Input['GoogleCloudAiplatformV1beta1EncryptionSpecArgs'] encryption_spec: Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + :param pulumi.Input[str] etag: Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + :param pulumi.Input['GoogleCloudAiplatformV1beta1ExplanationSpecArgs'] explanation_spec: The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + :param Any metadata: Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + :param pulumi.Input[str] metadata_schema_uri: Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + :param pulumi.Input[str] model_id: Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + :param pulumi.Input[str] name: The resource name of the Model. + :param pulumi.Input[str] parent_model: Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + :param pulumi.Input['GoogleCloudAiplatformV1beta1PredictSchemataArgs'] predict_schemata: The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + :param pulumi.Input[str] service_account: Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + :param pulumi.Input[Sequence[pulumi.Input[str]]] version_aliases: User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + :param pulumi.Input[str] version_description: The description of this version. + """ + pulumi.set(__self__, "display_name", display_name) + if artifact_uri is not None: + pulumi.set(__self__, "artifact_uri", artifact_uri) + if container_spec is not None: + pulumi.set(__self__, "container_spec", container_spec) + if description is not None: + pulumi.set(__self__, "description", description) + if encryption_spec is not None: + pulumi.set(__self__, "encryption_spec", encryption_spec) + if etag is not None: + pulumi.set(__self__, "etag", etag) + if explanation_spec is not None: + pulumi.set(__self__, "explanation_spec", explanation_spec) + if labels is not None: + pulumi.set(__self__, "labels", labels) + if location is not None: + pulumi.set(__self__, "location", location) + if metadata is not None: + pulumi.set(__self__, "metadata", metadata) + if metadata_schema_uri is not None: + pulumi.set(__self__, "metadata_schema_uri", metadata_schema_uri) + if model_id is not None: + pulumi.set(__self__, "model_id", model_id) + if name is not None: + pulumi.set(__self__, "name", name) + if parent_model is not None: + pulumi.set(__self__, "parent_model", parent_model) + if predict_schemata is not None: + pulumi.set(__self__, "predict_schemata", predict_schemata) + if project is not None: + pulumi.set(__self__, "project", project) + if service_account is not None: + pulumi.set(__self__, "service_account", service_account) + if version_aliases is not None: + pulumi.set(__self__, "version_aliases", version_aliases) + if version_description is not None: + pulumi.set(__self__, "version_description", version_description) + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> pulumi.Input[str]: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @display_name.setter + def display_name(self, value: pulumi.Input[str]): + pulumi.set(self, "display_name", value) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> Optional[pulumi.Input[str]]: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @artifact_uri.setter + def artifact_uri(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "artifact_uri", value) + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']]: + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @container_spec.setter + def container_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']]): + pulumi.set(self, "container_spec", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']]: + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @encryption_spec.setter + def encryption_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']]): + pulumi.set(self, "encryption_spec", value) + + @property + @pulumi.getter + def etag(self) -> Optional[pulumi.Input[str]]: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @etag.setter + def etag(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "etag", value) + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']]: + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @explanation_spec.setter + def explanation_spec(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']]): + pulumi.set(self, "explanation_spec", value) + + @property + @pulumi.getter + def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @labels.setter + def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "labels", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter + def metadata(self) -> Optional[Any]: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @metadata.setter + def metadata(self, value: Optional[Any]): + pulumi.set(self, "metadata", value) + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> Optional[pulumi.Input[str]]: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @metadata_schema_uri.setter + def metadata_schema_uri(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "metadata_schema_uri", value) + + @property + @pulumi.getter(name="modelId") + def model_id(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + """ + return pulumi.get(self, "model_id") + + @model_id.setter + def model_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "model_id", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="parentModel") + def parent_model(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + """ + return pulumi.get(self, "parent_model") + + @parent_model.setter + def parent_model(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "parent_model", value) + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> Optional[pulumi.Input['GoogleCloudAiplatformV1beta1PredictSchemataArgs']]: + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @predict_schemata.setter + def predict_schemata(self, value: Optional[pulumi.Input['GoogleCloudAiplatformV1beta1PredictSchemataArgs']]): + pulumi.set(self, "predict_schemata", value) + + @property + @pulumi.getter + def project(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "project") + + @project.setter + def project(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "project", value) + + @property + @pulumi.getter(name="serviceAccount") + def service_account(self) -> Optional[pulumi.Input[str]]: + """ + Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + """ + return pulumi.get(self, "service_account") + + @service_account.setter + def service_account(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "service_account", value) + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @version_aliases.setter + def version_aliases(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "version_aliases", value) + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> Optional[pulumi.Input[str]]: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @version_description.setter + def version_description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "version_description", value) + + +class Model(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']]] = None, + description: Optional[pulumi.Input[str]] = None, + display_name: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']]] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']]] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1PredictSchemataArgs']]] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Uploads a Model artifact into Vertex AI. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] artifact_uri: Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']] container_spec: Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + :param pulumi.Input[str] description: The description of the Model. + :param pulumi.Input[str] display_name: The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']] encryption_spec: Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + :param pulumi.Input[str] etag: Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']] explanation_spec: The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + :param Any metadata: Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + :param pulumi.Input[str] metadata_schema_uri: Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + :param pulumi.Input[str] model_id: Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen. + :param pulumi.Input[str] name: The resource name of the Model. + :param pulumi.Input[str] parent_model: Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version. + :param pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1PredictSchemataArgs']] predict_schemata: The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + :param pulumi.Input[str] service_account: Optional. The user-provided custom service account to use to do the model upload. If empty, [Vertex AI Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used to access resources needed to upload the model. This account must belong to the target project where the model is uploaded to, i.e., the project specified in the `parent` field of this request and have necessary read permissions (to Google Cloud Storage, Artifact Registry, etc.). + :param pulumi.Input[Sequence[pulumi.Input[str]]] version_aliases: User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + :param pulumi.Input[str] version_description: The description of this version. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ModelArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Uploads a Model artifact into Vertex AI. + + :param str resource_name: The name of the resource. + :param ModelArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ModelArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + artifact_uri: Optional[pulumi.Input[str]] = None, + container_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ModelContainerSpecArgs']]] = None, + description: Optional[pulumi.Input[str]] = None, + display_name: Optional[pulumi.Input[str]] = None, + encryption_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1EncryptionSpecArgs']]] = None, + etag: Optional[pulumi.Input[str]] = None, + explanation_spec: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1ExplanationSpecArgs']]] = None, + labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + location: Optional[pulumi.Input[str]] = None, + metadata: Optional[Any] = None, + metadata_schema_uri: Optional[pulumi.Input[str]] = None, + model_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + parent_model: Optional[pulumi.Input[str]] = None, + predict_schemata: Optional[pulumi.Input[pulumi.InputType['GoogleCloudAiplatformV1beta1PredictSchemataArgs']]] = None, + project: Optional[pulumi.Input[str]] = None, + service_account: Optional[pulumi.Input[str]] = None, + version_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + version_description: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ModelArgs.__new__(ModelArgs) + + __props__.__dict__["artifact_uri"] = artifact_uri + __props__.__dict__["container_spec"] = container_spec + __props__.__dict__["description"] = description + if display_name is None and not opts.urn: + raise TypeError("Missing required property 'display_name'") + __props__.__dict__["display_name"] = display_name + __props__.__dict__["encryption_spec"] = encryption_spec + __props__.__dict__["etag"] = etag + __props__.__dict__["explanation_spec"] = explanation_spec + __props__.__dict__["labels"] = labels + __props__.__dict__["location"] = location + __props__.__dict__["metadata"] = metadata + __props__.__dict__["metadata_schema_uri"] = metadata_schema_uri + __props__.__dict__["model_id"] = model_id + __props__.__dict__["name"] = name + __props__.__dict__["parent_model"] = parent_model + __props__.__dict__["predict_schemata"] = predict_schemata + __props__.__dict__["project"] = project + __props__.__dict__["service_account"] = service_account + __props__.__dict__["version_aliases"] = version_aliases + __props__.__dict__["version_description"] = version_description + __props__.__dict__["create_time"] = None + __props__.__dict__["deployed_models"] = None + __props__.__dict__["metadata_artifact"] = None + __props__.__dict__["model_source_info"] = None + __props__.__dict__["original_model_info"] = None + __props__.__dict__["supported_deployment_resources_types"] = None + __props__.__dict__["supported_export_formats"] = None + __props__.__dict__["supported_input_storage_formats"] = None + __props__.__dict__["supported_output_storage_formats"] = None + __props__.__dict__["training_pipeline"] = None + __props__.__dict__["update_time"] = None + __props__.__dict__["version_create_time"] = None + __props__.__dict__["version_id"] = None + __props__.__dict__["version_update_time"] = None + replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["location", "project"]) + opts = pulumi.ResourceOptions.merge(opts, replace_on_changes) + super(Model, __self__).__init__( + 'google-native:aiplatform/v1beta1:Model', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'Model': + """ + Get an existing Model resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = ModelArgs.__new__(ModelArgs) + + __props__.__dict__["artifact_uri"] = None + __props__.__dict__["container_spec"] = None + __props__.__dict__["create_time"] = None + __props__.__dict__["deployed_models"] = None + __props__.__dict__["description"] = None + __props__.__dict__["display_name"] = None + __props__.__dict__["encryption_spec"] = None + __props__.__dict__["etag"] = None + __props__.__dict__["explanation_spec"] = None + __props__.__dict__["labels"] = None + __props__.__dict__["location"] = None + __props__.__dict__["metadata"] = None + __props__.__dict__["metadata_artifact"] = None + __props__.__dict__["metadata_schema_uri"] = None + __props__.__dict__["model_source_info"] = None + __props__.__dict__["name"] = None + __props__.__dict__["original_model_info"] = None + __props__.__dict__["predict_schemata"] = None + __props__.__dict__["project"] = None + __props__.__dict__["supported_deployment_resources_types"] = None + __props__.__dict__["supported_export_formats"] = None + __props__.__dict__["supported_input_storage_formats"] = None + __props__.__dict__["supported_output_storage_formats"] = None + __props__.__dict__["training_pipeline"] = None + __props__.__dict__["update_time"] = None + __props__.__dict__["version_aliases"] = None + __props__.__dict__["version_create_time"] = None + __props__.__dict__["version_description"] = None + __props__.__dict__["version_id"] = None + __props__.__dict__["version_update_time"] = None + return Model(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="artifactUri") + def artifact_uri(self) -> pulumi.Output[str]: + """ + Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "artifact_uri") + + @property + @pulumi.getter(name="containerSpec") + def container_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1ModelContainerSpecResponse']: + """ + Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not present for AutoML Models or Large Models. + """ + return pulumi.get(self, "container_spec") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> pulumi.Output[str]: + """ + Timestamp when this Model was uploaded into Vertex AI. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter(name="deployedModels") + def deployed_models(self) -> pulumi.Output[Sequence['outputs.GoogleCloudAiplatformV1beta1DeployedModelRefResponse']]: + """ + The pointers to DeployedModels created from this Model. Note that Model could have been deployed to Endpoints in different Locations. + """ + return pulumi.get(self, "deployed_models") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[str]: + """ + The description of the Model. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> pulumi.Output[str]: + """ + The display name of the Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="encryptionSpec") + def encryption_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1EncryptionSpecResponse']: + """ + Customer-managed encryption key spec for a Model. If set, this Model and all sub-resources of this Model will be secured by this key. + """ + return pulumi.get(self, "encryption_spec") + + @property + @pulumi.getter + def etag(self) -> pulumi.Output[str]: + """ + Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter(name="explanationSpec") + def explanation_spec(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1ExplanationSpecResponse']: + """ + The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob. + """ + return pulumi.get(self, "explanation_spec") + + @property + @pulumi.getter + def labels(self) -> pulumi.Output[Mapping[str, str]]: + """ + The labels with user-defined metadata to organize your Models. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. + """ + return pulumi.get(self, "labels") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + return pulumi.get(self, "location") + + @property + @pulumi.getter + def metadata(self) -> pulumi.Output[Any]: + """ + Immutable. An additional information about the Model; the schema of the metadata can be found in metadata_schema. Unset if the Model does not have any additional information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter(name="metadataArtifact") + def metadata_artifact(self) -> pulumi.Output[str]: + """ + The resource name of the Artifact that was created in MetadataStore when creating the Model. The Artifact resource name pattern is `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + """ + return pulumi.get(self, "metadata_artifact") + + @property + @pulumi.getter(name="metadataSchemaUri") + def metadata_schema_uri(self) -> pulumi.Output[str]: + """ + Immutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Model, that is specific to it. Unset if the Model does not have any additional information. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). AutoML Models always have this field populated by Vertex AI, if no additional metadata is needed, this field is set to an empty string. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access. + """ + return pulumi.get(self, "metadata_schema_uri") + + @property + @pulumi.getter(name="modelSourceInfo") + def model_source_info(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1ModelSourceInfoResponse']: + """ + Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model. + """ + return pulumi.get(self, "model_source_info") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The resource name of the Model. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="originalModelInfo") + def original_model_info(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1ModelOriginalModelInfoResponse']: + """ + If this Model is a copy of another Model, this contains info about the original. + """ + return pulumi.get(self, "original_model_info") + + @property + @pulumi.getter(name="predictSchemata") + def predict_schemata(self) -> pulumi.Output['outputs.GoogleCloudAiplatformV1beta1PredictSchemataResponse']: + """ + The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain. + """ + return pulumi.get(self, "predict_schemata") + + @property + @pulumi.getter + def project(self) -> pulumi.Output[str]: + return pulumi.get(self, "project") + + @property + @pulumi.getter(name="supportedDeploymentResourcesTypes") + def supported_deployment_resources_types(self) -> pulumi.Output[Sequence[str]]: + """ + When this Model is deployed, its prediction resources are described by the `prediction_resources` field of the Endpoint.deployed_models object. Because not all Models support all resource configuration types, the configuration types this Model supports are listed here. If no configuration types are listed, the Model cannot be deployed to an Endpoint and does not support online predictions (PredictionService.Predict or PredictionService.Explain). Such a Model can serve predictions by using a BatchPredictionJob, if it has at least one entry each in supported_input_storage_formats and supported_output_storage_formats. + """ + return pulumi.get(self, "supported_deployment_resources_types") + + @property + @pulumi.getter(name="supportedExportFormats") + def supported_export_formats(self) -> pulumi.Output[Sequence['outputs.GoogleCloudAiplatformV1beta1ModelExportFormatResponse']]: + """ + The formats in which this Model may be exported. If empty, this Model is not available for export. + """ + return pulumi.get(self, "supported_export_formats") + + @property + @pulumi.getter(name="supportedInputStorageFormats") + def supported_input_storage_formats(self) -> pulumi.Output[Sequence[str]]: + """ + The formats this Model supports in BatchPredictionJob.input_config. If PredictSchemata.instance_schema_uri exists, the instances should be given as per that schema. The possible formats are: * `jsonl` The JSON Lines format, where each instance is a single line. Uses GcsSource. * `csv` The CSV format, where each instance is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsSource. * `tf-record` The TFRecord format, where each instance is a single record in tfrecord syntax. Uses GcsSource. * `tf-record-gzip` Similar to `tf-record`, but the file is gzipped. Uses GcsSource. * `bigquery` Each instance is a single row in BigQuery. Uses BigQuerySource. * `file-list` Each line of the file is the location of an instance to process, uses `gcs_source` field of the InputConfig object. If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_input_storage_formats") + + @property + @pulumi.getter(name="supportedOutputStorageFormats") + def supported_output_storage_formats(self) -> pulumi.Output[Sequence[str]]: + """ + The formats this Model supports in BatchPredictionJob.output_config. If both PredictSchemata.instance_schema_uri and PredictSchemata.prediction_schema_uri exist, the predictions are returned together with their instances. In other words, the prediction has the original instance data first, followed by the actual prediction content (as per the schema). The possible formats are: * `jsonl` The JSON Lines format, where each prediction is a single line. Uses GcsDestination. * `csv` The CSV format, where each prediction is a single comma-separated line. The first line in the file is the header, containing comma-separated field names. Uses GcsDestination. * `bigquery` Each prediction is a single row in a BigQuery table, uses BigQueryDestination . If this Model doesn't support any of these formats it means it cannot be used with a BatchPredictionJob. However, if it has supported_deployment_resources_types, it could serve online predictions by using PredictionService.Predict or PredictionService.Explain. + """ + return pulumi.get(self, "supported_output_storage_formats") + + @property + @pulumi.getter(name="trainingPipeline") + def training_pipeline(self) -> pulumi.Output[str]: + """ + The resource name of the TrainingPipeline that uploaded this Model, if any. + """ + return pulumi.get(self, "training_pipeline") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> pulumi.Output[str]: + """ + Timestamp when this Model was most recently updated. + """ + return pulumi.get(self, "update_time") + + @property + @pulumi.getter(name="versionAliases") + def version_aliases(self) -> pulumi.Output[Sequence[str]]: + """ + User provided version aliases so that a model version can be referenced via alias (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_alias}` instead of auto-generated version id (i.e. `projects/{project}/locations/{location}/models/{model_id}@{version_id})`. The format is a-z{0,126}[a-z0-9] to distinguish from version_id. A default version alias will be created for the first version of the model, and there must be exactly one default version alias for a model. + """ + return pulumi.get(self, "version_aliases") + + @property + @pulumi.getter(name="versionCreateTime") + def version_create_time(self) -> pulumi.Output[str]: + """ + Timestamp when this version was created. + """ + return pulumi.get(self, "version_create_time") + + @property + @pulumi.getter(name="versionDescription") + def version_description(self) -> pulumi.Output[str]: + """ + The description of this version. + """ + return pulumi.get(self, "version_description") + + @property + @pulumi.getter(name="versionId") + def version_id(self) -> pulumi.Output[str]: + """ + Immutable. The version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model id. It is an auto-incrementing decimal number in string representation. + """ + return pulumi.get(self, "version_id") + + @property + @pulumi.getter(name="versionUpdateTime") + def version_update_time(self) -> pulumi.Output[str]: + """ + Timestamp when this version was most recently updated. + """ + return pulumi.get(self, "version_update_time") + diff --git a/sdk/python/pulumi_google_native/cloudsearch/v1/__init__.py b/sdk/python/pulumi_google_native/cloudsearch/v1/__init__.py index e873710267..fa60955771 100644 --- a/sdk/python/pulumi_google_native/cloudsearch/v1/__init__.py +++ b/sdk/python/pulumi_google_native/cloudsearch/v1/__init__.py @@ -8,7 +8,9 @@ from ._enums import * from .data_source import * from .get_data_source import * +from .get_item import * from .get_search_application import * +from .item import * from .search_application import * from ._inputs import * from . import outputs diff --git a/sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py b/sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py index f96ad4060e..8269da858b 100644 --- a/sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py +++ b/sdk/python/pulumi_google_native/cloudsearch/v1/_inputs.py @@ -14,6 +14,7 @@ 'CompositeFilterArgs', 'DataSourceRestrictionArgs', 'DateArgs', + 'DebugOptionsArgs', 'FacetOptionsArgs', 'FilterOptionsArgs', 'FilterArgs', @@ -165,6 +166,30 @@ def year(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "year", value) +@pulumi.input_type +class DebugOptionsArgs: + def __init__(__self__, *, + enable_debugging: Optional[pulumi.Input[bool]] = None): + """ + Shared request debug options for all cloudsearch RPC methods. + :param pulumi.Input[bool] enable_debugging: If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + """ + if enable_debugging is not None: + pulumi.set(__self__, "enable_debugging", enable_debugging) + + @property + @pulumi.getter(name="enableDebugging") + def enable_debugging(self) -> Optional[pulumi.Input[bool]]: + """ + If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. + """ + return pulumi.get(self, "enable_debugging") + + @enable_debugging.setter + def enable_debugging(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enable_debugging", value) + + @pulumi.input_type class FacetOptionsArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_google_native/cloudsearch/v1/get_item.py b/sdk/python/pulumi_google_native/cloudsearch/v1/get_item.py new file mode 100644 index 0000000000..1f17b504e7 --- /dev/null +++ b/sdk/python/pulumi_google_native/cloudsearch/v1/get_item.py @@ -0,0 +1,191 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs + +__all__ = [ + 'GetItemResult', + 'AwaitableGetItemResult', + 'get_item', + 'get_item_output', +] + +@pulumi.output_type +class GetItemResult: + def __init__(__self__, acl=None, content=None, item_type=None, metadata=None, name=None, payload=None, queue=None, status=None, structured_data=None, version=None): + if acl and not isinstance(acl, dict): + raise TypeError("Expected argument 'acl' to be a dict") + pulumi.set(__self__, "acl", acl) + if content and not isinstance(content, dict): + raise TypeError("Expected argument 'content' to be a dict") + pulumi.set(__self__, "content", content) + if item_type and not isinstance(item_type, str): + raise TypeError("Expected argument 'item_type' to be a str") + pulumi.set(__self__, "item_type", item_type) + if metadata and not isinstance(metadata, dict): + raise TypeError("Expected argument 'metadata' to be a dict") + pulumi.set(__self__, "metadata", metadata) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if payload and not isinstance(payload, str): + raise TypeError("Expected argument 'payload' to be a str") + pulumi.set(__self__, "payload", payload) + if queue and not isinstance(queue, str): + raise TypeError("Expected argument 'queue' to be a str") + pulumi.set(__self__, "queue", queue) + if status and not isinstance(status, dict): + raise TypeError("Expected argument 'status' to be a dict") + pulumi.set(__self__, "status", status) + if structured_data and not isinstance(structured_data, dict): + raise TypeError("Expected argument 'structured_data' to be a dict") + pulumi.set(__self__, "structured_data", structured_data) + if version and not isinstance(version, str): + raise TypeError("Expected argument 'version' to be a str") + pulumi.set(__self__, "version", version) + + @property + @pulumi.getter + def acl(self) -> 'outputs.ItemAclResponse': + """ + Access control list for this item. + """ + return pulumi.get(self, "acl") + + @property + @pulumi.getter + def content(self) -> 'outputs.ItemContentResponse': + """ + Item content to be indexed and made text searchable. + """ + return pulumi.get(self, "content") + + @property + @pulumi.getter(name="itemType") + def item_type(self) -> str: + """ + The type for this item. + """ + return pulumi.get(self, "item_type") + + @property + @pulumi.getter + def metadata(self) -> 'outputs.ItemMetadataResponse': + """ + The metadata information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def payload(self) -> str: + """ + Additional state connector can store for this item. The maximum length is 10000 bytes. + """ + return pulumi.get(self, "payload") + + @property + @pulumi.getter + def queue(self) -> str: + """ + Queue this item belongs to. The maximum length is 100 characters. + """ + return pulumi.get(self, "queue") + + @property + @pulumi.getter + def status(self) -> 'outputs.ItemStatusResponse': + """ + Status of the item. Output only field. + """ + return pulumi.get(self, "status") + + @property + @pulumi.getter(name="structuredData") + def structured_data(self) -> 'outputs.ItemStructuredDataResponse': + """ + The structured data for the item that should conform to a registered object definition in the schema for the data source. + """ + return pulumi.get(self, "structured_data") + + @property + @pulumi.getter + def version(self) -> str: + """ + The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + """ + return pulumi.get(self, "version") + + +class AwaitableGetItemResult(GetItemResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetItemResult( + acl=self.acl, + content=self.content, + item_type=self.item_type, + metadata=self.metadata, + name=self.name, + payload=self.payload, + queue=self.queue, + status=self.status, + structured_data=self.structured_data, + version=self.version) + + +def get_item(connector_name: Optional[str] = None, + datasource_id: Optional[str] = None, + debug_options_enable_debugging: Optional[bool] = None, + item_id: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetItemResult: + """ + Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + """ + __args__ = dict() + __args__['connectorName'] = connector_name + __args__['datasourceId'] = datasource_id + __args__['debugOptionsEnableDebugging'] = debug_options_enable_debugging + __args__['itemId'] = item_id + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('google-native:cloudsearch/v1:getItem', __args__, opts=opts, typ=GetItemResult).value + + return AwaitableGetItemResult( + acl=pulumi.get(__ret__, 'acl'), + content=pulumi.get(__ret__, 'content'), + item_type=pulumi.get(__ret__, 'item_type'), + metadata=pulumi.get(__ret__, 'metadata'), + name=pulumi.get(__ret__, 'name'), + payload=pulumi.get(__ret__, 'payload'), + queue=pulumi.get(__ret__, 'queue'), + status=pulumi.get(__ret__, 'status'), + structured_data=pulumi.get(__ret__, 'structured_data'), + version=pulumi.get(__ret__, 'version')) + + +@_utilities.lift_output_func(get_item) +def get_item_output(connector_name: Optional[pulumi.Input[Optional[str]]] = None, + datasource_id: Optional[pulumi.Input[str]] = None, + debug_options_enable_debugging: Optional[pulumi.Input[Optional[bool]]] = None, + item_id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetItemResult]: + """ + Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + """ + ... diff --git a/sdk/python/pulumi_google_native/cloudsearch/v1/item.py b/sdk/python/pulumi_google_native/cloudsearch/v1/item.py new file mode 100644 index 0000000000..d5ffc9d05d --- /dev/null +++ b/sdk/python/pulumi_google_native/cloudsearch/v1/item.py @@ -0,0 +1,280 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from ... import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['ItemArgs', 'Item'] + +@pulumi.input_type +class ItemArgs: + def __init__(__self__, *, + datasource_id: pulumi.Input[str], + item_id: pulumi.Input[str], + connector_name: Optional[pulumi.Input[str]] = None, + debug_options: Optional[pulumi.Input['DebugOptionsArgs']] = None): + """ + The set of arguments for constructing a Item resource. + :param pulumi.Input[str] connector_name: The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + :param pulumi.Input['DebugOptionsArgs'] debug_options: Common debug options. + """ + pulumi.set(__self__, "datasource_id", datasource_id) + pulumi.set(__self__, "item_id", item_id) + if connector_name is not None: + pulumi.set(__self__, "connector_name", connector_name) + if debug_options is not None: + pulumi.set(__self__, "debug_options", debug_options) + + @property + @pulumi.getter(name="datasourceId") + def datasource_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "datasource_id") + + @datasource_id.setter + def datasource_id(self, value: pulumi.Input[str]): + pulumi.set(self, "datasource_id", value) + + @property + @pulumi.getter(name="itemId") + def item_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "item_id") + + @item_id.setter + def item_id(self, value: pulumi.Input[str]): + pulumi.set(self, "item_id", value) + + @property + @pulumi.getter(name="connectorName") + def connector_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + """ + return pulumi.get(self, "connector_name") + + @connector_name.setter + def connector_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "connector_name", value) + + @property + @pulumi.getter(name="debugOptions") + def debug_options(self) -> Optional[pulumi.Input['DebugOptionsArgs']]: + """ + Common debug options. + """ + return pulumi.get(self, "debug_options") + + @debug_options.setter + def debug_options(self, value: Optional[pulumi.Input['DebugOptionsArgs']]): + pulumi.set(self, "debug_options", value) + + +class Item(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + connector_name: Optional[pulumi.Input[str]] = None, + datasource_id: Optional[pulumi.Input[str]] = None, + debug_options: Optional[pulumi.Input[pulumi.InputType['DebugOptionsArgs']]] = None, + item_id: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + Auto-naming is currently not supported for this resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] connector_name: The name of connector making this call. Format: datasources/{source_id}/connectors/{ID} + :param pulumi.Input[pulumi.InputType['DebugOptionsArgs']] debug_options: Common debug options. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ItemArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source. + Auto-naming is currently not supported for this resource. + + :param str resource_name: The name of the resource. + :param ItemArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(ItemArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + connector_name: Optional[pulumi.Input[str]] = None, + datasource_id: Optional[pulumi.Input[str]] = None, + debug_options: Optional[pulumi.Input[pulumi.InputType['DebugOptionsArgs']]] = None, + item_id: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = ItemArgs.__new__(ItemArgs) + + __props__.__dict__["connector_name"] = connector_name + if datasource_id is None and not opts.urn: + raise TypeError("Missing required property 'datasource_id'") + __props__.__dict__["datasource_id"] = datasource_id + __props__.__dict__["debug_options"] = debug_options + if item_id is None and not opts.urn: + raise TypeError("Missing required property 'item_id'") + __props__.__dict__["item_id"] = item_id + __props__.__dict__["acl"] = None + __props__.__dict__["content"] = None + __props__.__dict__["item_type"] = None + __props__.__dict__["metadata"] = None + __props__.__dict__["name"] = None + __props__.__dict__["payload"] = None + __props__.__dict__["queue"] = None + __props__.__dict__["status"] = None + __props__.__dict__["structured_data"] = None + __props__.__dict__["version"] = None + replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["datasource_id", "item_id"]) + opts = pulumi.ResourceOptions.merge(opts, replace_on_changes) + super(Item, __self__).__init__( + 'google-native:cloudsearch/v1:Item', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'Item': + """ + Get an existing Item resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = ItemArgs.__new__(ItemArgs) + + __props__.__dict__["acl"] = None + __props__.__dict__["content"] = None + __props__.__dict__["datasource_id"] = None + __props__.__dict__["item_id"] = None + __props__.__dict__["item_type"] = None + __props__.__dict__["metadata"] = None + __props__.__dict__["name"] = None + __props__.__dict__["payload"] = None + __props__.__dict__["queue"] = None + __props__.__dict__["status"] = None + __props__.__dict__["structured_data"] = None + __props__.__dict__["version"] = None + return Item(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def acl(self) -> pulumi.Output['outputs.ItemAclResponse']: + """ + Access control list for this item. + """ + return pulumi.get(self, "acl") + + @property + @pulumi.getter + def content(self) -> pulumi.Output['outputs.ItemContentResponse']: + """ + Item content to be indexed and made text searchable. + """ + return pulumi.get(self, "content") + + @property + @pulumi.getter(name="datasourceId") + def datasource_id(self) -> pulumi.Output[str]: + return pulumi.get(self, "datasource_id") + + @property + @pulumi.getter(name="itemId") + def item_id(self) -> pulumi.Output[str]: + return pulumi.get(self, "item_id") + + @property + @pulumi.getter(name="itemType") + def item_type(self) -> pulumi.Output[str]: + """ + The type for this item. + """ + return pulumi.get(self, "item_type") + + @property + @pulumi.getter + def metadata(self) -> pulumi.Output['outputs.ItemMetadataResponse']: + """ + The metadata information. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def payload(self) -> pulumi.Output[str]: + """ + Additional state connector can store for this item. The maximum length is 10000 bytes. + """ + return pulumi.get(self, "payload") + + @property + @pulumi.getter + def queue(self) -> pulumi.Output[str]: + """ + Queue this item belongs to. The maximum length is 100 characters. + """ + return pulumi.get(self, "queue") + + @property + @pulumi.getter + def status(self) -> pulumi.Output['outputs.ItemStatusResponse']: + """ + Status of the item. Output only field. + """ + return pulumi.get(self, "status") + + @property + @pulumi.getter(name="structuredData") + def structured_data(self) -> pulumi.Output['outputs.ItemStructuredDataResponse']: + """ + The structured data for the item that should conform to a registered object definition in the schema for the data source. + """ + return pulumi.get(self, "structured_data") + + @property + @pulumi.getter + def version(self) -> pulumi.Output[str]: + """ + The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to [Handle revisions after manual deletes](https://developers.google.com/cloud-search/docs/guides/operations). + """ + return pulumi.get(self, "version") + diff --git a/sdk/python/pulumi_google_native/cloudsearch/v1/outputs.py b/sdk/python/pulumi_google_native/cloudsearch/v1/outputs.py index a55b611a15..b87882bcb6 100644 --- a/sdk/python/pulumi_google_native/cloudsearch/v1/outputs.py +++ b/sdk/python/pulumi_google_native/cloudsearch/v1/outputs.py @@ -13,20 +13,43 @@ __all__ = [ 'CompositeFilterResponse', + 'ContextAttributeResponse', 'DataSourceRestrictionResponse', 'DateResponse', + 'DateValuesResponse', + 'DoubleValuesResponse', + 'EnumValuesResponse', 'FacetOptionsResponse', + 'FieldViolationResponse', 'FilterOptionsResponse', 'FilterResponse', 'GSuitePrincipalResponse', + 'HtmlValuesResponse', 'IntegerFacetingOptionsResponse', + 'IntegerValuesResponse', + 'InteractionResponse', + 'ItemAclResponse', + 'ItemContentResponse', + 'ItemMetadataResponse', + 'ItemStatusResponse', + 'ItemStructuredDataResponse', + 'NamedPropertyResponse', + 'ObjectValuesResponse', + 'PrincipalResponse', + 'ProcessingErrorResponse', 'QueryInterpretationConfigResponse', + 'RepositoryErrorResponse', 'ScoringConfigResponse', + 'SearchQualityMetadataResponse', 'SortOptionsResponse', 'SourceConfigResponse', 'SourceCrowdingConfigResponse', 'SourceResponse', 'SourceScoringConfigResponse', + 'StructuredDataObjectResponse', + 'TextValuesResponse', + 'TimestampValuesResponse', + 'UploadItemRefResponse', 'ValueFilterResponse', 'ValueResponse', ] @@ -79,6 +102,39 @@ def sub_filters(self) -> Sequence['outputs.FilterResponse']: return pulumi.get(self, "sub_filters") +@pulumi.output_type +class ContextAttributeResponse(dict): + """ + A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. + """ + def __init__(__self__, *, + name: str, + values: Sequence[str]): + """ + A named attribute associated with an item which can be used for influencing the ranking of the item based on the context in the request. + :param str name: The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. + :param Sequence[str] values: Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the attribute. It should not be empty. The maximum length is 32 characters. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The name will be normalized (lower-cased) before being matched. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + """ + Text values of the attribute. The maximum number of elements is 10. The maximum length of an element in the array is 32 characters. The value will be normalized (lower-cased) before being matched. + """ + return pulumi.get(self, "values") + + @pulumi.output_type class DataSourceRestrictionResponse(dict): """ @@ -173,6 +229,64 @@ def year(self) -> int: return pulumi.get(self, "year") +@pulumi.output_type +class DateValuesResponse(dict): + """ + List of date values. + """ + def __init__(__self__, *, + values: Sequence['outputs.DateResponse']): + """ + List of date values. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence['outputs.DateResponse']: + return pulumi.get(self, "values") + + +@pulumi.output_type +class DoubleValuesResponse(dict): + """ + List of double values. + """ + def __init__(__self__, *, + values: Sequence[float]): + """ + List of double values. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[float]: + return pulumi.get(self, "values") + + +@pulumi.output_type +class EnumValuesResponse(dict): + """ + List of enum values. + """ + def __init__(__self__, *, + values: Sequence[str]): + """ + List of enum values. + :param Sequence[str] values: The maximum allowable length for string values is 32 characters. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + """ + The maximum allowable length for string values is 32 characters. + """ + return pulumi.get(self, "values") + + @pulumi.output_type class FacetOptionsResponse(dict): """ @@ -264,6 +378,35 @@ def source_name(self) -> str: return pulumi.get(self, "source_name") +@pulumi.output_type +class FieldViolationResponse(dict): + def __init__(__self__, *, + description: str, + field: str): + """ + :param str description: The description of the error. + :param str field: Path of field with violation. + """ + pulumi.set(__self__, "description", description) + pulumi.set(__self__, "field", field) + + @property + @pulumi.getter + def description(self) -> str: + """ + The description of the error. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def field(self) -> str: + """ + Path of field with violation. + """ + return pulumi.get(self, "field") + + @pulumi.output_type class FilterOptionsResponse(dict): """ @@ -419,6 +562,28 @@ def gsuite_user_email(self) -> str: return pulumi.get(self, "gsuite_user_email") +@pulumi.output_type +class HtmlValuesResponse(dict): + """ + List of html values. + """ + def __init__(__self__, *, + values: Sequence[str]): + """ + List of html values. + :param Sequence[str] values: The maximum allowable length for html values is 2048 characters. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + """ + The maximum allowable length for html values is 2048 characters. + """ + return pulumi.get(self, "values") + + @pulumi.output_type class IntegerFacetingOptionsResponse(dict): """ @@ -459,271 +624,1133 @@ def integer_buckets(self) -> Sequence[str]: @pulumi.output_type -class QueryInterpretationConfigResponse(dict): +class IntegerValuesResponse(dict): """ - Default options to interpret user query. + List of integer values. + """ + def __init__(__self__, *, + values: Sequence[str]): + """ + List of integer values. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + return pulumi.get(self, "values") + + +@pulumi.output_type +class InteractionResponse(dict): + """ + Represents an interaction between a user and an item. """ @staticmethod def __key_warning(key: str): suggest = None - if key == "forceDisableSupplementalResults": - suggest = "force_disable_supplemental_results" - elif key == "forceVerbatimMode": - suggest = "force_verbatim_mode" + if key == "interactionTime": + suggest = "interaction_time" if suggest: - pulumi.log.warn(f"Key '{key}' not found in QueryInterpretationConfigResponse. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in InteractionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - QueryInterpretationConfigResponse.__key_warning(key) + InteractionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - QueryInterpretationConfigResponse.__key_warning(key) + InteractionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - force_disable_supplemental_results: bool, - force_verbatim_mode: bool): + interaction_time: str, + principal: 'outputs.PrincipalResponse', + type: str): """ - Default options to interpret user query. - :param bool force_disable_supplemental_results: Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. - :param bool force_verbatim_mode: Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. + Represents an interaction between a user and an item. + :param str interaction_time: The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. + :param 'PrincipalResponse' principal: The user that acted on the item. """ - pulumi.set(__self__, "force_disable_supplemental_results", force_disable_supplemental_results) - pulumi.set(__self__, "force_verbatim_mode", force_verbatim_mode) + pulumi.set(__self__, "interaction_time", interaction_time) + pulumi.set(__self__, "principal", principal) + pulumi.set(__self__, "type", type) @property - @pulumi.getter(name="forceDisableSupplementalResults") - def force_disable_supplemental_results(self) -> bool: + @pulumi.getter(name="interactionTime") + def interaction_time(self) -> str: """ - Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. + The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. """ - return pulumi.get(self, "force_disable_supplemental_results") + return pulumi.get(self, "interaction_time") @property - @pulumi.getter(name="forceVerbatimMode") - def force_verbatim_mode(self) -> bool: + @pulumi.getter + def principal(self) -> 'outputs.PrincipalResponse': """ - Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. + The user that acted on the item. """ - return pulumi.get(self, "force_verbatim_mode") + return pulumi.get(self, "principal") + + @property + @pulumi.getter + def type(self) -> str: + return pulumi.get(self, "type") @pulumi.output_type -class ScoringConfigResponse(dict): +class ItemAclResponse(dict): """ - Scoring configurations for a source while processing a Search or Suggest request. + Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). """ @staticmethod def __key_warning(key: str): suggest = None - if key == "disableFreshness": - suggest = "disable_freshness" - elif key == "disablePersonalization": - suggest = "disable_personalization" + if key == "aclInheritanceType": + suggest = "acl_inheritance_type" + elif key == "deniedReaders": + suggest = "denied_readers" + elif key == "inheritAclFrom": + suggest = "inherit_acl_from" if suggest: - pulumi.log.warn(f"Key '{key}' not found in ScoringConfigResponse. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in ItemAclResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - ScoringConfigResponse.__key_warning(key) + ItemAclResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - ScoringConfigResponse.__key_warning(key) + ItemAclResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - disable_freshness: bool, - disable_personalization: bool): - """ - Scoring configurations for a source while processing a Search or Suggest request. - :param bool disable_freshness: Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI. - :param bool disable_personalization: Whether to personalize the results. By default, personal signals will be used to boost results. - """ - pulumi.set(__self__, "disable_freshness", disable_freshness) - pulumi.set(__self__, "disable_personalization", disable_personalization) + acl_inheritance_type: str, + denied_readers: Sequence['outputs.PrincipalResponse'], + inherit_acl_from: str, + owners: Sequence['outputs.PrincipalResponse'], + readers: Sequence['outputs.PrincipalResponse']): + """ + Access control list information for the item. For more information see [Map ACLs](https://developers.google.com/cloud-search/docs/guides/acls). + :param str acl_inheritance_type: Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. + :param Sequence['PrincipalResponse'] denied_readers: List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. + :param str inherit_acl_from: The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. + :param Sequence['PrincipalResponse'] owners: Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. + :param Sequence['PrincipalResponse'] readers: List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. + """ + pulumi.set(__self__, "acl_inheritance_type", acl_inheritance_type) + pulumi.set(__self__, "denied_readers", denied_readers) + pulumi.set(__self__, "inherit_acl_from", inherit_acl_from) + pulumi.set(__self__, "owners", owners) + pulumi.set(__self__, "readers", readers) @property - @pulumi.getter(name="disableFreshness") - def disable_freshness(self) -> bool: + @pulumi.getter(name="aclInheritanceType") + def acl_inheritance_type(self) -> str: """ - Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI. + Sets the type of access rules to apply when an item inherits its ACL from a parent. This should always be set in tandem with the inheritAclFrom field. Also, when the inheritAclFrom field is set, this field should be set to a valid AclInheritanceType. """ - return pulumi.get(self, "disable_freshness") + return pulumi.get(self, "acl_inheritance_type") @property - @pulumi.getter(name="disablePersonalization") - def disable_personalization(self) -> bool: + @pulumi.getter(name="deniedReaders") + def denied_readers(self) -> Sequence['outputs.PrincipalResponse']: """ - Whether to personalize the results. By default, personal signals will be used to boost results. + List of principals who are explicitly denied access to the item in search results. While principals are denied access by default, use denied readers to handle exceptions and override the list allowed readers. The maximum number of elements is 100. """ - return pulumi.get(self, "disable_personalization") - - -@pulumi.output_type -class SortOptionsResponse(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "operatorName": - suggest = "operator_name" - elif key == "sortOrder": - suggest = "sort_order" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in SortOptionsResponse. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - SortOptionsResponse.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - SortOptionsResponse.__key_warning(key) - return super().get(key, default) + return pulumi.get(self, "denied_readers") - def __init__(__self__, *, - operator_name: str, - sort_order: str): + @property + @pulumi.getter(name="inheritAclFrom") + def inherit_acl_from(self) -> str: """ - :param str operator_name: The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. - :param str sort_order: Ascending is the default sort order + The name of the item to inherit the Access Permission List (ACL) from. Note: ACL inheritance *only* provides access permissions to child items and does not define structural relationships, nor does it provide convenient ways to delete large groups of items. Deleting an ACL parent from the index only alters the access permissions of child items that reference the parent in the inheritAclFrom field. The item is still in the index, but may not visible in search results. By contrast, deletion of a container item also deletes all items that reference the container via the containerName field. The maximum length for this field is 1536 characters. """ - pulumi.set(__self__, "operator_name", operator_name) - pulumi.set(__self__, "sort_order", sort_order) + return pulumi.get(self, "inherit_acl_from") @property - @pulumi.getter(name="operatorName") - def operator_name(self) -> str: + @pulumi.getter + def owners(self) -> Sequence['outputs.PrincipalResponse']: """ - The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. + Optional. List of owners for the item. This field has no bearing on document access permissions. It does, however, offer a slight ranking boosts items where the querying user is an owner. The maximum number of elements is 5. """ - return pulumi.get(self, "operator_name") + return pulumi.get(self, "owners") @property - @pulumi.getter(name="sortOrder") - def sort_order(self) -> str: + @pulumi.getter + def readers(self) -> Sequence['outputs.PrincipalResponse']: """ - Ascending is the default sort order + List of principals who are allowed to see the item in search results. Optional if inheriting permissions from another item or if the item is not intended to be visible, such as virtual containers. The maximum number of elements is 1000. """ - return pulumi.get(self, "sort_order") + return pulumi.get(self, "readers") @pulumi.output_type -class SourceConfigResponse(dict): +class ItemContentResponse(dict): """ - Configurations for a source while processing a Search or Suggest request. + Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. """ @staticmethod def __key_warning(key: str): suggest = None - if key == "crowdingConfig": - suggest = "crowding_config" - elif key == "scoringConfig": - suggest = "scoring_config" + if key == "contentDataRef": + suggest = "content_data_ref" + elif key == "contentFormat": + suggest = "content_format" + elif key == "inlineContent": + suggest = "inline_content" if suggest: - pulumi.log.warn(f"Key '{key}' not found in SourceConfigResponse. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in ItemContentResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - SourceConfigResponse.__key_warning(key) + ItemContentResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - SourceConfigResponse.__key_warning(key) + ItemContentResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - crowding_config: 'outputs.SourceCrowdingConfigResponse', - scoring_config: 'outputs.SourceScoringConfigResponse', - source: 'outputs.SourceResponse'): + content_data_ref: 'outputs.UploadItemRefResponse', + content_format: str, + hash: str, + inline_content: str): """ - Configurations for a source while processing a Search or Suggest request. - :param 'SourceCrowdingConfigResponse' crowding_config: The crowding configuration for the source. - :param 'SourceScoringConfigResponse' scoring_config: The scoring configuration for the source. - :param 'SourceResponse' source: The source for which this configuration is to be used. + Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded. + :param 'UploadItemRefResponse' content_data_ref: Upload reference ID of a previously uploaded content via write method. + :param str hash: Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + :param str inline_content: Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). """ - pulumi.set(__self__, "crowding_config", crowding_config) - pulumi.set(__self__, "scoring_config", scoring_config) - pulumi.set(__self__, "source", source) + pulumi.set(__self__, "content_data_ref", content_data_ref) + pulumi.set(__self__, "content_format", content_format) + pulumi.set(__self__, "hash", hash) + pulumi.set(__self__, "inline_content", inline_content) @property - @pulumi.getter(name="crowdingConfig") - def crowding_config(self) -> 'outputs.SourceCrowdingConfigResponse': + @pulumi.getter(name="contentDataRef") + def content_data_ref(self) -> 'outputs.UploadItemRefResponse': """ - The crowding configuration for the source. + Upload reference ID of a previously uploaded content via write method. """ - return pulumi.get(self, "crowding_config") + return pulumi.get(self, "content_data_ref") @property - @pulumi.getter(name="scoringConfig") - def scoring_config(self) -> 'outputs.SourceScoringConfigResponse': + @pulumi.getter(name="contentFormat") + def content_format(self) -> str: + return pulumi.get(self, "content_format") + + @property + @pulumi.getter + def hash(self) -> str: """ - The scoring configuration for the source. + Hashing info calculated and provided by the API client for content. Can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. """ - return pulumi.get(self, "scoring_config") + return pulumi.get(self, "hash") @property - @pulumi.getter - def source(self) -> 'outputs.SourceResponse': + @pulumi.getter(name="inlineContent") + def inline_content(self) -> str: """ - The source for which this configuration is to be used. + Content that is supplied inlined within the update method. The maximum length is 102400 bytes (100 KiB). """ - return pulumi.get(self, "source") + return pulumi.get(self, "inline_content") @pulumi.output_type -class SourceCrowdingConfigResponse(dict): +class ItemMetadataResponse(dict): """ - Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. + Available metadata fields for the item. """ @staticmethod def __key_warning(key: str): suggest = None - if key == "numResults": - suggest = "num_results" - elif key == "numSuggestions": - suggest = "num_suggestions" + if key == "containerName": + suggest = "container_name" + elif key == "contentLanguage": + suggest = "content_language" + elif key == "contextAttributes": + suggest = "context_attributes" + elif key == "createTime": + suggest = "create_time" + elif key == "mimeType": + suggest = "mime_type" + elif key == "objectType": + suggest = "object_type" + elif key == "searchQualityMetadata": + suggest = "search_quality_metadata" + elif key == "sourceRepositoryUrl": + suggest = "source_repository_url" + elif key == "updateTime": + suggest = "update_time" if suggest: - pulumi.log.warn(f"Key '{key}' not found in SourceCrowdingConfigResponse. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in ItemMetadataResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - SourceCrowdingConfigResponse.__key_warning(key) + ItemMetadataResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - SourceCrowdingConfigResponse.__key_warning(key) + ItemMetadataResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, - num_results: int, - num_suggestions: int): + container_name: str, + content_language: str, + context_attributes: Sequence['outputs.ContextAttributeResponse'], + create_time: str, + hash: str, + interactions: Sequence['outputs.InteractionResponse'], + keywords: Sequence[str], + mime_type: str, + object_type: str, + search_quality_metadata: 'outputs.SearchQualityMetadataResponse', + source_repository_url: str, + title: str, + update_time: str): + """ + Available metadata fields for the item. + :param str container_name: The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. + :param str content_language: The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. + :param Sequence['ContextAttributeResponse'] context_attributes: A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. + :param str create_time: The time when the item was created in the source repository. + :param str hash: Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + :param Sequence['InteractionResponse'] interactions: A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. + :param Sequence[str] keywords: Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. + :param str mime_type: The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. + :param str object_type: The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. + :param 'SearchQualityMetadataResponse' search_quality_metadata: Additional search quality metadata of the item + :param str source_repository_url: Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. + :param str title: The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. + :param str update_time: The time when the item was last modified in the source repository. + """ + pulumi.set(__self__, "container_name", container_name) + pulumi.set(__self__, "content_language", content_language) + pulumi.set(__self__, "context_attributes", context_attributes) + pulumi.set(__self__, "create_time", create_time) + pulumi.set(__self__, "hash", hash) + pulumi.set(__self__, "interactions", interactions) + pulumi.set(__self__, "keywords", keywords) + pulumi.set(__self__, "mime_type", mime_type) + pulumi.set(__self__, "object_type", object_type) + pulumi.set(__self__, "search_quality_metadata", search_quality_metadata) + pulumi.set(__self__, "source_repository_url", source_repository_url) + pulumi.set(__self__, "title", title) + pulumi.set(__self__, "update_time", update_time) + + @property + @pulumi.getter(name="containerName") + def container_name(self) -> str: """ - Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. - :param int num_results: Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. - :param int num_suggestions: Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0. + The name of the container for this item. Deletion of the container item leads to automatic deletion of this item. Note: ACLs are not inherited from a container item. To provide ACL inheritance for an item, use the inheritAclFrom field. The maximum length is 1536 characters. """ - pulumi.set(__self__, "num_results", num_results) - pulumi.set(__self__, "num_suggestions", num_suggestions) + return pulumi.get(self, "container_name") @property - @pulumi.getter(name="numResults") - def num_results(self) -> int: + @pulumi.getter(name="contentLanguage") + def content_language(self) -> str: """ - Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. + The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum length is 32 characters. """ - return pulumi.get(self, "num_results") + return pulumi.get(self, "content_language") @property - @pulumi.getter(name="numSuggestions") - def num_suggestions(self) -> int: + @pulumi.getter(name="contextAttributes") + def context_attributes(self) -> Sequence['outputs.ContextAttributeResponse']: """ - Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0. + A set of named attributes associated with the item. This can be used for influencing the ranking of the item based on the context in the request. The maximum number of elements is 10. """ - return pulumi.get(self, "num_suggestions") - + return pulumi.get(self, "context_attributes") + + @property + @pulumi.getter(name="createTime") + def create_time(self) -> str: + """ + The time when the item was created in the source repository. + """ + return pulumi.get(self, "create_time") + + @property + @pulumi.getter + def hash(self) -> str: + """ + Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def interactions(self) -> Sequence['outputs.InteractionResponse']: + """ + A list of interactions for the item. Interactions are used to improve Search quality, but are not exposed to end users. The maximum number of elements is 1000. + """ + return pulumi.get(self, "interactions") + + @property + @pulumi.getter + def keywords(self) -> Sequence[str]: + """ + Additional keywords or phrases that should match the item. Used internally for user generated content. The maximum number of elements is 100. The maximum length is 8192 characters. + """ + return pulumi.get(self, "keywords") + + @property + @pulumi.getter(name="mimeType") + def mime_type(self) -> str: + """ + The original mime-type of ItemContent.content in the source repository. The maximum length is 256 characters. + """ + return pulumi.get(self, "mime_type") + + @property + @pulumi.getter(name="objectType") + def object_type(self) -> str: + """ + The type of the item. This should correspond to the name of an object definition in the schema registered for the data source. For example, if the schema for the data source contains an object definition with name 'document', then item indexing requests for objects of that type should set objectType to 'document'. The maximum length is 256 characters. + """ + return pulumi.get(self, "object_type") + + @property + @pulumi.getter(name="searchQualityMetadata") + def search_quality_metadata(self) -> 'outputs.SearchQualityMetadataResponse': + """ + Additional search quality metadata of the item + """ + return pulumi.get(self, "search_quality_metadata") + + @property + @pulumi.getter(name="sourceRepositoryUrl") + def source_repository_url(self) -> str: + """ + Link to the source repository serving the data. Seach results apply this link to the title. Whitespace or special characters may cause Cloud Seach result links to trigger a redirect notice; to avoid this, encode the URL. The maximum length is 2048 characters. + """ + return pulumi.get(self, "source_repository_url") + + @property + @pulumi.getter + def title(self) -> str: + """ + The title of the item. If given, this will be the displayed title of the Search result. The maximum length is 2048 characters. + """ + return pulumi.get(self, "title") + + @property + @pulumi.getter(name="updateTime") + def update_time(self) -> str: + """ + The time when the item was last modified in the source repository. + """ + return pulumi.get(self, "update_time") + + +@pulumi.output_type +class ItemStatusResponse(dict): + """ + This contains item's status and any errors. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "processingErrors": + suggest = "processing_errors" + elif key == "repositoryErrors": + suggest = "repository_errors" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ItemStatusResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ItemStatusResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ItemStatusResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + code: str, + processing_errors: Sequence['outputs.ProcessingErrorResponse'], + repository_errors: Sequence['outputs.RepositoryErrorResponse']): + """ + This contains item's status and any errors. + :param str code: Status code. + :param Sequence['ProcessingErrorResponse'] processing_errors: Error details in case the item is in ERROR state. + :param Sequence['RepositoryErrorResponse'] repository_errors: Repository error reported by connector. + """ + pulumi.set(__self__, "code", code) + pulumi.set(__self__, "processing_errors", processing_errors) + pulumi.set(__self__, "repository_errors", repository_errors) + + @property + @pulumi.getter + def code(self) -> str: + """ + Status code. + """ + return pulumi.get(self, "code") + + @property + @pulumi.getter(name="processingErrors") + def processing_errors(self) -> Sequence['outputs.ProcessingErrorResponse']: + """ + Error details in case the item is in ERROR state. + """ + return pulumi.get(self, "processing_errors") + + @property + @pulumi.getter(name="repositoryErrors") + def repository_errors(self) -> Sequence['outputs.RepositoryErrorResponse']: + """ + Repository error reported by connector. + """ + return pulumi.get(self, "repository_errors") + + +@pulumi.output_type +class ItemStructuredDataResponse(dict): + """ + Available structured data fields for the item. + """ + def __init__(__self__, *, + hash: str, + object: 'outputs.StructuredDataObjectResponse'): + """ + Available structured data fields for the item. + :param str hash: Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + :param 'StructuredDataObjectResponse' object: The structured data object that should conform to a registered object definition in the schema for the data source. + """ + pulumi.set(__self__, "hash", hash) + pulumi.set(__self__, "object", object) + + @property + @pulumi.getter + def hash(self) -> str: + """ + Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def object(self) -> 'outputs.StructuredDataObjectResponse': + """ + The structured data object that should conform to a registered object definition in the schema for the data source. + """ + return pulumi.get(self, "object") + + +@pulumi.output_type +class NamedPropertyResponse(dict): + """ + A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "booleanValue": + suggest = "boolean_value" + elif key == "dateValues": + suggest = "date_values" + elif key == "doubleValues": + suggest = "double_values" + elif key == "enumValues": + suggest = "enum_values" + elif key == "htmlValues": + suggest = "html_values" + elif key == "integerValues": + suggest = "integer_values" + elif key == "objectValues": + suggest = "object_values" + elif key == "textValues": + suggest = "text_values" + elif key == "timestampValues": + suggest = "timestamp_values" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in NamedPropertyResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + NamedPropertyResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + NamedPropertyResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + boolean_value: bool, + date_values: 'outputs.DateValuesResponse', + double_values: 'outputs.DoubleValuesResponse', + enum_values: 'outputs.EnumValuesResponse', + html_values: 'outputs.HtmlValuesResponse', + integer_values: 'outputs.IntegerValuesResponse', + name: str, + object_values: 'outputs.ObjectValuesResponse', + text_values: 'outputs.TextValuesResponse', + timestamp_values: 'outputs.TimestampValuesResponse'): + """ + A typed name-value pair for structured data. The type of the value should be the same as the registered type for the `name` property in the object definition of `objectType`. + :param str name: The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. + """ + pulumi.set(__self__, "boolean_value", boolean_value) + pulumi.set(__self__, "date_values", date_values) + pulumi.set(__self__, "double_values", double_values) + pulumi.set(__self__, "enum_values", enum_values) + pulumi.set(__self__, "html_values", html_values) + pulumi.set(__self__, "integer_values", integer_values) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "object_values", object_values) + pulumi.set(__self__, "text_values", text_values) + pulumi.set(__self__, "timestamp_values", timestamp_values) + + @property + @pulumi.getter(name="booleanValue") + def boolean_value(self) -> bool: + return pulumi.get(self, "boolean_value") + + @property + @pulumi.getter(name="dateValues") + def date_values(self) -> 'outputs.DateValuesResponse': + return pulumi.get(self, "date_values") + + @property + @pulumi.getter(name="doubleValues") + def double_values(self) -> 'outputs.DoubleValuesResponse': + return pulumi.get(self, "double_values") + + @property + @pulumi.getter(name="enumValues") + def enum_values(self) -> 'outputs.EnumValuesResponse': + return pulumi.get(self, "enum_values") + + @property + @pulumi.getter(name="htmlValues") + def html_values(self) -> 'outputs.HtmlValuesResponse': + return pulumi.get(self, "html_values") + + @property + @pulumi.getter(name="integerValues") + def integer_values(self) -> 'outputs.IntegerValuesResponse': + return pulumi.get(self, "integer_values") + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="objectValues") + def object_values(self) -> 'outputs.ObjectValuesResponse': + return pulumi.get(self, "object_values") + + @property + @pulumi.getter(name="textValues") + def text_values(self) -> 'outputs.TextValuesResponse': + return pulumi.get(self, "text_values") + + @property + @pulumi.getter(name="timestampValues") + def timestamp_values(self) -> 'outputs.TimestampValuesResponse': + return pulumi.get(self, "timestamp_values") + + +@pulumi.output_type +class ObjectValuesResponse(dict): + """ + List of object values. + """ + def __init__(__self__, *, + values: Sequence['outputs.StructuredDataObjectResponse']): + """ + List of object values. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence['outputs.StructuredDataObjectResponse']: + return pulumi.get(self, "values") + + +@pulumi.output_type +class PrincipalResponse(dict): + """ + Reference to a user, group, or domain. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "groupResourceName": + suggest = "group_resource_name" + elif key == "gsuitePrincipal": + suggest = "gsuite_principal" + elif key == "userResourceName": + suggest = "user_resource_name" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PrincipalResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PrincipalResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PrincipalResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + group_resource_name: str, + gsuite_principal: 'outputs.GSuitePrincipalResponse', + user_resource_name: str): + """ + Reference to a user, group, or domain. + :param str group_resource_name: This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} + :param 'GSuitePrincipalResponse' gsuite_principal: This principal is a Google Workspace user, group or domain. + :param str user_resource_name: This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} + """ + pulumi.set(__self__, "group_resource_name", group_resource_name) + pulumi.set(__self__, "gsuite_principal", gsuite_principal) + pulumi.set(__self__, "user_resource_name", user_resource_name) + + @property + @pulumi.getter(name="groupResourceName") + def group_resource_name(self) -> str: + """ + This principal is a group identified using an external identity. The name field must specify the group resource name with this format: identitysources/{source_id}/groups/{ID} + """ + return pulumi.get(self, "group_resource_name") + + @property + @pulumi.getter(name="gsuitePrincipal") + def gsuite_principal(self) -> 'outputs.GSuitePrincipalResponse': + """ + This principal is a Google Workspace user, group or domain. + """ + return pulumi.get(self, "gsuite_principal") + + @property + @pulumi.getter(name="userResourceName") + def user_resource_name(self) -> str: + """ + This principal is a user identified using an external identity. The name field must specify the user resource name with this format: identitysources/{source_id}/users/{ID} + """ + return pulumi.get(self, "user_resource_name") + + +@pulumi.output_type +class ProcessingErrorResponse(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "errorMessage": + suggest = "error_message" + elif key == "fieldViolations": + suggest = "field_violations" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ProcessingErrorResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ProcessingErrorResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ProcessingErrorResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + code: str, + error_message: str, + field_violations: Sequence['outputs.FieldViolationResponse']): + """ + :param str code: Error code indicating the nature of the error. + :param str error_message: The description of the error. + :param Sequence['FieldViolationResponse'] field_violations: In case the item fields are invalid, this field contains the details about the validation errors. + """ + pulumi.set(__self__, "code", code) + pulumi.set(__self__, "error_message", error_message) + pulumi.set(__self__, "field_violations", field_violations) + + @property + @pulumi.getter + def code(self) -> str: + """ + Error code indicating the nature of the error. + """ + return pulumi.get(self, "code") + + @property + @pulumi.getter(name="errorMessage") + def error_message(self) -> str: + """ + The description of the error. + """ + return pulumi.get(self, "error_message") + + @property + @pulumi.getter(name="fieldViolations") + def field_violations(self) -> Sequence['outputs.FieldViolationResponse']: + """ + In case the item fields are invalid, this field contains the details about the validation errors. + """ + return pulumi.get(self, "field_violations") + + +@pulumi.output_type +class QueryInterpretationConfigResponse(dict): + """ + Default options to interpret user query. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "forceDisableSupplementalResults": + suggest = "force_disable_supplemental_results" + elif key == "forceVerbatimMode": + suggest = "force_verbatim_mode" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in QueryInterpretationConfigResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + QueryInterpretationConfigResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + QueryInterpretationConfigResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + force_disable_supplemental_results: bool, + force_verbatim_mode: bool): + """ + Default options to interpret user query. + :param bool force_disable_supplemental_results: Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. + :param bool force_verbatim_mode: Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. + """ + pulumi.set(__self__, "force_disable_supplemental_results", force_disable_supplemental_results) + pulumi.set(__self__, "force_verbatim_mode", force_verbatim_mode) + + @property + @pulumi.getter(name="forceDisableSupplementalResults") + def force_disable_supplemental_results(self) -> bool: + """ + Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for supplemental results. + """ + return pulumi.get(self, "force_disable_supplemental_results") + + @property + @pulumi.getter(name="forceVerbatimMode") + def force_verbatim_mode(self) -> bool: + """ + Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones. If this flag is set to True, it will take precedence over the option set at Query level. For the default value of False, query level flag will set the correct interpretation for verbatim mode. + """ + return pulumi.get(self, "force_verbatim_mode") + + +@pulumi.output_type +class RepositoryErrorResponse(dict): + """ + Errors when the connector is communicating to the source repository. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "errorMessage": + suggest = "error_message" + elif key == "httpStatusCode": + suggest = "http_status_code" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in RepositoryErrorResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + RepositoryErrorResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + RepositoryErrorResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + error_message: str, + http_status_code: int, + type: str): + """ + Errors when the connector is communicating to the source repository. + :param str error_message: Message that describes the error. The maximum allowable length of the message is 8192 characters. + :param int http_status_code: Error codes. Matches the definition of HTTP status codes. + :param str type: The type of error. + """ + pulumi.set(__self__, "error_message", error_message) + pulumi.set(__self__, "http_status_code", http_status_code) + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="errorMessage") + def error_message(self) -> str: + """ + Message that describes the error. The maximum allowable length of the message is 8192 characters. + """ + return pulumi.get(self, "error_message") + + @property + @pulumi.getter(name="httpStatusCode") + def http_status_code(self) -> int: + """ + Error codes. Matches the definition of HTTP status codes. + """ + return pulumi.get(self, "http_status_code") + + @property + @pulumi.getter + def type(self) -> str: + """ + The type of error. + """ + return pulumi.get(self, "type") + + +@pulumi.output_type +class ScoringConfigResponse(dict): + """ + Scoring configurations for a source while processing a Search or Suggest request. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "disableFreshness": + suggest = "disable_freshness" + elif key == "disablePersonalization": + suggest = "disable_personalization" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ScoringConfigResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ScoringConfigResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ScoringConfigResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + disable_freshness: bool, + disable_personalization: bool): + """ + Scoring configurations for a source while processing a Search or Suggest request. + :param bool disable_freshness: Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI. + :param bool disable_personalization: Whether to personalize the results. By default, personal signals will be used to boost results. + """ + pulumi.set(__self__, "disable_freshness", disable_freshness) + pulumi.set(__self__, "disable_personalization", disable_personalization) + + @property + @pulumi.getter(name="disableFreshness") + def disable_freshness(self) -> bool: + """ + Whether to use freshness as a ranking signal. By default, freshness is used as a ranking signal. Note that this setting is not available in the Admin UI. + """ + return pulumi.get(self, "disable_freshness") + + @property + @pulumi.getter(name="disablePersonalization") + def disable_personalization(self) -> bool: + """ + Whether to personalize the results. By default, personal signals will be used to boost results. + """ + return pulumi.get(self, "disable_personalization") + + +@pulumi.output_type +class SearchQualityMetadataResponse(dict): + """ + Additional search quality metadata of the item. + """ + def __init__(__self__, *, + quality: float): + """ + Additional search quality metadata of the item. + :param float quality: An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. + """ + pulumi.set(__self__, "quality", quality) + + @property + @pulumi.getter + def quality(self) -> float: + """ + An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). The default value is 0.0. + """ + return pulumi.get(self, "quality") + + +@pulumi.output_type +class SortOptionsResponse(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "operatorName": + suggest = "operator_name" + elif key == "sortOrder": + suggest = "sort_order" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in SortOptionsResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + SortOptionsResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + SortOptionsResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + operator_name: str, + sort_order: str): + """ + :param str operator_name: The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. + :param str sort_order: Ascending is the default sort order + """ + pulumi.set(__self__, "operator_name", operator_name) + pulumi.set(__self__, "sort_order", sort_order) + + @property + @pulumi.getter(name="operatorName") + def operator_name(self) -> str: + """ + The name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. + """ + return pulumi.get(self, "operator_name") + + @property + @pulumi.getter(name="sortOrder") + def sort_order(self) -> str: + """ + Ascending is the default sort order + """ + return pulumi.get(self, "sort_order") + + +@pulumi.output_type +class SourceConfigResponse(dict): + """ + Configurations for a source while processing a Search or Suggest request. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "crowdingConfig": + suggest = "crowding_config" + elif key == "scoringConfig": + suggest = "scoring_config" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in SourceConfigResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + SourceConfigResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + SourceConfigResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + crowding_config: 'outputs.SourceCrowdingConfigResponse', + scoring_config: 'outputs.SourceScoringConfigResponse', + source: 'outputs.SourceResponse'): + """ + Configurations for a source while processing a Search or Suggest request. + :param 'SourceCrowdingConfigResponse' crowding_config: The crowding configuration for the source. + :param 'SourceScoringConfigResponse' scoring_config: The scoring configuration for the source. + :param 'SourceResponse' source: The source for which this configuration is to be used. + """ + pulumi.set(__self__, "crowding_config", crowding_config) + pulumi.set(__self__, "scoring_config", scoring_config) + pulumi.set(__self__, "source", source) + + @property + @pulumi.getter(name="crowdingConfig") + def crowding_config(self) -> 'outputs.SourceCrowdingConfigResponse': + """ + The crowding configuration for the source. + """ + return pulumi.get(self, "crowding_config") + + @property + @pulumi.getter(name="scoringConfig") + def scoring_config(self) -> 'outputs.SourceScoringConfigResponse': + """ + The scoring configuration for the source. + """ + return pulumi.get(self, "scoring_config") + + @property + @pulumi.getter + def source(self) -> 'outputs.SourceResponse': + """ + The source for which this configuration is to be used. + """ + return pulumi.get(self, "source") + + +@pulumi.output_type +class SourceCrowdingConfigResponse(dict): + """ + Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "numResults": + suggest = "num_results" + elif key == "numSuggestions": + suggest = "num_suggestions" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in SourceCrowdingConfigResponse. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + SourceCrowdingConfigResponse.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + SourceCrowdingConfigResponse.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + num_results: int, + num_suggestions: int): + """ + Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source. + :param int num_results: Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. + :param int num_suggestions: Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0. + """ + pulumi.set(__self__, "num_results", num_results) + pulumi.set(__self__, "num_suggestions", num_suggestions) + + @property + @pulumi.getter(name="numResults") + def num_results(self) -> int: + """ + Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100. + """ + return pulumi.get(self, "num_results") + + @property + @pulumi.getter(name="numSuggestions") + def num_suggestions(self) -> int: + """ + Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0. + """ + return pulumi.get(self, "num_suggestions") + @pulumi.output_type class SourceResponse(dict): @@ -814,6 +1841,90 @@ def source_importance(self) -> str: return pulumi.get(self, "source_importance") +@pulumi.output_type +class StructuredDataObjectResponse(dict): + """ + A structured data object consisting of named properties. + """ + def __init__(__self__, *, + properties: Sequence['outputs.NamedPropertyResponse']): + """ + A structured data object consisting of named properties. + :param Sequence['NamedPropertyResponse'] properties: The properties for the object. The maximum number of elements is 1000. + """ + pulumi.set(__self__, "properties", properties) + + @property + @pulumi.getter + def properties(self) -> Sequence['outputs.NamedPropertyResponse']: + """ + The properties for the object. The maximum number of elements is 1000. + """ + return pulumi.get(self, "properties") + + +@pulumi.output_type +class TextValuesResponse(dict): + """ + List of text values. + """ + def __init__(__self__, *, + values: Sequence[str]): + """ + List of text values. + :param Sequence[str] values: The maximum allowable length for text values is 2048 characters. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + """ + The maximum allowable length for text values is 2048 characters. + """ + return pulumi.get(self, "values") + + +@pulumi.output_type +class TimestampValuesResponse(dict): + """ + List of timestamp values. + """ + def __init__(__self__, *, + values: Sequence[str]): + """ + List of timestamp values. + """ + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def values(self) -> Sequence[str]: + return pulumi.get(self, "values") + + +@pulumi.output_type +class UploadItemRefResponse(dict): + """ + Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. + """ + def __init__(__self__, *, + name: str): + """ + Represents an upload session reference. This reference is created via upload method. This reference is valid for 30 days after its creation. Updating of item content may refer to this uploaded content via contentDataRef. + :param str name: The name of the content reference. The maximum length is 2048 characters. + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the content reference. The maximum length is 2048 characters. + """ + return pulumi.get(self, "name") + + @pulumi.output_type class ValueFilterResponse(dict): @staticmethod diff --git a/sdk/python/pulumi_google_native/contactcenterinsights/v1/_inputs.py b/sdk/python/pulumi_google_native/contactcenterinsights/v1/_inputs.py index 9faced002d..833710752d 100644 --- a/sdk/python/pulumi_google_native/contactcenterinsights/v1/_inputs.py +++ b/sdk/python/pulumi_google_native/contactcenterinsights/v1/_inputs.py @@ -22,6 +22,8 @@ 'GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfigArgs', 'GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroupArgs', 'GoogleCloudContactcenterinsightsV1PhraseMatchRuleArgs', + 'GoogleCloudContactcenterinsightsV1RedactionConfigArgs', + 'GoogleCloudContactcenterinsightsV1SpeechConfigArgs', ] @pulumi.input_type @@ -574,3 +576,67 @@ def negated(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "negated", value) +@pulumi.input_type +class GoogleCloudContactcenterinsightsV1RedactionConfigArgs: + def __init__(__self__, *, + deidentify_template: Optional[pulumi.Input[str]] = None, + inspect_template: Optional[pulumi.Input[str]] = None): + """ + DLP resources used for redaction while ingesting conversations. + :param pulumi.Input[str] deidentify_template: The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + :param pulumi.Input[str] inspect_template: The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + """ + if deidentify_template is not None: + pulumi.set(__self__, "deidentify_template", deidentify_template) + if inspect_template is not None: + pulumi.set(__self__, "inspect_template", inspect_template) + + @property + @pulumi.getter(name="deidentifyTemplate") + def deidentify_template(self) -> Optional[pulumi.Input[str]]: + """ + The fully-qualified DLP deidentify template resource name. Format: `projects/{project}/deidentifyTemplates/{template}` + """ + return pulumi.get(self, "deidentify_template") + + @deidentify_template.setter + def deidentify_template(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "deidentify_template", value) + + @property + @pulumi.getter(name="inspectTemplate") + def inspect_template(self) -> Optional[pulumi.Input[str]]: + """ + The fully-qualified DLP inspect template resource name. Format: `projects/{project}/locations/{location}/inspectTemplates/{template}` + """ + return pulumi.get(self, "inspect_template") + + @inspect_template.setter + def inspect_template(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "inspect_template", value) + + +@pulumi.input_type +class GoogleCloudContactcenterinsightsV1SpeechConfigArgs: + def __init__(__self__, *, + speech_recognizer: Optional[pulumi.Input[str]] = None): + """ + Speech-to-Text configuration. + :param pulumi.Input[str] speech_recognizer: The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + """ + if speech_recognizer is not None: + pulumi.set(__self__, "speech_recognizer", speech_recognizer) + + @property + @pulumi.getter(name="speechRecognizer") + def speech_recognizer(self) -> Optional[pulumi.Input[str]]: + """ + The fully-qualified Speech Recognizer resource name. Format: `projects/{project_id}/locations/{location}/recognizer/{recognizer}` + """ + return pulumi.get(self, "speech_recognizer") + + @speech_recognizer.setter + def speech_recognizer(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "speech_recognizer", value) + + diff --git a/sdk/python/pulumi_google_native/contactcenterinsights/v1/conversation.py b/sdk/python/pulumi_google_native/contactcenterinsights/v1/conversation.py index 2c92df2c73..c59ac846d7 100644 --- a/sdk/python/pulumi_google_native/contactcenterinsights/v1/conversation.py +++ b/sdk/python/pulumi_google_native/contactcenterinsights/v1/conversation.py @@ -17,6 +17,7 @@ @pulumi.input_type class ConversationArgs: def __init__(__self__, *, + parent: pulumi.Input[str], agent_id: Optional[pulumi.Input[str]] = None, call_metadata: Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1ConversationCallMetadataArgs']] = None, conversation_id: Optional[pulumi.Input[str]] = None, @@ -29,13 +30,16 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, obfuscated_user_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, + redaction_config: Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']] = None, + speech_config: Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']] = None, start_time: Optional[pulumi.Input[str]] = None, ttl: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Conversation resource. + :param pulumi.Input[str] parent: The parent resource of the conversation. :param pulumi.Input[str] agent_id: An opaque, user-specified string representing the human agent who handled the conversation. :param pulumi.Input['GoogleCloudContactcenterinsightsV1ConversationCallMetadataArgs'] call_metadata: Call-specific metadata. - :param pulumi.Input[str] conversation_id: A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + :param pulumi.Input[str] conversation_id: Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` :param pulumi.Input['GoogleCloudContactcenterinsightsV1ConversationDataSourceArgs'] data_source: The source of the audio and transcription for the conversation. :param pulumi.Input[str] expire_time: The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. @@ -43,9 +47,12 @@ def __init__(__self__, *, :param pulumi.Input['ConversationMedium'] medium: Immutable. The conversation medium, if unspecified will default to PHONE_CALL. :param pulumi.Input[str] name: Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} :param pulumi.Input[str] obfuscated_user_id: Obfuscated user ID which the customer sent to us. + :param pulumi.Input['GoogleCloudContactcenterinsightsV1RedactionConfigArgs'] redaction_config: Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + :param pulumi.Input['GoogleCloudContactcenterinsightsV1SpeechConfigArgs'] speech_config: Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. :param pulumi.Input[str] start_time: The time at which the conversation started. :param pulumi.Input[str] ttl: Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. """ + pulumi.set(__self__, "parent", parent) if agent_id is not None: pulumi.set(__self__, "agent_id", agent_id) if call_metadata is not None: @@ -70,11 +77,27 @@ def __init__(__self__, *, pulumi.set(__self__, "obfuscated_user_id", obfuscated_user_id) if project is not None: pulumi.set(__self__, "project", project) + if redaction_config is not None: + pulumi.set(__self__, "redaction_config", redaction_config) + if speech_config is not None: + pulumi.set(__self__, "speech_config", speech_config) if start_time is not None: pulumi.set(__self__, "start_time", start_time) if ttl is not None: pulumi.set(__self__, "ttl", ttl) + @property + @pulumi.getter + def parent(self) -> pulumi.Input[str]: + """ + The parent resource of the conversation. + """ + return pulumi.get(self, "parent") + + @parent.setter + def parent(self, value: pulumi.Input[str]): + pulumi.set(self, "parent", value) + @property @pulumi.getter(name="agentId") def agent_id(self) -> Optional[pulumi.Input[str]]: @@ -103,7 +126,7 @@ def call_metadata(self, value: Optional[pulumi.Input['GoogleCloudContactcenterin @pulumi.getter(name="conversationId") def conversation_id(self) -> Optional[pulumi.Input[str]]: """ - A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` """ return pulumi.get(self, "conversation_id") @@ -213,6 +236,30 @@ def project(self) -> Optional[pulumi.Input[str]]: def project(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project", value) + @property + @pulumi.getter(name="redactionConfig") + def redaction_config(self) -> Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']]: + """ + Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + """ + return pulumi.get(self, "redaction_config") + + @redaction_config.setter + def redaction_config(self, value: Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']]): + pulumi.set(self, "redaction_config", value) + + @property + @pulumi.getter(name="speechConfig") + def speech_config(self) -> Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']]: + """ + Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. + """ + return pulumi.get(self, "speech_config") + + @speech_config.setter + def speech_config(self, value: Optional[pulumi.Input['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']]): + pulumi.set(self, "speech_config", value) + @property @pulumi.getter(name="startTime") def start_time(self) -> Optional[pulumi.Input[str]]: @@ -254,18 +301,21 @@ def __init__(__self__, medium: Optional[pulumi.Input['ConversationMedium']] = None, name: Optional[pulumi.Input[str]] = None, obfuscated_user_id: Optional[pulumi.Input[str]] = None, + parent: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, + redaction_config: Optional[pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']]] = None, + speech_config: Optional[pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']]] = None, start_time: Optional[pulumi.Input[str]] = None, ttl: Optional[pulumi.Input[str]] = None, __props__=None): """ - Creates a conversation. + Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] agent_id: An opaque, user-specified string representing the human agent who handled the conversation. :param pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1ConversationCallMetadataArgs']] call_metadata: Call-specific metadata. - :param pulumi.Input[str] conversation_id: A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + :param pulumi.Input[str] conversation_id: Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` :param pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1ConversationDataSourceArgs']] data_source: The source of the audio and transcription for the conversation. :param pulumi.Input[str] expire_time: The time at which this conversation should expire. After this time, the conversation data and any associated analyses will be deleted. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map for the user to specify any custom fields. A maximum of 20 labels per conversation is allowed, with a maximum of 256 characters per entry. @@ -273,6 +323,9 @@ def __init__(__self__, :param pulumi.Input['ConversationMedium'] medium: Immutable. The conversation medium, if unspecified will default to PHONE_CALL. :param pulumi.Input[str] name: Immutable. The resource name of the conversation. Format: projects/{project}/locations/{location}/conversations/{conversation} :param pulumi.Input[str] obfuscated_user_id: Obfuscated user ID which the customer sent to us. + :param pulumi.Input[str] parent: The parent resource of the conversation. + :param pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']] redaction_config: Optional. DLP settings for transcript redaction. Optional, will default to the config specified in Settings. + :param pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']] speech_config: Optional. Default Speech-to-Text configuration. Optional, will default to the config specified in Settings. :param pulumi.Input[str] start_time: The time at which the conversation started. :param pulumi.Input[str] ttl: Input only. The TTL for this resource. If specified, then this TTL will be used to calculate the expire time. """ @@ -280,10 +333,10 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: Optional[ConversationArgs] = None, + args: ConversationArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Creates a conversation. + Create a longrunning conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction. :param str resource_name: The name of the resource. :param ConversationArgs args: The arguments to use to populate this resource's properties. @@ -311,7 +364,10 @@ def _internal_init(__self__, medium: Optional[pulumi.Input['ConversationMedium']] = None, name: Optional[pulumi.Input[str]] = None, obfuscated_user_id: Optional[pulumi.Input[str]] = None, + parent: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, + redaction_config: Optional[pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1RedactionConfigArgs']]] = None, + speech_config: Optional[pulumi.Input[pulumi.InputType['GoogleCloudContactcenterinsightsV1SpeechConfigArgs']]] = None, start_time: Optional[pulumi.Input[str]] = None, ttl: Optional[pulumi.Input[str]] = None, __props__=None): @@ -334,7 +390,12 @@ def _internal_init(__self__, __props__.__dict__["medium"] = medium __props__.__dict__["name"] = name __props__.__dict__["obfuscated_user_id"] = obfuscated_user_id + if parent is None and not opts.urn: + raise TypeError("Missing required property 'parent'") + __props__.__dict__["parent"] = parent __props__.__dict__["project"] = project + __props__.__dict__["redaction_config"] = redaction_config + __props__.__dict__["speech_config"] = speech_config __props__.__dict__["start_time"] = start_time __props__.__dict__["ttl"] = ttl __props__.__dict__["create_time"] = None @@ -372,7 +433,6 @@ def get(resource_name: str, __props__.__dict__["agent_id"] = None __props__.__dict__["call_metadata"] = None - __props__.__dict__["conversation_id"] = None __props__.__dict__["create_time"] = None __props__.__dict__["data_source"] = None __props__.__dict__["dialogflow_intents"] = None @@ -411,14 +471,6 @@ def call_metadata(self) -> pulumi.Output['outputs.GoogleCloudContactcenterinsigh """ return pulumi.get(self, "call_metadata") - @property - @pulumi.getter(name="conversationId") - def conversation_id(self) -> pulumi.Output[Optional[str]]: - """ - A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - """ - return pulumi.get(self, "conversation_id") - @property @pulumi.getter(name="createTime") def create_time(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_google_native/iam/v1/_enums.py b/sdk/python/pulumi_google_native/iam/v1/_enums.py index 18c8a465ba..43112cf674 100644 --- a/sdk/python/pulumi_google_native/iam/v1/_enums.py +++ b/sdk/python/pulumi_google_native/iam/v1/_enums.py @@ -9,8 +9,6 @@ 'GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehavior', 'GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfigResponseType', 'KeyDataKeySpec', - 'KeyKeyAlgorithm', - 'KeyPrivateKeyType', 'OrganizationRoleStage', 'RoleStage', 'WorkforcePoolKeyUse', @@ -98,42 +96,6 @@ class KeyDataKeySpec(str, Enum): """ -class KeyKeyAlgorithm(str, Enum): - """ - Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - """ - KEY_ALG_UNSPECIFIED = "KEY_ALG_UNSPECIFIED" - """ - An unspecified key algorithm. - """ - KEY_ALG_RSA1024 = "KEY_ALG_RSA_1024" - """ - 1k RSA Key. - """ - KEY_ALG_RSA2048 = "KEY_ALG_RSA_2048" - """ - 2k RSA Key. - """ - - -class KeyPrivateKeyType(str, Enum): - """ - The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - """ - TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED" - """ - Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - """ - TYPE_PKCS12_FILE = "TYPE_PKCS12_FILE" - """ - PKCS12 format. The password for the PKCS12 file is `notasecret`. For more information, see https://tools.ietf.org/html/rfc7292. - """ - TYPE_GOOGLE_CREDENTIALS_FILE = "TYPE_GOOGLE_CREDENTIALS_FILE" - """ - Google Credentials File format. - """ - - class OrganizationRoleStage(str, Enum): """ The current launch stage of the role. If the `ALPHA` launch stage has been selected for a role, the `stage` field will not be included in the returned definition for the role. diff --git a/sdk/python/pulumi_google_native/iam/v1/key.py b/sdk/python/pulumi_google_native/iam/v1/key.py index f10395b5c2..2a02305a50 100644 --- a/sdk/python/pulumi_google_native/iam/v1/key.py +++ b/sdk/python/pulumi_google_native/iam/v1/key.py @@ -8,7 +8,6 @@ import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities -from ._enums import * __all__ = ['KeyArgs', 'Key'] @@ -16,21 +15,17 @@ class KeyArgs: def __init__(__self__, *, service_account_id: pulumi.Input[str], - key_algorithm: Optional[pulumi.Input['KeyKeyAlgorithm']] = None, - private_key_type: Optional[pulumi.Input['KeyPrivateKeyType']] = None, - project: Optional[pulumi.Input[str]] = None): + project: Optional[pulumi.Input[str]] = None, + public_key_data: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Key resource. - :param pulumi.Input['KeyKeyAlgorithm'] key_algorithm: Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - :param pulumi.Input['KeyPrivateKeyType'] private_key_type: The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. + :param pulumi.Input[str] public_key_data: The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. """ pulumi.set(__self__, "service_account_id", service_account_id) - if key_algorithm is not None: - pulumi.set(__self__, "key_algorithm", key_algorithm) - if private_key_type is not None: - pulumi.set(__self__, "private_key_type", private_key_type) if project is not None: pulumi.set(__self__, "project", project) + if public_key_data is not None: + pulumi.set(__self__, "public_key_data", public_key_data) @property @pulumi.getter(name="serviceAccountId") @@ -41,30 +36,6 @@ def service_account_id(self) -> pulumi.Input[str]: def service_account_id(self, value: pulumi.Input[str]): pulumi.set(self, "service_account_id", value) - @property - @pulumi.getter(name="keyAlgorithm") - def key_algorithm(self) -> Optional[pulumi.Input['KeyKeyAlgorithm']]: - """ - Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - """ - return pulumi.get(self, "key_algorithm") - - @key_algorithm.setter - def key_algorithm(self, value: Optional[pulumi.Input['KeyKeyAlgorithm']]): - pulumi.set(self, "key_algorithm", value) - - @property - @pulumi.getter(name="privateKeyType") - def private_key_type(self) -> Optional[pulumi.Input['KeyPrivateKeyType']]: - """ - The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - """ - return pulumi.get(self, "private_key_type") - - @private_key_type.setter - def private_key_type(self, value: Optional[pulumi.Input['KeyPrivateKeyType']]): - pulumi.set(self, "private_key_type", value) - @property @pulumi.getter def project(self) -> Optional[pulumi.Input[str]]: @@ -74,25 +45,35 @@ def project(self) -> Optional[pulumi.Input[str]]: def project(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project", value) + @property + @pulumi.getter(name="publicKeyData") + def public_key_data(self) -> Optional[pulumi.Input[str]]: + """ + The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. + """ + return pulumi.get(self, "public_key_data") + + @public_key_data.setter + def public_key_data(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "public_key_data", value) + class Key(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - key_algorithm: Optional[pulumi.Input['KeyKeyAlgorithm']] = None, - private_key_type: Optional[pulumi.Input['KeyPrivateKeyType']] = None, project: Optional[pulumi.Input[str]] = None, + public_key_data: Optional[pulumi.Input[str]] = None, service_account_id: Optional[pulumi.Input[str]] = None, __props__=None): """ - Creates a ServiceAccountKey. + Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key. Auto-naming is currently not supported for this resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input['KeyKeyAlgorithm'] key_algorithm: Which type of key and algorithm to use for the key. The default is currently a 2K RSA key. However this may change in the future. - :param pulumi.Input['KeyPrivateKeyType'] private_key_type: The output format of the private key. The default value is `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. + :param pulumi.Input[str] public_key_data: The public key to associate with the service account. Must be an RSA public key that is wrapped in an X.509 v3 certificate. Include the first line, `-----BEGIN CERTIFICATE-----`, and the last line, `-----END CERTIFICATE-----`. """ ... @overload @@ -101,7 +82,7 @@ def __init__(__self__, args: KeyArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Creates a ServiceAccountKey. + Uploads the public key portion of a key pair that you manage, and associates the public key with a ServiceAccount. After you upload the public key, you can use the private key from the key pair as a service account key. Auto-naming is currently not supported for this resource. :param str resource_name: The name of the resource. @@ -119,9 +100,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - key_algorithm: Optional[pulumi.Input['KeyKeyAlgorithm']] = None, - private_key_type: Optional[pulumi.Input['KeyPrivateKeyType']] = None, project: Optional[pulumi.Input[str]] = None, + public_key_data: Optional[pulumi.Input[str]] = None, service_account_id: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -132,18 +112,18 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = KeyArgs.__new__(KeyArgs) - __props__.__dict__["key_algorithm"] = key_algorithm - __props__.__dict__["private_key_type"] = private_key_type __props__.__dict__["project"] = project + __props__.__dict__["public_key_data"] = public_key_data if service_account_id is None and not opts.urn: raise TypeError("Missing required property 'service_account_id'") __props__.__dict__["service_account_id"] = service_account_id __props__.__dict__["disabled"] = None + __props__.__dict__["key_algorithm"] = None __props__.__dict__["key_origin"] = None __props__.__dict__["key_type"] = None __props__.__dict__["name"] = None __props__.__dict__["private_key_data"] = None - __props__.__dict__["public_key_data"] = None + __props__.__dict__["private_key_type"] = None __props__.__dict__["valid_after_time"] = None __props__.__dict__["valid_before_time"] = None replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["project", "service_account_id"]) diff --git a/sdk/python/pulumi_google_native/integrations/v1alpha/_enums.py b/sdk/python/pulumi_google_native/integrations/v1alpha/_enums.py index 1af0babb24..cd846896e2 100644 --- a/sdk/python/pulumi_google_native/integrations/v1alpha/_enums.py +++ b/sdk/python/pulumi_google_native/integrations/v1alpha/_enums.py @@ -75,6 +75,7 @@ 'TemplatesVersionStatus', 'TestCaseDatabasePersistencePolicy', 'VersionDatabasePersistencePolicy', + 'VersionFileFormat', 'VersionOrigin', ] @@ -1814,6 +1815,24 @@ class VersionDatabasePersistencePolicy(str, Enum): """ +class VersionFileFormat(str, Enum): + """ + File format for upload request. + """ + FILE_FORMAT_UNSPECIFIED = "FILE_FORMAT_UNSPECIFIED" + """ + Unspecified file format + """ + JSON = "JSON" + """ + JSON File Format + """ + YAML = "YAML" + """ + YAML File Format + """ + + class VersionOrigin(str, Enum): """ Optional. The origin that indicates where this integration is coming from. diff --git a/sdk/python/pulumi_google_native/integrations/v1alpha/_inputs.py b/sdk/python/pulumi_google_native/integrations/v1alpha/_inputs.py index 98e5c35797..3f7dc21c15 100644 --- a/sdk/python/pulumi_google_native/integrations/v1alpha/_inputs.py +++ b/sdk/python/pulumi_google_native/integrations/v1alpha/_inputs.py @@ -80,17 +80,12 @@ 'GoogleCloudIntegrationsV1alphaAuthTokenArgs', 'GoogleCloudIntegrationsV1alphaBooleanParameterArrayArgs', 'GoogleCloudIntegrationsV1alphaClientCertificateArgs', - 'GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs', - 'GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs', 'GoogleCloudIntegrationsV1alphaCoordinateArgs', 'GoogleCloudIntegrationsV1alphaCredentialArgs', 'GoogleCloudIntegrationsV1alphaDoubleParameterArrayArgs', 'GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs', 'GoogleCloudIntegrationsV1alphaEventParameterArgs', - 'GoogleCloudIntegrationsV1alphaFailurePolicyArgs', 'GoogleCloudIntegrationsV1alphaIntParameterArrayArgs', - 'GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs', - 'GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs', 'GoogleCloudIntegrationsV1alphaIntegrationParameterArgs', 'GoogleCloudIntegrationsV1alphaJwtArgs', 'GoogleCloudIntegrationsV1alphaMockConfigArgs', @@ -104,10 +99,7 @@ 'GoogleCloudIntegrationsV1alphaParameterMapArgs', 'GoogleCloudIntegrationsV1alphaServiceAccountCredentialsArgs', 'GoogleCloudIntegrationsV1alphaStringParameterArrayArgs', - 'GoogleCloudIntegrationsV1alphaSuccessPolicyArgs', - 'GoogleCloudIntegrationsV1alphaTaskConfigArgs', 'GoogleCloudIntegrationsV1alphaTestTaskConfigArgs', - 'GoogleCloudIntegrationsV1alphaTriggerConfigArgs', 'GoogleCloudIntegrationsV1alphaUsernameAndPasswordArgs', 'GoogleCloudIntegrationsV1alphaValueTypeArgs', ] @@ -5017,115 +5009,6 @@ def ssl_certificate(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ssl_certificate", value) -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs: - def __init__(__self__, *, - cloud_logging_severity: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity']] = None, - enable_cloud_logging: Optional[pulumi.Input[bool]] = None): - """ - Cloud Logging details for execution info - :param pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity'] cloud_logging_severity: Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. - :param pulumi.Input[bool] enable_cloud_logging: Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. - """ - if cloud_logging_severity is not None: - pulumi.set(__self__, "cloud_logging_severity", cloud_logging_severity) - if enable_cloud_logging is not None: - pulumi.set(__self__, "enable_cloud_logging", enable_cloud_logging) - - @property - @pulumi.getter(name="cloudLoggingSeverity") - def cloud_logging_severity(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity']]: - """ - Optional. Severity selected by the customer for the logs to be sent to Cloud Logging, for the integration version getting executed. - """ - return pulumi.get(self, "cloud_logging_severity") - - @cloud_logging_severity.setter - def cloud_logging_severity(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsCloudLoggingSeverity']]): - pulumi.set(self, "cloud_logging_severity", value) - - @property - @pulumi.getter(name="enableCloudLogging") - def enable_cloud_logging(self) -> Optional[pulumi.Input[bool]]: - """ - Optional. Status of whether Cloud Logging is enabled or not for the integration version getting executed. - """ - return pulumi.get(self, "enable_cloud_logging") - - @enable_cloud_logging.setter - def enable_cloud_logging(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enable_cloud_logging", value) - - -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs: - def __init__(__self__, *, - cron_tab: pulumi.Input[str], - location: pulumi.Input[str], - service_account_email: pulumi.Input[str], - error_message: Optional[pulumi.Input[str]] = None): - """ - Cloud Scheduler Trigger configuration - :param pulumi.Input[str] cron_tab: The cron tab of cloud scheduler trigger. - :param pulumi.Input[str] location: The location where associated cloud scheduler job will be created - :param pulumi.Input[str] service_account_email: Service account used by Cloud Scheduler to trigger the integration at scheduled time - :param pulumi.Input[str] error_message: Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations - """ - pulumi.set(__self__, "cron_tab", cron_tab) - pulumi.set(__self__, "location", location) - pulumi.set(__self__, "service_account_email", service_account_email) - if error_message is not None: - pulumi.set(__self__, "error_message", error_message) - - @property - @pulumi.getter(name="cronTab") - def cron_tab(self) -> pulumi.Input[str]: - """ - The cron tab of cloud scheduler trigger. - """ - return pulumi.get(self, "cron_tab") - - @cron_tab.setter - def cron_tab(self, value: pulumi.Input[str]): - pulumi.set(self, "cron_tab", value) - - @property - @pulumi.getter - def location(self) -> pulumi.Input[str]: - """ - The location where associated cloud scheduler job will be created - """ - return pulumi.get(self, "location") - - @location.setter - def location(self, value: pulumi.Input[str]): - pulumi.set(self, "location", value) - - @property - @pulumi.getter(name="serviceAccountEmail") - def service_account_email(self) -> pulumi.Input[str]: - """ - Service account used by Cloud Scheduler to trigger the integration at scheduled time - """ - return pulumi.get(self, "service_account_email") - - @service_account_email.setter - def service_account_email(self, value: pulumi.Input[str]): - pulumi.set(self, "service_account_email", value) - - @property - @pulumi.getter(name="errorMessage") - def error_message(self) -> Optional[pulumi.Input[str]]: - """ - Optional. When the job was deleted from Pantheon UI, error_message will be populated when Get/List integrations - """ - return pulumi.get(self, "error_message") - - @error_message.setter - def error_message(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "error_message", value) - - @pulumi.input_type class GoogleCloudIntegrationsV1alphaCoordinateArgs: def __init__(__self__, *, @@ -5481,62 +5364,6 @@ def value(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaValu pulumi.set(self, "value", value) -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaFailurePolicyArgs: - def __init__(__self__, *, - interval_time: Optional[pulumi.Input[str]] = None, - max_retries: Optional[pulumi.Input[int]] = None, - retry_strategy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy']] = None): - """ - Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be applied). - :param pulumi.Input[str] interval_time: Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. - :param pulumi.Input[int] max_retries: Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy'] retry_strategy: Defines what happens to the task upon failure. - """ - if interval_time is not None: - pulumi.set(__self__, "interval_time", interval_time) - if max_retries is not None: - pulumi.set(__self__, "max_retries", max_retries) - if retry_strategy is not None: - pulumi.set(__self__, "retry_strategy", retry_strategy) - - @property - @pulumi.getter(name="intervalTime") - def interval_time(self) -> Optional[pulumi.Input[str]]: - """ - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. - """ - return pulumi.get(self, "interval_time") - - @interval_time.setter - def interval_time(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "interval_time", value) - - @property - @pulumi.getter(name="maxRetries") - def max_retries(self) -> Optional[pulumi.Input[int]]: - """ - Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. - """ - return pulumi.get(self, "max_retries") - - @max_retries.setter - def max_retries(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "max_retries", value) - - @property - @pulumi.getter(name="retryStrategy") - def retry_strategy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy']]: - """ - Defines what happens to the task upon failure. - """ - return pulumi.get(self, "retry_strategy") - - @retry_strategy.setter - def retry_strategy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy']]): - pulumi.set(self, "retry_strategy", value) - - @pulumi.input_type class GoogleCloudIntegrationsV1alphaIntParameterArrayArgs: def __init__(__self__, *, @@ -5561,198 +5388,6 @@ def int_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]) pulumi.set(self, "int_values", value) -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs: - def __init__(__self__, *, - absolute: Optional[pulumi.Input[str]] = None, - percentage: Optional[pulumi.Input[int]] = None): - """ - The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For *PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. - :param pulumi.Input[str] absolute: Absolute value threshold. - :param pulumi.Input[int] percentage: Percentage threshold. - """ - if absolute is not None: - pulumi.set(__self__, "absolute", absolute) - if percentage is not None: - pulumi.set(__self__, "percentage", percentage) - - @property - @pulumi.getter - def absolute(self) -> Optional[pulumi.Input[str]]: - """ - Absolute value threshold. - """ - return pulumi.get(self, "absolute") - - @absolute.setter - def absolute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "absolute", value) - - @property - @pulumi.getter - def percentage(self) -> Optional[pulumi.Input[int]]: - """ - Percentage threshold. - """ - return pulumi.get(self, "percentage") - - @percentage.setter - def percentage(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "percentage", value) - - -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs: - def __init__(__self__, *, - aggregation_period: Optional[pulumi.Input[str]] = None, - alert_threshold: Optional[pulumi.Input[int]] = None, - disable_alert: Optional[pulumi.Input[bool]] = None, - display_name: Optional[pulumi.Input[str]] = None, - duration_threshold: Optional[pulumi.Input[str]] = None, - metric_type: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType']] = None, - only_final_attempt: Optional[pulumi.Input[bool]] = None, - threshold_type: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType']] = None, - threshold_value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs']] = None): - """ - Message to be used to configure custom alerting in the {@code EventConfig} protos for an event. - :param pulumi.Input[str] aggregation_period: The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. - :param pulumi.Input[int] alert_threshold: For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. - :param pulumi.Input[bool] disable_alert: Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. - :param pulumi.Input[str] display_name: Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. - :param pulumi.Input[str] duration_threshold: Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType'] metric_type: The type of metric. - :param pulumi.Input[bool] only_final_attempt: For either events or tasks, depending on the type of alert, count only final attempts, not retries. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType'] threshold_type: The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs'] threshold_value: The metric value, above or below which the alert should be triggered. - """ - if aggregation_period is not None: - pulumi.set(__self__, "aggregation_period", aggregation_period) - if alert_threshold is not None: - pulumi.set(__self__, "alert_threshold", alert_threshold) - if disable_alert is not None: - pulumi.set(__self__, "disable_alert", disable_alert) - if display_name is not None: - pulumi.set(__self__, "display_name", display_name) - if duration_threshold is not None: - pulumi.set(__self__, "duration_threshold", duration_threshold) - if metric_type is not None: - pulumi.set(__self__, "metric_type", metric_type) - if only_final_attempt is not None: - pulumi.set(__self__, "only_final_attempt", only_final_attempt) - if threshold_type is not None: - pulumi.set(__self__, "threshold_type", threshold_type) - if threshold_value is not None: - pulumi.set(__self__, "threshold_value", threshold_value) - - @property - @pulumi.getter(name="aggregationPeriod") - def aggregation_period(self) -> Optional[pulumi.Input[str]]: - """ - The period over which the metric value should be aggregated and evaluated. Format is , where integer should be a positive integer and unit should be one of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN threshold, this aggregation_period must be lesser than 24 hours. - """ - return pulumi.get(self, "aggregation_period") - - @aggregation_period.setter - def aggregation_period(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "aggregation_period", value) - - @property - @pulumi.getter(name="alertThreshold") - def alert_threshold(self) -> Optional[pulumi.Input[int]]: - """ - For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired. - """ - return pulumi.get(self, "alert_threshold") - - @alert_threshold.setter - def alert_threshold(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "alert_threshold", value) - - @property - @pulumi.getter(name="disableAlert") - def disable_alert(self) -> Optional[pulumi.Input[bool]]: - """ - Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert. - """ - return pulumi.get(self, "disable_alert") - - @disable_alert.setter - def disable_alert(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "disable_alert", value) - - @property - @pulumi.getter(name="displayName") - def display_name(self) -> Optional[pulumi.Input[str]]: - """ - Name of the alert. This will be displayed in the alert subject. If set, this name should be unique within the scope of the integration. - """ - return pulumi.get(self, "display_name") - - @display_name.setter - def display_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "display_name", value) - - @property - @pulumi.getter(name="durationThreshold") - def duration_threshold(self) -> Optional[pulumi.Input[str]]: - """ - Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics. This member should be used to specify what duration value the metrics should exceed for the alert to trigger. - """ - return pulumi.get(self, "duration_threshold") - - @duration_threshold.setter - def duration_threshold(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "duration_threshold", value) - - @property - @pulumi.getter(name="metricType") - def metric_type(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType']]: - """ - The type of metric. - """ - return pulumi.get(self, "metric_type") - - @metric_type.setter - def metric_type(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigMetricType']]): - pulumi.set(self, "metric_type", value) - - @property - @pulumi.getter(name="onlyFinalAttempt") - def only_final_attempt(self) -> Optional[pulumi.Input[bool]]: - """ - For either events or tasks, depending on the type of alert, count only final attempts, not retries. - """ - return pulumi.get(self, "only_final_attempt") - - @only_final_attempt.setter - def only_final_attempt(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "only_final_attempt", value) - - @property - @pulumi.getter(name="thresholdType") - def threshold_type(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType']]: - """ - The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured. If value falls below expected_min or exceeds expected_max, an alert will be fired. - """ - return pulumi.get(self, "threshold_type") - - @threshold_type.setter - def threshold_type(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdType']]): - pulumi.set(self, "threshold_type", value) - - @property - @pulumi.getter(name="thresholdValue") - def threshold_value(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs']]: - """ - The metric value, above or below which the alert should be triggered. - """ - return pulumi.get(self, "threshold_value") - - @threshold_value.setter - def threshold_value(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValueArgs']]): - pulumi.set(self, "threshold_value", value) - - @pulumi.input_type class GoogleCloudIntegrationsV1alphaIntegrationParameterArgs: def __init__(__self__, *, @@ -6850,299 +6485,12 @@ def string_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]] @pulumi.input_type -class GoogleCloudIntegrationsV1alphaSuccessPolicyArgs: +class GoogleCloudIntegrationsV1alphaTestTaskConfigArgs: def __init__(__self__, *, - final_state: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState']] = None): - """ - Policy that dictates the behavior for the task after it completes successfully. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState'] final_state: State to which the execution snapshot status will be set if the task succeeds. - """ - if final_state is not None: - pulumi.set(__self__, "final_state", final_state) - - @property - @pulumi.getter(name="finalState") - def final_state(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState']]: - """ - State to which the execution snapshot status will be set if the task succeeds. - """ - return pulumi.get(self, "final_state") - - @final_state.setter - def final_state(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyFinalState']]): - pulumi.set(self, "final_state", value) - - -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaTaskConfigArgs: - def __init__(__self__, *, - task_id: pulumi.Input[str], - description: Optional[pulumi.Input[str]] = None, - display_name: Optional[pulumi.Input[str]] = None, - error_catcher_id: Optional[pulumi.Input[str]] = None, - external_task_type: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType']] = None, - failure_policy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']] = None, - json_validation_option: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption']] = None, - next_tasks: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]] = None, - next_tasks_execution_policy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy']] = None, - parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - position: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']] = None, - success_policy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyArgs']] = None, - synchronous_call_failure_policy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']] = None, - task: Optional[pulumi.Input[str]] = None, - task_execution_strategy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy']] = None, - task_template: Optional[pulumi.Input[str]] = None): - """ - The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. - :param pulumi.Input[str] task_id: The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). - :param pulumi.Input[str] description: Optional. User-provided description intended to give additional business context about the task. - :param pulumi.Input[str] display_name: Optional. User-provided label that is attached to this TaskConfig in the UI. - :param pulumi.Input[str] error_catcher_id: Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType'] external_task_type: Optional. External task type of the task - :param pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs'] failure_policy: Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption'] json_validation_option: Optional. If set, overrides the option configured in the Task implementation class. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]] next_tasks: Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy'] next_tasks_execution_policy: Optional. The policy dictating the execution of the next set of tasks for the current task. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: Optional. The customized parameters the user can pass to this task. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs'] position: Optional. Informs the front-end application where to draw this error catcher config on the UI. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyArgs'] success_policy: Optional. Determines what action to take upon successful task completion. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs'] synchronous_call_failure_policy: Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). - :param pulumi.Input[str] task: Optional. The name for the task. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy'] task_execution_strategy: Optional. The policy dictating the execution strategy of this task. - :param pulumi.Input[str] task_template: Optional. Used to define task-template name if task is of type task-template - """ - pulumi.set(__self__, "task_id", task_id) - if description is not None: - pulumi.set(__self__, "description", description) - if display_name is not None: - pulumi.set(__self__, "display_name", display_name) - if error_catcher_id is not None: - pulumi.set(__self__, "error_catcher_id", error_catcher_id) - if external_task_type is not None: - pulumi.set(__self__, "external_task_type", external_task_type) - if failure_policy is not None: - pulumi.set(__self__, "failure_policy", failure_policy) - if json_validation_option is not None: - pulumi.set(__self__, "json_validation_option", json_validation_option) - if next_tasks is not None: - pulumi.set(__self__, "next_tasks", next_tasks) - if next_tasks_execution_policy is not None: - pulumi.set(__self__, "next_tasks_execution_policy", next_tasks_execution_policy) - if parameters is not None: - pulumi.set(__self__, "parameters", parameters) - if position is not None: - pulumi.set(__self__, "position", position) - if success_policy is not None: - pulumi.set(__self__, "success_policy", success_policy) - if synchronous_call_failure_policy is not None: - pulumi.set(__self__, "synchronous_call_failure_policy", synchronous_call_failure_policy) - if task is not None: - pulumi.set(__self__, "task", task) - if task_execution_strategy is not None: - pulumi.set(__self__, "task_execution_strategy", task_execution_strategy) - if task_template is not None: - pulumi.set(__self__, "task_template", task_template) - - @property - @pulumi.getter(name="taskId") - def task_id(self) -> pulumi.Input[str]: - """ - The identifier of this task within its parent event config, specified by the client. This should be unique among all the tasks belong to the same event config. We use this field as the identifier to find next tasks (via field `next_tasks.task_id`). - """ - return pulumi.get(self, "task_id") - - @task_id.setter - def task_id(self, value: pulumi.Input[str]): - pulumi.set(self, "task_id", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - Optional. User-provided description intended to give additional business context about the task. - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter(name="displayName") - def display_name(self) -> Optional[pulumi.Input[str]]: - """ - Optional. User-provided label that is attached to this TaskConfig in the UI. - """ - return pulumi.get(self, "display_name") - - @display_name.setter - def display_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "display_name", value) - - @property - @pulumi.getter(name="errorCatcherId") - def error_catcher_id(self) -> Optional[pulumi.Input[str]]: - """ - Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - """ - return pulumi.get(self, "error_catcher_id") - - @error_catcher_id.setter - def error_catcher_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "error_catcher_id", value) - - @property - @pulumi.getter(name="externalTaskType") - def external_task_type(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType']]: - """ - Optional. External task type of the task - """ - return pulumi.get(self, "external_task_type") - - @external_task_type.setter - def external_task_type(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigExternalTaskType']]): - pulumi.set(self, "external_task_type", value) - - @property - @pulumi.getter(name="failurePolicy") - def failure_policy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']]: - """ - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, Schedule etc.). - """ - return pulumi.get(self, "failure_policy") - - @failure_policy.setter - def failure_policy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']]): - pulumi.set(self, "failure_policy", value) - - @property - @pulumi.getter(name="jsonValidationOption") - def json_validation_option(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption']]: - """ - Optional. If set, overrides the option configured in the Task implementation class. - """ - return pulumi.get(self, "json_validation_option") - - @json_validation_option.setter - def json_validation_option(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigJsonValidationOption']]): - pulumi.set(self, "json_validation_option", value) - - @property - @pulumi.getter(name="nextTasks") - def next_tasks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]]: - """ - Optional. The set of tasks that are next in line to be executed as per the execution graph defined for the parent event, specified by `event_config_id`. Each of these next tasks are executed only if the condition associated with them evaluates to true. - """ - return pulumi.get(self, "next_tasks") - - @next_tasks.setter - def next_tasks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]]): - pulumi.set(self, "next_tasks", value) - - @property - @pulumi.getter(name="nextTasksExecutionPolicy") - def next_tasks_execution_policy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy']]: - """ - Optional. The policy dictating the execution of the next set of tasks for the current task. - """ - return pulumi.get(self, "next_tasks_execution_policy") - - @next_tasks_execution_policy.setter - def next_tasks_execution_policy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigNextTasksExecutionPolicy']]): - pulumi.set(self, "next_tasks_execution_policy", value) - - @property - @pulumi.getter - def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - Optional. The customized parameters the user can pass to this task. - """ - return pulumi.get(self, "parameters") - - @parameters.setter - def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "parameters", value) - - @property - @pulumi.getter - def position(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']]: - """ - Optional. Informs the front-end application where to draw this error catcher config on the UI. - """ - return pulumi.get(self, "position") - - @position.setter - def position(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']]): - pulumi.set(self, "position", value) - - @property - @pulumi.getter(name="successPolicy") - def success_policy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyArgs']]: - """ - Optional. Determines what action to take upon successful task completion. - """ - return pulumi.get(self, "success_policy") - - @success_policy.setter - def success_policy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaSuccessPolicyArgs']]): - pulumi.set(self, "success_policy", value) - - @property - @pulumi.getter(name="synchronousCallFailurePolicy") - def synchronous_call_failure_policy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']]: - """ - Optional. Determines the number of times the task will be retried on failure and with what retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). - """ - return pulumi.get(self, "synchronous_call_failure_policy") - - @synchronous_call_failure_policy.setter - def synchronous_call_failure_policy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaFailurePolicyArgs']]): - pulumi.set(self, "synchronous_call_failure_policy", value) - - @property - @pulumi.getter - def task(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The name for the task. - """ - return pulumi.get(self, "task") - - @task.setter - def task(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "task", value) - - @property - @pulumi.getter(name="taskExecutionStrategy") - def task_execution_strategy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy']]: - """ - Optional. The policy dictating the execution strategy of this task. - """ - return pulumi.get(self, "task_execution_strategy") - - @task_execution_strategy.setter - def task_execution_strategy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigTaskExecutionStrategy']]): - pulumi.set(self, "task_execution_strategy", value) - - @property - @pulumi.getter(name="taskTemplate") - def task_template(self) -> Optional[pulumi.Input[str]]: - """ - Optional. Used to define task-template name if task is of type task-template - """ - return pulumi.get(self, "task_template") - - @task_template.setter - def task_template(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "task_template", value) - - -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaTestTaskConfigArgs: - def __init__(__self__, *, - task: pulumi.Input[str], - task_number: pulumi.Input[str], - assertions: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaAssertionArgs']]]] = None, - mock_config: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaMockConfigArgs']] = None): + task: pulumi.Input[str], + task_number: pulumi.Input[str], + assertions: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaAssertionArgs']]]] = None, + mock_config: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaMockConfigArgs']] = None): """ The task mock configuration details and assertions for functional tests. Next available id: 5 :param pulumi.Input[str] task: This defines in the test case, the task name in integration which will be mocked by this test task config @@ -7206,221 +6554,6 @@ def mock_config(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alp pulumi.set(self, "mock_config", value) -@pulumi.input_type -class GoogleCloudIntegrationsV1alphaTriggerConfigArgs: - def __init__(__self__, *, - trigger_number: pulumi.Input[str], - alert_config: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs']]]] = None, - cloud_scheduler_config: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs']] = None, - description: Optional[pulumi.Input[str]] = None, - error_catcher_id: Optional[pulumi.Input[str]] = None, - label: Optional[pulumi.Input[str]] = None, - next_tasks_execution_policy: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy']] = None, - position: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']] = None, - properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - start_tasks: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]] = None, - trigger: Optional[pulumi.Input[str]] = None, - trigger_id: Optional[pulumi.Input[str]] = None, - trigger_type: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType']] = None): - """ - Configuration detail of a trigger. - :param pulumi.Input[str] trigger_number: A number to uniquely identify each trigger config within the integration on UI. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs']]] alert_config: Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs'] cloud_scheduler_config: Optional. Cloud Scheduler Trigger related metadata - :param pulumi.Input[str] description: Optional. User-provided description intended to give additional business context about the task. - :param pulumi.Input[str] error_catcher_id: Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - :param pulumi.Input[str] label: Optional. The user created label for a particular trigger. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy'] next_tasks_execution_policy: Optional. Dictates how next tasks will be executed. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs'] position: Optional. Informs the front-end application where to draw this error catcher config on the UI. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]] start_tasks: Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). - :param pulumi.Input[str] trigger: Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. - :param pulumi.Input[str] trigger_id: Optional. The backend trigger ID. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType'] trigger_type: Optional. Type of trigger - """ - pulumi.set(__self__, "trigger_number", trigger_number) - if alert_config is not None: - pulumi.set(__self__, "alert_config", alert_config) - if cloud_scheduler_config is not None: - pulumi.set(__self__, "cloud_scheduler_config", cloud_scheduler_config) - if description is not None: - pulumi.set(__self__, "description", description) - if error_catcher_id is not None: - pulumi.set(__self__, "error_catcher_id", error_catcher_id) - if label is not None: - pulumi.set(__self__, "label", label) - if next_tasks_execution_policy is not None: - pulumi.set(__self__, "next_tasks_execution_policy", next_tasks_execution_policy) - if position is not None: - pulumi.set(__self__, "position", position) - if properties is not None: - pulumi.set(__self__, "properties", properties) - if start_tasks is not None: - pulumi.set(__self__, "start_tasks", start_tasks) - if trigger is not None: - pulumi.set(__self__, "trigger", trigger) - if trigger_id is not None: - pulumi.set(__self__, "trigger_id", trigger_id) - if trigger_type is not None: - pulumi.set(__self__, "trigger_type", trigger_type) - - @property - @pulumi.getter(name="triggerNumber") - def trigger_number(self) -> pulumi.Input[str]: - """ - A number to uniquely identify each trigger config within the integration on UI. - """ - return pulumi.get(self, "trigger_number") - - @trigger_number.setter - def trigger_number(self, value: pulumi.Input[str]): - pulumi.set(self, "trigger_number", value) - - @property - @pulumi.getter(name="alertConfig") - def alert_config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs']]]]: - """ - Optional. An alert threshold configuration for the [trigger + client + integration] tuple. If these values are not specified in the trigger config, default values will be populated by the system. Note that there must be exactly one alert threshold configured per [client + trigger + integration] when published. - """ - return pulumi.get(self, "alert_config") - - @alert_config.setter - def alert_config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationAlertConfigArgs']]]]): - pulumi.set(self, "alert_config", value) - - @property - @pulumi.getter(name="cloudSchedulerConfig") - def cloud_scheduler_config(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs']]: - """ - Optional. Cloud Scheduler Trigger related metadata - """ - return pulumi.get(self, "cloud_scheduler_config") - - @cloud_scheduler_config.setter - def cloud_scheduler_config(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudSchedulerConfigArgs']]): - pulumi.set(self, "cloud_scheduler_config", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - Optional. User-provided description intended to give additional business context about the task. - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter(name="errorCatcherId") - def error_catcher_id(self) -> Optional[pulumi.Input[str]]: - """ - Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task - """ - return pulumi.get(self, "error_catcher_id") - - @error_catcher_id.setter - def error_catcher_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "error_catcher_id", value) - - @property - @pulumi.getter - def label(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The user created label for a particular trigger. - """ - return pulumi.get(self, "label") - - @label.setter - def label(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "label", value) - - @property - @pulumi.getter(name="nextTasksExecutionPolicy") - def next_tasks_execution_policy(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy']]: - """ - Optional. Dictates how next tasks will be executed. - """ - return pulumi.get(self, "next_tasks_execution_policy") - - @next_tasks_execution_policy.setter - def next_tasks_execution_policy(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigNextTasksExecutionPolicy']]): - pulumi.set(self, "next_tasks_execution_policy", value) - - @property - @pulumi.getter - def position(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']]: - """ - Optional. Informs the front-end application where to draw this error catcher config on the UI. - """ - return pulumi.get(self, "position") - - @position.setter - def position(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCoordinateArgs']]): - pulumi.set(self, "position", value) - - @property - @pulumi.getter - def properties(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: - """ - Optional. Configurable properties of the trigger, not to be confused with integration parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Pub/sub triggers. - """ - return pulumi.get(self, "properties") - - @properties.setter - def properties(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): - pulumi.set(self, "properties", value) - - @property - @pulumi.getter(name="startTasks") - def start_tasks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]]: - """ - Optional. Set of tasks numbers from where the integration execution is started by this trigger. If this is empty, then integration is executed with default start tasks. In the list of start tasks, none of two tasks can have direct ancestor-descendant relationships (i.e. in a same integration execution graph). - """ - return pulumi.get(self, "start_tasks") - - @start_tasks.setter - def start_tasks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaNextTaskArgs']]]]): - pulumi.set(self, "start_tasks", value) - - @property - @pulumi.getter - def trigger(self) -> Optional[pulumi.Input[str]]: - """ - Optional. Name of the trigger. Example: "API Trigger", "Cloud Pub Sub Trigger" When set will be sent out to monitoring dashabord for tracking purpose. - """ - return pulumi.get(self, "trigger") - - @trigger.setter - def trigger(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "trigger", value) - - @property - @pulumi.getter(name="triggerId") - def trigger_id(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The backend trigger ID. - """ - return pulumi.get(self, "trigger_id") - - @trigger_id.setter - def trigger_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "trigger_id", value) - - @property - @pulumi.getter(name="triggerType") - def trigger_type(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType']]: - """ - Optional. Type of trigger - """ - return pulumi.get(self, "trigger_type") - - @trigger_type.setter - def trigger_type(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigTriggerType']]): - pulumi.set(self, "trigger_type", value) - - @pulumi.input_type class GoogleCloudIntegrationsV1alphaUsernameAndPasswordArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_google_native/integrations/v1alpha/version.py b/sdk/python/pulumi_google_native/integrations/v1alpha/version.py index d2d03ebe70..1bf95985bb 100644 --- a/sdk/python/pulumi_google_native/integrations/v1alpha/version.py +++ b/sdk/python/pulumi_google_native/integrations/v1alpha/version.py @@ -10,7 +10,6 @@ from ... import _utilities from . import outputs from ._enums import * -from ._inputs import * __all__ = ['VersionArgs', 'Version'] @@ -19,97 +18,25 @@ class VersionArgs: def __init__(__self__, *, integration_id: pulumi.Input[str], product_id: pulumi.Input[str], - cloud_logging_details: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']] = None, - create_sample_integrations: Optional[pulumi.Input[bool]] = None, - database_persistence_policy: Optional[pulumi.Input['VersionDatabasePersistencePolicy']] = None, - description: Optional[pulumi.Input[str]] = None, - error_catcher_configs: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]] = None, - integration_parameters: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]] = None, - integration_parameters_internal: Optional[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']] = None, - last_modifier_email: Optional[pulumi.Input[str]] = None, + content: Optional[pulumi.Input[str]] = None, + file_format: Optional[pulumi.Input['VersionFileFormat']] = None, location: Optional[pulumi.Input[str]] = None, - lock_holder: Optional[pulumi.Input[str]] = None, - new_integration: Optional[pulumi.Input[bool]] = None, - origin: Optional[pulumi.Input['VersionOrigin']] = None, - parent_template_id: Optional[pulumi.Input[str]] = None, - project: Optional[pulumi.Input[str]] = None, - run_as_service_account: Optional[pulumi.Input[str]] = None, - snapshot_number: Optional[pulumi.Input[str]] = None, - task_configs: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]] = None, - task_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]] = None, - teardown: Optional[pulumi.Input['EnterpriseCrmEventbusProtoTeardownArgs']] = None, - trigger_configs: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]] = None, - trigger_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]] = None, - user_label: Optional[pulumi.Input[str]] = None): + project: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a Version resource. - :param pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs'] cloud_logging_details: Optional. Cloud Logging details for the integration version - :param pulumi.Input[bool] create_sample_integrations: Optional. Optional. Indicates if sample workflow should be created. - :param pulumi.Input['VersionDatabasePersistencePolicy'] database_persistence_policy: Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - :param pulumi.Input[str] description: Optional. The integration description. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]] error_catcher_configs: Optional. Error Catch Task configuration for the integration. It's optional. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]] integration_parameters: Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - :param pulumi.Input['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs'] integration_parameters_internal: Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - :param pulumi.Input[str] last_modifier_email: Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - :param pulumi.Input[str] lock_holder: Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - :param pulumi.Input[bool] new_integration: Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - :param pulumi.Input['VersionOrigin'] origin: Optional. The origin that indicates where this integration is coming from. - :param pulumi.Input[str] parent_template_id: Optional. The id of the template which was used to create this integration_version. - :param pulumi.Input[str] run_as_service_account: Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - :param pulumi.Input[str] snapshot_number: Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]] task_configs: Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - :param pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]] task_configs_internal: Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - :param pulumi.Input['EnterpriseCrmEventbusProtoTeardownArgs'] teardown: Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - :param pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]] trigger_configs: Optional. Trigger configurations. - :param pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]] trigger_configs_internal: Optional. Trigger configurations. - :param pulumi.Input[str] user_label: Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. + :param pulumi.Input[str] content: The textproto of the integration_version. + :param pulumi.Input['VersionFileFormat'] file_format: File format for upload request. """ pulumi.set(__self__, "integration_id", integration_id) pulumi.set(__self__, "product_id", product_id) - if cloud_logging_details is not None: - pulumi.set(__self__, "cloud_logging_details", cloud_logging_details) - if create_sample_integrations is not None: - pulumi.set(__self__, "create_sample_integrations", create_sample_integrations) - if database_persistence_policy is not None: - pulumi.set(__self__, "database_persistence_policy", database_persistence_policy) - if description is not None: - pulumi.set(__self__, "description", description) - if error_catcher_configs is not None: - pulumi.set(__self__, "error_catcher_configs", error_catcher_configs) - if integration_parameters is not None: - pulumi.set(__self__, "integration_parameters", integration_parameters) - if integration_parameters_internal is not None: - pulumi.set(__self__, "integration_parameters_internal", integration_parameters_internal) - if last_modifier_email is not None: - pulumi.set(__self__, "last_modifier_email", last_modifier_email) + if content is not None: + pulumi.set(__self__, "content", content) + if file_format is not None: + pulumi.set(__self__, "file_format", file_format) if location is not None: pulumi.set(__self__, "location", location) - if lock_holder is not None: - pulumi.set(__self__, "lock_holder", lock_holder) - if new_integration is not None: - pulumi.set(__self__, "new_integration", new_integration) - if origin is not None: - pulumi.set(__self__, "origin", origin) - if parent_template_id is not None: - pulumi.set(__self__, "parent_template_id", parent_template_id) if project is not None: pulumi.set(__self__, "project", project) - if run_as_service_account is not None: - pulumi.set(__self__, "run_as_service_account", run_as_service_account) - if snapshot_number is not None: - pulumi.set(__self__, "snapshot_number", snapshot_number) - if task_configs is not None: - pulumi.set(__self__, "task_configs", task_configs) - if task_configs_internal is not None: - pulumi.set(__self__, "task_configs_internal", task_configs_internal) - if teardown is not None: - pulumi.set(__self__, "teardown", teardown) - if trigger_configs is not None: - pulumi.set(__self__, "trigger_configs", trigger_configs) - if trigger_configs_internal is not None: - pulumi.set(__self__, "trigger_configs_internal", trigger_configs_internal) - if user_label is not None: - pulumi.set(__self__, "user_label", user_label) @property @pulumi.getter(name="integrationId") @@ -129,101 +56,29 @@ def product_id(self) -> pulumi.Input[str]: def product_id(self, value: pulumi.Input[str]): pulumi.set(self, "product_id", value) - @property - @pulumi.getter(name="cloudLoggingDetails") - def cloud_logging_details(self) -> Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']]: - """ - Optional. Cloud Logging details for the integration version - """ - return pulumi.get(self, "cloud_logging_details") - - @cloud_logging_details.setter - def cloud_logging_details(self, value: Optional[pulumi.Input['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']]): - pulumi.set(self, "cloud_logging_details", value) - - @property - @pulumi.getter(name="createSampleIntegrations") - def create_sample_integrations(self) -> Optional[pulumi.Input[bool]]: - """ - Optional. Optional. Indicates if sample workflow should be created. - """ - return pulumi.get(self, "create_sample_integrations") - - @create_sample_integrations.setter - def create_sample_integrations(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "create_sample_integrations", value) - - @property - @pulumi.getter(name="databasePersistencePolicy") - def database_persistence_policy(self) -> Optional[pulumi.Input['VersionDatabasePersistencePolicy']]: - """ - Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - """ - return pulumi.get(self, "database_persistence_policy") - - @database_persistence_policy.setter - def database_persistence_policy(self, value: Optional[pulumi.Input['VersionDatabasePersistencePolicy']]): - pulumi.set(self, "database_persistence_policy", value) - @property @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The integration description. - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter(name="errorCatcherConfigs") - def error_catcher_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]]: - """ - Optional. Error Catch Task configuration for the integration. It's optional. - """ - return pulumi.get(self, "error_catcher_configs") - - @error_catcher_configs.setter - def error_catcher_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]]): - pulumi.set(self, "error_catcher_configs", value) - - @property - @pulumi.getter(name="integrationParameters") - def integration_parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]]: + def content(self) -> Optional[pulumi.Input[str]]: """ - Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. + The textproto of the integration_version. """ - return pulumi.get(self, "integration_parameters") + return pulumi.get(self, "content") - @integration_parameters.setter - def integration_parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]]): - pulumi.set(self, "integration_parameters", value) + @content.setter + def content(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "content", value) @property - @pulumi.getter(name="integrationParametersInternal") - def integration_parameters_internal(self) -> Optional[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']]: + @pulumi.getter(name="fileFormat") + def file_format(self) -> Optional[pulumi.Input['VersionFileFormat']]: """ - Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. + File format for upload request. """ - return pulumi.get(self, "integration_parameters_internal") + return pulumi.get(self, "file_format") - @integration_parameters_internal.setter - def integration_parameters_internal(self, value: Optional[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']]): - pulumi.set(self, "integration_parameters_internal", value) - - @property - @pulumi.getter(name="lastModifierEmail") - def last_modifier_email(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - """ - return pulumi.get(self, "last_modifier_email") - - @last_modifier_email.setter - def last_modifier_email(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "last_modifier_email", value) + @file_format.setter + def file_format(self, value: Optional[pulumi.Input['VersionFileFormat']]): + pulumi.set(self, "file_format", value) @property @pulumi.getter @@ -234,54 +89,6 @@ def location(self) -> Optional[pulumi.Input[str]]: def location(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "location", value) - @property - @pulumi.getter(name="lockHolder") - def lock_holder(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - """ - return pulumi.get(self, "lock_holder") - - @lock_holder.setter - def lock_holder(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "lock_holder", value) - - @property - @pulumi.getter(name="newIntegration") - def new_integration(self) -> Optional[pulumi.Input[bool]]: - """ - Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - """ - return pulumi.get(self, "new_integration") - - @new_integration.setter - def new_integration(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "new_integration", value) - - @property - @pulumi.getter - def origin(self) -> Optional[pulumi.Input['VersionOrigin']]: - """ - Optional. The origin that indicates where this integration is coming from. - """ - return pulumi.get(self, "origin") - - @origin.setter - def origin(self, value: Optional[pulumi.Input['VersionOrigin']]): - pulumi.set(self, "origin", value) - - @property - @pulumi.getter(name="parentTemplateId") - def parent_template_id(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The id of the template which was used to create this integration_version. - """ - return pulumi.get(self, "parent_template_id") - - @parent_template_id.setter - def parent_template_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "parent_template_id", value) - @property @pulumi.getter def project(self) -> Optional[pulumi.Input[str]]: @@ -291,159 +98,27 @@ def project(self) -> Optional[pulumi.Input[str]]: def project(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project", value) - @property - @pulumi.getter(name="runAsServiceAccount") - def run_as_service_account(self) -> Optional[pulumi.Input[str]]: - """ - Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - """ - return pulumi.get(self, "run_as_service_account") - - @run_as_service_account.setter - def run_as_service_account(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "run_as_service_account", value) - - @property - @pulumi.getter(name="snapshotNumber") - def snapshot_number(self) -> Optional[pulumi.Input[str]]: - """ - Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - """ - return pulumi.get(self, "snapshot_number") - - @snapshot_number.setter - def snapshot_number(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "snapshot_number", value) - - @property - @pulumi.getter(name="taskConfigs") - def task_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]]: - """ - Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - """ - return pulumi.get(self, "task_configs") - - @task_configs.setter - def task_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]]): - pulumi.set(self, "task_configs", value) - - @property - @pulumi.getter(name="taskConfigsInternal") - def task_configs_internal(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]]: - """ - Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - """ - return pulumi.get(self, "task_configs_internal") - - @task_configs_internal.setter - def task_configs_internal(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]]): - pulumi.set(self, "task_configs_internal", value) - - @property - @pulumi.getter - def teardown(self) -> Optional[pulumi.Input['EnterpriseCrmEventbusProtoTeardownArgs']]: - """ - Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - """ - return pulumi.get(self, "teardown") - - @teardown.setter - def teardown(self, value: Optional[pulumi.Input['EnterpriseCrmEventbusProtoTeardownArgs']]): - pulumi.set(self, "teardown", value) - - @property - @pulumi.getter(name="triggerConfigs") - def trigger_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]]: - """ - Optional. Trigger configurations. - """ - return pulumi.get(self, "trigger_configs") - - @trigger_configs.setter - def trigger_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]]): - pulumi.set(self, "trigger_configs", value) - - @property - @pulumi.getter(name="triggerConfigsInternal") - def trigger_configs_internal(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]]: - """ - Optional. Trigger configurations. - """ - return pulumi.get(self, "trigger_configs_internal") - - @trigger_configs_internal.setter - def trigger_configs_internal(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]]): - pulumi.set(self, "trigger_configs_internal", value) - - @property - @pulumi.getter(name="userLabel") - def user_label(self) -> Optional[pulumi.Input[str]]: - """ - Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. - """ - return pulumi.get(self, "user_label") - - @user_label.setter - def user_label(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_label", value) - class Version(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - cloud_logging_details: Optional[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']]] = None, - create_sample_integrations: Optional[pulumi.Input[bool]] = None, - database_persistence_policy: Optional[pulumi.Input['VersionDatabasePersistencePolicy']] = None, - description: Optional[pulumi.Input[str]] = None, - error_catcher_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]]] = None, + content: Optional[pulumi.Input[str]] = None, + file_format: Optional[pulumi.Input['VersionFileFormat']] = None, integration_id: Optional[pulumi.Input[str]] = None, - integration_parameters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]]] = None, - integration_parameters_internal: Optional[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']]] = None, - last_modifier_email: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, - lock_holder: Optional[pulumi.Input[str]] = None, - new_integration: Optional[pulumi.Input[bool]] = None, - origin: Optional[pulumi.Input['VersionOrigin']] = None, - parent_template_id: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - run_as_service_account: Optional[pulumi.Input[str]] = None, - snapshot_number: Optional[pulumi.Input[str]] = None, - task_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]]] = None, - task_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]]] = None, - teardown: Optional[pulumi.Input[pulumi.InputType['EnterpriseCrmEventbusProtoTeardownArgs']]] = None, - trigger_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]]] = None, - trigger_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]]] = None, - user_label: Optional[pulumi.Input[str]] = None, __props__=None): """ - Create a integration with a draft version in the specified project. + Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. Auto-naming is currently not supported for this resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']] cloud_logging_details: Optional. Cloud Logging details for the integration version - :param pulumi.Input[bool] create_sample_integrations: Optional. Optional. Indicates if sample workflow should be created. - :param pulumi.Input['VersionDatabasePersistencePolicy'] database_persistence_policy: Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index. - :param pulumi.Input[str] description: Optional. The integration description. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]] error_catcher_configs: Optional. Error Catch Task configuration for the integration. It's optional. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]] integration_parameters: Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - :param pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']] integration_parameters_internal: Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter. - :param pulumi.Input[str] last_modifier_email: Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - :param pulumi.Input[str] lock_holder: Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call. - :param pulumi.Input[bool] new_integration: Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - :param pulumi.Input['VersionOrigin'] origin: Optional. The origin that indicates where this integration is coming from. - :param pulumi.Input[str] parent_template_id: Optional. The id of the template which was used to create this integration_version. - :param pulumi.Input[str] run_as_service_account: Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task. - :param pulumi.Input[str] snapshot_number: Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]] task_configs: Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]] task_configs_internal: Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs. - :param pulumi.Input[pulumi.InputType['EnterpriseCrmEventbusProtoTeardownArgs']] teardown: Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]] trigger_configs: Optional. Trigger configurations. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]] trigger_configs_internal: Optional. Trigger configurations. - :param pulumi.Input[str] user_label: Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created. + :param pulumi.Input[str] content: The textproto of the integration_version. + :param pulumi.Input['VersionFileFormat'] file_format: File format for upload request. """ ... @overload @@ -452,7 +127,7 @@ def __init__(__self__, args: VersionArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a integration with a draft version in the specified project. + Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content. Auto-naming is currently not supported for this resource. :param str resource_name: The name of the resource. @@ -470,30 +145,12 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - cloud_logging_details: Optional[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaCloudLoggingDetailsArgs']]] = None, - create_sample_integrations: Optional[pulumi.Input[bool]] = None, - database_persistence_policy: Optional[pulumi.Input['VersionDatabasePersistencePolicy']] = None, - description: Optional[pulumi.Input[str]] = None, - error_catcher_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaErrorCatcherConfigArgs']]]]] = None, + content: Optional[pulumi.Input[str]] = None, + file_format: Optional[pulumi.Input['VersionFileFormat']] = None, integration_id: Optional[pulumi.Input[str]] = None, - integration_parameters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaIntegrationParameterArgs']]]]] = None, - integration_parameters_internal: Optional[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoWorkflowParametersArgs']]] = None, - last_modifier_email: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, - lock_holder: Optional[pulumi.Input[str]] = None, - new_integration: Optional[pulumi.Input[bool]] = None, - origin: Optional[pulumi.Input['VersionOrigin']] = None, - parent_template_id: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, - run_as_service_account: Optional[pulumi.Input[str]] = None, - snapshot_number: Optional[pulumi.Input[str]] = None, - task_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTaskConfigArgs']]]]] = None, - task_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTaskConfigArgs']]]]] = None, - teardown: Optional[pulumi.Input[pulumi.InputType['EnterpriseCrmEventbusProtoTeardownArgs']]] = None, - trigger_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GoogleCloudIntegrationsV1alphaTriggerConfigArgs']]]]] = None, - trigger_configs_internal: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EnterpriseCrmFrontendsEventbusProtoTriggerConfigArgs']]]]] = None, - user_label: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -503,39 +160,39 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = VersionArgs.__new__(VersionArgs) - __props__.__dict__["cloud_logging_details"] = cloud_logging_details - __props__.__dict__["create_sample_integrations"] = create_sample_integrations - __props__.__dict__["database_persistence_policy"] = database_persistence_policy - __props__.__dict__["description"] = description - __props__.__dict__["error_catcher_configs"] = error_catcher_configs + __props__.__dict__["content"] = content + __props__.__dict__["file_format"] = file_format if integration_id is None and not opts.urn: raise TypeError("Missing required property 'integration_id'") __props__.__dict__["integration_id"] = integration_id - __props__.__dict__["integration_parameters"] = integration_parameters - __props__.__dict__["integration_parameters_internal"] = integration_parameters_internal - __props__.__dict__["last_modifier_email"] = last_modifier_email __props__.__dict__["location"] = location - __props__.__dict__["lock_holder"] = lock_holder - __props__.__dict__["new_integration"] = new_integration - __props__.__dict__["origin"] = origin - __props__.__dict__["parent_template_id"] = parent_template_id if product_id is None and not opts.urn: raise TypeError("Missing required property 'product_id'") __props__.__dict__["product_id"] = product_id __props__.__dict__["project"] = project - __props__.__dict__["run_as_service_account"] = run_as_service_account - __props__.__dict__["snapshot_number"] = snapshot_number - __props__.__dict__["task_configs"] = task_configs - __props__.__dict__["task_configs_internal"] = task_configs_internal - __props__.__dict__["teardown"] = teardown - __props__.__dict__["trigger_configs"] = trigger_configs - __props__.__dict__["trigger_configs_internal"] = trigger_configs_internal - __props__.__dict__["user_label"] = user_label + __props__.__dict__["cloud_logging_details"] = None __props__.__dict__["create_time"] = None + __props__.__dict__["database_persistence_policy"] = None + __props__.__dict__["description"] = None + __props__.__dict__["error_catcher_configs"] = None + __props__.__dict__["integration_parameters"] = None + __props__.__dict__["integration_parameters_internal"] = None + __props__.__dict__["last_modifier_email"] = None + __props__.__dict__["lock_holder"] = None __props__.__dict__["name"] = None + __props__.__dict__["origin"] = None + __props__.__dict__["parent_template_id"] = None + __props__.__dict__["run_as_service_account"] = None + __props__.__dict__["snapshot_number"] = None __props__.__dict__["state"] = None __props__.__dict__["status"] = None + __props__.__dict__["task_configs"] = None + __props__.__dict__["task_configs_internal"] = None + __props__.__dict__["teardown"] = None + __props__.__dict__["trigger_configs"] = None + __props__.__dict__["trigger_configs_internal"] = None __props__.__dict__["update_time"] = None + __props__.__dict__["user_label"] = None replace_on_changes = pulumi.ResourceOptions(replace_on_changes=["integration_id", "location", "product_id", "project"]) opts = pulumi.ResourceOptions.merge(opts, replace_on_changes) super(Version, __self__).__init__( @@ -561,7 +218,6 @@ def get(resource_name: str, __props__ = VersionArgs.__new__(VersionArgs) __props__.__dict__["cloud_logging_details"] = None - __props__.__dict__["create_sample_integrations"] = None __props__.__dict__["create_time"] = None __props__.__dict__["database_persistence_policy"] = None __props__.__dict__["description"] = None @@ -573,7 +229,6 @@ def get(resource_name: str, __props__.__dict__["location"] = None __props__.__dict__["lock_holder"] = None __props__.__dict__["name"] = None - __props__.__dict__["new_integration"] = None __props__.__dict__["origin"] = None __props__.__dict__["parent_template_id"] = None __props__.__dict__["product_id"] = None @@ -599,14 +254,6 @@ def cloud_logging_details(self) -> pulumi.Output['outputs.GoogleCloudIntegration """ return pulumi.get(self, "cloud_logging_details") - @property - @pulumi.getter(name="createSampleIntegrations") - def create_sample_integrations(self) -> pulumi.Output[Optional[bool]]: - """ - Optional. Optional. Indicates if sample workflow should be created. - """ - return pulumi.get(self, "create_sample_integrations") - @property @pulumi.getter(name="createTime") def create_time(self) -> pulumi.Output[str]: @@ -689,14 +336,6 @@ def name(self) -> pulumi.Output[str]: """ return pulumi.get(self, "name") - @property - @pulumi.getter(name="newIntegration") - def new_integration(self) -> pulumi.Output[Optional[bool]]: - """ - Set this flag to true, if draft version is to be created for a brand new integration. False, if the request is for an existing integration. For backward compatibility reasons, even if this flag is set to `false` and no existing integration is found, a new draft integration will still be created. - """ - return pulumi.get(self, "new_integration") - @property @pulumi.getter def origin(self) -> pulumi.Output[str]: