Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as googleworkspace from "@pulumi/googleworkspace";
const example = googleworkspace.getChromePolicySchema({
schemaName: "chrome.printers.AllowForUsers",
});
export const fieldDescriptions = example.then(example => example.fieldDescriptions);
import pulumi
import pulumi_googleworkspace as googleworkspace
example = googleworkspace.get_chrome_policy_schema(schema_name="chrome.printers.AllowForUsers")
pulumi.export("fieldDescriptions", example.field_descriptions)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/googleworkspace/googleworkspace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := googleworkspace.GetChromePolicySchema(ctx, &googleworkspace.GetChromePolicySchemaArgs{
SchemaName: "chrome.printers.AllowForUsers",
}, nil)
if err != nil {
return err
}
ctx.Export("fieldDescriptions", example.FieldDescriptions)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;
return await Deployment.RunAsync(() =>
{
var example = Googleworkspace.GetChromePolicySchema.Invoke(new()
{
SchemaName = "chrome.printers.AllowForUsers",
});
return new Dictionary<string, object?>
{
["fieldDescriptions"] = example.Apply(getChromePolicySchemaResult => getChromePolicySchemaResult.FieldDescriptions),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.googleworkspace.GoogleworkspaceFunctions;
import com.pulumi.googleworkspace.inputs.GetChromePolicySchemaArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = GoogleworkspaceFunctions.getChromePolicySchema(GetChromePolicySchemaArgs.builder()
.schemaName("chrome.printers.AllowForUsers")
.build());
ctx.export("fieldDescriptions", example.applyValue(getChromePolicySchemaResult -> getChromePolicySchemaResult.fieldDescriptions()));
}
}
variables:
example:
fn::invoke:
function: googleworkspace:getChromePolicySchema
arguments:
schemaName: chrome.printers.AllowForUsers
outputs:
fieldDescriptions: ${example.fieldDescriptions}
Using getChromePolicySchema
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getChromePolicySchema(args: GetChromePolicySchemaArgs, opts?: InvokeOptions): Promise<GetChromePolicySchemaResult>
function getChromePolicySchemaOutput(args: GetChromePolicySchemaOutputArgs, opts?: InvokeOptions): Output<GetChromePolicySchemaResult>def get_chrome_policy_schema(id: Optional[str] = None,
schema_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetChromePolicySchemaResult
def get_chrome_policy_schema_output(id: Optional[pulumi.Input[str]] = None,
schema_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetChromePolicySchemaResult]func GetChromePolicySchema(ctx *Context, args *GetChromePolicySchemaArgs, opts ...InvokeOption) (*GetChromePolicySchemaResult, error)
func GetChromePolicySchemaOutput(ctx *Context, args *GetChromePolicySchemaOutputArgs, opts ...InvokeOption) GetChromePolicySchemaResultOutput> Note: This function is named GetChromePolicySchema in the Go SDK.
public static class GetChromePolicySchema
{
public static Task<GetChromePolicySchemaResult> InvokeAsync(GetChromePolicySchemaArgs args, InvokeOptions? opts = null)
public static Output<GetChromePolicySchemaResult> Invoke(GetChromePolicySchemaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetChromePolicySchemaResult> getChromePolicySchema(GetChromePolicySchemaArgs args, InvokeOptions options)
public static Output<GetChromePolicySchemaResult> getChromePolicySchema(GetChromePolicySchemaArgs args, InvokeOptions options)
fn::invoke:
function: googleworkspace:index/getChromePolicySchema:getChromePolicySchema
arguments:
# arguments dictionaryThe following arguments are supported:
- Schema
Name string - The full qualified name of the policy schema
- Id string
- The ID of this resource.
- Schema
Name string - The full qualified name of the policy schema
- Id string
- The ID of this resource.
- schema
Name String - The full qualified name of the policy schema
- id String
- The ID of this resource.
- schema
Name string - The full qualified name of the policy schema
- id string
- The ID of this resource.
- schema_
name str - The full qualified name of the policy schema
- id str
- The ID of this resource.
- schema
Name String - The full qualified name of the policy schema
- id String
- The ID of this resource.
getChromePolicySchema Result
The following output properties are available:
- Access
Restrictions List<string> - Specific access restrictions related to this policy.
- Additional
Target List<GetKey Names Chrome Policy Schema Additional Target Key Name> - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- Definitions
List<Get
Chrome Policy Schema Definition> - Schema definition using proto descriptor.
- Field
Descriptions string - Detailed description of each field that is part of the schema, represented as a JSON string.
- Id string
- The ID of this resource.
- Notices
List<Get
Chrome Policy Schema Notice> - Special notice messages related to setting certain values in certain fields in the schema.
- Policy
Description string - Description about the policy schema for user consumption.
- Schema
Name string - The full qualified name of the policy schema
- Support
Uri string - URI to related support article for this schema.
- Access
Restrictions []string - Specific access restrictions related to this policy.
- Additional
Target []GetKey Names Chrome Policy Schema Additional Target Key Name - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- Definitions
[]Get
Chrome Policy Schema Definition - Schema definition using proto descriptor.
- Field
Descriptions string - Detailed description of each field that is part of the schema, represented as a JSON string.
- Id string
- The ID of this resource.
- Notices
[]Get
Chrome Policy Schema Notice - Special notice messages related to setting certain values in certain fields in the schema.
- Policy
Description string - Description about the policy schema for user consumption.
- Schema
Name string - The full qualified name of the policy schema
- Support
Uri string - URI to related support article for this schema.
- access
Restrictions List<String> - Specific access restrictions related to this policy.
- additional
Target List<GetKey Names Chrome Policy Schema Additional Target Key Name> - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- definitions
List<Get
Chrome Policy Schema Definition> - Schema definition using proto descriptor.
- field
Descriptions String - Detailed description of each field that is part of the schema, represented as a JSON string.
- id String
- The ID of this resource.
- notices
List<Get
Chrome Policy Schema Notice> - Special notice messages related to setting certain values in certain fields in the schema.
- policy
Description String - Description about the policy schema for user consumption.
- schema
Name String - The full qualified name of the policy schema
- support
Uri String - URI to related support article for this schema.
- access
Restrictions string[] - Specific access restrictions related to this policy.
- additional
Target GetKey Names Chrome Policy Schema Additional Target Key Name[] - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- definitions
Get
Chrome Policy Schema Definition[] - Schema definition using proto descriptor.
- field
Descriptions string - Detailed description of each field that is part of the schema, represented as a JSON string.
- id string
- The ID of this resource.
- notices
Get
Chrome Policy Schema Notice[] - Special notice messages related to setting certain values in certain fields in the schema.
- policy
Description string - Description about the policy schema for user consumption.
- schema
Name string - The full qualified name of the policy schema
- support
Uri string - URI to related support article for this schema.
- access_
restrictions Sequence[str] - Specific access restrictions related to this policy.
- additional_
target_ Sequence[Getkey_ names Chrome Policy Schema Additional Target Key Name] - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- definitions
Sequence[Get
Chrome Policy Schema Definition] - Schema definition using proto descriptor.
- field_
descriptions str - Detailed description of each field that is part of the schema, represented as a JSON string.
- id str
- The ID of this resource.
- notices
Sequence[Get
Chrome Policy Schema Notice] - Special notice messages related to setting certain values in certain fields in the schema.
- policy_
description str - Description about the policy schema for user consumption.
- schema_
name str - The full qualified name of the policy schema
- support_
uri str - URI to related support article for this schema.
- access
Restrictions List<String> - Specific access restrictions related to this policy.
- additional
Target List<Property Map>Key Names - Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map.
- definitions List<Property Map>
- Schema definition using proto descriptor.
- field
Descriptions String - Detailed description of each field that is part of the schema, represented as a JSON string.
- id String
- The ID of this resource.
- notices List<Property Map>
- Special notice messages related to setting certain values in certain fields in the schema.
- policy
Description String - Description about the policy schema for user consumption.
- schema
Name String - The full qualified name of the policy schema
- support
Uri String - URI to related support article for this schema.
Supporting Types
GetChromePolicySchemaAdditionalTargetKeyName
- Key string
- Key
Description string
- Key string
- Key
Description string
- key String
- key
Description String
- key string
- key
Description string
- key str
- key_
description str
- key String
- key
Description String
GetChromePolicySchemaDefinition
- Enum
Types List<GetChrome Policy Schema Definition Enum Type> - Message
Type string - Name string
- Package string
- Syntax string
- Enum
Types []GetChrome Policy Schema Definition Enum Type - Message
Type string - Name string
- Package string
- Syntax string
- enum
Types List<GetChrome Policy Schema Definition Enum Type> - message
Type String - name String
- package_ String
- syntax String
- enum
Types GetChrome Policy Schema Definition Enum Type[] - message
Type string - name string
- package string
- syntax string
- enum
Types List<Property Map> - message
Type String - name String
- package String
- syntax String
GetChromePolicySchemaDefinitionEnumType
- name String
- values List<Property Map>
GetChromePolicySchemaDefinitionEnumTypeValue
GetChromePolicySchemaNotice
- Acknowledgement
Required bool - Field string
- Notice
Message string - Notice
Value string
- Acknowledgement
Required bool - Field string
- Notice
Message string - Notice
Value string
- acknowledgement
Required Boolean - field String
- notice
Message String - notice
Value String
- acknowledgement
Required boolean - field string
- notice
Message string - notice
Value string
- acknowledgement_
required bool - field str
- notice_
message str - notice_
value str
- acknowledgement
Required Boolean - field String
- notice
Message String - notice
Value String
Package Details
- Repository
- googleworkspace hashicorp/terraform-provider-googleworkspace
- License
- Notes
- This Pulumi package is based on the
googleworkspaceTerraform Provider.
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
